blob: 4265b18bae73f7fa94d0c7172b01854c83971ec4 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001{
2 'targets': [
3 {
4 'target_name': 'queue_test_queue',
5 'type': 'static_library',
6 'sources': [
7 '<(AOS)/common/test_queue.q',
8 ],
9 'variables': {
10 'header_path': 'aos/common',
11 },
12 'dependencies': [
13 '<(AOS)/common/common.gyp:queues',
14 ],
15 'includes': ['../build/queues.gypi'],
16 },
17 {
18 'target_name': 'queue_testutils',
19 'type': 'static_library',
20 'sources': [
21 'queue_testutils.cc',
22 ],
23 'dependencies': [
24 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib'
25 ],
26 },
27 {
28 'target_name': 'time',
29 'type': 'static_library',
30 'sources': [
31 'time.cc'
32 ],
33 'dependencies': [
34 # TODO(aschuh): Fix this dependency loop by
35 # providing a logging interface.
36 # '<(AOS)/build/aos.gyp:logging',
37 '<(AOS)/build/aos.gyp:aos/ResourceList.h',
38 ],
39 },
40 {
41 'target_name': 'common',
42 'type': 'static_library',
43 'sources': [
44 'Configuration.cpp',
45 ],
46 'dependencies': [
47 '<(AOS)/build/aos.gyp:logging',
brians2fdfc072013-02-26 05:35:15 +000048 'once',
49 ],
50 'export_dependent_settings': [
51 'once',
brians343bc112013-02-10 01:53:46 +000052 ],
53 'conditions': [
54 ['OS=="crio"', {
55 'dependencies': [
56 '<(EXTERNALS):WPILib',
57 ]}],
58 ],
59 },
60 {
61 'target_name': 'queues',
62 'type': 'static_library',
63 'sources': [
64 'queue.cc',
65 ],
66 'conditions': [
67 ['OS=="crio"', {
68 'dependencies': [
69 '<(EXTERNALS):WPILib',
70 ],
71 },
72 {
73 'dependencies': [
74 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
75 ],
76 'export_dependent_settings': [
77 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
78 ],
79 }]
80 ],
81 'dependencies': [
82 '<(AOS)/common/common.gyp:common',
83 ],
84 'export_dependent_settings': [
85 '<(AOS)/common/common.gyp:common',
86 ],
87 },
88 {
89 'target_name': 'control_loop_queues',
90 'type': 'static_library',
91 'sources': [ '<(AOS)/common/control_loop/control_loops.q' ],
92 'variables': {
93 'header_path': 'aos/common/control_loop',
94 },
95 'dependencies': [
96 '<(AOS)/common/common.gyp:queues',
97 ],
98 'includes': ['../build/queues.gypi'],
99 },
100 {
101 'target_name': 'timing_so',
102 'type': 'shared_library',
103 'sources': [
104 'control_loop/Timing.cpp'
105 ],
106 'variables': {'no_rsync': 1},
107 'dependencies': [
108 '<(AOS)/build/aos.gyp:aos_shared_lib',
109 ],
110 'direct_dependent_settings': {
111 'variables': {
112 'jni_libs': [
113 'timing_so',
114 ],
115 },
116 },
117 'export_dependent_settings': [
118 '<(AOS)/build/aos.gyp:aos_shared_lib',
119 ],
120 },
121 {
122 'target_name': 'timing',
123 'type': 'static_library',
124 'sources': [
125 'control_loop/Timing.cpp'
126 ],
127 'dependencies': [
128 '<(AOS)/build/aos.gyp:libaos',
129 '<(AOS)/build/aos.gyp:logging',
130 ],
131 },
132 {
133 'target_name': 'controls',
134 'type': 'static_library',
135 'sources': [],
136 'dependencies': [
137 '<(AOS)/common/messages/messages.gyp:aos_queues',
138 '<(AOS)/build/aos.gyp:logging',
139 'timing',
140 ],
141 },
142 {
143 'target_name': 'queue_test',
144 'type': 'executable',
145 'sources': [
146 '<(AOS)/common/queue_test.cc',
147 ],
148 'dependencies': [
149 '<(EXTERNALS):gtest',
150 '<(AOS)/build/aos.gyp:libaos',
151 'queue_testutils',
152 'common',
153 'queue_test_queue',
Brian Silverman798c7782013-03-28 16:48:02 -0700154 '<(AOS)/common/util/util.gyp:thread',
brians343bc112013-02-10 01:53:46 +0000155 ],
156 },
157 {
158 'target_name': 'type_traits_test',
159 'type': '<(aos_target)',
160 'sources': [
161 'type_traits_test.cpp',
162 ],
163 'dependencies': [
164 '<(EXTERNALS):gtest',
165 '<(AOS)/build/aos.gyp:libaos',
brians2fdfc072013-02-26 05:35:15 +0000166 ':common',
167 ],
168 },
169 {
170 'target_name': 'gtest_prod',
171 'type': 'static_library',
172 'dependencies': [
173 '<(EXTERNALS):gtest_prod',
174 ],
175 'export_dependent_settings': [
176 '<(EXTERNALS):gtest_prod',
177 ],
178 },
179 {
180 'target_name': 'once',
181 'type': 'static_library',
182 'dependencies': [
183 '<(EXTERNALS):gtest_prod',
184 ],
185 'export_dependent_settings': [
186 '<(EXTERNALS):gtest_prod',
187 ],
188 },
189 {
190 'target_name': 'once_test',
191 'type': '<(aos_target)',
192 'sources': [
193 'once_test.cc',
194 ],
195 'dependencies': [
196 '<(EXTERNALS):gtest',
197 '<(AOS)/build/aos.gyp:libaos',
brians343bc112013-02-10 01:53:46 +0000198 ],
199 },
200 {
201 'target_name': 'time_test',
202 'type': '<(aos_target)',
203 'sources': [
204 'time_test.cc',
205 ],
206 'dependencies': [
207 '<(EXTERNALS):gtest',
208 '<(AOS)/build/aos.gyp:libaos',
209 ],
210 },
211 {
212 'target_name': 'mutex_test',
213 'type': '<(aos_target)',
214 'sources': [
215 'mutex_test.cpp',
216 ],
217 'dependencies': [
218 '<(EXTERNALS):gtest',
219 '<(AOS)/build/aos.gyp:libaos',
220 ],
221 },
222 {
223 'target_name': 'die_test',
224 'type': 'executable',
225 'sources': [
226 'die_test.cc',
227 ],
228 'dependencies': [
229 '<(EXTERNALS):gtest',
230 '<(AOS)/build/aos.gyp:libaos',
231 ],
232 },
233 ],
234}