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/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/config.gni") | 9 import("//build/config/android/config.gni") |
10 import("//build/config/android/rules.gni") | 10 import("//build/config/android/rules.gni") |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 configs += [ "//build/config/compiler:optimize_max" ] | 126 configs += [ "//build/config/compiler:optimize_max" ] |
127 } | 127 } |
128 | 128 |
129 deps += [ ":gfx_jni_headers" ] | 129 deps += [ ":gfx_jni_headers" ] |
130 libs = [ | 130 libs = [ |
131 "android", | 131 "android", |
132 "jnigraphics", | 132 "jnigraphics", |
133 ] | 133 ] |
134 } | 134 } |
135 | 135 |
136 # Linux. | |
137 if (is_linux) { | |
138 configs += [ "//build/config/linux:fontconfig" ] | |
139 } | |
140 | |
141 if (use_x11) { | 136 if (use_x11) { |
142 deps += [ "//ui/gfx/x" ] | 137 deps += [ "//ui/gfx/x" ] |
143 } | 138 } |
144 } | 139 } |
145 | 140 |
146 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry | 141 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry |
147 | 142 |
148 source_set("test_support") { | 143 source_set("test_support") { |
149 testonly = true | 144 testonly = true |
150 sources = [ | 145 sources = [ |
151 "test/fontconfig_util_linux.cc", | |
152 "test/fontconfig_util_linux.h", | |
153 "test/gfx_util.cc", | 146 "test/gfx_util.cc", |
154 "test/gfx_util.h", | 147 "test/gfx_util.h", |
155 ] | 148 ] |
156 | 149 |
157 public_deps = [ | 150 public_deps = [ |
158 ":gfx", | 151 ":gfx", |
159 ] | 152 ] |
160 | 153 |
161 deps = [ | 154 deps = [ |
162 "//base", | 155 "//base", |
163 "//base/test:test_support", | 156 "//base/test:test_support", |
164 "//skia", | 157 "//skia", |
165 "//testing/gtest", | 158 "//testing/gtest", |
166 "//ui/gfx/geometry", | 159 "//ui/gfx/geometry", |
167 ] | 160 ] |
168 | |
169 if (is_linux) { | |
170 configs += [ "//build/config/linux:fontconfig" ] | |
171 } | |
172 } | 161 } |
173 | 162 |
174 test("gfx_unittests") { | 163 test("gfx_unittests") { |
175 sources = [ | 164 sources = [ |
176 "animation/animation_container_unittest.cc", | 165 "animation/animation_container_unittest.cc", |
177 "animation/animation_unittest.cc", | 166 "animation/animation_unittest.cc", |
178 "animation/multi_animation_unittest.cc", | 167 "animation/multi_animation_unittest.cc", |
179 "animation/slide_animation_unittest.cc", | 168 "animation/slide_animation_unittest.cc", |
180 "animation/tween_unittest.cc", | 169 "animation/tween_unittest.cc", |
181 "codec/jpeg_codec_unittest.cc", | 170 "codec/jpeg_codec_unittest.cc", |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 if (is_android) { | 222 if (is_android) { |
234 generate_jni("gfx_jni_headers") { | 223 generate_jni("gfx_jni_headers") { |
235 sources = [ | 224 sources = [ |
236 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 225 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
237 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 226 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
238 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 227 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
239 ] | 228 ] |
240 jni_package = "gfx" | 229 jni_package = "gfx" |
241 } | 230 } |
242 } | 231 } |
OLD | NEW |