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 ":gfx_export", | 235 ":gfx_export", |
236 "//base", | 236 "//base", |
237 "//base:i18n", | 237 "//base:i18n", |
238 "//base:base_static", | 238 "//base:base_static", |
239 "//base/third_party/dynamic_annotations", | 239 "//base/third_party/dynamic_annotations", |
240 "//skia", | 240 "//skia", |
241 "//third_party/harfbuzz-ng", | 241 "//third_party/harfbuzz-ng", |
242 "//third_party/libpng", | 242 "//third_party/libpng", |
243 "//third_party/zlib", | 243 "//third_party/zlib", |
244 "//ui/gfx/geometry", | 244 "//ui/gfx/geometry", |
245 "//ui/gl", | |
245 ] | 246 ] |
246 public_deps = [ | 247 public_deps = [ |
247 "//base", | 248 "//base", |
248 "//skia", | 249 "//skia", |
249 "//third_party/icu", | 250 "//third_party/icu", |
250 ] | 251 ] |
251 | 252 |
252 # Text rendering conditions (complicated so separated out). | 253 # Text rendering conditions (complicated so separated out). |
253 if (is_android || is_ios) { | 254 if (is_android || is_ios) { |
254 # We don't support RenderText on these platforms. | 255 # We don't support RenderText on these platforms. |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
387 "test/ui_cocoa_test_helper.mm", | 388 "test/ui_cocoa_test_helper.mm", |
388 ] | 389 ] |
389 } | 390 } |
390 if (is_linux) { | 391 if (is_linux) { |
391 configs += [ "//build/config/linux:fontconfig" ] | 392 configs += [ "//build/config/linux:fontconfig" ] |
392 } | 393 } |
393 } | 394 } |
394 | 395 |
395 test("gfx_unittests") { | 396 test("gfx_unittests") { |
396 sources = [ | 397 sources = [ |
398 "//ui/gl/gl_api_unittest.cc", | |
no sievers
2015/05/01 21:55:00
nit: maybe we can also treat these ui/gl unittest
David Yen
2015/05/01 22:34:38
GN has much stricter gfx -> gl dependency rules so
| |
397 "font_render_params_linux_unittest.cc", | 399 "font_render_params_linux_unittest.cc", |
398 "font_unittest.cc", | 400 "font_unittest.cc", |
399 "image/image_family_unittest.cc", | 401 "image/image_family_unittest.cc", |
400 "image/image_ios_unittest.mm", | 402 "image/image_ios_unittest.mm", |
401 "image/image_skia_unittest.cc", | 403 "image/image_skia_unittest.cc", |
402 "image/image_unittest.cc", | 404 "image/image_unittest.cc", |
403 "platform_font_linux_unittest.cc", | 405 "platform_font_linux_unittest.cc", |
404 "screen_unittest.cc", | 406 "screen_unittest.cc", |
405 "test/run_all_unittests.cc", | 407 "test/run_all_unittests.cc", |
406 "text_elider_unittest.cc", | 408 "text_elider_unittest.cc", |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
466 ":test_support", | 468 ":test_support", |
467 "//base", | 469 "//base", |
468 "//base/test:test_support", | 470 "//base/test:test_support", |
469 "//skia", | 471 "//skia", |
470 "//third_party/icu:icuuc", | 472 "//third_party/icu:icuuc", |
471 "//third_party/libpng", | 473 "//third_party/libpng", |
472 "//third_party/zlib", | 474 "//third_party/zlib", |
473 "//testing/gtest", | 475 "//testing/gtest", |
474 "//ui/base", | 476 "//ui/base", |
475 "//ui/gfx/geometry", | 477 "//ui/gfx/geometry", |
478 "//ui/gl", | |
476 "//ui/resources:ui_test_pak", | 479 "//ui/resources:ui_test_pak", |
477 ] | 480 ] |
478 | 481 |
479 if (!is_mac && !is_ios) { | 482 if (!is_mac && !is_ios) { |
480 sources += [ | 483 sources += [ |
481 "interpolated_transform_unittest.cc", | 484 "interpolated_transform_unittest.cc", |
482 "transform_unittest.cc", | 485 "transform_unittest.cc", |
483 ] | 486 ] |
484 } | 487 } |
485 | 488 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
528 if (is_android) { | 531 if (is_android) { |
529 generate_jni("gfx_jni_headers") { | 532 generate_jni("gfx_jni_headers") { |
530 sources = [ | 533 sources = [ |
531 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", | 534 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", |
532 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", | 535 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", |
533 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", | 536 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", |
534 ] | 537 ] |
535 jni_package = "gfx" | 538 jni_package = "gfx" |
536 } | 539 } |
537 } | 540 } |
OLD | NEW |