Commit bd56a5b0 authored by tfarina@chromium.org's avatar tfarina@chromium.org

Add GN build file for ui/aura target.

Test plan:

Debug:

$ gn gen out/Debug_gn
$ ninja -C out/Debug_gn aura

Release:

$ gn gen out/Release_gn --args='is_debug=false'
$ ninja -C out/Release_gn aura

Android:

$ gn gen out/Debug_gn --args='os="android" cpu_arch="arm"'
$ ninja -C out/Debug_gn aura

BUG=None
TEST=see above.
R=brettw@chromium.org,scottmg@chromium.org
TBR=ben
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275607 0039d316-1c4b-4281-b951-d872f2087c98
parent 9ae9fdab
......@@ -78,6 +78,7 @@ group("root") {
"//third_party/zlib",
"//third_party:jpeg",
"//tools/gn",
"//ui/aura",
"//ui/accessibility",
"//ui/base",
"//ui/events",
......@@ -123,11 +124,12 @@ group("root") {
"//extensions/common/api:extensions_api",
"//pdf", # Not compiled on Android in GYP yet, either.
"//ppapi:ppapi_c",
"//sandbox",
"//third_party/libusb",
# "//third_party/WebKit/Source/platform",
"//third_party/WebKit/Source/wtf", # TODO(brettw) re-enable for Android.
"//sandbox",
"//tools/gn",
"//ui/aura",
# Not tested on Android yet:
"//webkit/browser:storage",
......
......@@ -77,6 +77,10 @@ config("xext") {
libs = [ "Xext" ]
}
config("xrandr") {
libs = [ "xrandr" ]
}
config("libcap") {
libs = [ "cap" ]
}
......
# 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("aura") {
sources = [
"client/aura_constants.cc",
"client/aura_constants.h",
"client/capture_client.cc",
"client/capture_client.h",
"client/capture_delegate.h",
"client/cursor_client.cc",
"client/cursor_client.h",
"client/cursor_client_observer.h",
"client/cursor_client_observer.cc",
"client/default_capture_client.cc",
"client/default_capture_client.h",
"client/event_client.cc",
"client/event_client.h",
"client/focus_change_observer.cc",
"client/focus_change_observer.h",
"client/focus_client.cc",
"client/focus_client.h",
"client/screen_position_client.cc",
"client/screen_position_client.h",
"client/visibility_client.cc",
"client/visibility_client.h",
"client/window_stacking_client.cc",
"client/window_stacking_client.h",
"client/window_tree_client.cc",
"client/window_tree_client.h",
"env.cc",
"env.h",
"env_observer.h",
"input_state_lookup.cc",
"input_state_lookup.h",
"input_state_lookup_win.cc",
"input_state_lookup_win.h",
"layout_manager.cc",
"layout_manager.h",
"remote_window_tree_host_win.cc",
"remote_window_tree_host_win.h",
"scoped_window_targeter.cc",
"scoped_window_targeter.h",
"window.cc",
"window.h",
"window_event_dispatcher.cc",
"window_event_dispatcher.h",
"window_delegate.h",
"window_layer_type.h",
"window_observer.h",
"window_targeter.cc",
"window_targeter.h",
"window_tracker.cc",
"window_tracker.h",
"window_tree_host.cc",
"window_tree_host.h",
"window_tree_host_mac.mm",
"window_tree_host_mac.h",
"window_tree_host_observer.h",
"window_tree_host_win.cc",
"window_tree_host_win.h",
"window_tree_host_x11.cc",
"window_tree_host_x11.h",
"../wm/public/activation_change_observer.h",
"../wm/public/activation_change_observer.cc",
"../wm/public/activation_client.cc",
"../wm/public/activation_client.h",
"../wm/public/activation_delegate.cc",
"../wm/public/activation_delegate.h",
"../wm/public/animation_host.cc",
"../wm/public/animation_host.h",
"../wm/public/dispatcher_client.cc",
"../wm/public/dispatcher_client.h",
"../wm/public/drag_drop_client.cc",
"../wm/public/drag_drop_client.h",
"../wm/public/drag_drop_delegate.cc",
"../wm/public/drag_drop_delegate.h",
"../wm/public/scoped_tooltip_disabler.cc",
"../wm/public/scoped_tooltip_disabler.h",
"../wm/public/tooltip_client.cc",
"../wm/public/tooltip_client.h",
"../wm/public/transient_window_client.cc",
"../wm/public/transient_window_client.h",
"../wm/public/window_move_client.cc",
"../wm/public/window_move_client.h",
]
defines = [
"AURA_IMPLEMENTATION",
]
deps = [
"//base",
"//base:i18n",
"//base/third_party/dynamic_annotations",
"//skia",
"//ui/base",
"//ui/compositor",
"//ui/events",
"//ui/events/platform",
"//ui/gfx",
"//ui/gfx/geometry",
]
if (use_x11) {
configs += [
"//build/config/linux:x11",
"//build/config/linux:xrandr",
]
deps += [
"//ui/events/platform/x11",
]
}
if (is_win) {
sources -= [
"input_state_lookup.cc",
]
deps = [
"//ui/metro_viewer",
"//ipc",
]
}
if (use_ozone) {
sources += [
"window_tree_host_ozone.cc",
"window_tree_host_ozone.h",
]
deps = [
"//ui/events/ozone",
"//ui/ozone",
]
}
}
source_set("aura_test_support") {
sources = [
"test/aura_test_base.cc",
"test/aura_test_base.h",
"test/aura_test_helper.cc",
"test/aura_test_helper.h",
"test/aura_test_utils.cc",
"test/aura_test_utils.h",
"test/env_test_helper.h",
"test/event_generator.cc",
"test/event_generator.h",
"test/test_cursor_client.cc",
"test/test_cursor_client.h",
"test/test_focus_client.cc",
"test/test_focus_client.h",
"test/test_screen.cc",
"test/test_screen.h",
"test/test_window_tree_client.cc",
"test/test_window_tree_client.h",
"test/test_windows.cc",
"test/test_windows.h",
"test/test_window_delegate.cc",
"test/test_window_delegate.h",
"test/ui_controls_factory_aura.h",
"test/window_test_api.cc",
"test/window_test_api.h",
]
deps = [
":aura",
"//skia",
"//testing/gtest",
"//ui/base",
"//ui/base:ui_base_test_support",
"//ui/compositor:test_support",
"//ui/events",
"//ui/events:events_base",
"//ui/events:events_test_support",
"//ui/gfx",
"//ui/gfx/geometry",
]
if (is_win) {
cflags += [
"/wd4267", # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
]
}
if (use_aura) {
if (is_win) {
sources += [
"test/ui_controls_factory_aurawin.cc",
]
}
if (use_x11) {
sources += [
"test/ui_controls_factory_aurax11.cc",
]
}
}
}
#TODO(GYP): Enable this when everything it depends links.
#executable("aura_demo") {
# sources = [
# "demo/demo_main.cc",
# ]
#
# deps = [
# ":aura",
# ":aura_test_support",
# "//base",
# "//base:i18n",
# "//skia",
# "//third_party/icu",
# "//ui/base",
# "//ui/compositor",
# "//ui/compositor:test_support",
# "//ui/events",
# "//ui/gfx",
# "//ui/gfx/geometry",
# ]
#
# if (use_x11) {
# deps += [
# "//ui/gfx/x",
# ]
# }
#}
#TODO(GYP): Enable this when everything it depends links.
#executable("aura_bench") {
# sources = [
# "bench/bench_main.cc",
# ]
#
# deps = [
# ":aura",
# ":aura_test_support",
# "//base",
# "//base:i18n",
# "//cc",
# "//skia",
# "//third_party/icu",
# "//ui/base",
# "//ui/compositor",
# "//ui/compositor:test_support",
# "//ui/events",
# "//ui/gfx",
# "//ui/gfx/geometry",
# ]
#
# if (use_x11) {
# deps += [
# "//ui/gfx/x",
# ]
# }
#}
#TODO(GYP): Enable this when everything it depends links.
#test("aura_unittests") {
# sources = [
# "gestures/gesture_recognizer_unittest.cc",
# "test/run_all_unittests.cc",
# "window_event_dispatcher_unittest.cc",
# "window_targeter_unittest.cc",
# "window_unittest.cc",
# ]
#
# deps = [
# ":aura",
# ":aura_test_support",
# "//base/test:test_support",
# "//skia",
# "//testing/gtest",
# "//ui/base",
# "//ui/base:ui_base_test_support",
# "//ui/compositor",
# "//ui/compositor:test_support",
# "//ui/events",
# "//ui/events:events_base",
# "//ui/events:gesture_detection",
# "//ui/gfx",
# "//ui/gfx/geometry",
# "//ui/gl",
# ]
#
# if (is_linux) {
# deps += [
# #"<(DEPTH)/third_party/mesa/mesa.gyp:osmesa",
# ]
# }
#
# if (is_linux) { # && use_allocator != "none") {
# deps += [
# # See http://crbug.com/162998#c4 for why this is needed.
# "//base/allocator",
# ]
# }
#}
......@@ -5,14 +5,6 @@
import("//build/config/ui.gni")
component("platform") {
deps = [
"//base"
]
defines = [
"EVENTS_IMPLEMENTATION",
]
sources = [
"platform_event_dispatcher.h",
"platform_event_observer.h",
......@@ -24,7 +16,17 @@ component("platform") {
"scoped_event_dispatcher.h",
]
defines = [
"EVENTS_IMPLEMENTATION",
]
deps = [
"//base"
]
if (use_x11) {
sources -= [ "platform_event_source_stub.cc" ]
sources -= [
"platform_event_source_stub.cc",
]
}
}
# 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.
component("x11") {
output_name = "x11_events_platform"
sources = [
"x11_event_source.cc",
"x11_event_source.h",
"x11_event_source_glib.cc",
"x11_event_source_libevent.cc",
]
defines = [
"EVENTS_IMPLEMENTATION",
]
configs += [
"//build/config/linux:x11",
]
deps = [
"//ui/events",
"//ui/events/platform",
"//ui/gfx/x",
]
if (is_linux) {
sources -= [
"x11_event_source_libevent.cc",
]
configs += [
"//build/config/linux:glib",
]
} else {
sources -= [
"x11_event_source_glib.cc",
]
}
}
# 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.
component("x") {
output_name = "gfx_x11"
sources = [
"x11_atom_cache.cc",
"x11_atom_cache.h",
"x11_connection.cc",
"x11_connection.h",
"x11_error_tracker.cc",
"x11_error_tracker.h",
"x11_switches.cc",
"x11_switches.h",
"x11_types.cc",
"x11_types.h",
]
defines = [
"GFX_IMPLEMENTATION",
]
configs += [
"//build/config/linux:x11",
]
deps = [
"//base",
]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment