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 | 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 } |
11 | 11 |
12 # Several targets want to include this header file, and some of them are | 12 # Several targets want to include this header file, and some of them are |
13 # child dependencies of "gfx". Therefore, we separate it out here so multiple | 13 # child dependencies of "gfx". Therefore, we separate it out here so multiple |
14 # targets can all have a dependency for header checking purposes without | 14 # targets can all have a dependency for header checking purposes without |
15 # creating circular dependencies. | 15 # creating circular dependencies. |
16 source_set("gfx_export") { | 16 source_set("gfx_export") { |
17 sources = [ | 17 sources = [ |
18 "gfx_export.h", | 18 "gfx_export.h", |
19 ] | 19 ] |
20 } | 20 } |
21 | 21 |
22 source_set("switches") { | |
jamesr
2014/09/25 20:09:44
the switches are exported from the gfx component,
DaveMoore
2014/09/26 18:29:23
Copied switch instead.
On 2014/09/25 20:09:44, ja
| |
23 sources = [ | |
24 "switches.cc", | |
25 "switches.h", | |
26 ] | |
27 } | |
28 | |
22 component("gfx") { | 29 component("gfx") { |
23 sources = [ | 30 sources = [ |
24 "android/device_display_info.cc", | 31 "android/device_display_info.cc", |
25 "android/device_display_info.h", | 32 "android/device_display_info.h", |
26 "android/gfx_jni_registrar.cc", | 33 "android/gfx_jni_registrar.cc", |
27 "android/gfx_jni_registrar.h", | 34 "android/gfx_jni_registrar.h", |
28 "android/java_bitmap.cc", | 35 "android/java_bitmap.cc", |
29 "android/java_bitmap.h", | 36 "android/java_bitmap.h", |
30 "android/scroller.cc", | 37 "android/scroller.cc", |
31 "android/scroller.h", | 38 "android/scroller.h", |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 "selection_model.cc", | 187 "selection_model.cc", |
181 "selection_model.h", | 188 "selection_model.h", |
182 "sequential_id_generator.cc", | 189 "sequential_id_generator.cc", |
183 "sequential_id_generator.h", | 190 "sequential_id_generator.h", |
184 "shadow_value.cc", | 191 "shadow_value.cc", |
185 "shadow_value.h", | 192 "shadow_value.h", |
186 "skbitmap_operations.cc", | 193 "skbitmap_operations.cc", |
187 "skbitmap_operations.h", | 194 "skbitmap_operations.h", |
188 "skia_util.cc", | 195 "skia_util.cc", |
189 "skia_util.h", | 196 "skia_util.h", |
190 "switches.cc", | |
191 "switches.h", | |
192 "sys_color_change_listener.cc", | 197 "sys_color_change_listener.cc", |
193 "sys_color_change_listener.h", | 198 "sys_color_change_listener.h", |
194 "text_constants.h", | 199 "text_constants.h", |
195 "text_elider.cc", | 200 "text_elider.cc", |
196 "text_elider.h", | 201 "text_elider.h", |
197 "text_utils.cc", | 202 "text_utils.cc", |
198 "text_utils.h", | 203 "text_utils.h", |
199 "text_utils_android.cc", | 204 "text_utils_android.cc", |
200 "text_utils_ios.mm", | 205 "text_utils_ios.mm", |
201 "transform.cc", | 206 "transform.cc", |
(...skipping 12 matching lines...) Expand all Loading... | |
214 "win/singleton_hwnd.cc", | 219 "win/singleton_hwnd.cc", |
215 "win/singleton_hwnd.h", | 220 "win/singleton_hwnd.h", |
216 "win/window_impl.cc", | 221 "win/window_impl.cc", |
217 "win/window_impl.h", | 222 "win/window_impl.h", |
218 ] | 223 ] |
219 | 224 |
220 defines = [ "GFX_IMPLEMENTATION" ] | 225 defines = [ "GFX_IMPLEMENTATION" ] |
221 | 226 |
222 deps = [ | 227 deps = [ |
223 ":gfx_export", | 228 ":gfx_export", |
229 ":switches", | |
224 "//base:i18n", | 230 "//base:i18n", |
225 "//base:base_static", | 231 "//base:base_static", |
226 "//base/third_party/dynamic_annotations", | 232 "//base/third_party/dynamic_annotations", |
227 "//skia", | 233 "//skia", |
228 "//third_party/harfbuzz-ng", | 234 "//third_party/harfbuzz-ng", |
229 "//third_party/libpng", | 235 "//third_party/libpng", |
230 "//third_party/zlib", | 236 "//third_party/zlib", |
231 "//ui/gfx/geometry", | 237 "//ui/gfx/geometry", |
232 ] | 238 ] |
233 public_deps = [ | 239 public_deps = [ |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
556 if (is_android) { | 562 if (is_android) { |
557 generate_jni("gfx_jni_headers") { | 563 generate_jni("gfx_jni_headers") { |
558 sources = [ | 564 sources = [ |
559 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 565 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
560 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 566 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
561 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 567 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
562 ] | 568 ] |
563 jni_package = "gfx" | 569 jni_package = "gfx" |
564 } | 570 } |
565 } | 571 } |
OLD | NEW |