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

Side by Side Diff: ui/base/BUILD.gn

Issue 1061733002: Remove windows/mac/ios specific code from //ui (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix default try set Created 5 years, 8 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 | « ui/DEPS ('k') | ui/base/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/config/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 import("//build/config/android/rules.gni") 9 import("//build/config/android/rules.gni")
10 } 10 }
(...skipping 27 matching lines...) Expand all
38 "//base:i18n", 38 "//base:i18n",
39 "//third_party/icu", 39 "//third_party/icu",
40 "//url", 40 "//url",
41 ] 41 ]
42 42
43 if (is_linux) { 43 if (is_linux) {
44 configs += [ "//build/config/linux:fontconfig" ] 44 configs += [ "//build/config/linux:fontconfig" ]
45 } 45 }
46 46
47 libs = [] 47 libs = []
48 if (is_win) {
49 cflags = [
50 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int.
51 "/wd4324", # Structure was padded due to __declspec(align()), which is
52 # uninteresting.
53 ]
54 ldflags = [
55 "/DELAYLOAD:d2d1.dll",
56 "/DELAYLOAD:d3d10_1.dll",
57 "/DELAYLOAD:dwmapi.dll",
58 ]
59 libs += [
60 "d2d1.lib",
61 "d3d10_1.lib",
62 "dwmapi.lib",
63 "imm32.lib",
64 "d2d1.lib",
65 "dwmapi.lib",
66 "oleacc.lib",
67 ]
68 }
69
70 if (is_mac) {
71 deps += [ "//third_party/mozilla" ]
72
73 libs += [
74 "Accelerate.framework",
75 "AudioUnit.framework",
76 "CoreVideo.framework",
77 ]
78 }
79 48
80 if (use_x11) { 49 if (use_x11) {
81 #'all_dependent_settings': { 50 #'all_dependent_settings': {
82 #'ldflags': [ 51 #'ldflags': [
83 #'-L<(PRODUCT_DIR)', 52 #'-L<(PRODUCT_DIR)',
84 #], 53 #],
85 #}, 54 #},
86 configs += [ "//build/config/linux:x11" ] 55 configs += [ "//build/config/linux:x11" ]
87 } 56 }
88 57
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 "//testing/gmock", 109 "//testing/gmock",
141 "//testing/gtest", 110 "//testing/gtest",
142 "//third_party/icu", 111 "//third_party/icu",
143 "//ui/base", 112 "//ui/base",
144 "//ui/events:events_base", 113 "//ui/events:events_base",
145 "//ui/events:test_support", 114 "//ui/events:test_support",
146 "//ui/gfx:test_support", 115 "//ui/gfx:test_support",
147 "//url", 116 "//url",
148 ] 117 ]
149 118
150 if (is_win) {
151 ldflags = [
152 "/DELAYLOAD:d2d1.dll",
153 "/DELAYLOAD:d3d10_1.dll",
154 ]
155 libs = [
156 "d2d1.lib",
157 "d3d10_1.lib",
158 "imm32.lib",
159 "oleacc.lib",
160 ]
161
162 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
163 cflags = [ "/wd4267" ]
164 }
165
166 if (is_android) { 119 if (is_android) {
167 deps += [ 120 deps += [
168 #"testing/android/native_test.gyp:native_test_native_code" TODO(GYP) 121 #"testing/android/native_test.gyp:native_test_native_code" TODO(GYP)
169 ] 122 ]
170 } 123 }
171 124
172 if (use_x11) { 125 if (use_x11) {
173 configs += [ "//build/config/linux:x11" ] 126 configs += [ "//build/config/linux:x11" ]
174 127
175 deps += [ "//ui/gfx/x" ] 128 deps += [ "//ui/gfx/x" ]
176 129
177 datadeps = [ 130 datadeps = [
178 "//tools/xdisplaycheck", 131 "//tools/xdisplaycheck",
179 ] 132 ]
180 } 133 }
181 134
182 if (!is_win) { 135 sources -= [ "view_prop_unittest.cc" ]
183 sources -= [ "view_prop_unittest.cc" ]
184 }
185
186 if (is_mac) {
187 deps += [
188 "//third_party/mozilla",
189 #'ui_unittests_bundle', TODO(GYP)
190 ]
191 }
192 136
193 if (is_chromeos) { 137 if (is_chromeos) {
194 sources += [ "../chromeos/touch_exploration_controller_unittest.cc" ] 138 sources += [ "../chromeos/touch_exploration_controller_unittest.cc" ]
195 deps += [ 139 deps += [
196 "//chromeos", 140 "//chromeos",
197 "//ui/aura:test_support", 141 "//ui/aura:test_support",
198 "//ui/events:gesture_detection", 142 "//ui/events:gesture_detection",
199 "//ui/chromeos:ui_chromeos", 143 "//ui/chromeos:ui_chromeos",
200 ] 144 ]
201 } 145 }
202 } 146 }
203 } 147 }
204 } 148 }
205 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk). 149 # TODO(GYP) Mac (ui_unittest_bundle) and Android (ui_unittests_apk).
OLDNEW
« no previous file with comments | « ui/DEPS ('k') | ui/base/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698