OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 | 6 |
7 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
9 } | 9 } |
10 | 10 |
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1329 } | 1329 } |
1330 | 1330 |
1331 if (is_android) { | 1331 if (is_android) { |
1332 set_sources_assignment_filter([]) | 1332 set_sources_assignment_filter([]) |
1333 sources += [ "debug/proc_maps_linux_unittest.cc" ] | 1333 sources += [ "debug/proc_maps_linux_unittest.cc" ] |
1334 set_sources_assignment_filter(sources_assignment_filter) | 1334 set_sources_assignment_filter(sources_assignment_filter) |
1335 } | 1335 } |
1336 } | 1336 } |
1337 | 1337 |
1338 if (is_android) { | 1338 if (is_android) { |
| 1339 # GYP: //base.gyp:base_jni_headers |
1339 generate_jni("base_jni_headers") { | 1340 generate_jni("base_jni_headers") { |
1340 sources = [ | 1341 sources = [ |
1341 "android/java/src/org/chromium/base/ApplicationStatus.java", | 1342 "android/java/src/org/chromium/base/ApplicationStatus.java", |
1342 "android/java/src/org/chromium/base/BuildInfo.java", | 1343 "android/java/src/org/chromium/base/BuildInfo.java", |
1343 "android/java/src/org/chromium/base/CommandLine.java", | 1344 "android/java/src/org/chromium/base/CommandLine.java", |
1344 "android/java/src/org/chromium/base/ContentUriUtils.java", | 1345 "android/java/src/org/chromium/base/ContentUriUtils.java", |
1345 "android/java/src/org/chromium/base/CpuFeatures.java", | 1346 "android/java/src/org/chromium/base/CpuFeatures.java", |
1346 "android/java/src/org/chromium/base/EventLog.java", | 1347 "android/java/src/org/chromium/base/EventLog.java", |
1347 "android/java/src/org/chromium/base/FieldTrialList.java", | 1348 "android/java/src/org/chromium/base/FieldTrialList.java", |
1348 "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java", | 1349 "android/java/src/org/chromium/base/ImportantFileWriterAndroid.java", |
1349 "android/java/src/org/chromium/base/JNIUtils.java", | 1350 "android/java/src/org/chromium/base/JNIUtils.java", |
1350 "android/java/src/org/chromium/base/library_loader/LibraryLoader.java", | 1351 "android/java/src/org/chromium/base/library_loader/LibraryLoader.java", |
1351 "android/java/src/org/chromium/base/MemoryPressureListener.java", | 1352 "android/java/src/org/chromium/base/MemoryPressureListener.java", |
1352 "android/java/src/org/chromium/base/JavaHandlerThread.java", | 1353 "android/java/src/org/chromium/base/JavaHandlerThread.java", |
1353 "android/java/src/org/chromium/base/PathService.java", | 1354 "android/java/src/org/chromium/base/PathService.java", |
1354 "android/java/src/org/chromium/base/PathUtils.java", | 1355 "android/java/src/org/chromium/base/PathUtils.java", |
1355 "android/java/src/org/chromium/base/PowerMonitor.java", | 1356 "android/java/src/org/chromium/base/PowerMonitor.java", |
1356 "android/java/src/org/chromium/base/SystemMessageHandler.java", | 1357 "android/java/src/org/chromium/base/SystemMessageHandler.java", |
1357 "android/java/src/org/chromium/base/SysUtils.java", | 1358 "android/java/src/org/chromium/base/SysUtils.java", |
1358 "android/java/src/org/chromium/base/ThreadUtils.java", | 1359 "android/java/src/org/chromium/base/ThreadUtils.java", |
1359 "android/java/src/org/chromium/base/TraceEvent.java", | 1360 "android/java/src/org/chromium/base/TraceEvent.java", |
1360 ] | 1361 ] |
1361 jni_package = "base" | 1362 jni_package = "base" |
1362 } | 1363 } |
1363 | 1364 |
| 1365 # GYP: //base.gyp:base_java |
1364 android_library("base_java") { | 1366 android_library("base_java") { |
1365 srcjar_deps = [ | 1367 srcjar_deps = [ |
1366 ":base_java_application_state", | 1368 ":base_java_application_state", |
1367 ":base_java_memory_pressure_level_list", | 1369 ":base_java_memory_pressure_level_list", |
1368 ":base_native_libraries_gen", | 1370 ":base_native_libraries_gen", |
1369 ] | 1371 ] |
1370 | 1372 |
1371 deps = [ | 1373 deps = [ |
1372 "//third_party/jsr-305:jsr_305_javalib" | 1374 "//third_party/jsr-305:jsr_305_javalib" |
1373 ] | 1375 ] |
1374 | 1376 |
1375 DEPRECATED_java_in_dir = "android/java/src" | 1377 DEPRECATED_java_in_dir = "android/java/src" |
1376 | 1378 |
1377 # A new version of NativeLibraries.java (with the actual correct values) | 1379 # A new version of NativeLibraries.java (with the actual correct values) |
1378 # will be created when creating an apk. | 1380 # will be created when creating an apk. |
1379 jar_excluded_patterns = [ | 1381 jar_excluded_patterns = [ |
1380 "*/NativeLibraries.class", | 1382 "*/NativeLibraries.class", |
1381 "*/NativeLibraries##*.class", | 1383 "*/NativeLibraries##*.class", |
1382 ] | 1384 ] |
1383 } | 1385 } |
1384 | 1386 |
| 1387 # GYP: //base.gyp:base_javatests |
| 1388 android_library("base_javatests") { |
| 1389 deps = [ |
| 1390 ":base_java", |
| 1391 ":base_java_test_support", |
| 1392 ] |
| 1393 DEPRECATED_java_in_dir = "android/javatests/src" |
| 1394 } |
| 1395 |
| 1396 # GYP: //base.gyp:base_java_test_support |
1385 android_library("base_java_test_support") { | 1397 android_library("base_java_test_support") { |
1386 deps = [ | 1398 deps = [ |
1387 ":base_java", | 1399 ":base_java", |
1388 ] | 1400 ] |
1389 DEPRECATED_java_in_dir = "test/android/javatests/src" | 1401 DEPRECATED_java_in_dir = "test/android/javatests/src" |
1390 } | 1402 } |
1391 | 1403 |
| 1404 # GYP: //base.gyp:base_java_application_state |
1392 java_cpp_template("base_java_application_state") { | 1405 java_cpp_template("base_java_application_state") { |
1393 sources = [ | 1406 sources = [ |
1394 "android/java/src/org/chromium/base/ApplicationState.template", | 1407 "android/java/src/org/chromium/base/ApplicationState.template", |
1395 ] | 1408 ] |
1396 inputs = [ | 1409 inputs = [ |
1397 "android/application_state_list.h" | 1410 "android/application_state_list.h" |
1398 ] | 1411 ] |
1399 | 1412 |
1400 package_name = "org/chromium/base" | 1413 package_name = "org/chromium/base" |
1401 } | 1414 } |
1402 | 1415 |
| 1416 # GYP: //base.gyp:base_java_memory_pressure_level_list |
1403 java_cpp_template("base_java_memory_pressure_level_list") { | 1417 java_cpp_template("base_java_memory_pressure_level_list") { |
1404 sources = [ | 1418 sources = [ |
1405 "android/java/src/org/chromium/base/MemoryPressureLevelList.template", | 1419 "android/java/src/org/chromium/base/MemoryPressureLevelList.template", |
1406 ] | 1420 ] |
1407 inputs = [ | 1421 inputs = [ |
1408 "memory/memory_pressure_level_list.h" | 1422 "memory/memory_pressure_level_list.h" |
1409 ] | 1423 ] |
1410 | 1424 |
1411 package_name = "org/chromium/base" | 1425 package_name = "org/chromium/base" |
1412 } | 1426 } |
1413 | 1427 |
| 1428 # GYP: //base/base.gyp:base_native_libraries_gen |
1414 java_cpp_template("base_native_libraries_gen") { | 1429 java_cpp_template("base_native_libraries_gen") { |
1415 sources = [ | 1430 sources = [ |
1416 "android/java/templates/NativeLibraries.template", | 1431 "android/java/templates/NativeLibraries.template", |
1417 ] | 1432 ] |
1418 package_name = "org/chromium/base/library_loader" | 1433 package_name = "org/chromium/base/library_loader" |
1419 } | 1434 } |
1420 | 1435 |
| 1436 # GYP: //base.gyp:base_java_unittest_support |
1421 android_library("base_java_unittest_support") { | 1437 android_library("base_java_unittest_support") { |
1422 deps = [":base_java"] | 1438 deps = [":base_java"] |
1423 java_files = [ | 1439 java_files = [ |
1424 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" | 1440 "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" |
1425 ] | 1441 ] |
1426 } | 1442 } |
1427 | 1443 |
| 1444 # GYP: //base.gyp:base_unittests_apk |
1428 unittest_apk("base_unittests_apk") { | 1445 unittest_apk("base_unittests_apk") { |
1429 deps = [ | 1446 deps = [ |
1430 ":base_java", | 1447 ":base_java", |
1431 ":base_java_unittest_support", | 1448 ":base_java_unittest_support", |
1432 ":base_unittests", | 1449 ":base_unittests", |
1433 ] | 1450 ] |
1434 unittests_dep = ":base_unittests" | 1451 unittests_dep = ":base_unittests" |
1435 } | 1452 } |
1436 } | 1453 } |
OLD | NEW |