Austin Schuh | 4f85729 | 2018-02-15 23:42:04 -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 | |
Brian Silverman | 41324d0 | 2016-01-31 18:24:37 -0500 | [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( |
| 6 | name = 'librt', |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 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( |
| 13 | name = 'libdl', |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 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( |
| 20 | name = 'libm', |
Austin Schuh | 55139fe | 2015-10-14 23:55:24 -0700 | [diff] [blame] | 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( |
| 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( |
| 31 | name = 'python3.4_lib', |
| 32 | hdrs = glob(['include/python3.4m/**/*.h']), |
| 33 | includes = [ |
| 34 | 'include/python3.4m/', |
| 35 | ], |
| 36 | visibility = ['//visibility:public'], |
| 37 | ) |
| 38 | |
| 39 | cc_library( |
| 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', |
Austin Schuh | c65df86 | 2015-12-27 14:04:49 -0800 | [diff] [blame] | 49 | '-Wno-parentheses-equality', |
Austin Schuh | 1f9aeb4 | 2015-11-12 23:34:49 -0800 | [diff] [blame] | 50 | ], |
| 51 | includes = [ |
| 52 | 'lib/python3/dist-packages/numpy/f2py/src/', |
| 53 | ], |
| 54 | deps = [ |
| 55 | ':python3.4_lib', |
| 56 | ], |
| 57 | visibility = ['//visibility:public'], |
| 58 | ) |
| 59 | |
| 60 | cc_library( |
| 61 | name = 'python2.7_lib', |
| 62 | hdrs = glob(['include/python2.7/**/*.h']), |
| 63 | srcs = [ |
| 64 | 'lib/x86_64-linux-gnu/libpython2.7.so', |
| 65 | ], |
| 66 | includes = [ |
| 67 | 'include/python2.7/', |
| 68 | ], |
| 69 | visibility = ['//visibility:public'], |
| 70 | ) |
| 71 | |
| 72 | cc_library( |
| 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 | deps = [ |
| 87 | ':python2.7_lib', |
| 88 | ], |
| 89 | visibility = ['//visibility:public'], |
| 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( |
Parker Schuh | 2cd173d | 2017-01-28 00:12:01 -0800 | [diff] [blame] | 93 | name = 'gtk+-3.0', |
| 94 | hdrs = glob([ |
| 95 | 'include/gtk-3.0/**/*.h', |
| 96 | 'include/at-spi2-atk/2.0/**/*.h', |
| 97 | 'include/at-spi-2.0/**/*.h', |
| 98 | 'include/dbus-1.0/**/*.h', |
| 99 | 'lib/x86_64-linux-gnu/dbus-1.0/include/**/*.h', |
| 100 | 'include/gtk-3.0/**/*.h', |
| 101 | 'include/gio-unix-2.0/**/*.h', |
| 102 | 'include/cairo/**/*.h', |
| 103 | 'include/pango-1.0/**/*.h', |
| 104 | 'include/harfbuzz/**/*.h', |
| 105 | 'include/pango-1.0/**/*.h', |
| 106 | 'include/atk-1.0/**/*.h', |
| 107 | 'include/pixman-1/**/*.h', |
| 108 | 'include/freetype2/**/*.h', |
| 109 | 'include/libpng12/**/*.h', |
| 110 | 'include/gdk-pixbuf-2.0/**/*.h', |
| 111 | 'include/glib-2.0/**/*.h', |
| 112 | 'lib/x86_64-linux-gnu/glib-2.0/include/**/*.h', |
| 113 | ]), |
| 114 | includes = [ |
| 115 | 'include/gtk-3.0', |
| 116 | 'include/at-spi2-atk/2.0', |
| 117 | 'include/at-spi-2.0', |
| 118 | 'include/dbus-1.0', |
| 119 | 'lib/x86_64-linux-gnu/dbus-1.0/include', |
| 120 | 'include/gtk-3.0', |
| 121 | 'include/gio-unix-2.0/', |
| 122 | 'include/cairo', |
| 123 | 'include/pango-1.0', |
| 124 | 'include/harfbuzz', |
| 125 | 'include/pango-1.0', |
| 126 | 'include/atk-1.0', |
| 127 | 'include/pixman-1', |
| 128 | 'include/freetype2', |
| 129 | 'include/libpng12', |
| 130 | 'include/gdk-pixbuf-2.0', |
| 131 | 'include/glib-2.0', |
| 132 | 'lib/x86_64-linux-gnu/glib-2.0/include', |
| 133 | ], |
| 134 | linkopts = [ |
| 135 | '-lgtk-3', |
| 136 | '-lgdk-3', |
| 137 | '-lpangocairo-1.0', |
| 138 | '-lpango-1.0', |
| 139 | '-latk-1.0', |
| 140 | '-lcairo-gobject', |
| 141 | '-lcairo', |
| 142 | '-lgdk_pixbuf-2.0', |
| 143 | '-lgio-2.0', |
| 144 | '-lgobject-2.0', |
| 145 | '-lglib-2.0' |
| 146 | ], |
| 147 | visibility = ['//visibility:public'], |
| 148 | ) |