Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 }, | 8 }, |
| 9 'targets': [ | 9 'targets': [ |
| 10 # The core sync library. | 10 # The core sync library. |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 ], | 21 ], |
| 22 'dependencies': [ | 22 'dependencies': [ |
| 23 '../base/base.gyp:base', | 23 '../base/base.gyp:base', |
| 24 '../build/temp_gyp/googleurl.gyp:googleurl', | 24 '../build/temp_gyp/googleurl.gyp:googleurl', |
| 25 '../crypto/crypto.gyp:crypto', | 25 '../crypto/crypto.gyp:crypto', |
| 26 '../net/net.gyp:net', | 26 '../net/net.gyp:net', |
| 27 '../sql/sql.gyp:sql', | 27 '../sql/sql.gyp:sql', |
| 28 'protocol/sync_proto.gyp:sync_proto', | 28 'protocol/sync_proto.gyp:sync_proto', |
| 29 ], | 29 ], |
| 30 'export_dependent_settings': [ | 30 'export_dependent_settings': [ |
| 31 '../base/base.gyp:base', | 31 # Propagate sync_proto since our headers include its generated |
| 32 '../build/temp_gyp/googleurl.gyp:googleurl', | 32 # files. |
| 33 '../crypto/crypto.gyp:crypto', | |
| 34 '../net/net.gyp:net', | |
| 35 '../sql/sql.gyp:sql', | |
| 36 'protocol/sync_proto.gyp:sync_proto', | 33 'protocol/sync_proto.gyp:sync_proto', |
| 37 ], | 34 ], |
| 38 'sources': [ | 35 'sources': [ |
| 39 'engine/apply_updates_command.cc', | 36 'engine/apply_updates_command.cc', |
| 40 'engine/apply_updates_command.h', | 37 'engine/apply_updates_command.h', |
| 41 'engine/build_commit_command.cc', | 38 'engine/build_commit_command.cc', |
| 42 'engine/build_commit_command.h', | 39 'engine/build_commit_command.h', |
| 43 'engine/cleanup_disabled_types_command.cc', | 40 'engine/cleanup_disabled_types_command.cc', |
| 44 'engine/cleanup_disabled_types_command.h', | 41 'engine/cleanup_disabled_types_command.h', |
| 45 'engine/clear_data_command.cc', | 42 'engine/clear_data_command.cc', |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 186 'target_name': 'test_support_sync', | 183 'target_name': 'test_support_sync', |
| 187 'type': 'static_library', | 184 'type': 'static_library', |
| 188 'variables': { 'enable_wexit_time_destructors': 1, }, | 185 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 189 'include_dirs': [ | 186 'include_dirs': [ |
| 190 '..', | 187 '..', |
| 191 ], | 188 ], |
| 192 'dependencies': [ | 189 'dependencies': [ |
| 193 '../base/base.gyp:base', | 190 '../base/base.gyp:base', |
| 194 '../testing/gmock.gyp:gmock', | 191 '../testing/gmock.gyp:gmock', |
| 195 '../testing/gtest.gyp:gtest', | 192 '../testing/gtest.gyp:gtest', |
| 193 'protocol/sync_proto.gyp:sync_proto', | |
|
Ryan Sleevi
2012/03/16 19:50:23
Unless your header files (for this target) are dir
akalin
2012/03/16 20:02:00
yeah, they are.
| |
| 196 'sync', | 194 'sync', |
| 197 ], | 195 ], |
| 198 'export_dependent_settings': [ | 196 'export_dependent_settings': [ |
| 199 '../base/base.gyp:base', | |
| 200 '../testing/gmock.gyp:gmock', | 197 '../testing/gmock.gyp:gmock', |
| 201 '../testing/gtest.gyp:gtest', | 198 '../testing/gtest.gyp:gtest', |
| 199 'protocol/sync_proto.gyp:sync_proto', | |
| 202 'sync', | 200 'sync', |
| 203 ], | 201 ], |
| 204 'sources': [ | 202 'sources': [ |
| 205 'js/js_test_util.cc', | 203 'js/js_test_util.cc', |
| 206 'js/js_test_util.h', | 204 'js/js_test_util.h', |
| 207 'sessions/test_util.cc', | 205 'sessions/test_util.cc', |
| 208 'sessions/test_util.h', | 206 'sessions/test_util.h', |
| 209 'syncable/model_type_test_util.cc', | 207 'syncable/model_type_test_util.cc', |
| 210 'syncable/model_type_test_util.h', | 208 'syncable/model_type_test_util.h', |
| 211 'syncable/syncable_mock.cc', | 209 'syncable/syncable_mock.cc', |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 243 # library because the unit test files have to be compiled directly | 241 # library because the unit test files have to be compiled directly |
| 244 # into the executable, so we push the target files to the | 242 # into the executable, so we push the target files to the |
| 245 # depending executable target via direct_dependent_settings. | 243 # depending executable target via direct_dependent_settings. |
| 246 { | 244 { |
| 247 'target_name': 'sync_tests', | 245 'target_name': 'sync_tests', |
| 248 'type': 'none', | 246 'type': 'none', |
| 249 # We only want unit test executables to include this target. | 247 # We only want unit test executables to include this target. |
| 250 'suppress_wildcard': 1, | 248 'suppress_wildcard': 1, |
| 251 'dependencies': [ | 249 'dependencies': [ |
| 252 '../base/base.gyp:base', | 250 '../base/base.gyp:base', |
| 253 '../base/base.gyp:test_support_base', | |
| 254 '../testing/gmock.gyp:gmock', | 251 '../testing/gmock.gyp:gmock', |
| 255 '../testing/gtest.gyp:gtest', | 252 '../testing/gtest.gyp:gtest', |
| 253 'protocol/sync_proto.gyp:sync_proto', | |
| 256 'sync', | 254 'sync', |
| 257 'test_support_sync', | 255 'test_support_sync', |
| 258 ], | 256 ], |
| 257 # Propagate all dependencies since the actual compilation | |
| 258 # happens in the dependents. | |
| 259 'export_dependent_settings': [ | 259 'export_dependent_settings': [ |
| 260 '../base/base.gyp:base', | 260 '../base/base.gyp:base', |
| 261 '../base/base.gyp:test_support_base', | |
| 262 '../testing/gmock.gyp:gmock', | 261 '../testing/gmock.gyp:gmock', |
| 263 '../testing/gtest.gyp:gtest', | 262 '../testing/gtest.gyp:gtest', |
| 263 'protocol/sync_proto.gyp:sync_proto', | |
|
Ryan Sleevi
2012/03/16 19:50:23
Same here
akalin
2012/03/16 20:02:00
yeap, here too.
| |
| 264 'sync', | 264 'sync', |
| 265 'test_support_sync', | 265 'test_support_sync', |
| 266 ], | 266 ], |
| 267 'direct_dependent_settings': { | 267 'direct_dependent_settings': { |
| 268 'variables': { 'enable_wexit_time_destructors': 1, }, | 268 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 269 'include_dirs': [ | 269 'include_dirs': [ |
| 270 '..', | 270 '..', |
| 271 ], | 271 ], |
| 272 'sources': [ | 272 'sources': [ |
| 273 'engine/apply_updates_command_unittest.cc', | 273 'engine/apply_updates_command_unittest.cc', |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 324 # | 324 # |
| 325 # TODO(akalin): Rename this to sync_unit_tests once we've moved | 325 # TODO(akalin): Rename this to sync_unit_tests once we've moved |
| 326 # everything from chrome.gyp. | 326 # everything from chrome.gyp. |
| 327 # | 327 # |
| 328 # TODO(akalin): Make base.gyp have a test_main target that | 328 # TODO(akalin): Make base.gyp have a test_main target that |
| 329 # includes run_all_unittests.cc and the possible tcmalloc | 329 # includes run_all_unittests.cc and the possible tcmalloc |
| 330 # dependency and use that everywhere. | 330 # dependency and use that everywhere. |
| 331 { | 331 { |
| 332 'target_name': 'sync_unit_tests_canary', | 332 'target_name': 'sync_unit_tests_canary', |
| 333 'type': 'executable', | 333 'type': 'executable', |
| 334 'include_dirs': [ | |
| 335 '..', | |
| 336 ], | |
| 337 'dependencies': [ | |
| 338 '../base/base.gyp:test_support_base', | |
| 339 'sync_tests', | |
| 340 ], | |
| 334 'sources': [ | 341 'sources': [ |
| 335 '../base/test/run_all_unittests.cc', | 342 '../base/test/run_all_unittests.cc', |
| 336 ], | 343 ], |
| 337 'dependencies': [ | |
| 338 'sync_tests', | |
| 339 ], | |
| 340 | |
| 341 # TODO(akalin): This is needed because histogram.cc uses | 344 # TODO(akalin): This is needed because histogram.cc uses |
| 342 # leak_annotations.h, which pulls this in. Make 'base' | 345 # leak_annotations.h, which pulls this in. Make 'base' |
| 343 # propagate this dependency. | 346 # propagate this dependency. |
| 344 'conditions': [ | 347 'conditions': [ |
| 345 ['OS=="linux" and linux_use_tcmalloc==1', { | 348 ['OS=="linux" and linux_use_tcmalloc==1', { |
| 346 'dependencies': [ | 349 'dependencies': [ |
| 347 '../base/allocator/allocator.gyp:allocator', | 350 '../base/allocator/allocator.gyp:allocator', |
| 348 ], | 351 ], |
| 349 }], | 352 }], |
| 350 ], | 353 ], |
| 351 }, | 354 }, |
| 352 ], | 355 ], |
| 353 } | 356 } |
| OLD | NEW |