blob: 967eb51fb5318a701d082be9d61f98582717a539 [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',
154 ],
155 },
156 {
157 'target_name': 'type_traits_test',
158 'type': '<(aos_target)',
159 'sources': [
160 'type_traits_test.cpp',
161 ],
162 'dependencies': [
163 '<(EXTERNALS):gtest',
164 '<(AOS)/build/aos.gyp:libaos',
brians2fdfc072013-02-26 05:35:15 +0000165 ':common',
166 ],
167 },
168 {
169 'target_name': 'gtest_prod',
170 'type': 'static_library',
171 'dependencies': [
172 '<(EXTERNALS):gtest_prod',
173 ],
174 'export_dependent_settings': [
175 '<(EXTERNALS):gtest_prod',
176 ],
177 },
178 {
179 'target_name': 'once',
180 'type': 'static_library',
181 'dependencies': [
182 '<(EXTERNALS):gtest_prod',
183 ],
184 'export_dependent_settings': [
185 '<(EXTERNALS):gtest_prod',
186 ],
187 },
188 {
189 'target_name': 'once_test',
190 'type': '<(aos_target)',
191 'sources': [
192 'once_test.cc',
193 ],
194 'dependencies': [
195 '<(EXTERNALS):gtest',
196 '<(AOS)/build/aos.gyp:libaos',
brians343bc112013-02-10 01:53:46 +0000197 ],
198 },
199 {
200 'target_name': 'time_test',
201 'type': '<(aos_target)',
202 'sources': [
203 'time_test.cc',
204 ],
205 'dependencies': [
206 '<(EXTERNALS):gtest',
207 '<(AOS)/build/aos.gyp:libaos',
208 ],
209 },
210 {
211 'target_name': 'mutex_test',
212 'type': '<(aos_target)',
213 'sources': [
214 'mutex_test.cpp',
215 ],
216 'dependencies': [
217 '<(EXTERNALS):gtest',
218 '<(AOS)/build/aos.gyp:libaos',
219 ],
220 },
221 {
222 'target_name': 'die_test',
223 'type': 'executable',
224 'sources': [
225 'die_test.cc',
226 ],
227 'dependencies': [
228 '<(EXTERNALS):gtest',
229 '<(AOS)/build/aos.gyp:libaos',
230 ],
231 },
232 ],
233}