blob: 97a3e9f25507e1b592e85456814054e83386db2b [file] [log] [blame]
Austin Schuh4f857292018-02-15 23:42:04 -08001load('@//tools/build_rules:gtk_dependent.bzl', 'gtk_dependent_cc_binary', 'gtk_dependent_cc_library')
Parker Schuh0be12282017-02-05 11:54:29 -08002
Brian Silverman41324d02016-01-31 18:24:37 -05003package(default_visibility = ['@//debian:__pkg__'])
Austin Schuh23da18b2015-10-11 20:52:49 -07004
Austin Schuh4759ffc2015-10-07 20:39:56 -07005cc_library(
6 name = 'librt',
Austin Schuh55139fe2015-10-14 23:55:24 -07007 srcs = [
8 'lib/x86_64-linux-gnu/librt.so'
9 ],
Austin Schuh4759ffc2015-10-07 20:39:56 -070010)
11
12cc_library(
13 name = 'libdl',
Austin Schuh55139fe2015-10-14 23:55:24 -070014 srcs = [
15 'lib/x86_64-linux-gnu/libdl.so'
16 ],
Austin Schuh4759ffc2015-10-07 20:39:56 -070017)
18
19cc_library(
20 name = 'libm',
Austin Schuh55139fe2015-10-14 23:55:24 -070021 srcs = [
22 'lib/x86_64-linux-gnu/libm.so'
23 ],
Austin Schuh4759ffc2015-10-07 20:39:56 -070024)
25
26cc_library(
27 name = 'libpthread',
Austin Schuh4759ffc2015-10-07 20:39:56 -070028)
Austin Schuh1f9aeb42015-11-12 23:34:49 -080029
30cc_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
39cc_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 Schuhc65df862015-12-27 14:04:49 -080049 '-Wno-parentheses-equality',
Austin Schuh1f9aeb42015-11-12 23:34:49 -080050 ],
51 includes = [
52 'lib/python3/dist-packages/numpy/f2py/src/',
53 ],
54 deps = [
55 ':python3.4_lib',
56 ],
57 visibility = ['//visibility:public'],
58)
59
60cc_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
72cc_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 Schuh2cd173d2017-01-28 00:12:01 -080091
Parker Schuh0be12282017-02-05 11:54:29 -080092gtk_dependent_cc_library(
Parker Schuh2cd173d2017-01-28 00:12:01 -080093 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 ],
Parker Schuhd3610822018-12-30 22:56:53 -0800134 srcs = [
135 'lib/x86_64-linux-gnu/libgtk-3.so',
136 'lib/x86_64-linux-gnu/libgdk-3.so',
137 'lib/x86_64-linux-gnu/libpangocairo-1.0.so',
138 'lib/x86_64-linux-gnu/libpango-1.0.so',
139 'lib/x86_64-linux-gnu/libatk-1.0.so',
140 'lib/x86_64-linux-gnu/libcairo-gobject.so',
141 'lib/x86_64-linux-gnu/libcairo.so',
142 'lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so',
143 'lib/x86_64-linux-gnu/libgio-2.0.so',
144 'lib/x86_64-linux-gnu/libgobject-2.0.so',
145 'lib/x86_64-linux-gnu/libglib-2.0.so',
Parker Schuh2cd173d2017-01-28 00:12:01 -0800146 ],
147 visibility = ['//visibility:public'],
148)