blob: 6dca9699315dfb4818ed8e476f33d65414534889 [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',
48 ],
49 'conditions': [
50 ['OS=="crio"', {
51 'dependencies': [
52 '<(EXTERNALS):WPILib',
53 ]}],
54 ],
55 },
56 {
57 'target_name': 'queues',
58 'type': 'static_library',
59 'sources': [
60 'queue.cc',
61 ],
62 'conditions': [
63 ['OS=="crio"', {
64 'dependencies': [
65 '<(EXTERNALS):WPILib',
66 ],
67 },
68 {
69 'dependencies': [
70 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
71 ],
72 'export_dependent_settings': [
73 '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib',
74 ],
75 }]
76 ],
77 'dependencies': [
78 '<(AOS)/common/common.gyp:common',
79 ],
80 'export_dependent_settings': [
81 '<(AOS)/common/common.gyp:common',
82 ],
83 },
84 {
85 'target_name': 'control_loop_queues',
86 'type': 'static_library',
87 'sources': [ '<(AOS)/common/control_loop/control_loops.q' ],
88 'variables': {
89 'header_path': 'aos/common/control_loop',
90 },
91 'dependencies': [
92 '<(AOS)/common/common.gyp:queues',
93 ],
94 'includes': ['../build/queues.gypi'],
95 },
96 {
97 'target_name': 'timing_so',
98 'type': 'shared_library',
99 'sources': [
100 'control_loop/Timing.cpp'
101 ],
102 'variables': {'no_rsync': 1},
103 'dependencies': [
104 '<(AOS)/build/aos.gyp:aos_shared_lib',
105 ],
106 'direct_dependent_settings': {
107 'variables': {
108 'jni_libs': [
109 'timing_so',
110 ],
111 },
112 },
113 'export_dependent_settings': [
114 '<(AOS)/build/aos.gyp:aos_shared_lib',
115 ],
116 },
117 {
118 'target_name': 'timing',
119 'type': 'static_library',
120 'sources': [
121 'control_loop/Timing.cpp'
122 ],
123 'dependencies': [
124 '<(AOS)/build/aos.gyp:libaos',
125 '<(AOS)/build/aos.gyp:logging',
126 ],
127 },
128 {
129 'target_name': 'controls',
130 'type': 'static_library',
131 'sources': [],
132 'dependencies': [
133 '<(AOS)/common/messages/messages.gyp:aos_queues',
134 '<(AOS)/build/aos.gyp:logging',
135 'timing',
136 ],
137 },
138 {
139 'target_name': 'queue_test',
140 'type': 'executable',
141 'sources': [
142 '<(AOS)/common/queue_test.cc',
143 ],
144 'dependencies': [
145 '<(EXTERNALS):gtest',
146 '<(AOS)/build/aos.gyp:libaos',
147 'queue_testutils',
148 'common',
149 'queue_test_queue',
150 ],
151 },
152 {
153 'target_name': 'type_traits_test',
154 'type': '<(aos_target)',
155 'sources': [
156 'type_traits_test.cpp',
157 ],
158 'dependencies': [
159 '<(EXTERNALS):gtest',
160 '<(AOS)/build/aos.gyp:libaos',
161 ],
162 },
163 {
164 'target_name': 'time_test',
165 'type': '<(aos_target)',
166 'sources': [
167 'time_test.cc',
168 ],
169 'dependencies': [
170 '<(EXTERNALS):gtest',
171 '<(AOS)/build/aos.gyp:libaos',
172 ],
173 },
174 {
175 'target_name': 'mutex_test',
176 'type': '<(aos_target)',
177 'sources': [
178 'mutex_test.cpp',
179 ],
180 'dependencies': [
181 '<(EXTERNALS):gtest',
182 '<(AOS)/build/aos.gyp:libaos',
183 ],
184 },
185 {
186 'target_name': 'die_test',
187 'type': 'executable',
188 'sources': [
189 'die_test.cc',
190 ],
191 'dependencies': [
192 '<(EXTERNALS):gtest',
193 '<(AOS)/build/aos.gyp:libaos',
194 ],
195 },
196 ],
197}