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': [ |
| 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', |
brians | 2fdfc07 | 2013-02-26 05:35:15 +0000 | [diff] [blame] | 48 | 'once', |
| 49 | ], |
| 50 | 'export_dependent_settings': [ |
| 51 | 'once', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 52 | ], |
| 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', |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame^] | 135 | 'sources': [ |
| 136 | # 'control_loop/ControlLoop-tmpl.h', |
| 137 | ], |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 138 | 'dependencies': [ |
| 139 | '<(AOS)/common/messages/messages.gyp:aos_queues', |
| 140 | '<(AOS)/build/aos.gyp:logging', |
| 141 | 'timing', |
| 142 | ], |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame^] | 143 | 'export_dependent_settings': [ |
| 144 | '<(AOS)/common/messages/messages.gyp:aos_queues', |
| 145 | '<(AOS)/build/aos.gyp:logging', |
| 146 | 'timing', |
| 147 | ], |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 148 | }, |
| 149 | { |
| 150 | 'target_name': 'queue_test', |
| 151 | 'type': 'executable', |
| 152 | 'sources': [ |
| 153 | '<(AOS)/common/queue_test.cc', |
| 154 | ], |
| 155 | 'dependencies': [ |
| 156 | '<(EXTERNALS):gtest', |
| 157 | '<(AOS)/build/aos.gyp:libaos', |
| 158 | 'queue_testutils', |
| 159 | 'common', |
| 160 | 'queue_test_queue', |
| 161 | ], |
| 162 | }, |
| 163 | { |
| 164 | 'target_name': 'type_traits_test', |
| 165 | 'type': '<(aos_target)', |
| 166 | 'sources': [ |
| 167 | 'type_traits_test.cpp', |
| 168 | ], |
| 169 | 'dependencies': [ |
| 170 | '<(EXTERNALS):gtest', |
| 171 | '<(AOS)/build/aos.gyp:libaos', |
brians | 2fdfc07 | 2013-02-26 05:35:15 +0000 | [diff] [blame] | 172 | ':common', |
| 173 | ], |
| 174 | }, |
| 175 | { |
| 176 | 'target_name': 'gtest_prod', |
| 177 | 'type': 'static_library', |
| 178 | 'dependencies': [ |
| 179 | '<(EXTERNALS):gtest_prod', |
| 180 | ], |
| 181 | 'export_dependent_settings': [ |
| 182 | '<(EXTERNALS):gtest_prod', |
| 183 | ], |
| 184 | }, |
| 185 | { |
| 186 | 'target_name': 'once', |
| 187 | 'type': 'static_library', |
| 188 | 'dependencies': [ |
| 189 | '<(EXTERNALS):gtest_prod', |
| 190 | ], |
| 191 | 'export_dependent_settings': [ |
| 192 | '<(EXTERNALS):gtest_prod', |
| 193 | ], |
| 194 | }, |
| 195 | { |
| 196 | 'target_name': 'once_test', |
| 197 | 'type': '<(aos_target)', |
| 198 | 'sources': [ |
| 199 | 'once_test.cc', |
| 200 | ], |
| 201 | 'dependencies': [ |
| 202 | '<(EXTERNALS):gtest', |
| 203 | '<(AOS)/build/aos.gyp:libaos', |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 204 | ], |
| 205 | }, |
| 206 | { |
| 207 | 'target_name': 'time_test', |
| 208 | 'type': '<(aos_target)', |
| 209 | 'sources': [ |
| 210 | 'time_test.cc', |
| 211 | ], |
| 212 | 'dependencies': [ |
| 213 | '<(EXTERNALS):gtest', |
| 214 | '<(AOS)/build/aos.gyp:libaos', |
| 215 | ], |
| 216 | }, |
| 217 | { |
Brian Silverman | f665d69 | 2013-02-17 22:11:39 -0800 | [diff] [blame^] | 218 | 'target_name': 'die', |
| 219 | 'type': 'static_library', |
| 220 | 'sources': [ |
| 221 | 'die.cc', |
| 222 | ], |
| 223 | }, |
| 224 | { |
| 225 | 'target_name': 'mutex', |
| 226 | 'type': 'static_library', |
| 227 | 'conditions': [ |
| 228 | ['OS=="crio"', { |
| 229 | 'sources': [ |
| 230 | '<(AOS)/crio/shared_libs/mutex.cpp', |
| 231 | ], |
| 232 | }, { |
| 233 | 'sources': [ |
| 234 | '<(AOS)/atom_code/ipc_lib/mutex.cpp', |
| 235 | ], |
| 236 | 'dependencies': [ |
| 237 | '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib', |
| 238 | ], |
| 239 | 'export_dependent_settings': [ |
| 240 | '<(AOS)/atom_code/ipc_lib/ipc_lib.gyp:ipc_lib', |
| 241 | ], |
| 242 | }], |
| 243 | ], |
| 244 | }, |
| 245 | { |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 246 | 'target_name': 'mutex_test', |
| 247 | 'type': '<(aos_target)', |
| 248 | 'sources': [ |
| 249 | 'mutex_test.cpp', |
| 250 | ], |
| 251 | 'dependencies': [ |
| 252 | '<(EXTERNALS):gtest', |
| 253 | '<(AOS)/build/aos.gyp:libaos', |
| 254 | ], |
| 255 | }, |
| 256 | { |
| 257 | 'target_name': 'die_test', |
| 258 | 'type': 'executable', |
| 259 | 'sources': [ |
| 260 | 'die_test.cc', |
| 261 | ], |
| 262 | 'dependencies': [ |
| 263 | '<(EXTERNALS):gtest', |
| 264 | '<(AOS)/build/aos.gyp:libaos', |
| 265 | ], |
| 266 | }, |
| 267 | ], |
| 268 | } |