| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 public_deps = [ | 235 public_deps = [ |
| 236 "//base", | 236 "//base", |
| 237 "//skia", | 237 "//skia", |
| 238 "//third_party/icu", | 238 "//third_party/icu", |
| 239 ] | 239 ] |
| 240 | 240 |
| 241 # Text rendering conditions (complicated so separated out). | 241 # Text rendering conditions (complicated so separated out). |
| 242 if (is_android || is_ios) { | 242 if (is_android || is_ios) { |
| 243 # We don't support RenderText on these platforms. | 243 # We don't support RenderText on these platforms. |
| 244 } else { | 244 } else { |
| 245 # These text rendering files are supported everywhere text rendering is. | 245 # Mac doesn't use RenderTextHarfBuzz by default yet. |
| 246 sources += [ | 246 sources += [ |
| 247 "render_text.cc", | 247 "render_text.cc", |
| 248 "render_text.h", | 248 "render_text.h", |
| 249 "render_text_harfbuzz.cc", | 249 "render_text_harfbuzz.cc", |
| 250 "render_text_harfbuzz.h", | 250 "render_text_harfbuzz.h", |
| 251 "render_text_mac.cc", |
| 252 "render_text_mac.h", |
| 251 "text_utils_skia.cc", | 253 "text_utils_skia.cc", |
| 252 ] | 254 ] |
| 253 | |
| 254 # These are the "native" rendering routines, only one should apply. | |
| 255 if (is_win) { | |
| 256 sources += [ "render_text_win.cc" ] | |
| 257 } else if (is_mac) { | |
| 258 sources += [ "render_text_mac.cc" ] | |
| 259 } else if (use_pango) { | |
| 260 sources += [ "render_text_pango.cc" ] | |
| 261 } else if (use_ozone) { | |
| 262 sources += [ "render_text_ozone.cc" ] | |
| 263 } | |
| 264 } | 255 } |
| 265 | 256 |
| 266 # iOS. | 257 # iOS. |
| 267 if (is_ios) { | 258 if (is_ios) { |
| 268 sources -= [ | 259 sources -= [ |
| 269 "codec/jpeg_codec.cc", | 260 "codec/jpeg_codec.cc", |
| 270 "codec/jpeg_codec.h", | 261 "codec/jpeg_codec.h", |
| 271 ] | 262 ] |
| 272 } else { | 263 } else { |
| 273 deps += [ "//third_party:jpeg" ] | 264 deps += [ "//third_party:jpeg" ] |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 if (is_android) { | 550 if (is_android) { |
| 560 generate_jni("gfx_jni_headers") { | 551 generate_jni("gfx_jni_headers") { |
| 561 sources = [ | 552 sources = [ |
| 562 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 553 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
| 563 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 554 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
| 564 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 555 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
| 565 ] | 556 ] |
| 566 jni_package = "gfx" | 557 jni_package = "gfx" |
| 567 } | 558 } |
| 568 } | 559 } |
| OLD | NEW |