blob: 431a403db905c0bbf55a4a3bdc23ffce4ee57816 [file] [log] [blame]
Austin Schuh85fc6f12018-01-23 21:59:43 -08001licenses(["notice"])
2
3cc_library(
4 name = "matplotlib-cpp",
5 hdrs = [
Austin Schuhdde64052019-12-11 20:28:00 -08006 "matplotlibcpp.h",
Austin Schuh85fc6f12018-01-23 21:59:43 -08007 ],
Philipp Schrader01535ee2023-01-08 13:19:03 -08008 data = [
Philipp Schrader1f0a3d02022-12-21 20:30:42 -08009 "//third_party/python:python_runtime",
Philipp Schrader01535ee2023-01-08 13:19:03 -080010 "@pip//matplotlib",
11 "@pip//pygobject",
Austin Schuhc4a833d2020-07-03 18:14:58 -070012 ],
Philipp Schrader12da8122020-12-12 18:08:23 -080013 # While this is technically compatible with "linux", the
14 # "@python_repo//:all_files" has x86 binaries in it.
15 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuhdde64052019-12-11 20:28:00 -080016 visibility = ["//visibility:public"],
Philipp Schrader01535ee2023-01-08 13:19:03 -080017 deps = [
Philipp Schrader1f0a3d02022-12-21 20:30:42 -080018 "//third_party/python",
Philipp Schrader01535ee2023-01-08 13:19:03 -080019 "//third_party/python:numpy_cc",
Austin Schuh85fc6f12018-01-23 21:59:43 -080020 ],
Austin Schuh85fc6f12018-01-23 21:59:43 -080021)
22
23cc_binary(
24 name = "basic_example",
25 srcs = [
26 "examples/basic.cpp",
27 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080028 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh85fc6f12018-01-23 21:59:43 -080029 deps = [
30 "matplotlib-cpp",
31 ],
Austin Schuh85fc6f12018-01-23 21:59:43 -080032)
33
34cc_binary(
35 name = "animation_example",
36 srcs = [
37 "examples/animation.cpp",
38 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080039 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh85fc6f12018-01-23 21:59:43 -080040 deps = [
41 "matplotlib-cpp",
42 ],
Austin Schuh85fc6f12018-01-23 21:59:43 -080043)