| 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 component("base") { | 7 component("base") { |
| 8 sources = [ | 8 sources = [ |
| 9 "third_party/dmg_fp/dmg_fp.h", | 9 "third_party/dmg_fp/dmg_fp.h", |
| 10 "third_party/dmg_fp/g_fmt.cc", | 10 "third_party/dmg_fp/g_fmt.cc", |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 | 801 |
| 802 # Linux. | 802 # Linux. |
| 803 if (is_linux) { | 803 if (is_linux) { |
| 804 # TODO(brettw) this will need to be parameterized at some point. | 804 # TODO(brettw) this will need to be parameterized at some point. |
| 805 linux_configs = [ | 805 linux_configs = [ |
| 806 "//build/config/linux:glib", | 806 "//build/config/linux:glib", |
| 807 ] | 807 ] |
| 808 if (toolkit_uses_gtk) { | 808 if (toolkit_uses_gtk) { |
| 809 linux_configs += [ "//build/config/linux:gtk" ] | 809 linux_configs += [ "//build/config/linux:gtk" ] |
| 810 } | 810 } |
| 811 if (use_x11) { | |
| 812 linux_configs += [ | |
| 813 "//build/config/linux:x11", | |
| 814 ] | |
| 815 } | |
| 816 | 811 |
| 817 configs += linux_configs | 812 configs += linux_configs |
| 818 all_dependent_configs = linux_configs | 813 all_dependent_configs = linux_configs |
| 819 | 814 |
| 820 if (!is_android) { | 815 if (!is_android) { |
| 821 # These dependencies are not required on Android, and in the case | 816 # These dependencies are not required on Android, and in the case |
| 822 # of xdg_mime must be excluded due to licensing restrictions. | 817 # of xdg_mime must be excluded due to licensing restrictions. |
| 823 deps += [ | 818 deps += [ |
| 824 "//base/third_party/symbolize", | 819 "//base/third_party/symbolize", |
| 825 "//base/third_party/xdg_mime", | 820 "//base/third_party/xdg_mime", |
| 826 "//base/third_party/xdg_user_dirs", | 821 "//base/third_party/xdg_user_dirs", |
| 827 ] | 822 ] |
| 828 } | 823 } |
| 829 } else { | 824 } else { |
| 830 # Non-Linux. | 825 # Non-Linux. |
| 831 sources -= [ | 826 sources -= [ |
| 832 "nix/mime_util_xdg.cc", | 827 "nix/mime_util_xdg.cc", |
| 833 "nix/mime_util_xdg.h", | 828 "nix/mime_util_xdg.h", |
| 834 "nix/xdg_util.cc", | 829 "nix/xdg_util.cc", |
| 835 "nix/xdg_util.h", | 830 "nix/xdg_util.h", |
| 836 ] | 831 ] |
| 837 } | 832 } |
| 838 | 833 |
| 839 if (!use_x11) { | |
| 840 sources -= [ | |
| 841 "message_loop/message_pump_x11.cc", | |
| 842 "message_loop/message_pump_x11.h", | |
| 843 ] | |
| 844 } | |
| 845 | |
| 846 if (!use_glib) { | 834 if (!use_glib) { |
| 847 sources -= [ | 835 sources -= [ |
| 848 "message_loop/message_pump_glib.cc", | 836 "message_loop/message_pump_glib.cc", |
| 849 "message_loop/message_pump_glib.h", | 837 "message_loop/message_pump_glib.h", |
| 850 ] | 838 ] |
| 851 } | 839 } |
| 852 if (!toolkit_uses_gtk) { | 840 if (!toolkit_uses_gtk) { |
| 853 sources -= [ | 841 sources -= [ |
| 854 "message_loop/message_pump_gtk.cc", | 842 "message_loop/message_pump_gtk.cc", |
| 855 "message_loop/message_pump_gtk.h", | 843 "message_loop/message_pump_gtk.h", |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 918 # # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 906 # # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 919 # 'msvs_disabled_warnings': [ | 907 # 'msvs_disabled_warnings': [ |
| 920 # 4267, | 908 # 4267, |
| 921 # ], | 909 # ], |
| 922 # }], | 910 # }], |
| 923 #], | 911 #], |
| 924 #'variables': { | 912 #'variables': { |
| 925 # 'optimize': 'max', | 913 # 'optimize': 'max', |
| 926 #}, | 914 #}, |
| 927 } | 915 } |
| OLD | NEW |