brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 1 | { |
| 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': [ |
Brian Silverman | b361697 | 2013-03-05 19:58:10 -0800 | [diff] [blame] | 24 | '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib', |
| 25 | '<(AOS)/build/aos.gyp:logging', |
| 26 | 'once', |
| 27 | '<(EXTERNALS):gtest', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 28 | ], |
| 29 | }, |
| 30 | { |
| 31 | 'target_name': 'time', |
| 32 | 'type': 'static_library', |
| 33 | 'sources': [ |
| 34 | 'time.cc' |
| 35 | ], |
| 36 | 'dependencies': [ |
Brian Silverman | 458b6e6 | 2013-03-01 18:09:21 -0800 | [diff] [blame] | 37 | # TODO(aschuh): Fix this dependency loop by |
| 38 | # providing a logging interface. |
| 39 | # '<(AOS)/build/aos.gyp:logging', |
| 40 | '<(AOS)/build/aos.gyp:aos/ResourceList.h', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 41 | ], |
| 42 | }, |
| 43 | { |
| 44 | 'target_name': 'common', |
| 45 | 'type': 'static_library', |
| 46 | 'sources': [ |
| 47 | 'Configuration.cpp', |
| 48 | ], |
| 49 | 'dependencies': [ |
| 50 | '<(AOS)/build/aos.gyp:logging', |
brians | 2fdfc07 | 2013-02-26 05:35:15 +0000 | [diff] [blame] | 51 | 'once', |
| 52 | ], |
| 53 | 'export_dependent_settings': [ |
| 54 | 'once', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 55 | ], |
| 56 | 'conditions': [ |
| 57 | ['OS=="crio"', { |
| 58 | 'dependencies': [ |
| 59 | '<(EXTERNALS):WPILib', |
| 60 | ]}], |
| 61 | ], |
| 62 | }, |
| 63 | { |
| 64 | 'target_name': 'queues', |
| 65 | 'type': 'static_library', |
| 66 | 'sources': [ |
| 67 | 'queue.cc', |
| 68 | ], |
| 69 | 'conditions': [ |
| 70 | ['OS=="crio"', { |
| 71 | 'dependencies': [ |
| 72 | '<(EXTERNALS):WPILib', |
| 73 | ], |
| 74 | }, |
| 75 | { |
| 76 | 'dependencies': [ |
| 77 | '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib', |
| 78 | ], |
| 79 | 'export_dependent_settings': [ |
| 80 | '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib', |
| 81 | ], |
| 82 | }] |
| 83 | ], |
| 84 | 'dependencies': [ |
| 85 | '<(AOS)/common/common.gyp:common', |
Brian Silverman | 3204dd8 | 2013-03-12 18:42:01 -0700 | [diff] [blame^] | 86 | 'time', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 87 | ], |
| 88 | 'export_dependent_settings': [ |
| 89 | '<(AOS)/common/common.gyp:common', |
Brian Silverman | 3204dd8 | 2013-03-12 18:42:01 -0700 | [diff] [blame^] | 90 | 'time', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 91 | ], |
| 92 | }, |
| 93 | { |
| 94 | 'target_name': 'control_loop_queues', |
| 95 | 'type': 'static_library', |
| 96 | 'sources': [ '<(AOS)/common/control_loop/control_loops.q' ], |
| 97 | 'variables': { |
| 98 | 'header_path': 'aos/common/control_loop', |
| 99 | }, |
| 100 | 'dependencies': [ |
| 101 | '<(AOS)/common/common.gyp:queues', |
| 102 | ], |
| 103 | 'includes': ['../build/queues.gypi'], |
| 104 | }, |
| 105 | { |
| 106 | 'target_name': 'timing_so', |
| 107 | 'type': 'shared_library', |
| 108 | 'sources': [ |
| 109 | 'control_loop/Timing.cpp' |
| 110 | ], |
| 111 | 'variables': {'no_rsync': 1}, |
| 112 | 'dependencies': [ |
| 113 | '<(AOS)/build/aos.gyp:aos_shared_lib', |
| 114 | ], |
| 115 | 'direct_dependent_settings': { |
| 116 | 'variables': { |
| 117 | 'jni_libs': [ |
| 118 | 'timing_so', |
| 119 | ], |
| 120 | }, |
| 121 | }, |
| 122 | 'export_dependent_settings': [ |
| 123 | '<(AOS)/build/aos.gyp:aos_shared_lib', |
| 124 | ], |
| 125 | }, |
| 126 | { |
| 127 | 'target_name': 'timing', |
| 128 | 'type': 'static_library', |
| 129 | 'sources': [ |
| 130 | 'control_loop/Timing.cpp' |
| 131 | ], |
| 132 | 'dependencies': [ |
| 133 | '<(AOS)/build/aos.gyp:libaos', |
| 134 | '<(AOS)/build/aos.gyp:logging', |
| 135 | ], |
| 136 | }, |
| 137 | { |
| 138 | 'target_name': 'controls', |
| 139 | 'type': 'static_library', |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 140 | 'sources': [ |
| 141 | # 'control_loop/ControlLoop-tmpl.h', |
| 142 | ], |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 143 | 'dependencies': [ |
| 144 | '<(AOS)/common/messages/messages.gyp:aos_queues', |
| 145 | '<(AOS)/build/aos.gyp:logging', |
| 146 | 'timing', |
Brian Silverman | 3204dd8 | 2013-03-12 18:42:01 -0700 | [diff] [blame^] | 147 | 'time', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 148 | ], |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 149 | 'export_dependent_settings': [ |
| 150 | '<(AOS)/common/messages/messages.gyp:aos_queues', |
| 151 | '<(AOS)/build/aos.gyp:logging', |
| 152 | 'timing', |
Brian Silverman | 3204dd8 | 2013-03-12 18:42:01 -0700 | [diff] [blame^] | 153 | 'time', |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 154 | ], |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 155 | }, |
| 156 | { |
| 157 | 'target_name': 'queue_test', |
| 158 | 'type': 'executable', |
| 159 | 'sources': [ |
| 160 | '<(AOS)/common/queue_test.cc', |
| 161 | ], |
| 162 | 'dependencies': [ |
| 163 | '<(EXTERNALS):gtest', |
| 164 | '<(AOS)/build/aos.gyp:libaos', |
| 165 | 'queue_testutils', |
| 166 | 'common', |
| 167 | 'queue_test_queue', |
| 168 | ], |
| 169 | }, |
| 170 | { |
| 171 | 'target_name': 'type_traits_test', |
| 172 | 'type': '<(aos_target)', |
| 173 | 'sources': [ |
| 174 | 'type_traits_test.cpp', |
| 175 | ], |
| 176 | 'dependencies': [ |
| 177 | '<(EXTERNALS):gtest', |
| 178 | '<(AOS)/build/aos.gyp:libaos', |
brians | 2fdfc07 | 2013-02-26 05:35:15 +0000 | [diff] [blame] | 179 | ':common', |
| 180 | ], |
| 181 | }, |
| 182 | { |
| 183 | 'target_name': 'gtest_prod', |
| 184 | 'type': 'static_library', |
| 185 | 'dependencies': [ |
| 186 | '<(EXTERNALS):gtest_prod', |
| 187 | ], |
| 188 | 'export_dependent_settings': [ |
| 189 | '<(EXTERNALS):gtest_prod', |
| 190 | ], |
| 191 | }, |
| 192 | { |
| 193 | 'target_name': 'once', |
| 194 | 'type': 'static_library', |
| 195 | 'dependencies': [ |
| 196 | '<(EXTERNALS):gtest_prod', |
| 197 | ], |
| 198 | 'export_dependent_settings': [ |
| 199 | '<(EXTERNALS):gtest_prod', |
| 200 | ], |
| 201 | }, |
| 202 | { |
| 203 | 'target_name': 'once_test', |
| 204 | 'type': '<(aos_target)', |
| 205 | 'sources': [ |
| 206 | 'once_test.cc', |
| 207 | ], |
| 208 | 'dependencies': [ |
| 209 | '<(EXTERNALS):gtest', |
| 210 | '<(AOS)/build/aos.gyp:libaos', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 211 | ], |
| 212 | }, |
| 213 | { |
| 214 | 'target_name': 'time_test', |
| 215 | 'type': '<(aos_target)', |
| 216 | 'sources': [ |
| 217 | 'time_test.cc', |
| 218 | ], |
| 219 | 'dependencies': [ |
| 220 | '<(EXTERNALS):gtest', |
| 221 | '<(AOS)/build/aos.gyp:libaos', |
| 222 | ], |
| 223 | }, |
| 224 | { |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame] | 225 | 'target_name': 'die', |
| 226 | 'type': 'static_library', |
| 227 | 'sources': [ |
| 228 | 'die.cc', |
| 229 | ], |
| 230 | }, |
| 231 | { |
| 232 | 'target_name': 'mutex', |
| 233 | 'type': 'static_library', |
| 234 | 'conditions': [ |
| 235 | ['OS=="crio"', { |
| 236 | 'sources': [ |
| 237 | '<(AOS)/crio/shared_libs/mutex.cpp', |
| 238 | ], |
| 239 | }, { |
| 240 | 'sources': [ |
| 241 | '<(AOS)/atom_code/ipc_lib/mutex.cpp', |
| 242 | ], |
| 243 | 'dependencies': [ |
| 244 | '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib', |
| 245 | ], |
| 246 | 'export_dependent_settings': [ |
| 247 | '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib', |
| 248 | ], |
| 249 | }], |
| 250 | ], |
| 251 | }, |
| 252 | { |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 253 | 'target_name': 'mutex_test', |
| 254 | 'type': '<(aos_target)', |
| 255 | 'sources': [ |
| 256 | 'mutex_test.cpp', |
| 257 | ], |
| 258 | 'dependencies': [ |
| 259 | '<(EXTERNALS):gtest', |
| 260 | '<(AOS)/build/aos.gyp:libaos', |
| 261 | ], |
| 262 | }, |
| 263 | { |
| 264 | 'target_name': 'die_test', |
| 265 | 'type': 'executable', |
| 266 | 'sources': [ |
| 267 | 'die_test.cc', |
| 268 | ], |
| 269 | 'dependencies': [ |
| 270 | '<(EXTERNALS):gtest', |
| 271 | '<(AOS)/build/aos.gyp:libaos', |
| 272 | ], |
| 273 | }, |
| 274 | ], |
| 275 | } |