Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 1 | load("@//tools/build_rules:gtk_dependent.bzl", "gtk_dependent_cc_binary", "gtk_dependent_cc_library") |
Parker Schuh | 0be1228 | 2017-02-05 11:54:29 -0800 | [diff] [blame] | 2 | |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 3 | package(default_visibility = ["@//debian:__pkg__"]) |
Austin Schuh | 23da18b | 2015-10-11 20:52:49 -0700 | [diff] [blame] | 4 | |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 5 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 6 | name = "librt", |
| 7 | srcs = [ |
| 8 | "lib/x86_64-linux-gnu/librt.so", |
| 9 | ], |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 10 | ) |
| 11 | |
| 12 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 13 | name = "libdl", |
| 14 | srcs = [ |
| 15 | "lib/x86_64-linux-gnu/libdl.so", |
| 16 | ], |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 17 | ) |
| 18 | |
| 19 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 20 | name = "libm", |
| 21 | srcs = [ |
| 22 | "lib/x86_64-linux-gnu/libm.so", |
| 23 | ], |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 24 | ) |
| 25 | |
| 26 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 27 | name = "libpthread", |
Austin Schuh | 4759ffc | 2015-10-07 20:39:56 -0700 | [diff] [blame] | 28 | ) |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 29 | |
| 30 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 31 | name = "python3.4_lib", |
| 32 | hdrs = glob(["include/python3.4m/**/*.h"]), |
| 33 | includes = [ |
| 34 | "include/python3.4m/", |
| 35 | ], |
| 36 | visibility = ["//visibility:public"], |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 37 | ) |
| 38 | |
| 39 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 40 | name = "python3.4_f2py", |
| 41 | srcs = [ |
| 42 | "lib/python3/dist-packages/numpy/f2py/src/fortranobject.c", |
| 43 | ], |
| 44 | hdrs = [ |
| 45 | "lib/python3/dist-packages/numpy/f2py/src/fortranobject.h", |
| 46 | ], |
| 47 | copts = [ |
| 48 | "-Wno-error", |
| 49 | "-Wno-parentheses-equality", |
| 50 | ], |
| 51 | includes = [ |
| 52 | "lib/python3/dist-packages/numpy/f2py/src/", |
| 53 | ], |
| 54 | visibility = ["//visibility:public"], |
| 55 | deps = [ |
| 56 | ":python3.4_lib", |
| 57 | ], |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 58 | ) |
| 59 | |
| 60 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 61 | name = "python2.7_lib", |
| 62 | srcs = [ |
| 63 | "lib/x86_64-linux-gnu/libpython2.7.so", |
| 64 | ], |
| 65 | hdrs = glob(["include/python2.7/**/*.h"]), |
| 66 | includes = [ |
| 67 | "include/python2.7/", |
| 68 | ], |
| 69 | visibility = ["//visibility:public"], |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 70 | ) |
| 71 | |
| 72 | cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 73 | name = "python2.7_f2py", |
| 74 | srcs = [ |
| 75 | "lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.c", |
| 76 | ], |
| 77 | hdrs = [ |
| 78 | "lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.h", |
| 79 | ], |
| 80 | copts = [ |
| 81 | "-Wno-error", |
| 82 | ], |
| 83 | includes = [ |
| 84 | "lib/python2.7/dist-packages/numpy/f2py/src/", |
| 85 | ], |
| 86 | visibility = ["//visibility:public"], |
| 87 | deps = [ |
| 88 | ":python2.7_lib", |
| 89 | ], |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 90 | ) |
Parker Schuh | 2cd173d | 2017-01-28 00:12:01 -0800 | [diff] [blame] | 91 | |
Parker Schuh | 0be1228 | 2017-02-05 11:54:29 -0800 | [diff] [blame] | 92 | gtk_dependent_cc_library( |
Austin Schuh | dde6405 | 2019-12-11 20:28:00 -0800 | [diff] [blame^] | 93 | name = "gtk+-3.0", |
| 94 | srcs = [ |
| 95 | "lib/x86_64-linux-gnu/libatk-1.0.so", |
| 96 | "lib/x86_64-linux-gnu/libcairo.so", |
| 97 | "lib/x86_64-linux-gnu/libcairo-gobject.so", |
| 98 | "lib/x86_64-linux-gnu/libgdk-3.so", |
| 99 | "lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so", |
| 100 | "lib/x86_64-linux-gnu/libgio-2.0.so", |
| 101 | "lib/x86_64-linux-gnu/libglib-2.0.so", |
| 102 | "lib/x86_64-linux-gnu/libgobject-2.0.so", |
| 103 | "lib/x86_64-linux-gnu/libgtk-3.so", |
| 104 | "lib/x86_64-linux-gnu/libpango-1.0.so", |
| 105 | "lib/x86_64-linux-gnu/libpangocairo-1.0.so", |
| 106 | ], |
| 107 | hdrs = glob([ |
| 108 | "include/gtk-3.0/**/*.h", |
| 109 | "include/at-spi2-atk/2.0/**/*.h", |
| 110 | "include/at-spi-2.0/**/*.h", |
| 111 | "include/dbus-1.0/**/*.h", |
| 112 | "lib/x86_64-linux-gnu/dbus-1.0/include/**/*.h", |
| 113 | "include/gtk-3.0/**/*.h", |
| 114 | "include/gio-unix-2.0/**/*.h", |
| 115 | "include/cairo/**/*.h", |
| 116 | "include/pango-1.0/**/*.h", |
| 117 | "include/harfbuzz/**/*.h", |
| 118 | "include/pango-1.0/**/*.h", |
| 119 | "include/atk-1.0/**/*.h", |
| 120 | "include/pixman-1/**/*.h", |
| 121 | "include/freetype2/**/*.h", |
| 122 | "include/libpng12/**/*.h", |
| 123 | "include/gdk-pixbuf-2.0/**/*.h", |
| 124 | "include/glib-2.0/**/*.h", |
| 125 | "lib/x86_64-linux-gnu/glib-2.0/include/**/*.h", |
| 126 | ]), |
| 127 | includes = [ |
| 128 | "include/at-spi-2.0", |
| 129 | "include/at-spi2-atk/2.0", |
| 130 | "include/atk-1.0", |
| 131 | "include/cairo", |
| 132 | "include/dbus-1.0", |
| 133 | "include/freetype2", |
| 134 | "include/gdk-pixbuf-2.0", |
| 135 | "include/gio-unix-2.0/", |
| 136 | "include/glib-2.0", |
| 137 | "include/gtk-3.0", |
| 138 | "include/harfbuzz", |
| 139 | "include/libpng12", |
| 140 | "include/pango-1.0", |
| 141 | "include/pixman-1", |
| 142 | "lib/x86_64-linux-gnu/dbus-1.0/include", |
| 143 | "lib/x86_64-linux-gnu/glib-2.0/include", |
| 144 | ], |
| 145 | visibility = ["//visibility:public"], |
Parker Schuh | 2cd173d | 2017-01-28 00:12:01 -0800 | [diff] [blame] | 146 | ) |