Austin Schuh | 85fc6f1 | 2018-01-23 21:59:43 -0800 | [diff] [blame] | 1 | licenses(["notice"]) |
| 2 | |
| 3 | cc_library( |
| 4 | name = "matplotlib-cpp", |
| 5 | hdrs = [ |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 6 | "matplotlibcpp.h", |
Austin Schuh | 85fc6f1 | 2018-01-23 21:59:43 -0800 | [diff] [blame] | 7 | ], |
Austin Schuh | c4a833d | 2020-07-03 18:14:58 -0700 | [diff] [blame] | 8 | data = [ |
| 9 | "@matplotlib_repo//:matplotlib3", |
| 10 | "@python_repo//:all_files", |
| 11 | ], |
Philipp Schrader | 12da812 | 2020-12-12 18:08:23 -0800 | [diff] [blame] | 12 | # 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 Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame] | 15 | visibility = ["//visibility:public"], |
Austin Schuh | 85fc6f1 | 2018-01-23 21:59:43 -0800 | [diff] [blame] | 16 | deps = [ |
Brian Silverman | 4c7235a | 2021-11-17 19:04:37 -0800 | [diff] [blame] | 17 | "@python_repo//:python3.9_lib", |
Austin Schuh | 85fc6f1 | 2018-01-23 21:59:43 -0800 | [diff] [blame] | 18 | ], |
Austin Schuh | 85fc6f1 | 2018-01-23 21:59:43 -0800 | [diff] [blame] | 19 | ) |
| 20 | |
| 21 | cc_binary( |
| 22 | name = "basic_example", |
| 23 | srcs = [ |
| 24 | "examples/basic.cpp", |
| 25 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 26 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 85fc6f1 | 2018-01-23 21:59:43 -0800 | [diff] [blame] | 27 | deps = [ |
| 28 | "matplotlib-cpp", |
| 29 | ], |
Austin Schuh | 85fc6f1 | 2018-01-23 21:59:43 -0800 | [diff] [blame] | 30 | ) |
| 31 | |
| 32 | cc_binary( |
| 33 | name = "animation_example", |
| 34 | srcs = [ |
| 35 | "examples/animation.cpp", |
| 36 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 37 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | 85fc6f1 | 2018-01-23 21:59:43 -0800 | [diff] [blame] | 38 | deps = [ |
| 39 | "matplotlib-cpp", |
| 40 | ], |
Austin Schuh | 85fc6f1 | 2018-01-23 21:59:43 -0800 | [diff] [blame] | 41 | ) |