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 'variables' : { | 5 'variables' : { |
6 # Variables for js2gtest rules | 6 # Variables for js2gtest rules |
7 'gypv8sh': '../tools/gypv8sh.py', | 7 'gypv8sh': '../tools/gypv8sh.py', |
8 'js2gtest': 'test/base/js2gtest.js', | 8 'js2gtest': 'test/base/js2gtest.js', |
9 'js2gtest_out_dir': '<(SHARED_INTERMEDIATE_DIR)/js2gtest', | 9 'js2gtest_out_dir': '<(SHARED_INTERMEDIATE_DIR)/js2gtest', |
10 'mock_js': 'third_party/mock4js/mock4js.js', | 10 'mock_js': 'third_party/mock4js/mock4js.js', |
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1520 'browser/printing/print_job_unittest.cc', | 1520 'browser/printing/print_job_unittest.cc', |
1521 'browser/printing/print_preview_tab_controller_unittest.cc', | 1521 'browser/printing/print_preview_tab_controller_unittest.cc', |
1522 'browser/process_info_snapshot_mac_unittest.cc', | 1522 'browser/process_info_snapshot_mac_unittest.cc', |
1523 'browser/process_singleton_mac_unittest.cc', | 1523 'browser/process_singleton_mac_unittest.cc', |
1524 'browser/profiles/avatar_menu_model_unittest.cc', | 1524 'browser/profiles/avatar_menu_model_unittest.cc', |
1525 'browser/profiles/off_the_record_profile_impl_unittest.cc', | 1525 'browser/profiles/off_the_record_profile_impl_unittest.cc', |
1526 'browser/profiles/profile_dependency_manager_unittest.cc', | 1526 'browser/profiles/profile_dependency_manager_unittest.cc', |
1527 'browser/profiles/profile_info_cache_unittest.cc', | 1527 'browser/profiles/profile_info_cache_unittest.cc', |
1528 'browser/profiles/profile_manager_unittest.cc', | 1528 'browser/profiles/profile_manager_unittest.cc', |
1529 'browser/renderer_host/web_cache_manager_unittest.cc', | 1529 'browser/renderer_host/web_cache_manager_unittest.cc', |
1530 'browser/resources/print_preview/print_preview_utils.js', | |
1531 'browser/resources/print_preview/print_preview_utils_unittest.gtestjs', | |
1530 'browser/resources_util_unittest.cc', | 1532 'browser/resources_util_unittest.cc', |
1531 'browser/rlz/rlz_unittest.cc', | 1533 'browser/rlz/rlz_unittest.cc', |
1532 'browser/safe_browsing/bloom_filter_unittest.cc', | 1534 'browser/safe_browsing/bloom_filter_unittest.cc', |
1533 'browser/safe_browsing/browser_feature_extractor_unittest.cc', | 1535 'browser/safe_browsing/browser_feature_extractor_unittest.cc', |
1534 'browser/safe_browsing/chunk_range_unittest.cc', | 1536 'browser/safe_browsing/chunk_range_unittest.cc', |
1535 'browser/safe_browsing/client_side_detection_host_unittest.cc', | 1537 'browser/safe_browsing/client_side_detection_host_unittest.cc', |
1536 'browser/safe_browsing/client_side_detection_service_unittest.cc', | 1538 'browser/safe_browsing/client_side_detection_service_unittest.cc', |
1537 'browser/safe_browsing/download_protection_service_unittest.cc', | 1539 'browser/safe_browsing/download_protection_service_unittest.cc', |
1538 'browser/safe_browsing/malware_details_unittest.cc', | 1540 'browser/safe_browsing/malware_details_unittest.cc', |
1539 'browser/safe_browsing/prefix_set_unittest.cc', | 1541 'browser/safe_browsing/prefix_set_unittest.cc', |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1945 'service/service_process_unittest.cc', | 1947 'service/service_process_unittest.cc', |
1946 'test/base/browser_with_test_window_test.cc', | 1948 'test/base/browser_with_test_window_test.cc', |
1947 'test/base/browser_with_test_window_test.h', | 1949 'test/base/browser_with_test_window_test.h', |
1948 'test/base/chrome_render_view_test.cc', | 1950 'test/base/chrome_render_view_test.cc', |
1949 'test/base/chrome_render_view_test.h', | 1951 'test/base/chrome_render_view_test.h', |
1950 'test/base/menu_model_test.cc', | 1952 'test/base/menu_model_test.cc', |
1951 'test/base/menu_model_test.h', | 1953 'test/base/menu_model_test.h', |
1952 'test/base/v8_unit_test.cc', | 1954 'test/base/v8_unit_test.cc', |
1953 'test/base/v8_unit_test.h', | 1955 'test/base/v8_unit_test.h', |
1954 'test/data/resource.rc', | 1956 'test/data/resource.rc', |
1955 'test/data/unit/framework_unittest.js', | 1957 'test/data/unit/framework_unittest.gtestjs', |
1956 'tools/convert_dict/convert_dict_unittest.cc', | 1958 'tools/convert_dict/convert_dict_unittest.cc', |
1957 '../content/browser/renderer_host/render_widget_host_unittest.cc', | 1959 '../content/browser/renderer_host/render_widget_host_unittest.cc', |
1958 '../content/browser/renderer_host/text_input_client_mac_unittest.mm', | 1960 '../content/browser/renderer_host/text_input_client_mac_unittest.mm', |
1959 '../content/browser/tab_contents/navigation_controller_unittest.cc', | 1961 '../content/browser/tab_contents/navigation_controller_unittest.cc', |
1960 '../content/browser/tab_contents/render_view_host_manager_unittest.cc', | 1962 '../content/browser/tab_contents/render_view_host_manager_unittest.cc', |
1961 '../content/common/sandbox_mac_diraccess_unittest.mm', | 1963 '../content/common/sandbox_mac_diraccess_unittest.mm', |
1962 '../content/common/sandbox_mac_fontloading_unittest.mm', | 1964 '../content/common/sandbox_mac_fontloading_unittest.mm', |
1963 '../content/common/sandbox_mac_unittest_helper.h', | 1965 '../content/common/sandbox_mac_unittest_helper.h', |
1964 '../content/common/sandbox_mac_unittest_helper.mm', | 1966 '../content/common/sandbox_mac_unittest_helper.mm', |
1965 '../content/common/sandbox_mac_system_access_unittest.mm', | 1967 '../content/common/sandbox_mac_system_access_unittest.mm', |
1966 '../testing/gtest_mac_unittest.mm', | 1968 '../testing/gtest_mac_unittest.mm', |
1967 '../third_party/cld/encodings/compact_lang_det/compact_lang_det_unittest _small.cc', | 1969 '../third_party/cld/encodings/compact_lang_det/compact_lang_det_unittest _small.cc', |
1968 '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc', | 1970 '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc', |
1969 '../webkit/fileapi/file_system_operation_write_unittest.cc', | 1971 '../webkit/fileapi/file_system_operation_write_unittest.cc', |
1970 '../webkit/fileapi/file_system_url_request_job_unittest.cc', | 1972 '../webkit/fileapi/file_system_url_request_job_unittest.cc', |
1971 '../webkit/fileapi/file_writer_delegate_unittest.cc', | 1973 '../webkit/fileapi/file_writer_delegate_unittest.cc', |
1972 '../webkit/fileapi/file_system_test_helper.cc', | 1974 '../webkit/fileapi/file_system_test_helper.cc', |
1973 '../webkit/fileapi/file_system_test_helper.h', | 1975 '../webkit/fileapi/file_system_test_helper.h', |
1974 '../webkit/quota/mock_storage_client.cc', | 1976 '../webkit/quota/mock_storage_client.cc', |
1975 '../webkit/quota/mock_storage_client.h', | 1977 '../webkit/quota/mock_storage_client.h', |
1976 ], | 1978 ], |
1977 'rules': [ | 1979 'rules': [ |
1978 { | 1980 { |
1981 'rule_name': 'copyjs', | |
1982 'extension': 'js', | |
1983 'msvs_external_rule': 1, | |
1984 'inputs': [], | |
1985 'outputs': [ | |
1986 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ ROOT).<(_extension)', | |
1987 ], | |
1988 'action': [ | |
1989 'python', | |
1990 '-c', 'import shutil,sys; shutil.copyfile(sys.argv[1], sys.argv[2])' , | |
bradn
2011/11/07 06:10:38
Minor nit. It might be nice to put this in a separ
Sheridan Rawlins
2011/11/08 01:11:49
Done.
| |
1991 '<@(_inputs)', '<(RULE_INPUT_PATH)', | |
1992 '<@(_outputs)', | |
1993 ], | |
1994 }, | |
1995 { | |
1979 'rule_name': 'js2unit', | 1996 'rule_name': 'js2unit', |
1980 'extension': 'js', | 1997 'extension': 'gtestjs', |
bradn
2011/11/07 06:10:38
So gtest.js might work here (like 80% sure it'll w
Sheridan Rawlins
2011/11/08 01:11:49
This needs gyp support to accomplish and I feel is
| |
1981 'msvs_external_rule': 1, | 1998 'msvs_external_rule': 1, |
1982 'inputs': [ | 1999 'inputs': [ |
1983 '<(gypv8sh)', | 2000 '<(gypv8sh)', |
1984 '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)', | 2001 '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)', |
1985 '<(mock_js)', | 2002 '<(mock_js)', |
1986 '<(test_api_js)', | 2003 '<(test_api_js)', |
1987 '<(js2gtest)', | 2004 '<(js2gtest)', |
1988 ], | 2005 ], |
1989 'outputs': [ | 2006 'outputs': [ |
1990 '<(js2gtest_out_dir)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT) .cc', | 2007 '<(js2gtest_out_dir)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT) .cc', |
1991 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ ROOT).js', | 2008 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ ROOT).<(_extension)', |
1992 ], | 2009 ], |
1993 'process_outputs_as_sources': 1, | 2010 'process_outputs_as_sources': 1, |
1994 'action': [ | 2011 'action': [ |
1995 'python', | 2012 'python', |
1996 '<@(_inputs)', | 2013 '<@(_inputs)', |
1997 'unit', | 2014 'unit', |
1998 '<(RULE_INPUT_PATH)', | 2015 '<(RULE_INPUT_PATH)', |
1999 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js', | 2016 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).<(_extension)', |
2000 '<@(_outputs)', | 2017 '<@(_outputs)', |
2001 ], | 2018 ], |
2002 }, | 2019 }, |
2003 ], | 2020 ], |
2004 'conditions': [ | 2021 'conditions': [ |
2005 ['target_arch!="arm"', { | 2022 ['target_arch!="arm"', { |
2006 'dependencies': [ | 2023 'dependencies': [ |
2007 # build time dependency. | 2024 # build time dependency. |
2008 '../v8/tools/gyp/v8.gyp:v8_shell#host', | 2025 '../v8/tools/gyp/v8.gyp:v8_shell#host', |
2009 ], | 2026 ], |
(...skipping 2210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4220 # Use outputs of this action as inputs for the main target build. | 4237 # Use outputs of this action as inputs for the main target build. |
4221 # Seems as a misnomer but makes this happy on Linux (scons). | 4238 # Seems as a misnomer but makes this happy on Linux (scons). |
4222 'process_outputs_as_sources': 1, | 4239 'process_outputs_as_sources': 1, |
4223 }, | 4240 }, |
4224 ], # 'actions' | 4241 ], # 'actions' |
4225 }, | 4242 }, |
4226 ] | 4243 ] |
4227 }], # 'coverage!=0' | 4244 }], # 'coverage!=0' |
4228 ], # 'conditions' | 4245 ], # 'conditions' |
4229 } | 4246 } |
OLD | NEW |