blob: 330b330f886770f5966daeca735600f8ead4d826 [file] [log] [blame]
Brian Silvermancee260a2015-12-24 16:27:51 -08001licenses(['notice'])
2
3_header_dirs = [
4 'wpilibc/wpilibC++/include',
5 'wpilibc/wpilibC++Devices/include',
6 'wpilibc/shared/include',
7 'wpilibc/Athena/include',
8 'hal/include',
9 'hal/lib/Athena/FRC_FPGA_ChipObject',
10 'hal/lib/Athena',
11]
12
13cc_library(
14 name = 'wpilib',
15 visibility = ['//visibility:public'],
16 srcs = glob([
17 'wpilibc/Athena/src/*.cpp',
18 'wpilibc/Athena/src/Internal/*.cpp',
19 'wpilibc/shared/src/**/*.cpp',
20
21 'hal/lib/Athena/*.cpp',
22 'hal/lib/Athena/cpp/*.cpp',
23 'hal/lib/Athena/ctre/*.cpp',
24 'hal/lib/Shared/*.cpp',
25
26 'networktables/ntcore/src/**/*.cpp',
27 ]),
28 copts = [
29 '-Wno-unused-parameter',
30 '-Wno-switch-enum',
31 '-Wno-attributes',
32 '-Wno-cast-align',
33 '-Wno-cast-qual',
34 '-Wno-deprecated-declarations',
35 '-Wno-error',
36 ],
37 deps = [
38 '//third_party/ntcore_2016:ntcore',
39 '//external:ni-libraries',
40 ],
41 hdrs = glob([d + '/**/*.h' for d in _header_dirs]) + glob([d + '/**/*.hpp' for d in _header_dirs]) + ['wpilibc/shared/include/Task.inc'],
42 includes = _header_dirs,
43 linkopts = [
44 '-lpthread',
45 ],
46 defines = [
47 'WPILIB2016=1',
48 ],
49)