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, |
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1037 ], | 1037 ], |
1038 }], | 1038 }], |
1039 ], | 1039 ], |
1040 }], | 1040 }], |
1041 ], | 1041 ], |
1042 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1042 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1043 'msvs_disabled_warnings': [4267, ], | 1043 'msvs_disabled_warnings': [4267, ], |
1044 }, | 1044 }, |
1045 ], | 1045 ], |
1046 'conditions': [ | 1046 'conditions': [ |
| 1047 ['OS == "android"', { |
| 1048 'variables': { |
| 1049 'components_browsertests_pak_input_resources': [ |
| 1050 '<(PRODUCT_DIR)/components_tests_resources.pak', |
| 1051 '<(PRODUCT_DIR)/content_shell/assets/content_shell.pak', |
| 1052 ], |
| 1053 'conditions': [ |
| 1054 ['icu_use_data_file_flag==1', { |
| 1055 'components_browsertests_pak_input_resources': [ |
| 1056 '<(PRODUCT_DIR)/icudtl.dat', |
| 1057 ], |
| 1058 }], |
| 1059 ['v8_use_external_startup_data==1', { |
| 1060 'components_browsertests_pak_input_resources': [ |
| 1061 '<(PRODUCT_DIR)/natives_blob.bin', |
| 1062 '<(PRODUCT_DIR)/snapshot_blob.bin', |
| 1063 ], |
| 1064 }], |
| 1065 ], |
| 1066 }, |
| 1067 'targets': [ |
| 1068 { |
| 1069 'target_name': 'components_browsertests_paks_copy', |
| 1070 'type': 'none', |
| 1071 'dependencies': [ |
| 1072 'components_browsertests', |
| 1073 ], |
| 1074 'copies': [ |
| 1075 { |
| 1076 'destination': '<(PRODUCT_DIR)/components_browsertests_apk_shell/a
ssets', |
| 1077 'files': [ |
| 1078 '<@(components_browsertests_pak_input_resources)', |
| 1079 ], |
| 1080 } |
| 1081 ], |
| 1082 }, |
| 1083 { |
| 1084 'target_name': 'components_browsertests_manifest', |
| 1085 'type': 'none', |
| 1086 'variables': { |
| 1087 'jinja_inputs': ['test/android/browsertests_apk/AndroidManifest.xml.
jinja2'], |
| 1088 'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/components_browsertests_
manifest/AndroidManifest.xml', |
| 1089 }, |
| 1090 'includes': [ '../build/android/jinja_template.gypi' ], |
| 1091 }, |
| 1092 { |
| 1093 'target_name': 'components_browsertests_jni_headers', |
| 1094 'type': 'none', |
| 1095 'sources': [ |
| 1096 'test/android/browsertests_apk/src/org/chromium/components_browserte
sts_apk/ComponentsBrowserTestsActivity.java', |
| 1097 ], |
| 1098 'variables': { |
| 1099 'jni_gen_package': 'content/shell', |
| 1100 }, |
| 1101 'includes': [ '../build/jni_generator.gypi' ], |
| 1102 }, |
| 1103 { |
| 1104 # TODO(GN) |
| 1105 'target_name': 'components_browsertests_apk', |
| 1106 'type': 'none', |
| 1107 'dependencies': [ |
| 1108 '../content/content.gyp:content_icudata', |
| 1109 '../content/content.gyp:content_java', |
| 1110 '../content/content.gyp:content_v8_external_data', |
| 1111 '../content/content_shell_and_tests.gyp:content_java_test_support', |
| 1112 '../content/content_shell_and_tests.gyp:content_shell_java', |
| 1113 'components_browsertests_paks_copy', |
| 1114 'components_browsertests', |
| 1115 ], |
| 1116 'variables': { |
| 1117 'apk_name': 'components_browsertests', |
| 1118 'java_in_dir': 'test/android/browsertests_apk', |
| 1119 'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/components_brow
sertests_manifest/AndroidManifest.xml', |
| 1120 'resource_dir': 'test/android/browsertests_apk/res', |
| 1121 'native_lib_target': 'libcomponents_browsertests', |
| 1122 'asset_location': '<(PRODUCT_DIR)/components_browsertests_apk_shell/
assets', |
| 1123 }, |
| 1124 'includes': [ '../build/java_apk.gypi' ], |
| 1125 }, |
| 1126 ], |
| 1127 }], |
1047 ['OS != "ios"', { | 1128 ['OS != "ios"', { |
1048 'targets': [ | 1129 'targets': [ |
1049 { | 1130 { |
1050 # GN: //components:components_perftests | 1131 # GN: //components:components_perftests |
1051 'target_name': 'components_perftests', | 1132 'target_name': 'components_perftests', |
1052 'type': '<(gtest_target_type)', | 1133 'type': '<(gtest_target_type)', |
1053 'dependencies': [ | 1134 'dependencies': [ |
1054 '../base/base.gyp:base', | 1135 '../base/base.gyp:base', |
1055 '../base/base.gyp:test_support_perf', | 1136 '../base/base.gyp:test_support_perf', |
1056 '../content/content_shell_and_tests.gyp:test_support_content', | 1137 '../content/content_shell_and_tests.gyp:test_support_content', |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1112 ], | 1193 ], |
1113 'sources': [ | 1194 'sources': [ |
1114 'autofill/content/browser/risk/fingerprint_browsertest.cc', | 1195 'autofill/content/browser/risk/fingerprint_browsertest.cc', |
1115 'autofill/content/renderer/password_form_conversion_utils_browsertes
t.cc', | 1196 'autofill/content/renderer/password_form_conversion_utils_browsertes
t.cc', |
1116 'dom_distiller/content/distillable_page_utils_browsertest.cc', | 1197 'dom_distiller/content/distillable_page_utils_browsertest.cc', |
1117 'dom_distiller/content/distiller_page_web_contents_browsertest.cc', | 1198 'dom_distiller/content/distiller_page_web_contents_browsertest.cc', |
1118 'password_manager/content/renderer/credential_manager_client_browser
test.cc', | 1199 'password_manager/content/renderer/credential_manager_client_browser
test.cc', |
1119 ], | 1200 ], |
1120 'conditions': [ | 1201 'conditions': [ |
1121 ['OS == "android"', { | 1202 ['OS == "android"', { |
| 1203 'sources' : [ |
| 1204 'test/android/browsertests_apk/components_browser_tests_android.
cc', |
| 1205 'test/android/browsertests_apk/components_browser_tests_android.
h', |
| 1206 'test/android/browsertests_apk/components_browser_tests_jni_onlo
ad.cc', |
| 1207 ], |
1122 'sources!': [ | 1208 'sources!': [ |
1123 'autofill/content/browser/risk/fingerprint_browsertest.cc', | 1209 'autofill/content/browser/risk/fingerprint_browsertest.cc', |
1124 ], | 1210 ], |
| 1211 'dependencies': [ |
| 1212 '../testing/android/native_test.gyp:native_test_util', |
| 1213 'components_browsertests_jni_headers', |
| 1214 ], |
1125 }], | 1215 }], |
1126 ['OS == "linux"', { | 1216 ['OS == "linux"', { |
1127 'sources': [ | 1217 'sources': [ |
1128 # content_extractor_browsertest is a standalone content extrac
tion tool built as | 1218 # content_extractor_browsertest is a standalone content extrac
tion tool built as |
1129 # a MANUAL component_browsertest. | 1219 # a MANUAL component_browsertest. |
1130 'dom_distiller/standalone/content_extractor_browsertest.cc', | 1220 'dom_distiller/standalone/content_extractor_browsertest.cc', |
1131 ], | 1221 ], |
1132 }], | 1222 }], |
1133 ['OS=="win"', { | 1223 ['OS=="win"', { |
1134 'resource_include_dirs': [ | 1224 'resource_include_dirs': [ |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 ], | 1337 ], |
1248 'variables': { | 1338 'variables': { |
1249 'test_suite_name': 'components_unittests', | 1339 'test_suite_name': 'components_unittests', |
1250 }, | 1340 }, |
1251 'includes': [ '../build/apk_test.gypi' ], | 1341 'includes': [ '../build/apk_test.gypi' ], |
1252 }, | 1342 }, |
1253 ], | 1343 ], |
1254 }], | 1344 }], |
1255 ], | 1345 ], |
1256 } | 1346 } |
OLD | NEW |