OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
10 import("//ui/base/ui_features.gni") | 10 import("//ui/base/ui_features.gni") |
11 import("//ui/ozone/ozone.gni") | 11 import("//ui/ozone/ozone.gni") |
12 | 12 |
13 if (is_android) { | 13 if (is_android) { |
14 import("//build/config/android/config.gni") | 14 import("//build/config/android/config.gni") |
15 import("//build/config/android/rules.gni") | 15 import("//build/config/android/rules.gni") |
| 16 } else if (is_mac) { |
| 17 import("//build/config/mac/rules.gni") |
16 } | 18 } |
17 | 19 |
18 build_ime = !is_ios | 20 build_ime = !is_ios |
19 | 21 |
20 # As part of building Chrome on iOS, it is necessary to run a tool on | 22 # As part of building Chrome on iOS, it is necessary to run a tool on |
21 # the host to load datapack and generate output in a format defined | 23 # the host to load datapack and generate output in a format defined |
22 # by the platform (this is to support notifications). | 24 # by the platform (this is to support notifications). |
23 # | 25 # |
24 # Introduce a standalone target that build on both 'host' and 'target' | 26 # Introduce a standalone target that build on both 'host' and 'target' |
25 # toolset that just build the support to load datapack. The dependency | 27 # toolset that just build the support to load datapack. The dependency |
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 deps += [ | 886 deps += [ |
885 "//ui/events/platform/x11", | 887 "//ui/events/platform/x11", |
886 "//ui/gfx/x", | 888 "//ui/gfx/x", |
887 ] | 889 ] |
888 | 890 |
889 data_deps += [ "//tools/xdisplaycheck" ] | 891 data_deps += [ "//tools/xdisplaycheck" ] |
890 } | 892 } |
891 | 893 |
892 if (is_mac) { | 894 if (is_mac) { |
893 deps += [ | 895 deps += [ |
| 896 ":ui_unittests Framework", |
894 "//third_party/mozilla", | 897 "//third_party/mozilla", |
895 #'ui_base_tests_bundle', TODO(GYP) | |
896 ] | 898 ] |
897 } | 899 } |
898 | 900 |
899 if (use_aura || toolkit_views) { | 901 if (use_aura || toolkit_views) { |
900 sources += [ "dragdrop/os_exchange_data_unittest.cc" ] | 902 sources += [ "dragdrop/os_exchange_data_unittest.cc" ] |
901 | 903 |
902 deps += [ | 904 deps += [ |
903 "//ui/events", | 905 "//ui/events", |
904 "//ui/events/platform", | 906 "//ui/events/platform", |
905 ] | 907 ] |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 ] | 942 ] |
941 } | 943 } |
942 if (is_mac) { | 944 if (is_mac) { |
943 data += [ "$root_out_dir/ui_unittests Framework.framework/" ] | 945 data += [ "$root_out_dir/ui_unittests Framework.framework/" ] |
944 | 946 |
945 if (is_asan && symbol_level == 0) { | 947 if (is_asan && symbol_level == 0) { |
946 data += [ "$root_out_dir/ui_base_unittests.dSYM/" ] | 948 data += [ "$root_out_dir/ui_base_unittests.dSYM/" ] |
947 } | 949 } |
948 } | 950 } |
949 } | 951 } |
950 # TODO(GYP) Mac (ui_base_tests_bundle) | 952 |
| 953 if (is_mac) { |
| 954 mac_framework("ui_unittests Framework") { |
| 955 testonly = true |
| 956 deps = [ |
| 957 "//ui/resources:ui_test_pak_bundle_data", |
| 958 ] |
| 959 info_plist = "test/framework-Info.plist" |
| 960 } |
| 961 } |
OLD | NEW |