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 # This turns on e.g. the filename-based detection of which | 7 # This turns on e.g. the filename-based detection of which |
| 8 # platforms to include source files on (e.g. files ending in | 8 # platforms to include source files on (e.g. files ending in |
| 9 # _mac.h or _mac.cc are only compiled on MacOSX). | 9 # _mac.h or _mac.cc are only compiled on MacOSX). |
| 10 'chromium_code': 1, | 10 'chromium_code': 1, |
| 11 }, | 11 }, |
| 12 'conditions': [ | 12 'conditions': [ |
| 13 ['android_webview_build == 0', { | 13 ['android_webview_build == 0', { |
| 14 'targets': [ | 14 'targets': [ |
| 15 { | 15 { |
| 16 'target_name': 'components_unittests_strings', | |
|
tony
2013/11/24 04:24:07
Nit: I would probably name the file something like
tfarina
2013/11/24 17:19:41
Done.
| |
| 17 'type': 'none', | |
| 18 'dependencies': [ | |
| 19 'component_strings.gyp:component_strings', | |
| 20 ], | |
| 21 'variables': { | |
| 22 'repack_path': '../tools/grit/grit/format/repack.py', | |
| 23 }, | |
| 24 'actions': [ | |
| 25 { | |
| 26 'action_name': 'repack_components_unittests_strings', | |
| 27 'variables': { | |
| 28 'pak_inputs': [ | |
| 29 '<(SHARED_INTERMEDIATE_DIR)/components/strings/component_strin gs_en-US.pak', | |
| 30 '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_ settings_en-US.pak', | |
|
tfarina
2013/11/23 23:20:30
I had to add this line, otherwise ResourceBundle d
tony
2013/11/24 04:24:07
That's fine, but should this target depend on ui/b
tfarina
2013/11/24 17:19:41
I added, thanks for catching this. I think it will
| |
| 31 ], | |
| 32 }, | |
| 33 'inputs': [ | |
| 34 '<(repack_path)', | |
| 35 '<@(pak_inputs)', | |
| 36 ], | |
| 37 'outputs': [ | |
| 38 '<(PRODUCT_DIR)/components/strings/component_strings_en-US.pak', | |
| 39 ], | |
| 40 'action': ['python', '<(repack_path)', '<@(_outputs)', | |
| 41 '<@(pak_inputs)'], | |
| 42 }, | |
| 43 ], | |
| 44 }, | |
| 45 { | |
| 16 'target_name': 'components_unittests', | 46 'target_name': 'components_unittests', |
| 17 'type': '<(gtest_target_type)', | 47 'type': '<(gtest_target_type)', |
| 18 'sources': [ | 48 'sources': [ |
| 19 'auto_login_parser/auto_login_parser_unittest.cc', | 49 'auto_login_parser/auto_login_parser_unittest.cc', |
| 20 'autofill/core/browser/webdata/autofill_entry_unittest.cc', | 50 'autofill/core/browser/webdata/autofill_entry_unittest.cc', |
| 51 'autofill/core/browser/webdata/autofill_table_unittest.cc', | |
| 52 'autofill/core/browser/webdata/web_data_service_unittest.cc', | |
| 21 'autofill/core/common/form_data_unittest.cc', | 53 'autofill/core/common/form_data_unittest.cc', |
| 22 'autofill/core/common/form_field_data_unittest.cc', | 54 'autofill/core/common/form_field_data_unittest.cc', |
| 23 'autofill/core/common/password_form_fill_data_unittest.cc', | 55 'autofill/core/common/password_form_fill_data_unittest.cc', |
| 24 'browser_context_keyed_service/browser_context_dependency_manager_un ittest.cc', | 56 'browser_context_keyed_service/browser_context_dependency_manager_un ittest.cc', |
| 25 'browser_context_keyed_service/dependency_graph_unittest.cc', | 57 'browser_context_keyed_service/dependency_graph_unittest.cc', |
| 26 'dom_distiller/core/article_entry_unittest.cc', | 58 'dom_distiller/core/article_entry_unittest.cc', |
| 27 'dom_distiller/core/distiller_unittest.cc', | 59 'dom_distiller/core/distiller_unittest.cc', |
| 28 'dom_distiller/core/distiller_url_fetcher_unittest.cc', | 60 'dom_distiller/core/distiller_url_fetcher_unittest.cc', |
| 29 'dom_distiller/core/dom_distiller_database_unittest.cc', | 61 'dom_distiller/core/dom_distiller_database_unittest.cc', |
| 30 'dom_distiller/core/dom_distiller_model_unittest.cc', | 62 'dom_distiller/core/dom_distiller_model_unittest.cc', |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 56 ], | 88 ], |
| 57 'include_dirs': [ | 89 'include_dirs': [ |
| 58 '..', | 90 '..', |
| 59 ], | 91 ], |
| 60 'dependencies': [ | 92 'dependencies': [ |
| 61 '../base/base.gyp:test_support_base', | 93 '../base/base.gyp:test_support_base', |
| 62 '../sync/sync.gyp:sync', | 94 '../sync/sync.gyp:sync', |
| 63 '../testing/gmock.gyp:gmock', | 95 '../testing/gmock.gyp:gmock', |
| 64 '../testing/gtest.gyp:gtest', | 96 '../testing/gtest.gyp:gtest', |
| 65 | 97 |
| 98 'components_unittests_strings', | |
| 99 | |
| 66 # Dependencies of autofill | 100 # Dependencies of autofill |
| 67 'components.gyp:autofill_core_browser', | 101 'components.gyp:autofill_core_browser', |
| 68 'components.gyp:autofill_core_common', | 102 'components.gyp:autofill_core_common', |
| 69 | 103 |
| 70 # Dependencies of auto_login_parser | 104 # Dependencies of auto_login_parser |
| 71 'components.gyp:auto_login_parser', | 105 'components.gyp:auto_login_parser', |
| 72 | 106 |
| 73 # Dependencies of browser_context_keyed_service | 107 # Dependencies of browser_context_keyed_service |
| 74 'components.gyp:browser_context_keyed_service', | 108 'components.gyp:browser_context_keyed_service', |
| 75 | 109 |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 297 'dependencies': [ | 331 'dependencies': [ |
| 298 '../base/allocator/allocator.gyp:allocator', | 332 '../base/allocator/allocator.gyp:allocator', |
| 299 ], | 333 ], |
| 300 }], | 334 }], |
| 301 ], | 335 ], |
| 302 }, | 336 }, |
| 303 ], | 337 ], |
| 304 }], | 338 }], |
| 305 ], | 339 ], |
| 306 } | 340 } |
| OLD | NEW |