Chromium Code Reviews| 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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 781 linux_configs = [ | 781 linux_configs = [ |
| 782 "//build/config/linux:glib", | 782 "//build/config/linux:glib", |
| 783 ] | 783 ] |
| 784 if (toolkit_uses_gtk) { | 784 if (toolkit_uses_gtk) { |
| 785 linux_configs += [ "//build/config/linux:gtk" ] | 785 linux_configs += [ "//build/config/linux:gtk" ] |
| 786 } | 786 } |
| 787 if (use_x11) { | 787 if (use_x11) { |
| 788 linux_configs += [ | 788 linux_configs += [ |
| 789 "//build/config/linux:x11", | 789 "//build/config/linux:x11", |
| 790 ] | 790 ] |
| 791 } else { | |
| 792 # On non-Linux platforms, the X11 files will already have been filtered | |
| 793 # out using the sources assignment filter. | |
| 794 sources -= [ | |
| 795 "message_loop/message_pump_x11.cc", | |
| 796 "message_loop/message_pump_x11.h", | |
| 797 ] | |
| 798 } | 791 } |
| 799 | 792 |
| 800 configs += linux_configs | 793 configs += linux_configs |
| 801 all_dependent_configs = linux_configs | 794 all_dependent_configs = linux_configs |
| 802 | 795 |
| 803 if (!is_android) { | 796 if (!is_android) { |
| 804 # These dependencies are not required on Android, and in the case | 797 # These dependencies are not required on Android, and in the case |
| 805 # of xdg_mime must be excluded due to licensing restrictions. | 798 # of xdg_mime must be excluded due to licensing restrictions. |
| 806 deps += [ | 799 deps += [ |
| 807 "//base/third_party/symbolize", | 800 "//base/third_party/symbolize", |
| 808 "//base/third_party/xdg_mime", | 801 "//base/third_party/xdg_mime", |
| 809 "//base/third_party/xdg_user_dirs", | 802 "//base/third_party/xdg_user_dirs", |
| 810 ] | 803 ] |
| 811 } | 804 } |
| 812 } else { | 805 } else { |
| 813 # Non-Linux. | 806 # Non-Linux. |
| 814 sources -= [ | 807 sources -= [ |
| 815 "nix/mime_util_xdg.cc", | 808 "nix/mime_util_xdg.cc", |
| 816 "nix/mime_util_xdg.h", | 809 "nix/mime_util_xdg.h", |
| 817 "nix/xdg_util.cc", | 810 "nix/xdg_util.cc", |
| 818 "nix/xdg_util.h", | 811 "nix/xdg_util.h", |
| 819 ] | 812 ] |
| 820 } | 813 } |
| 821 | 814 |
| 815 if (!use_x11) { | |
|
scottmg
2014/04/11 21:43:26
why is this better?
brettw
2014/04/11 23:05:00
Before this was only done on Linux when we weren't
scottmg
2014/04/11 23:12:31
Oops, sorry, can't read.
| |
| 816 sources -= [ | |
| 817 "message_loop/message_pump_x11.cc", | |
| 818 "message_loop/message_pump_x11.h", | |
| 819 ] | |
| 820 } | |
| 821 | |
| 822 if (!use_glib) { | 822 if (!use_glib) { |
| 823 sources -= [ | 823 sources -= [ |
| 824 "message_loop/message_pump_glib.cc", | 824 "message_loop/message_pump_glib.cc", |
| 825 "message_loop/message_pump_glib.h", | 825 "message_loop/message_pump_glib.h", |
| 826 ] | 826 ] |
| 827 } | 827 } |
| 828 if (!toolkit_uses_gtk) { | 828 if (!toolkit_uses_gtk) { |
| 829 sources -= [ | 829 sources -= [ |
| 830 "message_loop/message_pump_gtk.cc", | 830 "message_loop/message_pump_gtk.cc", |
| 831 "message_loop/message_pump_gtk.h", | 831 "message_loop/message_pump_gtk.h", |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 894 # # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 894 # # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 895 # 'msvs_disabled_warnings': [ | 895 # 'msvs_disabled_warnings': [ |
| 896 # 4267, | 896 # 4267, |
| 897 # ], | 897 # ], |
| 898 # }], | 898 # }], |
| 899 #], | 899 #], |
| 900 #'variables': { | 900 #'variables': { |
| 901 # 'optimize': 'max', | 901 # 'optimize': 'max', |
| 902 #}, | 902 #}, |
| 903 } | 903 } |
| OLD | NEW |