blob: 403d06999989f2904bde592e2511811f2f795a25 [file] [log] [blame]
Brian Silverman41324d02016-01-31 18:24:37 -05001package(default_visibility = ['@//debian:__pkg__'])
Austin Schuh23da18b2015-10-11 20:52:49 -07002
Austin Schuh4759ffc2015-10-07 20:39:56 -07003cc_library(
4 name = 'librt',
Austin Schuh55139fe2015-10-14 23:55:24 -07005 srcs = [
6 'lib/x86_64-linux-gnu/librt.so'
7 ],
Austin Schuh4759ffc2015-10-07 20:39:56 -07008)
9
10cc_library(
11 name = 'libdl',
Austin Schuh55139fe2015-10-14 23:55:24 -070012 srcs = [
13 'lib/x86_64-linux-gnu/libdl.so'
14 ],
Austin Schuh4759ffc2015-10-07 20:39:56 -070015)
16
17cc_library(
18 name = 'libm',
Austin Schuh55139fe2015-10-14 23:55:24 -070019 srcs = [
20 'lib/x86_64-linux-gnu/libm.so'
21 ],
Austin Schuh4759ffc2015-10-07 20:39:56 -070022)
23
24cc_library(
25 name = 'libpthread',
Austin Schuh4759ffc2015-10-07 20:39:56 -070026)
Austin Schuh1f9aeb42015-11-12 23:34:49 -080027
28cc_library(
29 name = 'python3.4_lib',
30 hdrs = glob(['include/python3.4m/**/*.h']),
31 includes = [
32 'include/python3.4m/',
33 ],
34 visibility = ['//visibility:public'],
35)
36
37cc_library(
38 name = 'python3.4_f2py',
39 srcs = [
40 'lib/python3/dist-packages/numpy/f2py/src/fortranobject.c',
41 ],
42 hdrs = [
43 'lib/python3/dist-packages/numpy/f2py/src/fortranobject.h',
44 ],
45 copts = [
46 '-Wno-error',
Austin Schuhc65df862015-12-27 14:04:49 -080047 '-Wno-parentheses-equality',
Austin Schuh1f9aeb42015-11-12 23:34:49 -080048 ],
49 includes = [
50 'lib/python3/dist-packages/numpy/f2py/src/',
51 ],
52 deps = [
53 ':python3.4_lib',
54 ],
55 visibility = ['//visibility:public'],
56)
57
58cc_library(
59 name = 'python2.7_lib',
60 hdrs = glob(['include/python2.7/**/*.h']),
61 srcs = [
62 'lib/x86_64-linux-gnu/libpython2.7.so',
63 ],
64 includes = [
65 'include/python2.7/',
66 ],
67 visibility = ['//visibility:public'],
68)
69
70cc_library(
71 name = 'python2.7_f2py',
72 srcs = [
73 'lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.c',
74 ],
75 hdrs = [
76 'lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.h',
77 ],
78 copts = [
79 '-Wno-error',
80 ],
81 includes = [
82 'lib/python2.7/dist-packages/numpy/f2py/src/',
83 ],
84 deps = [
85 ':python2.7_lib',
86 ],
87 visibility = ['//visibility:public'],
88)
Parker Schuh2cd173d2017-01-28 00:12:01 -080089
90cc_library(
91 name = 'gtk+-3.0',
92 hdrs = glob([
93 'include/gtk-3.0/**/*.h',
94 'include/at-spi2-atk/2.0/**/*.h',
95 'include/at-spi-2.0/**/*.h',
96 'include/dbus-1.0/**/*.h',
97 'lib/x86_64-linux-gnu/dbus-1.0/include/**/*.h',
98 'include/gtk-3.0/**/*.h',
99 'include/gio-unix-2.0/**/*.h',
100 'include/cairo/**/*.h',
101 'include/pango-1.0/**/*.h',
102 'include/harfbuzz/**/*.h',
103 'include/pango-1.0/**/*.h',
104 'include/atk-1.0/**/*.h',
105 'include/pixman-1/**/*.h',
106 'include/freetype2/**/*.h',
107 'include/libpng12/**/*.h',
108 'include/gdk-pixbuf-2.0/**/*.h',
109 'include/glib-2.0/**/*.h',
110 'lib/x86_64-linux-gnu/glib-2.0/include/**/*.h',
111 ]),
112 includes = [
113 'include/gtk-3.0',
114 'include/at-spi2-atk/2.0',
115 'include/at-spi-2.0',
116 'include/dbus-1.0',
117 'lib/x86_64-linux-gnu/dbus-1.0/include',
118 'include/gtk-3.0',
119 'include/gio-unix-2.0/',
120 'include/cairo',
121 'include/pango-1.0',
122 'include/harfbuzz',
123 'include/pango-1.0',
124 'include/atk-1.0',
125 'include/pixman-1',
126 'include/freetype2',
127 'include/libpng12',
128 'include/gdk-pixbuf-2.0',
129 'include/glib-2.0',
130 'lib/x86_64-linux-gnu/glib-2.0/include',
131 ],
132 linkopts = [
133 '-lgtk-3',
134 '-lgdk-3',
135 '-lpangocairo-1.0',
136 '-lpango-1.0',
137 '-latk-1.0',
138 '-lcairo-gobject',
139 '-lcairo',
140 '-lgdk_pixbuf-2.0',
141 '-lgio-2.0',
142 '-lgobject-2.0',
143 '-lglib-2.0'
144 ],
145 visibility = ['//visibility:public'],
146)