Philipp Schrader | 9fc87e0 | 2018-03-10 20:36:39 -0800 | [diff] [blame] | 1 | package(default_visibility = ['@//debian:__pkg__']) |
| 2 | |
| 3 | cc_library( |
| 4 | name = 'python3.4_lib', |
| 5 | hdrs = glob(['usr/include/python3.4m/**/*.h']), |
| 6 | includes = [ |
| 7 | 'usr/include/python3.4m/', |
| 8 | ], |
| 9 | visibility = ['//visibility:public'], |
| 10 | ) |
| 11 | |
| 12 | cc_library( |
| 13 | name = 'python3.4_f2py', |
| 14 | srcs = [ |
| 15 | 'usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.c', |
| 16 | ], |
| 17 | hdrs = [ |
| 18 | 'usr/lib/python3/dist-packages/numpy/f2py/src/fortranobject.h', |
| 19 | ], |
| 20 | copts = [ |
| 21 | '-Wno-error', |
| 22 | '-Wno-parentheses-equality', |
| 23 | ], |
| 24 | includes = [ |
| 25 | 'usr/lib/python3/dist-packages/numpy/f2py/src/', |
| 26 | ], |
| 27 | deps = [ |
| 28 | ':python3.4_lib', |
| 29 | ], |
| 30 | visibility = ['//visibility:public'], |
| 31 | ) |
| 32 | |
| 33 | cc_library( |
| 34 | name = 'python2.7_lib', |
| 35 | hdrs = glob([ |
| 36 | 'usr/include/**/*.h', |
| 37 | ]), |
| 38 | srcs = [ |
| 39 | 'usr/lib/x86_64-linux-gnu/libpython2.7.so', |
| 40 | ], |
| 41 | includes = [ |
| 42 | 'usr/include/', |
| 43 | 'usr/include/python2.7/', |
| 44 | ], |
| 45 | visibility = ['//visibility:public'], |
| 46 | ) |
| 47 | |
| 48 | cc_library( |
| 49 | name = 'python2.7_f2py', |
| 50 | srcs = [ |
| 51 | 'usr/lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.c', |
| 52 | ], |
| 53 | hdrs = [ |
| 54 | 'usr/lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.h', |
| 55 | ], |
| 56 | copts = [ |
| 57 | '-Wno-error', |
| 58 | ], |
| 59 | includes = [ |
| 60 | 'usr/lib/python2.7/dist-packages/numpy/f2py/src/', |
| 61 | ], |
| 62 | deps = [ |
| 63 | ':python2.7_lib', |
| 64 | ], |
| 65 | visibility = ['//visibility:public'], |
| 66 | ) |