| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 "win/singleton_hwnd.cc", | 87 "win/singleton_hwnd.cc", |
| 88 "win/singleton_hwnd.h", | 88 "win/singleton_hwnd.h", |
| 89 "win/window_impl.cc", | 89 "win/window_impl.cc", |
| 90 "win/window_impl.h", | 90 "win/window_impl.h", |
| 91 ] | 91 ] |
| 92 | 92 |
| 93 defines = [ "GFX_IMPLEMENTATION" ] | 93 defines = [ "GFX_IMPLEMENTATION" ] |
| 94 | 94 |
| 95 deps = [ | 95 deps = [ |
| 96 ":gfx_export", | 96 ":gfx_export", |
| 97 "//base/third_party/dynamic_annotations", | |
| 98 "//base:base_static", | 97 "//base:base_static", |
| 99 "//base:i18n", | 98 "//base:i18n", |
| 99 "//base/third_party/dynamic_annotations", |
| 100 "//skia", | 100 "//skia", |
| 101 "//third_party:jpeg", |
| 101 "//third_party/libjpeg_turbo:libjpeg", | 102 "//third_party/libjpeg_turbo:libjpeg", |
| 102 "//third_party/libpng", | 103 "//third_party/libpng", |
| 103 "//third_party/zlib", | 104 "//third_party/zlib", |
| 104 "//third_party:jpeg", | |
| 105 "//ui/gfx/geometry", | 105 "//ui/gfx/geometry", |
| 106 ] | 106 ] |
| 107 public_deps = [ | 107 public_deps = [ |
| 108 "//base", | 108 "//base", |
| 109 "//skia", | 109 "//skia", |
| 110 "//third_party/icu", | 110 "//third_party/icu", |
| 111 ] | 111 ] |
| 112 | 112 |
| 113 # Android. | 113 # Android. |
| 114 if (is_android) { | 114 if (is_android) { |
| 115 sources -= [ | 115 sources -= [ |
| 116 "animation/throb_animation.cc", | 116 "animation/throb_animation.cc", |
| 117 "display_observer.cc", | 117 "display_observer.cc", |
| 118 "screen_stub.cc", | 118 "screen_stub.cc", |
| 119 ] | 119 ] |
| 120 | 120 |
| 121 # TODO(jdduke): Revisit optimization after gauging benefit, crbug/419051. | 121 # TODO(jdduke): Revisit optimization after gauging benefit, crbug/419051. |
| 122 if (!is_debug) { | 122 if (!is_debug) { |
| 123 configs -= [ "//build/config/compiler:optimize" ] | 123 configs -= [ "//build/config/compiler:optimize" ] |
| 124 configs += [ "//build/config/compiler:optimize_max" ] | 124 configs += [ "//build/config/compiler:optimize_max" ] |
| 125 } | 125 } |
| 126 | 126 |
| 127 deps += [ ":gfx_jni_headers" ] | 127 deps += [ ":gfx_jni_headers" ] |
| 128 libs = [ | 128 libs = [ |
| 129 "android", | 129 "android", |
| 130 "jnigraphics", | 130 "jnigraphics", |
| 131 ] | 131 ] |
| 132 } | 132 } |
| 133 | 133 |
| 134 if (use_ozone) { |
| 135 sources += [ "native_pixmap_handle_ozone.h" ] |
| 136 } |
| 137 |
| 134 if (use_x11) { | 138 if (use_x11) { |
| 135 deps += [ "//ui/gfx/x" ] | 139 deps += [ "//ui/gfx/x" ] |
| 136 } | 140 } |
| 137 } | 141 } |
| 138 | 142 |
| 139 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry | 143 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry |
| 140 | 144 |
| 141 source_set("test_support") { | 145 source_set("test_support") { |
| 142 testonly = true | 146 testonly = true |
| 143 sources = [ | 147 sources = [ |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 "transform_unittest.cc", | 193 "transform_unittest.cc", |
| 190 "transform_util_unittest.cc", | 194 "transform_util_unittest.cc", |
| 191 ] | 195 ] |
| 192 | 196 |
| 193 deps = [ | 197 deps = [ |
| 194 ":gfx", | 198 ":gfx", |
| 195 ":test_support", | 199 ":test_support", |
| 196 "//base", | 200 "//base", |
| 197 "//base/test:test_support", | 201 "//base/test:test_support", |
| 198 "//skia", | 202 "//skia", |
| 203 "//testing/gtest", |
| 199 "//third_party/icu:icuuc", | 204 "//third_party/icu:icuuc", |
| 200 "//third_party/libpng", | 205 "//third_party/libpng", |
| 201 "//third_party/zlib", | 206 "//third_party/zlib", |
| 202 "//testing/gtest", | |
| 203 "//ui/base", | 207 "//ui/base", |
| 204 "//ui/gfx/geometry", | 208 "//ui/gfx/geometry", |
| 205 ] | 209 ] |
| 206 | 210 |
| 207 if (is_android) { | 211 if (is_android) { |
| 208 sources -= [ | 212 sources -= [ |
| 209 # Do not run display_change_notifier_unittest.cc on Android because it | 213 # Do not run display_change_notifier_unittest.cc on Android because it |
| 210 # does not compile display_observer.cc | 214 # does not compile display_observer.cc |
| 211 "display_change_notifier_unittest.cc", | 215 "display_change_notifier_unittest.cc", |
| 212 ] | 216 ] |
| 213 | 217 |
| 214 deps += [ | 218 deps += [ |
| 215 #'../../testing/android/native_test.gyp:native_test_native_code', TODO(GYP
) | 219 #'../../testing/android/native_test.gyp:native_test_native_code', TODO(GYP
) |
| 216 ] | 220 ] |
| 217 } | 221 } |
| 218 } | 222 } |
| 219 | 223 |
| 220 if (is_android) { | 224 if (is_android) { |
| 221 generate_jni("gfx_jni_headers") { | 225 generate_jni("gfx_jni_headers") { |
| 222 sources = [ | 226 sources = [ |
| 223 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 227 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
| 224 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 228 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
| 225 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 229 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
| 226 ] | 230 ] |
| 227 jni_package = "gfx" | 231 jni_package = "gfx" |
| 228 } | 232 } |
| 229 } | 233 } |
| OLD | NEW |