blob: a75cde508787fa024723aa086cd6472cda6e02ff [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',
Brian Silvermand87e5162016-02-20 21:03:39 -050027 ], [
28 'wpilibc/shared/*/Filters/**/*',
Brian Silvermancee260a2015-12-24 16:27:51 -080029 ]),
30 copts = [
31 '-Wno-unused-parameter',
32 '-Wno-switch-enum',
33 '-Wno-attributes',
34 '-Wno-cast-align',
35 '-Wno-cast-qual',
36 '-Wno-deprecated-declarations',
37 '-Wno-error',
38 ],
39 deps = [
40 '//third_party/ntcore_2016:ntcore',
41 '//external:ni-libraries',
Brian Silvermane9aa68e2016-02-21 01:59:18 -050042 '//aos/common/logging',
Brian Silvermancee260a2015-12-24 16:27:51 -080043 ],
44 hdrs = glob([d + '/**/*.h' for d in _header_dirs]) + glob([d + '/**/*.hpp' for d in _header_dirs]) + ['wpilibc/shared/include/Task.inc'],
45 includes = _header_dirs,
46 linkopts = [
47 '-lpthread',
48 ],
49 defines = [
50 'WPILIB2016=1',
51 ],
52)