| 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 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 sources -= [ | 862 sources -= [ |
| 863 "message_loop/message_pump_libevent.cc", | 863 "message_loop/message_pump_libevent.cc", |
| 864 "strings/string16.cc", | 864 "strings/string16.cc", |
| 865 | 865 |
| 866 # Not using sha1_win.cc because it may have caused a | 866 # Not using sha1_win.cc because it may have caused a |
| 867 # regression to page cycler moz. | 867 # regression to page cycler moz. |
| 868 "sha1_win.cc", | 868 "sha1_win.cc", |
| 869 ] | 869 ] |
| 870 | 870 |
| 871 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 871 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 872 cflags = [ "/wd4267" ] | 872 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 873 | 873 |
| 874 libs = [ | 874 libs = [ |
| 875 "cfgmgr32.lib", | 875 "cfgmgr32.lib", |
| 876 "netapi32.lib", | 876 "netapi32.lib", |
| 877 "powrprof.lib", | 877 "powrprof.lib", |
| 878 "setupapi.lib", | 878 "setupapi.lib", |
| 879 ] | 879 ] |
| 880 ldflags = [ | 880 ldflags = [ |
| 881 "/DELAYLOAD:cfgmgr32.dll", | 881 "/DELAYLOAD:cfgmgr32.dll", |
| 882 "/DELAYLOAD:powrprof.dll", | 882 "/DELAYLOAD:powrprof.dll", |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1021 ":base", | 1021 ":base", |
| 1022 "//base/third_party/dynamic_annotations", | 1022 "//base/third_party/dynamic_annotations", |
| 1023 "//third_party/icu", | 1023 "//third_party/icu", |
| 1024 ] | 1024 ] |
| 1025 | 1025 |
| 1026 if (is_android && !is_debug) { | 1026 if (is_android && !is_debug) { |
| 1027 configs -= [ "//build/config/compiler:optimize" ] | 1027 configs -= [ "//build/config/compiler:optimize" ] |
| 1028 configs += [ "//build/config/compiler:optimize_max" ] | 1028 configs += [ "//build/config/compiler:optimize_max" ] |
| 1029 } | 1029 } |
| 1030 | 1030 |
| 1031 if (is_win) { | 1031 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1032 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1032 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1033 cflags = [ "/wd4267" ] | |
| 1034 } | |
| 1035 } | 1033 } |
| 1036 | 1034 |
| 1037 source_set("prefs") { | 1035 source_set("prefs") { |
| 1038 sources = [ | 1036 sources = [ |
| 1039 "prefs/base_prefs_export.h", | 1037 "prefs/base_prefs_export.h", |
| 1040 "prefs/default_pref_store.cc", | 1038 "prefs/default_pref_store.cc", |
| 1041 "prefs/default_pref_store.h", | 1039 "prefs/default_pref_store.h", |
| 1042 "prefs/json_pref_store.cc", | 1040 "prefs/json_pref_store.cc", |
| 1043 "prefs/json_pref_store.h", | 1041 "prefs/json_pref_store.h", |
| 1044 "prefs/overlay_user_pref_store.cc", | 1042 "prefs/overlay_user_pref_store.cc", |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1432 deps += [ "//third_party/libevent" ] | 1430 deps += [ "//third_party/libevent" ] |
| 1433 } | 1431 } |
| 1434 | 1432 |
| 1435 if (is_android) { | 1433 if (is_android) { |
| 1436 deps += [ "//testing/android:native_test_native_code" ] | 1434 deps += [ "//testing/android:native_test_native_code" ] |
| 1437 set_sources_assignment_filter([]) | 1435 set_sources_assignment_filter([]) |
| 1438 sources += [ "debug/proc_maps_linux_unittest.cc" ] | 1436 sources += [ "debug/proc_maps_linux_unittest.cc" ] |
| 1439 set_sources_assignment_filter(sources_assignment_filter) | 1437 set_sources_assignment_filter(sources_assignment_filter) |
| 1440 } | 1438 } |
| 1441 | 1439 |
| 1442 if (is_win) { | 1440 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1443 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1441 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1444 cflags = [ "/wd4267" ] | |
| 1445 } | |
| 1446 } | 1442 } |
| 1447 | 1443 |
| 1448 if (is_android) { | 1444 if (is_android) { |
| 1449 # GYP: //base.gyp:base_jni_headers | 1445 # GYP: //base.gyp:base_jni_headers |
| 1450 generate_jni("base_jni_headers") { | 1446 generate_jni("base_jni_headers") { |
| 1451 sources = [ | 1447 sources = [ |
| 1452 "android/java/src/org/chromium/base/ApplicationStatus.java", | 1448 "android/java/src/org/chromium/base/ApplicationStatus.java", |
| 1453 "android/java/src/org/chromium/base/BuildInfo.java", | 1449 "android/java/src/org/chromium/base/BuildInfo.java", |
| 1454 "android/java/src/org/chromium/base/CommandLine.java", | 1450 "android/java/src/org/chromium/base/CommandLine.java", |
| 1455 "android/java/src/org/chromium/base/ContentUriUtils.java", | 1451 "android/java/src/org/chromium/base/ContentUriUtils.java", |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1541 | 1537 |
| 1542 # GYP: //base.gyp:base_java_unittest_support | 1538 # GYP: //base.gyp:base_java_unittest_support |
| 1543 android_library("base_java_unittest_support") { | 1539 android_library("base_java_unittest_support") { |
| 1544 deps = [ | 1540 deps = [ |
| 1545 ":base_java", | 1541 ":base_java", |
| 1546 ] | 1542 ] |
| 1547 java_files = | 1543 java_files = |
| 1548 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1544 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
| 1549 } | 1545 } |
| 1550 } | 1546 } |
| OLD | NEW |