OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/components', | 11 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/components', |
12 }, | 12 }, |
13 'conditions': [ | 13 'conditions': [ |
14 ['android_webview_build == 0', { | 14 ['android_webview_build == 0', { |
15 'targets': [ | 15 'targets': [ |
16 { | 16 { |
| 17 'target_name': 'components_tests_pak', |
| 18 'type': 'none', |
| 19 'dependencies': [ |
| 20 '../ui/resources/ui_resources.gyp:ui_resources', |
| 21 '../ui/strings/ui_strings.gyp:ui_strings', |
| 22 'components_resources.gyp:components_resources', |
| 23 'components_strings.gyp:components_strings', |
| 24 ], |
| 25 'actions': [ |
| 26 { |
| 27 'action_name': 'repack_components_tests_pak', |
| 28 'variables': { |
| 29 'pak_inputs': [ |
| 30 '<(SHARED_INTERMEDIATE_DIR)/components/components_resources.pa
k', |
| 31 '<(SHARED_INTERMEDIATE_DIR)/components/strings/components_stri
ngs_en-US.pak', |
| 32 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_perc
ent.pak', |
| 33 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-
US.pak', |
| 34 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak', |
| 35 ], |
| 36 'pak_output': '<(PRODUCT_DIR)/components_tests_resources.pak', |
| 37 }, |
| 38 'includes': [ '../build/repack_action.gypi' ], |
| 39 }, |
| 40 ], |
| 41 'direct_dependent_settings': { |
| 42 'mac_bundle_resources': [ |
| 43 '<(PRODUCT_DIR)/components_tests_resources.pak', |
| 44 ], |
| 45 }, |
| 46 }, |
| 47 { |
17 # GN version: //components/components_unittests | 48 # GN version: //components/components_unittests |
18 'target_name': 'components_unittests', | 49 'target_name': 'components_unittests', |
19 'type': '<(gtest_target_type)', | 50 'type': '<(gtest_target_type)', |
20 'sources': [ | 51 'sources': [ |
21 # Note: sources list duplicated in GN build. In the GN build, | 52 # Note: sources list duplicated in GN build. In the GN build, |
22 # each component has its own unit tests target defined in its | 53 # each component has its own unit tests target defined in its |
23 # directory that are then linked into the final content_unittests. | 54 # directory that are then linked into the final content_unittests. |
24 'auto_login_parser/auto_login_parser_unittest.cc', | 55 'auto_login_parser/auto_login_parser_unittest.cc', |
25 'autofill/content/browser/content_autofill_driver_unittest.cc', | 56 'autofill/content/browser/content_autofill_driver_unittest.cc', |
26 'autofill/content/browser/request_autocomplete_manager_unittest.cc', | 57 'autofill/content/browser/request_autocomplete_manager_unittest.cc', |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 'components.gyp:update_client', | 446 'components.gyp:update_client', |
416 'components.gyp:update_client_test_support', | 447 'components.gyp:update_client_test_support', |
417 'components.gyp:url_fixer', | 448 'components.gyp:url_fixer', |
418 'components.gyp:variations', | 449 'components.gyp:variations', |
419 'components.gyp:variations_http_provider', | 450 'components.gyp:variations_http_provider', |
420 'components.gyp:wallpaper', | 451 'components.gyp:wallpaper', |
421 'components.gyp:web_resource', | 452 'components.gyp:web_resource', |
422 'components.gyp:web_resource_test_support', | 453 'components.gyp:web_resource_test_support', |
423 'components_resources.gyp:components_resources', | 454 'components_resources.gyp:components_resources', |
424 'components_strings.gyp:components_strings', | 455 'components_strings.gyp:components_strings', |
425 ], | 456 'components_tests_pak', |
426 'actions': [ | |
427 { | |
428 'action_name': 'repack_components_pak', | |
429 'variables': { | |
430 'pak_inputs': [ | |
431 '<(SHARED_INTERMEDIATE_DIR)/components/components_resources.pa
k', | |
432 '<(SHARED_INTERMEDIATE_DIR)/components/strings/components_stri
ngs_en-US.pak', | |
433 '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_perc
ent.pak', | |
434 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-
US.pak', | |
435 '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak', | |
436 ], | |
437 'pak_output': '<(PRODUCT_DIR)/components_unittests_resources.pak
', | |
438 }, | |
439 'includes': [ '../build/repack_action.gypi' ], | |
440 }, | |
441 ], | |
442 'mac_bundle_resources': [ | |
443 '<(PRODUCT_DIR)/components_unittests_resources.pak', | |
444 ], | 457 ], |
445 'conditions': [ | 458 'conditions': [ |
446 ['toolkit_views == 1', { | 459 ['toolkit_views == 1', { |
447 'sources': [ | 460 'sources': [ |
448 'bookmarks/browser/bookmark_node_data_unittest.cc', | 461 'bookmarks/browser/bookmark_node_data_unittest.cc', |
449 'constrained_window/constrained_window_views_unittest.cc', | 462 'constrained_window/constrained_window_views_unittest.cc', |
450 ], | 463 ], |
451 'dependencies': [ | 464 'dependencies': [ |
452 '<(DEPTH)/ui/views/views.gyp:views_test_support', | 465 '<(DEPTH)/ui/views/views.gyp:views_test_support', |
453 'components.gyp:constrained_window', | 466 'components.gyp:constrained_window', |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 '../testing/gmock.gyp:gmock', | 958 '../testing/gmock.gyp:gmock', |
946 '../testing/gtest.gyp:gtest', | 959 '../testing/gtest.gyp:gtest', |
947 'components.gyp:autofill_content_browser', | 960 'components.gyp:autofill_content_browser', |
948 'components.gyp:autofill_content_renderer', | 961 'components.gyp:autofill_content_renderer', |
949 'components.gyp:dom_distiller_content', | 962 'components.gyp:dom_distiller_content', |
950 'components.gyp:dom_distiller_core', | 963 'components.gyp:dom_distiller_core', |
951 'components.gyp:password_manager_content_renderer', | 964 'components.gyp:password_manager_content_renderer', |
952 'components.gyp:pref_registry_test_support', | 965 'components.gyp:pref_registry_test_support', |
953 'components_resources.gyp:components_resources', | 966 'components_resources.gyp:components_resources', |
954 'components_strings.gyp:components_strings', | 967 'components_strings.gyp:components_strings', |
| 968 'components_tests_pak', |
955 ], | 969 ], |
956 'include_dirs': [ | 970 'include_dirs': [ |
957 '..', | 971 '..', |
958 ], | 972 ], |
959 'defines': [ | 973 'defines': [ |
960 'HAS_OUT_OF_PROC_TEST_RUNNER', | 974 'HAS_OUT_OF_PROC_TEST_RUNNER', |
961 ], | 975 ], |
962 'sources': [ | 976 'sources': [ |
963 'autofill/content/browser/risk/fingerprint_browsertest.cc', | 977 'autofill/content/browser/risk/fingerprint_browsertest.cc', |
964 'autofill/content/renderer/password_form_conversion_utils_browsertes
t.cc', | 978 'autofill/content/renderer/password_form_conversion_utils_browsertes
t.cc', |
965 'dom_distiller/content/distiller_page_web_contents_browsertest.cc', | 979 'dom_distiller/content/distiller_page_web_contents_browsertest.cc', |
966 'password_manager/content/renderer/credential_manager_client_browser
test.cc', | 980 'password_manager/content/renderer/credential_manager_client_browser
test.cc', |
967 ], | 981 ], |
968 'actions': [ | |
969 { | |
970 'action_name': 'repack_components_pak', | |
971 'variables': { | |
972 'pak_inputs': [ | |
973 '<(SHARED_INTERMEDIATE_DIR)/components/components_resources.pa
k', | |
974 '<(SHARED_INTERMEDIATE_DIR)/components/strings/components_stri
ngs_en-US.pak', | |
975 ], | |
976 'pak_output': '<(PRODUCT_DIR)/components_resources.pak', | |
977 }, | |
978 'includes': [ '../build/repack_action.gypi' ], | |
979 }, | |
980 ], | |
981 'conditions': [ | 982 'conditions': [ |
982 ['OS == "android"', { | 983 ['OS == "android"', { |
983 'sources!': [ | 984 'sources!': [ |
984 'autofill/content/browser/risk/fingerprint_browsertest.cc', | 985 'autofill/content/browser/risk/fingerprint_browsertest.cc', |
985 ], | 986 ], |
986 }], | 987 }], |
987 ['OS == "linux"', { | 988 ['OS == "linux"', { |
988 'sources': [ | 989 'sources': [ |
989 # content_extractor is a standalone content extraction tool bu
ilt as | 990 # content_extractor is a standalone content extraction tool bu
ilt as |
990 # a MANUAL component_browsertest. | 991 # a MANUAL component_browsertest. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 '../build/isolate.gypi', | 1054 '../build/isolate.gypi', |
1054 ], | 1055 ], |
1055 'sources': [ | 1056 'sources': [ |
1056 'components_unittests.isolate', | 1057 'components_unittests.isolate', |
1057 ], | 1058 ], |
1058 }, | 1059 }, |
1059 ], | 1060 ], |
1060 }], | 1061 }], |
1061 ], | 1062 ], |
1062 } | 1063 } |
OLD | NEW |