forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add display, message_center, shell_dialogs, webview to GN build.
R=sky@chromium.org Review URL: https://codereview.chromium.org/393953008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283516 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
brettw@chromium.org
committed
Jul 16, 2014
1 parent
1cf53fa
commit a1d7d4f
Showing
19 changed files
with
566 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
# 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("display") { | ||
sources = [ | ||
"chromeos/display_configurator.cc", | ||
"chromeos/display_configurator.h", | ||
"chromeos/touchscreen_delegate_impl.cc", | ||
"chromeos/touchscreen_delegate_impl.h", | ||
"chromeos/ozone/display_configurator_ozone.cc", | ||
"chromeos/x11/display_configurator_x11.cc", | ||
"chromeos/x11/display_mode_x11.cc", | ||
"chromeos/x11/display_mode_x11.h", | ||
"chromeos/x11/display_snapshot_x11.cc", | ||
"chromeos/x11/display_snapshot_x11.h", | ||
"chromeos/x11/display_util_x11.cc", | ||
"chromeos/x11/display_util_x11.h", | ||
"chromeos/x11/native_display_delegate_x11.cc", | ||
"chromeos/x11/native_display_delegate_x11.h", | ||
"chromeos/x11/native_display_event_dispatcher_x11.cc", | ||
"chromeos/x11/native_display_event_dispatcher_x11.h", | ||
"chromeos/x11/touchscreen_device_manager_x11.cc", | ||
"chromeos/x11/touchscreen_device_manager_x11.h", | ||
"display_export.h", | ||
"display_switches.cc", | ||
"display_switches.h", | ||
] | ||
|
||
defines = [ "DISPLAY_IMPLEMENTATION" ] | ||
|
||
deps = [ | ||
"//base", | ||
"//ui/display/util", | ||
"//ui/gfx", | ||
"//ui/gfx/geometry", | ||
] | ||
|
||
if (use_x11) { | ||
configs += [ | ||
"//build/config/linux:x11", | ||
"//build/config/linux:xext", | ||
"//build/config/linux:xi", | ||
"//build/config/linux:xrandr", | ||
] | ||
deps += [ | ||
"//ui/events/platform", | ||
] | ||
} | ||
|
||
if (is_chromeos) { | ||
deps += [ "//ui/display/types" ] | ||
} | ||
|
||
if (use_ozone) { | ||
deps += [ "//ui/ozone" ] | ||
} | ||
} | ||
|
||
component("test_util") { | ||
output_name = "display_test_util" | ||
sources = [ | ||
"chromeos/test/test_display_snapshot.cc", | ||
"chromeos/test/test_display_snapshot.h", | ||
] | ||
|
||
defines = [ "DISPLAY_IMPLEMENTATION" ] | ||
|
||
deps = [ | ||
"//base", | ||
"//ui/gfx", | ||
"//ui/gfx/geometry", | ||
] | ||
|
||
if (is_chromeos) { | ||
deps += [ "//ui/display/types" ] | ||
} | ||
} | ||
|
||
test("display_unittests") { | ||
sources = [ | ||
"chromeos/display_configurator_unittest.cc", | ||
"chromeos/touchscreen_delegate_impl_unittest.cc", | ||
"chromeos/x11/display_util_x11_unittest.cc", | ||
"chromeos/x11/native_display_event_dispatcher_x11_unittest.cc", | ||
"util/display_util_unittest.cc", | ||
"util/edid_parser_unittest.cc", | ||
] | ||
|
||
deps = [ | ||
"//base/test:run_all_unittests", | ||
"//testing/gtest", | ||
"//ui/display/util", | ||
"//ui/gfx/geometry", | ||
] | ||
|
||
if (is_chromeos) { | ||
deps += [ | ||
":display", | ||
":test_util", | ||
"//ui/display/types", | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# 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("types") { | ||
output_name = "display_types" | ||
sources = [ | ||
"chromeos/display_mode.cc", | ||
"chromeos/display_mode.h", | ||
"chromeos/display_snapshot.cc", | ||
"chromeos/display_snapshot.h", | ||
"chromeos/native_display_delegate.h", | ||
"chromeos/native_display_observer.h", | ||
"chromeos/touchscreen_device.cc", | ||
"chromeos/touchscreen_device.h", | ||
"chromeos/touchscreen_device_manager.h", | ||
"display_constants.h", | ||
"display_types_export.h", | ||
] | ||
|
||
defines = [ "DISPLAY_TYPES_IMPLEMENTATION" ] | ||
|
||
deps = [ | ||
"//base", | ||
"//ui/gfx/geometry", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 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("util") { | ||
output_name = "display_util" | ||
sources = [ | ||
"display_util.cc", | ||
"display_util.h", | ||
"display_util_export.h", | ||
"edid_parser.cc", | ||
"edid_parser.h", | ||
] | ||
|
||
defines = [ "DISPLAY_UTIL_IMPLEMENTATION" ] | ||
|
||
deps = [ | ||
"//base", | ||
"//ui/gfx/geometry", | ||
] | ||
|
||
if (use_x11) { | ||
sources += [ | ||
"x11/edid_parser_x11.cc", | ||
"x11/edid_parser_x11.h", | ||
] | ||
configs += [ "//build/config/linux:xrandr" ] | ||
deps += [ "//ui/gfx/x" ] | ||
} | ||
if (is_chromeos) { | ||
deps += [ "//ui/display/types" ] | ||
} | ||
} |
Oops, something went wrong.