Skip to content

Commit

Permalink
Add GN build file for surface.
Browse files Browse the repository at this point in the history
This is needed by content.

BUG=None
TEST=gn gen out/Debug; followed by ninja -C out/Debug surface
R=brettw@chromium.org,piman@chromium.org
NOTRY=true

Review URL: https://codereview.chromium.org/282353002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271163 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
tfarina@chromium.org committed May 17, 2014
1 parent b5189d8 commit 0311d4c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
3 changes: 3 additions & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ group("root") {
"//ui/events",
"//ui/gfx",
"//ui/resources",
"//ui/surface",
"//url",
]

Expand All @@ -84,6 +85,8 @@ group("root") {
"//ui/base:ui_base",
"//ui/events",
"//ui/gfx",
"//ui/surface", # TODO(brettw): Skia does not build on Android yet.
# Re-enable this when skia is fixed.
]
}
}
32 changes: 32 additions & 0 deletions ui/surface/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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")

component("surface") {
sources = [
"accelerated_surface_mac.cc",
"accelerated_surface_mac.h",
"surface_export.h",
"transport_dib.cc",
"transport_dib.h",
"transport_dib_posix.cc",
"transport_dib_win.cc",
]

defines = [ "SURFACE_IMPLEMENTATION" ]

deps = [
"//base",
"//base/third_party/dynamic_annotations",
"//skia",
"//ui/base:ui_base",
"//ui/gfx/geometry",
"//ui/gl",
]

if (use_x11) {
include_dirs = [ "//third_party/khronos" ]
}
}

0 comments on commit 0311d4c

Please sign in to comment.