| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'target_defaults': { | 5 'target_defaults': { |
| 6 'conditions': [ | 6 'conditions': [ |
| 7 ['strip_tests==1', { | 7 ['strip_tests==1', { |
| 8 'cflags!': [ '-g' ], | 8 'cflags!': [ '-g' ], |
| 9 'ldflags': [ '-Wl,--strip-debug' ], | 9 'ldflags': [ '-Wl,--strip-debug' ], |
| 10 }], | 10 }], |
| 11 ], | 11 ], |
| 12 }, | 12 }, |
| 13 'variables' : { | 13 'variables' : { |
| 14 # Variables for js2gtest rules | |
| 15 'gypv8sh': '../tools/gypv8sh.py', | |
| 16 'js2gtest': 'test/base/js2gtest.js', | |
| 17 'mock_js': 'third_party/mock4js/mock4js.js', | |
| 18 'test_api_js': 'test/data/webui/test_api.js', | |
| 19 | |
| 20 'pyautolib_sources': [ | 14 'pyautolib_sources': [ |
| 21 'app/chrome_command_ids.h', | 15 'app/chrome_command_ids.h', |
| 22 'app/chrome_dll_resource.h', | 16 'app/chrome_dll_resource.h', |
| 23 'common/automation_constants.h', | 17 'common/automation_constants.h', |
| 24 'common/pref_names.cc', | 18 'common/pref_names.cc', |
| 25 'common/pref_names.h', | 19 'common/pref_names.h', |
| 26 'test/automation/browser_proxy.cc', | 20 'test/automation/browser_proxy.cc', |
| 27 'test/automation/browser_proxy.h', | 21 'test/automation/browser_proxy.h', |
| 28 'test/automation/tab_proxy.cc', | 22 'test/automation/tab_proxy.cc', |
| 29 'test/automation/tab_proxy.h', | 23 'test/automation/tab_proxy.h', |
| 30 ], | 24 ], |
| 31 'pyautolib_libraries': [ | 25 'pyautolib_libraries': [ |
| 32 ], | 26 ], |
| 33 'conditions': [ | 27 'conditions': [ |
| 34 ['asan==1', { | 28 ['asan==1', { |
| 35 'pyautolib_libraries': [ | 29 'pyautolib_libraries': [ |
| 36 # Link in the libasan32.a because this binary will be loaded by | 30 # Link in the libasan32.a because this binary will be loaded by |
| 37 # Python that does not have libasan in. | 31 # Python that does not have libasan in. |
| 38 '-lasan32', | 32 '-lasan32', |
| 39 ] | 33 ] |
| 40 }], | 34 }], |
| 41 ], | 35 ], |
| 42 }, | 36 }, |
| 37 'includes': [ |
| 38 'js_unittest_vars.gypi', |
| 39 ], |
| 43 'targets': [ | 40 'targets': [ |
| 44 { | 41 { |
| 45 # This target contains mocks and test utilities that don't belong in | 42 # This target contains mocks and test utilities that don't belong in |
| 46 # production libraries but are used by more than one test executable. | 43 # production libraries but are used by more than one test executable. |
| 47 'target_name': 'test_support_common', | 44 'target_name': 'test_support_common', |
| 48 'type': 'static_library', | 45 'type': 'static_library', |
| 49 'dependencies': [ | 46 'dependencies': [ |
| 50 'app/policy/cloud_policy_codegen.gyp:policy', | 47 'app/policy/cloud_policy_codegen.gyp:policy', |
| 51 'browser', | 48 'browser', |
| 52 'browser/sync/protocol/sync_proto.gyp:sync_proto', | 49 'browser/sync/protocol/sync_proto.gyp:sync_proto', |
| (...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 '../ui/ui.gyp:ui_resources', | 1170 '../ui/ui.gyp:ui_resources', |
| 1174 '../ui/ui.gyp:ui_resources_standard', | 1171 '../ui/ui.gyp:ui_resources_standard', |
| 1175 '../ui/ui.gyp:ui_test_support', | 1172 '../ui/ui.gyp:ui_test_support', |
| 1176 '../v8/tools/gyp/v8.gyp:v8', | 1173 '../v8/tools/gyp/v8.gyp:v8', |
| 1177 'chrome_resources.gyp:chrome_resources', | 1174 'chrome_resources.gyp:chrome_resources', |
| 1178 'chrome_resources.gyp:chrome_strings', | 1175 'chrome_resources.gyp:chrome_strings', |
| 1179 ], | 1176 ], |
| 1180 'include_dirs': [ | 1177 'include_dirs': [ |
| 1181 '..', | 1178 '..', |
| 1182 ], | 1179 ], |
| 1180 # TODO(scr): Use this in browser_tests too. |
| 1181 'includes': [ |
| 1182 'js_unittest_rules.gypi', |
| 1183 ], |
| 1183 'defines': [ | 1184 'defines': [ |
| 1184 'CLD_WINDOWS', | 1185 'CLD_WINDOWS', |
| 1185 ], | 1186 ], |
| 1186 'direct_dependent_settings': { | 1187 'direct_dependent_settings': { |
| 1187 'defines': [ | 1188 'defines': [ |
| 1188 'CLD_WINDOWS', | 1189 'CLD_WINDOWS', |
| 1189 ], | 1190 ], |
| 1190 }, | 1191 }, |
| 1191 'sources': [ | 1192 'sources': [ |
| 1192 'app/breakpad_mac_stubs.mm', | 1193 'app/breakpad_mac_stubs.mm', |
| (...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2024 '../ui/views/test/views_test_base.h', | 2025 '../ui/views/test/views_test_base.h', |
| 2025 '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc', | 2026 '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc', |
| 2026 '../webkit/fileapi/file_system_operation_write_unittest.cc', | 2027 '../webkit/fileapi/file_system_operation_write_unittest.cc', |
| 2027 '../webkit/fileapi/file_system_url_request_job_unittest.cc', | 2028 '../webkit/fileapi/file_system_url_request_job_unittest.cc', |
| 2028 '../webkit/fileapi/file_writer_delegate_unittest.cc', | 2029 '../webkit/fileapi/file_writer_delegate_unittest.cc', |
| 2029 '../webkit/fileapi/file_system_test_helper.cc', | 2030 '../webkit/fileapi/file_system_test_helper.cc', |
| 2030 '../webkit/fileapi/file_system_test_helper.h', | 2031 '../webkit/fileapi/file_system_test_helper.h', |
| 2031 '../webkit/quota/mock_storage_client.cc', | 2032 '../webkit/quota/mock_storage_client.cc', |
| 2032 '../webkit/quota/mock_storage_client.h', | 2033 '../webkit/quota/mock_storage_client.h', |
| 2033 ], | 2034 ], |
| 2034 'rules': [ | |
| 2035 { | |
| 2036 'rule_name': 'copyjs', | |
| 2037 'extension': 'js', | |
| 2038 'msvs_external_rule': 1, | |
| 2039 'inputs': [ | |
| 2040 '../build/cp.py', | |
| 2041 ], | |
| 2042 'outputs': [ | |
| 2043 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_
ROOT).<(_extension)', | |
| 2044 ], | |
| 2045 'action': [ | |
| 2046 'python', | |
| 2047 '<@(_inputs)', | |
| 2048 '<(RULE_INPUT_PATH)', | |
| 2049 '<@(_outputs)', | |
| 2050 ], | |
| 2051 }, | |
| 2052 { | |
| 2053 'rule_name': 'js2unit', | |
| 2054 'extension': 'gtestjs', | |
| 2055 'msvs_external_rule': 1, | |
| 2056 'inputs': [ | |
| 2057 '<(gypv8sh)', | |
| 2058 '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)', | |
| 2059 '<(mock_js)', | |
| 2060 '<(test_api_js)', | |
| 2061 '<(js2gtest)', | |
| 2062 ], | |
| 2063 'outputs': [ | |
| 2064 '<(INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)
-gen.cc', | |
| 2065 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_
ROOT).<(_extension)', | |
| 2066 ], | |
| 2067 'process_outputs_as_sources': 1, | |
| 2068 'action': [ | |
| 2069 'python', | |
| 2070 '<@(_inputs)', | |
| 2071 'unit', | |
| 2072 '<(RULE_INPUT_PATH)', | |
| 2073 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).<(_extension)', | |
| 2074 '<@(_outputs)', | |
| 2075 ], | |
| 2076 }, | |
| 2077 ], | |
| 2078 'conditions': [ | 2035 'conditions': [ |
| 2079 ['target_arch!="arm"', { | 2036 ['target_arch!="arm"', { |
| 2080 'dependencies': [ | 2037 'dependencies': [ |
| 2081 # build time dependency. | 2038 # build time dependency. |
| 2082 '../v8/tools/gyp/v8.gyp:v8_shell#host', | 2039 '../v8/tools/gyp/v8.gyp:v8_shell#host', |
| 2083 ], | 2040 ], |
| 2084 }], | 2041 }], |
| 2085 ['p2p_apis==1', { | 2042 ['p2p_apis==1', { |
| 2086 'sources': [ | 2043 'sources': [ |
| 2087 '../content/browser/renderer_host/p2p/socket_host_test_utils.h', | 2044 '../content/browser/renderer_host/p2p/socket_host_test_utils.h', |
| (...skipping 2253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4341 # Use outputs of this action as inputs for the main target build. | 4298 # Use outputs of this action as inputs for the main target build. |
| 4342 # Seems as a misnomer but makes this happy on Linux (scons). | 4299 # Seems as a misnomer but makes this happy on Linux (scons). |
| 4343 'process_outputs_as_sources': 1, | 4300 'process_outputs_as_sources': 1, |
| 4344 }, | 4301 }, |
| 4345 ], # 'actions' | 4302 ], # 'actions' |
| 4346 }, | 4303 }, |
| 4347 ] | 4304 ] |
| 4348 }], # 'coverage!=0' | 4305 }], # 'coverage!=0' |
| 4349 ], # 'conditions' | 4306 ], # 'conditions' |
| 4350 } | 4307 } |
| OLD | NEW |