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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 } | 816 } |
817 | 817 |
818 if (!use_glib) { | 818 if (!use_glib) { |
819 sources -= [ | 819 sources -= [ |
820 "message_loop/message_pump_glib.cc", | 820 "message_loop/message_pump_glib.cc", |
821 "message_loop/message_pump_glib.h", | 821 "message_loop/message_pump_glib.h", |
822 ] | 822 ] |
823 } | 823 } |
824 | 824 |
825 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 825 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
826 if (is_android && !is_debug) { | 826 if (!is_debug) { |
827 configs -= [ "//build/config/compiler:optimize" ] | 827 configs -= [ "//build/config/compiler:optimize" ] |
828 configs += [ "//build/config/compiler:optimize_max" ] | 828 configs += [ "//build/config/compiler:optimize_max" ] |
829 } | 829 } |
830 | 830 |
831 allow_circular_includes_from = public_deps | 831 allow_circular_includes_from = public_deps |
832 } | 832 } |
833 | 833 |
834 # This is the subset of files from base that should not be used with a dynamic | 834 # This is the subset of files from base that should not be used with a dynamic |
835 # library. Note that this library cannot depend on base because base depends on | 835 # library. Note that this library cannot depend on base because base depends on |
836 # base_static. | 836 # base_static. |
837 source_set("base_static") { | 837 source_set("base_static") { |
838 sources = [ | 838 sources = [ |
839 "base_switches.cc", | 839 "base_switches.cc", |
840 "base_switches.h", | 840 "base_switches.h", |
841 "win/pe_image.cc", | 841 "win/pe_image.cc", |
842 "win/pe_image.h", | 842 "win/pe_image.h", |
843 ] | 843 ] |
844 | 844 |
845 if (is_android && !is_debug) { | 845 if (!is_debug) { |
846 configs -= [ "//build/config/compiler:optimize" ] | 846 configs -= [ "//build/config/compiler:optimize" ] |
847 configs += [ "//build/config/compiler:optimize_max" ] | 847 configs += [ "//build/config/compiler:optimize_max" ] |
848 } | 848 } |
849 } | 849 } |
850 | 850 |
851 component("i18n") { | 851 component("i18n") { |
852 output_name = "base_i18n" | 852 output_name = "base_i18n" |
853 sources = [ | 853 sources = [ |
854 "i18n/base_i18n_export.h", | 854 "i18n/base_i18n_export.h", |
855 "i18n/bidi_line_iterator.cc", | 855 "i18n/bidi_line_iterator.cc", |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 "i18n/utf8_validator_tables.h", | 888 "i18n/utf8_validator_tables.h", |
889 ] | 889 ] |
890 defines = [ "BASE_I18N_IMPLEMENTATION" ] | 890 defines = [ "BASE_I18N_IMPLEMENTATION" ] |
891 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 891 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
892 deps = [ | 892 deps = [ |
893 ":base", | 893 ":base", |
894 "//base/third_party/dynamic_annotations", | 894 "//base/third_party/dynamic_annotations", |
895 "//third_party/icu", | 895 "//third_party/icu", |
896 ] | 896 ] |
897 | 897 |
898 if (is_android && !is_debug) { | 898 if (!is_debug) { |
899 configs -= [ "//build/config/compiler:optimize" ] | 899 configs -= [ "//build/config/compiler:optimize" ] |
900 configs += [ "//build/config/compiler:optimize_max" ] | 900 configs += [ "//build/config/compiler:optimize_max" ] |
901 } | 901 } |
902 | 902 |
903 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 903 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
904 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 904 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
905 } | 905 } |
906 | 906 |
907 if (is_win || (is_linux && !is_chromeos)) { | 907 if (is_win || (is_linux && !is_chromeos)) { |
908 # TODO(GYP): Figure out which of these work and are needed on other platforms. | 908 # TODO(GYP): Figure out which of these work and are needed on other platforms. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 "prefs/value_map_pref_store.h", | 1000 "prefs/value_map_pref_store.h", |
1001 "prefs/writeable_pref_store.h", | 1001 "prefs/writeable_pref_store.h", |
1002 ] | 1002 ] |
1003 | 1003 |
1004 defines = [ "BASE_PREFS_IMPLEMENTATION" ] | 1004 defines = [ "BASE_PREFS_IMPLEMENTATION" ] |
1005 | 1005 |
1006 deps = [ | 1006 deps = [ |
1007 ":base", | 1007 ":base", |
1008 ] | 1008 ] |
1009 | 1009 |
1010 if (is_android && !is_debug) { | 1010 if (!is_debug) { |
1011 configs -= [ "//build/config/compiler:optimize" ] | 1011 configs -= [ "//build/config/compiler:optimize" ] |
1012 configs += [ "//build/config/compiler:optimize_max" ] | 1012 configs += [ "//build/config/compiler:optimize_max" ] |
1013 } | 1013 } |
1014 } | 1014 } |
1015 | 1015 |
1016 source_set("prefs_test_support") { | 1016 source_set("prefs_test_support") { |
1017 testonly = true | 1017 testonly = true |
1018 sources = [ | 1018 sources = [ |
1019 "prefs/mock_pref_change_callback.cc", | 1019 "prefs/mock_pref_change_callback.cc", |
1020 "prefs/mock_pref_change_callback.h", | 1020 "prefs/mock_pref_change_callback.h", |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1513 | 1513 |
1514 # GYP: //base.gyp:base_java_unittest_support | 1514 # GYP: //base.gyp:base_java_unittest_support |
1515 android_library("base_java_unittest_support") { | 1515 android_library("base_java_unittest_support") { |
1516 deps = [ | 1516 deps = [ |
1517 ":base_java", | 1517 ":base_java", |
1518 ] | 1518 ] |
1519 java_files = | 1519 java_files = |
1520 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] | 1520 [ "test/android/java/src/org/chromium/base/ContentUriTestUtils.java" ] |
1521 } | 1521 } |
1522 } | 1522 } |
OLD | NEW |