Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: base/base.gyp

Issue 525533003: Add content_shell_test_apk and a several dependencies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-content-shell-apk
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/BUILD.gn ('k') | build/android/gyp/apk_obfuscate.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'includes': [ 9 'includes': [
10 '../build/win_precompile.gypi', 10 '../build/win_precompile.gypi',
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1224 'third_party/xdg_mime/xdgmimemagic.h', 1224 'third_party/xdg_mime/xdgmimemagic.h',
1225 'third_party/xdg_mime/xdgmimeparent.c', 1225 'third_party/xdg_mime/xdgmimeparent.c',
1226 'third_party/xdg_mime/xdgmimeparent.h', 1226 'third_party/xdg_mime/xdgmimeparent.h',
1227 ], 1227 ],
1228 }, 1228 },
1229 ], 1229 ],
1230 }], 1230 }],
1231 ['OS == "android"', { 1231 ['OS == "android"', {
1232 'targets': [ 1232 'targets': [
1233 { 1233 {
1234 # GN: //base:base_jni_headers
1234 'target_name': 'base_jni_headers', 1235 'target_name': 'base_jni_headers',
1235 'type': 'none', 1236 'type': 'none',
1236 'sources': [ 1237 'sources': [
1237 'android/java/src/org/chromium/base/ApplicationStatus.java', 1238 'android/java/src/org/chromium/base/ApplicationStatus.java',
1238 'android/java/src/org/chromium/base/BuildInfo.java', 1239 'android/java/src/org/chromium/base/BuildInfo.java',
1239 'android/java/src/org/chromium/base/CommandLine.java', 1240 'android/java/src/org/chromium/base/CommandLine.java',
1240 'android/java/src/org/chromium/base/ContentUriUtils.java', 1241 'android/java/src/org/chromium/base/ContentUriUtils.java',
1241 'android/java/src/org/chromium/base/CpuFeatures.java', 1242 'android/java/src/org/chromium/base/CpuFeatures.java',
1242 'android/java/src/org/chromium/base/EventLog.java', 1243 'android/java/src/org/chromium/base/EventLog.java',
1243 'android/java/src/org/chromium/base/FieldTrialList.java', 1244 'android/java/src/org/chromium/base/FieldTrialList.java',
1244 'android/java/src/org/chromium/base/ImportantFileWriterAndroid.java' , 1245 'android/java/src/org/chromium/base/ImportantFileWriterAndroid.java' ,
1245 'android/java/src/org/chromium/base/JNIUtils.java', 1246 'android/java/src/org/chromium/base/JNIUtils.java',
1246 'android/java/src/org/chromium/base/library_loader/LibraryLoader.jav a', 1247 'android/java/src/org/chromium/base/library_loader/LibraryLoader.jav a',
1247 'android/java/src/org/chromium/base/MemoryPressureListener.java', 1248 'android/java/src/org/chromium/base/MemoryPressureListener.java',
1248 'android/java/src/org/chromium/base/JavaHandlerThread.java', 1249 'android/java/src/org/chromium/base/JavaHandlerThread.java',
1249 'android/java/src/org/chromium/base/PathService.java', 1250 'android/java/src/org/chromium/base/PathService.java',
1250 'android/java/src/org/chromium/base/PathUtils.java', 1251 'android/java/src/org/chromium/base/PathUtils.java',
1251 'android/java/src/org/chromium/base/PowerMonitor.java', 1252 'android/java/src/org/chromium/base/PowerMonitor.java',
1252 'android/java/src/org/chromium/base/SystemMessageHandler.java', 1253 'android/java/src/org/chromium/base/SystemMessageHandler.java',
1253 'android/java/src/org/chromium/base/SysUtils.java', 1254 'android/java/src/org/chromium/base/SysUtils.java',
1254 'android/java/src/org/chromium/base/ThreadUtils.java', 1255 'android/java/src/org/chromium/base/ThreadUtils.java',
1255 'android/java/src/org/chromium/base/TraceEvent.java', 1256 'android/java/src/org/chromium/base/TraceEvent.java',
1256 ], 1257 ],
1257 'variables': { 1258 'variables': {
1258 'jni_gen_package': 'base', 1259 'jni_gen_package': 'base',
1259 }, 1260 },
1260 'includes': [ '../build/jni_generator.gypi' ], 1261 'includes': [ '../build/jni_generator.gypi' ],
1261 }, 1262 },
1262 { 1263 {
1264 # TODO(GN)
1263 'target_name': 'base_unittests_jni_headers', 1265 'target_name': 'base_unittests_jni_headers',
1264 'type': 'none', 1266 'type': 'none',
1265 'sources': [ 1267 'sources': [
1266 'test/android/java/src/org/chromium/base/ContentUriTestUtils.java', 1268 'test/android/java/src/org/chromium/base/ContentUriTestUtils.java',
1267 ], 1269 ],
1268 'variables': { 1270 'variables': {
1269 'jni_gen_package': 'base', 1271 'jni_gen_package': 'base',
1270 }, 1272 },
1271 'includes': [ '../build/jni_generator.gypi' ], 1273 'includes': [ '../build/jni_generator.gypi' ],
1272 }, 1274 },
1273 { 1275 {
1276 # GN: //base:base_native_libraries_gen
1274 'target_name': 'base_native_libraries_gen', 1277 'target_name': 'base_native_libraries_gen',
1275 'type': 'none', 1278 'type': 'none',
1276 'sources': [ 1279 'sources': [
1277 'android/java/templates/NativeLibraries.template', 1280 'android/java/templates/NativeLibraries.template',
1278 ], 1281 ],
1279 'variables': { 1282 'variables': {
1280 'package_name': 'org/chromium/base/library_loader', 1283 'package_name': 'org/chromium/base/library_loader',
1281 'template_deps': [], 1284 'template_deps': [],
1282 }, 1285 },
1283 'includes': [ '../build/android/java_cpp_template.gypi' ], 1286 'includes': [ '../build/android/java_cpp_template.gypi' ],
1284 }, 1287 },
1285 { 1288 {
1289 # GN: //base:base_java
1286 'target_name': 'base_java', 1290 'target_name': 'base_java',
1287 'type': 'none', 1291 'type': 'none',
1288 'variables': { 1292 'variables': {
1289 'java_in_dir': '../base/android/java', 1293 'java_in_dir': '../base/android/java',
1290 'jar_excluded_classes': [ '*/NativeLibraries.class' ], 1294 'jar_excluded_classes': [ '*/NativeLibraries.class' ],
1291 }, 1295 },
1292 'dependencies': [ 1296 'dependencies': [
1293 'base_java_application_state', 1297 'base_java_application_state',
1294 'base_java_memory_pressure_level_list', 1298 'base_java_memory_pressure_level_list',
1295 'base_native_libraries_gen', 1299 'base_native_libraries_gen',
1296 ], 1300 ],
1297 'includes': [ '../build/java.gypi' ], 1301 'includes': [ '../build/java.gypi' ],
1298 'conditions': [ 1302 'conditions': [
1299 ['android_webview_build==0', { 1303 ['android_webview_build==0', {
1300 'dependencies': [ 1304 'dependencies': [
1301 '../third_party/jsr-305/jsr-305.gyp:jsr_305_javalib', 1305 '../third_party/jsr-305/jsr-305.gyp:jsr_305_javalib',
1302 ], 1306 ],
1303 }] 1307 }]
1304 ], 1308 ],
1305 }, 1309 },
1306 { 1310 {
1311 # GN: //base:base_java_unittest_support
1307 'target_name': 'base_java_unittest_support', 1312 'target_name': 'base_java_unittest_support',
1308 'type': 'none', 1313 'type': 'none',
1309 'dependencies': [ 1314 'dependencies': [
1310 'base_java', 1315 'base_java',
1311 ], 1316 ],
1312 'variables': { 1317 'variables': {
1313 'java_in_dir': '../base/test/android/java', 1318 'java_in_dir': '../base/test/android/java',
1314 }, 1319 },
1315 'includes': [ '../build/java.gypi' ], 1320 'includes': [ '../build/java.gypi' ],
1316 }, 1321 },
1317 { 1322 {
1323 # GN: //base:base_java_application_state
1318 'target_name': 'base_java_application_state', 1324 'target_name': 'base_java_application_state',
1319 'type': 'none', 1325 'type': 'none',
1320 # This target is used to auto-generate ApplicationState.java 1326 # This target is used to auto-generate ApplicationState.java
1321 # from a template file. The source file contains a list of 1327 # from a template file. The source file contains a list of
1322 # Java constant declarations matching the ones in 1328 # Java constant declarations matching the ones in
1323 # android/application_state_list.h. 1329 # android/application_state_list.h.
1324 'sources': [ 1330 'sources': [
1325 'android/java/src/org/chromium/base/ApplicationState.template', 1331 'android/java/src/org/chromium/base/ApplicationState.template',
1326 ], 1332 ],
1327 'variables': { 1333 'variables': {
1328 'package_name': 'org/chromium/base', 1334 'package_name': 'org/chromium/base',
1329 'template_deps': ['android/application_state_list.h'], 1335 'template_deps': ['android/application_state_list.h'],
1330 }, 1336 },
1331 'includes': [ '../build/android/java_cpp_template.gypi' ], 1337 'includes': [ '../build/android/java_cpp_template.gypi' ],
1332 }, 1338 },
1333 { 1339 {
1340 # GN: //base:base_java_memory_pressure_level_list
1334 'target_name': 'base_java_memory_pressure_level_list', 1341 'target_name': 'base_java_memory_pressure_level_list',
1335 'type': 'none', 1342 'type': 'none',
1336 'sources': [ 1343 'sources': [
1337 'android/java/src/org/chromium/base/MemoryPressureLevelList.template ', 1344 'android/java/src/org/chromium/base/MemoryPressureLevelList.template ',
1338 ], 1345 ],
1339 'variables': { 1346 'variables': {
1340 'package_name': 'org/chromium/base', 1347 'package_name': 'org/chromium/base',
1341 'template_deps': ['memory/memory_pressure_level_list.h'], 1348 'template_deps': ['memory/memory_pressure_level_list.h'],
1342 }, 1349 },
1343 'includes': [ '../build/android/java_cpp_template.gypi' ], 1350 'includes': [ '../build/android/java_cpp_template.gypi' ],
1344 }, 1351 },
1345 { 1352 {
1353 # GN: //base:base_java_test_support
1346 'target_name': 'base_java_test_support', 1354 'target_name': 'base_java_test_support',
1347 'type': 'none', 1355 'type': 'none',
1348 'dependencies': [ 1356 'dependencies': [
1349 'base_java', 1357 'base_java',
1350 ], 1358 ],
1351 'variables': { 1359 'variables': {
1352 'java_in_dir': '../base/test/android/javatests', 1360 'java_in_dir': '../base/test/android/javatests',
1353 }, 1361 },
1354 'includes': [ '../build/java.gypi' ], 1362 'includes': [ '../build/java.gypi' ],
1355 }, 1363 },
1356 { 1364 {
1365 # GN: //base:base_javatests
1357 'target_name': 'base_javatests', 1366 'target_name': 'base_javatests',
1358 'type': 'none', 1367 'type': 'none',
1359 'dependencies': [ 1368 'dependencies': [
1360 'base_java', 1369 'base_java',
1361 'base_java_test_support', 1370 'base_java_test_support',
1362 ], 1371 ],
1363 'variables': { 1372 'variables': {
1364 'java_in_dir': '../base/android/javatests', 1373 'java_in_dir': '../base/android/javatests',
1365 }, 1374 },
1366 'includes': [ '../build/java.gypi' ], 1375 'includes': [ '../build/java.gypi' ],
1367 }, 1376 },
1368 { 1377 {
1378 # TODO(GN)
1369 'target_name': 'chromium_android_linker', 1379 'target_name': 'chromium_android_linker',
1370 'type': 'shared_library', 1380 'type': 'shared_library',
1371 'conditions': [ 1381 'conditions': [
1372 # Avoid breaking the webview build because it 1382 # Avoid breaking the webview build because it
1373 # does not have <(android_ndk_root)/crazy_linker.gyp. 1383 # does not have <(android_ndk_root)/crazy_linker.gyp.
1374 # Note that webview never uses the linker anyway. 1384 # Note that webview never uses the linker anyway.
1375 ['android_webview_build == 0', { 1385 ['android_webview_build == 0', {
1376 'sources': [ 1386 'sources': [
1377 'android/linker/linker_jni.cc', 1387 'android/linker/linker_jni.cc',
1378 ], 1388 ],
1379 # The crazy linker is never instrumented. 1389 # The crazy linker is never instrumented.
1380 'cflags!': [ 1390 'cflags!': [
1381 '-finstrument-functions', 1391 '-finstrument-functions',
1382 ], 1392 ],
1383 'dependencies': [ 1393 'dependencies': [
1384 # The NDK contains the crazy_linker here: 1394 # The NDK contains the crazy_linker here:
1385 # '<(android_ndk_root)/crazy_linker.gyp:crazy_linker' 1395 # '<(android_ndk_root)/crazy_linker.gyp:crazy_linker'
1386 # However, we use our own fork. See bug 384700. 1396 # However, we use our own fork. See bug 384700.
1387 '../third_party/android_crazy_linker/crazy_linker.gyp:crazy_link er', 1397 '../third_party/android_crazy_linker/crazy_linker.gyp:crazy_link er',
1388 ], 1398 ],
1389 }], 1399 }],
1390 ], 1400 ],
1391 }, 1401 },
1392
1393 ],
1394 }],
1395 ['OS == "android"', {
1396 'targets': [
1397 { 1402 {
1403 # TODO(GN)
1398 'target_name': 'base_perftests_apk', 1404 'target_name': 'base_perftests_apk',
1399 'type': 'none', 1405 'type': 'none',
1400 'dependencies': [ 1406 'dependencies': [
1401 'base_perftests', 1407 'base_perftests',
1402 ], 1408 ],
1403 'variables': { 1409 'variables': {
1404 'test_suite_name': 'base_perftests', 1410 'test_suite_name': 'base_perftests',
1405 }, 1411 },
1406 'includes': [ '../build/apk_test.gypi' ], 1412 'includes': [ '../build/apk_test.gypi' ],
1407 }, 1413 },
1414 {
1415 # GN: //base:base_unittests_apk
1416 'target_name': 'base_unittests_apk',
1417 'type': 'none',
1418 'dependencies': [
1419 'base_java',
1420 'base_unittests',
1421 ],
1422 'variables': {
1423 'test_suite_name': 'base_unittests',
1424 },
1425 'includes': [ '../build/apk_test.gypi' ],
1426 },
1408 ], 1427 ],
1409 }], 1428 }],
1410 ['OS == "win"', { 1429 ['OS == "win"', {
1411 'targets': [ 1430 'targets': [
1412 { 1431 {
1413 'target_name': 'debug_message', 1432 'target_name': 'debug_message',
1414 'type': 'executable', 1433 'type': 'executable',
1415 'sources': [ 1434 'sources': [
1416 'debug_message.cc', 1435 'debug_message.cc',
1417 ], 1436 ],
1418 'msvs_settings': { 1437 'msvs_settings': {
1419 'VCLinkerTool': { 1438 'VCLinkerTool': {
1420 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS 1439 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
1421 }, 1440 },
1422 }, 1441 },
1423 }, 1442 },
1424 ], 1443 ],
1425 }], 1444 }],
1426 ['OS == "android"', {
1427 'targets': [
1428 {
1429 'target_name': 'base_unittests_apk',
1430 'type': 'none',
1431 'dependencies': [
1432 'base_java',
1433 'base_unittests',
1434 ],
1435 'variables': {
1436 'test_suite_name': 'base_unittests',
1437 },
1438 'includes': [ '../build/apk_test.gypi' ],
1439 },
1440 ],
1441 }],
1442 ['test_isolation_mode != "noop"', { 1445 ['test_isolation_mode != "noop"', {
1443 'targets': [ 1446 'targets': [
1444 { 1447 {
1445 'target_name': 'base_unittests_run', 1448 'target_name': 'base_unittests_run',
1446 'type': 'none', 1449 'type': 'none',
1447 'dependencies': [ 1450 'dependencies': [
1448 'base_unittests', 1451 'base_unittests',
1449 ], 1452 ],
1450 'includes': [ 1453 'includes': [
1451 '../build/isolate.gypi', 1454 '../build/isolate.gypi',
1452 'base_unittests.isolate', 1455 'base_unittests.isolate',
1453 ], 1456 ],
1454 'sources': [ 1457 'sources': [
1455 'base_unittests.isolate', 1458 'base_unittests.isolate',
1456 ], 1459 ],
1457 'conditions': [ 1460 'conditions': [
1458 ['use_x11 == 1', { 1461 ['use_x11 == 1', {
1459 'dependencies': [ 1462 'dependencies': [
1460 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', 1463 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
1461 ], 1464 ],
1462 }], 1465 }],
1463 ], 1466 ],
1464 }, 1467 },
1465 ], 1468 ],
1466 }], 1469 }],
1467 ], 1470 ],
1468 } 1471 }
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | build/android/gyp/apk_obfuscate.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698