| 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 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 if (is_android) { | 8 if (is_android) { |
| 9 import("//build/config/android/rules.gni") | 9 import("//build/config/android/rules.gni") |
| 10 } | 10 } |
| (...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 sources -= [ | 857 sources -= [ |
| 858 "message_loop/message_pump_libevent.cc", | 858 "message_loop/message_pump_libevent.cc", |
| 859 "strings/string16.cc", | 859 "strings/string16.cc", |
| 860 | 860 |
| 861 # Not using sha1_win.cc because it may have caused a | 861 # Not using sha1_win.cc because it may have caused a |
| 862 # regression to page cycler moz. | 862 # regression to page cycler moz. |
| 863 "sha1_win.cc", | 863 "sha1_win.cc", |
| 864 ] | 864 ] |
| 865 | 865 |
| 866 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 866 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 867 cflags = [ "/wd4267" ] | 867 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 868 | 868 |
| 869 libs = [ | 869 libs = [ |
| 870 "cfgmgr32.lib", | 870 "cfgmgr32.lib", |
| 871 "netapi32.lib", | 871 "netapi32.lib", |
| 872 "powrprof.lib", | 872 "powrprof.lib", |
| 873 "setupapi.lib", | 873 "setupapi.lib", |
| 874 ] | 874 ] |
| 875 ldflags = [ | 875 ldflags = [ |
| 876 "/DELAYLOAD:cfgmgr32.dll", | 876 "/DELAYLOAD:cfgmgr32.dll", |
| 877 "/DELAYLOAD:powrprof.dll", | 877 "/DELAYLOAD:powrprof.dll", |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1016 ":base", | 1016 ":base", |
| 1017 "//base/third_party/dynamic_annotations", | 1017 "//base/third_party/dynamic_annotations", |
| 1018 "//third_party/icu", | 1018 "//third_party/icu", |
| 1019 ] | 1019 ] |
| 1020 | 1020 |
| 1021 if (is_android && !is_debug) { | 1021 if (is_android && !is_debug) { |
| 1022 configs -= [ "//build/config/compiler:optimize" ] | 1022 configs -= [ "//build/config/compiler:optimize" ] |
| 1023 configs += [ "//build/config/compiler:optimize_max" ] | 1023 configs += [ "//build/config/compiler:optimize_max" ] |
| 1024 } | 1024 } |
| 1025 | 1025 |
| 1026 if (is_win) { | 1026 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1027 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1027 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1028 cflags = [ "/wd4267" ] | |
| 1029 } | |
| 1030 } | 1028 } |
| 1031 | 1029 |
| 1032 source_set("prefs") { | 1030 source_set("prefs") { |
| 1033 sources = [ | 1031 sources = [ |
| 1034 "prefs/base_prefs_export.h", | 1032 "prefs/base_prefs_export.h", |
| 1035 "prefs/default_pref_store.cc", | 1033 "prefs/default_pref_store.cc", |
| 1036 "prefs/default_pref_store.h", | 1034 "prefs/default_pref_store.h", |
| 1037 "prefs/json_pref_store.cc", | 1035 "prefs/json_pref_store.cc", |
| 1038 "prefs/json_pref_store.h", | 1036 "prefs/json_pref_store.h", |
| 1039 "prefs/overlay_user_pref_store.cc", | 1037 "prefs/overlay_user_pref_store.cc", |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1421 deps += [ "//third_party/libevent" ] | 1419 deps += [ "//third_party/libevent" ] |
| 1422 } | 1420 } |
| 1423 | 1421 |
| 1424 if (is_android) { | 1422 if (is_android) { |
| 1425 deps += [ "//testing/android:native_test_native_code" ] | 1423 deps += [ "//testing/android:native_test_native_code" ] |
| 1426 set_sources_assignment_filter([]) | 1424 set_sources_assignment_filter([]) |
| 1427 sources += [ "debug/proc_maps_linux_unittest.cc" ] | 1425 sources += [ "debug/proc_maps_linux_unittest.cc" ] |
| 1428 set_sources_assignment_filter(sources_assignment_filter) | 1426 set_sources_assignment_filter(sources_assignment_filter) |
| 1429 } | 1427 } |
| 1430 | 1428 |
| 1431 if (is_win) { | 1429 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1432 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1430 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1433 cflags = [ "/wd4267" ] | |
| 1434 } | |
| 1435 } | 1431 } |
| 1436 | 1432 |
| 1437 if (is_android) { | 1433 if (is_android) { |
| 1438 # GYP: //base.gyp:base_jni_headers | 1434 # GYP: //base.gyp:base_jni_headers |
| 1439 generate_jni("base_jni_headers") { | 1435 generate_jni("base_jni_headers") { |
| 1440 sources = [ | 1436 sources = [ |
| 1441 "android/java/src/org/chromium/base/ApplicationStatus.java", | 1437 "android/java/src/org/chromium/base/ApplicationStatus.java", |
| 1442 "android/java/src/org/chromium/base/BuildInfo.java", | 1438 "android/java/src/org/chromium/base/BuildInfo.java", |
| 1443 "android/java/src/org/chromium/base/CommandLine.java", | 1439 "android/java/src/org/chromium/base/CommandLine.java", |
| 1444 "android/java/src/org/chromium/base/ContentUriUtils.java", | 1440 "android/java/src/org/chromium/base/ContentUriUtils.java", |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1530 | 1526 |
| 1531 # GYP: //base.gyp:base_java_unittest_support | 1527 # GYP: //base.gyp:base_java_unittest_support |
| 1532 android_library("base_java_unittest_support") { | 1528 android_library("base_java_unittest_support") { |
| 1533 deps = [ | 1529 deps = [ |
| 1534 ":base_java", | 1530 ":base_java", |
| 1535 ] | 1531 ] |
| 1536 java_files = | 1532 java_files = |
| 1537 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1533 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
| 1538 } | 1534 } |
| 1539 } | 1535 } |
| OLD | NEW |