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

Side by Side Diff: base/BUILD.gn

Issue 555373004: Compile specific parts of the Android build with -O2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments 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 | « no previous file | base/allocator/BUILD.gn » ('j') | cc/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
901 } 901 }
902 902
903 if (!use_glib) { 903 if (!use_glib) {
904 sources -= [ 904 sources -= [
905 "message_loop/message_pump_glib.cc", 905 "message_loop/message_pump_glib.cc",
906 "message_loop/message_pump_glib.h", 906 "message_loop/message_pump_glib.h",
907 ] 907 ]
908 } 908 }
909 909
910 configs += [ "//build/config/compiler:wexit_time_destructors" ] 910 configs += [ "//build/config/compiler:wexit_time_destructors" ]
911 if (is_android && !is_debug) {
912 configs -= [ "//build/config/compiler:optimize" ]
913 configs += [ "//build/config/compiler:optimize_max" ]
914 }
911 } 915 }
912 916
913 # This is the subset of files from base that should not be used with a dynamic 917 # This is the subset of files from base that should not be used with a dynamic
914 # library. Note that this library cannot depend on base because base depends on 918 # library. Note that this library cannot depend on base because base depends on
915 # base_static. 919 # base_static.
916 source_set("base_static") { 920 source_set("base_static") {
917 sources = [ 921 sources = [
918 "base_switches.cc", 922 "base_switches.cc",
919 "base_switches.h", 923 "base_switches.h",
920 "win/pe_image.cc", 924 "win/pe_image.cc",
921 "win/pe_image.h", 925 "win/pe_image.h",
922 ] 926 ]
927
928 if (is_android && !is_debug) {
929 configs -= [ "//build/config/compiler:optimize" ]
930 configs += [ "//build/config/compiler:optimize_max" ]
931 }
923 } 932 }
924 933
925 component("i18n") { 934 component("i18n") {
926 output_name = "base_i18n" 935 output_name = "base_i18n"
927 sources = [ 936 sources = [
928 "i18n/base_i18n_export.h", 937 "i18n/base_i18n_export.h",
929 "i18n/bidi_line_iterator.cc", 938 "i18n/bidi_line_iterator.cc",
930 "i18n/bidi_line_iterator.h", 939 "i18n/bidi_line_iterator.h",
931 "i18n/break_iterator.cc", 940 "i18n/break_iterator.cc",
932 "i18n/break_iterator.h", 941 "i18n/break_iterator.h",
(...skipping 28 matching lines...) Expand all
961 "i18n/utf8_validator_tables.cc", 970 "i18n/utf8_validator_tables.cc",
962 "i18n/utf8_validator_tables.h", 971 "i18n/utf8_validator_tables.h",
963 ] 972 ]
964 defines = [ "BASE_I18N_IMPLEMENTATION" ] 973 defines = [ "BASE_I18N_IMPLEMENTATION" ]
965 configs += [ "//build/config/compiler:wexit_time_destructors" ] 974 configs += [ "//build/config/compiler:wexit_time_destructors" ]
966 deps = [ 975 deps = [
967 ":base", 976 ":base",
968 "//base/third_party/dynamic_annotations", 977 "//base/third_party/dynamic_annotations",
969 "//third_party/icu", 978 "//third_party/icu",
970 ] 979 ]
980
981 if (is_android && !is_debug) {
982 configs -= [ "//build/config/compiler:optimize" ]
983 configs += [ "//build/config/compiler:optimize_max" ]
984 }
971 } 985 }
972 986
973 source_set("prefs") { 987 source_set("prefs") {
974 sources = [ 988 sources = [
975 "prefs/base_prefs_export.h", 989 "prefs/base_prefs_export.h",
976 "prefs/default_pref_store.cc", 990 "prefs/default_pref_store.cc",
977 "prefs/default_pref_store.h", 991 "prefs/default_pref_store.h",
978 "prefs/json_pref_store.cc", 992 "prefs/json_pref_store.cc",
979 "prefs/json_pref_store.h", 993 "prefs/json_pref_store.h",
980 "prefs/overlay_user_pref_store.cc", 994 "prefs/overlay_user_pref_store.cc",
(...skipping 25 matching lines...) Expand all
1006 "prefs/scoped_user_pref_update.cc", 1020 "prefs/scoped_user_pref_update.cc",
1007 "prefs/scoped_user_pref_update.h", 1021 "prefs/scoped_user_pref_update.h",
1008 "prefs/value_map_pref_store.cc", 1022 "prefs/value_map_pref_store.cc",
1009 "prefs/value_map_pref_store.h", 1023 "prefs/value_map_pref_store.h",
1010 "prefs/writeable_pref_store.h", 1024 "prefs/writeable_pref_store.h",
1011 ] 1025 ]
1012 1026
1013 defines = [ "BASE_PREFS_IMPLEMENTATION" ] 1027 defines = [ "BASE_PREFS_IMPLEMENTATION" ]
1014 1028
1015 deps = [ ":base" ] 1029 deps = [ ":base" ]
1030
1031 if (is_android && !is_debug) {
1032 configs -= [ "//build/config/compiler:optimize" ]
1033 configs += [ "//build/config/compiler:optimize_max" ]
1034 }
1016 } 1035 }
1017 1036
1018 source_set("prefs_test_support") { 1037 source_set("prefs_test_support") {
1019 testonly = true 1038 testonly = true
1020 sources = [ 1039 sources = [
1021 "prefs/mock_pref_change_callback.cc", 1040 "prefs/mock_pref_change_callback.cc",
1022 "prefs/mock_pref_change_callback.h", 1041 "prefs/mock_pref_change_callback.h",
1023 "prefs/pref_store_observer_mock.cc", 1042 "prefs/pref_store_observer_mock.cc",
1024 "prefs/pref_store_observer_mock.h", 1043 "prefs/pref_store_observer_mock.h",
1025 "prefs/testing_pref_service.cc", 1044 "prefs/testing_pref_service.cc",
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
1451 # GYP: //base.gyp:base_unittests_apk 1470 # GYP: //base.gyp:base_unittests_apk
1452 unittest_apk("base_unittests_apk") { 1471 unittest_apk("base_unittests_apk") {
1453 deps = [ 1472 deps = [
1454 ":base_java", 1473 ":base_java",
1455 ":base_java_unittest_support", 1474 ":base_java_unittest_support",
1456 ":base_unittests", 1475 ":base_unittests",
1457 ] 1476 ]
1458 unittests_dep = ":base_unittests" 1477 unittests_dep = ":base_unittests"
1459 } 1478 }
1460 } 1479 }
OLDNEW
« no previous file with comments | « no previous file | base/allocator/BUILD.gn » ('j') | cc/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698