Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: ui/gfx/BUILD.gn

Issue 409163004: ozone: Fix GN build for ozone_egl_demo, ozone_unittests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove empty file Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 if (use_ozone) {
12 import("//ui/ozone/ozone.gni")
13 }
14 11
15 # 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
16 # 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
17 # targets can all have a dependency for header checking purposes without 14 # targets can all have a dependency for header checking purposes without
18 # creating circular dependencies. 15 # creating circular dependencies.
19 source_set("gfx_export") { 16 source_set("gfx_export") {
20 sources = [ 17 sources = [
21 "gfx_export.h", 18 "gfx_export.h",
22 ] 19 ]
23 } 20 }
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 311
315 # Linux. 312 # Linux.
316 if (is_linux) { 313 if (is_linux) {
317 configs += [ "//build/config/linux:fontconfig" ] 314 configs += [ "//build/config/linux:fontconfig" ]
318 } 315 }
319 316
320 # Ozone stuff. 317 # Ozone stuff.
321 if (use_ozone) { 318 if (use_ozone) {
322 sources += [ 319 sources += [
323 "platform_font_ozone.cc", 320 "platform_font_ozone.cc",
324 "ozone/impl/file_surface_factory.cc",
325 "ozone/impl/file_surface_factory.h",
326 "ozone/surface_factory_ozone.cc",
327 "ozone/surface_factory_ozone.h",
328 "ozone/surface_ozone.h",
329 "ozone/overlay_candidates_ozone.cc",
330 "ozone/overlay_candidates_ozone.h",
331 ] 321 ]
332 } 322 }
333 323
334 if (!use_aura) { 324 if (!use_aura) {
335 sources -= [ 325 sources -= [
336 "nine_image_painter.cc", 326 "nine_image_painter.cc",
337 "nine_image_painter.h", 327 "nine_image_painter.h",
338 "path_aura.cc", 328 "path_aura.cc",
339 "screen_aura.cc", 329 "screen_aura.cc",
340 ] 330 ]
341 } 331 }
342 332
343 if (use_x11) { 333 if (use_x11) {
344 deps += [ 334 deps += [
345 "//ui/gfx/x", 335 "//ui/gfx/x",
346 ] 336 ]
347 } else { 337 } else {
348 sources -= [ 338 sources -= [
349 "path_x11.cc", 339 "path_x11.cc",
350 ] 340 ]
351 } 341 }
352 342
353 if (use_pango) { 343 if (use_pango) {
354 sources += [ 344 sources += [
355 "pango_util.cc", 345 "pango_util.cc",
356 "pango_util.h", 346 "pango_util.h",
357 "platform_font_pango.cc", 347 "platform_font_pango.cc",
358 "platform_font_pango.h", 348 "platform_font_pango.h",
359 ] 349 ]
350 sources -= [
351 "platform_font_ozone.cc",
352 ]
360 configs += [ "//build/config/linux:pangocairo" ] 353 configs += [ "//build/config/linux:pangocairo" ]
361 } 354 }
362 } 355 }
363 356
364 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry 357 # Looking for gfx_geometry? It's //ui/gfx/geometry:geometry
365 358
366 source_set("gfx_test_support") { 359 source_set("gfx_test_support") {
367 sources = [ 360 sources = [
368 "test/fontconfig_util_linux.cc", 361 "test/fontconfig_util_linux.cc",
369 "test/fontconfig_util_linux.h", 362 "test/fontconfig_util_linux.h",
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 if (is_android) { 429 if (is_android) {
437 generate_jni("gfx_jni_headers") { 430 generate_jni("gfx_jni_headers") {
438 sources = [ 431 sources = [
439 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", 432 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java",
440 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", 433 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java",
441 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", 434 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java",
442 ] 435 ]
443 jni_package = "gfx" 436 jni_package = "gfx"
444 } 437 }
445 } 438 }
OLDNEW
« ui/base/BUILD.gn ('K') | « ui/events/ozone/BUILD.gn ('k') | ui/gl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698