blob: 237b486d965b139cfb0606779e1e7851a019aa04 [file] [log] [blame]
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/ui.gni")
import("//testing/test.gni")
# Several targets want to include this header file, and some of them are
# child dependencies of "gfx". Therefore, we separate it out here so multiple
# targets can all have a dependency for header checking purposes without
# creating circular dependencies.
source_set("gfx_export") {
sources = [
"gfx_export.h",
]
}
component("gfx") {
sources = [
"codec/png_codec.cc",
"codec/png_codec.h",
"native_widget_types.h",
"skia_util.cc",
"skia_util.h",
"transform.cc",
"transform.h",
"transform_util.cc",
"transform_util.h",
"ui_gfx_exports.cc",
"vsync_provider.h",
]
defines = [ "GFX_IMPLEMENTATION" ]
deps = [
":gfx_export",
"//base/third_party/dynamic_annotations",
"//base:base_static",
"//base:i18n",
"//skia",
"//third_party/harfbuzz-ng",
"//third_party/libpng",
"//third_party/zlib",
"//third_party:jpeg",
"//ui/gfx/geometry",
]
public_deps = [
"//base",
"//skia",
"//third_party/icu",
]
if (is_linux) {
configs += [ "//build/config/linux:fontconfig" ]
}
if (use_x11) {
deps += [ "//ui/gfx/x" ]
}
}