blob: 6221abb5f64a812c4f5b648cac05ebaab0240e0d [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 ],
Austin Schuhc4a833d2020-07-03 18:14:58 -07008 data = [
9 "@matplotlib_repo//:matplotlib3",
10 "@python_repo//:all_files",
11 ],
Philipp Schrader12da8122020-12-12 18:08:23 -080012 # While this is technically compatible with "linux", the
13 # "@python_repo//:all_files" has x86 binaries in it.
14 target_compatible_with = ["@platforms//cpu:x86_64"],
Austin Schuhdde64052019-12-11 20:28:00 -080015 visibility = ["//visibility:public"],
Austin Schuh85fc6f12018-01-23 21:59:43 -080016 deps = [
Brian Silverman4c7235a2021-11-17 19:04:37 -080017 "@python_repo//:python3.9_lib",
Austin Schuh85fc6f12018-01-23 21:59:43 -080018 ],
Austin Schuh85fc6f12018-01-23 21:59:43 -080019)
20
21cc_binary(
22 name = "basic_example",
23 srcs = [
24 "examples/basic.cpp",
25 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080026 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh85fc6f12018-01-23 21:59:43 -080027 deps = [
28 "matplotlib-cpp",
29 ],
Austin Schuh85fc6f12018-01-23 21:59:43 -080030)
31
32cc_binary(
33 name = "animation_example",
34 srcs = [
35 "examples/animation.cpp",
36 ],
Philipp Schraderdada1072020-11-24 11:34:46 -080037 target_compatible_with = ["@platforms//os:linux"],
Austin Schuh85fc6f12018-01-23 21:59:43 -080038 deps = [
39 "matplotlib-cpp",
40 ],
Austin Schuh85fc6f12018-01-23 21:59:43 -080041)