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

Unified Diff: third_party/wayland/BUILD.gn

Issue 1426583009: third_party: Add wayland library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug for licenses check suppression Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/linux/system.gyp ('k') | third_party/wayland/LICENSE » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/wayland/BUILD.gn
diff --git a/third_party/wayland/BUILD.gn b/third_party/wayland/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..4df0987bb4d05500012fe545b5cf9de11931140e
--- /dev/null
+++ b/third_party/wayland/BUILD.gn
@@ -0,0 +1,83 @@
+# Copyright 2015 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.
+
+config("wayland_config") {
+ include_dirs = [
+ "include/src",
+ "include/protocol",
+ "src/src",
+ ]
+}
+
+source_set("wayland_util") {
+ sources = [
+ "src/src/wayland-util.c",
+ "src/src/wayland-util.h",
+ ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [ "//build/config/compiler:no_chromium_code" ]
+
+ public_configs = [ ":wayland_config" ]
+}
+
+source_set("wayland_private") {
+ sources = [
+ "src/src/connection.c",
+ "src/src/wayland-os.c",
+ "src/src/wayland-os.h",
+ "src/src/wayland-private.h",
+ ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ "//build/config/compiler:no_chromium_code",
+ "//build/config/linux:libffi",
+ ":wayland_config",
+ ]
+}
+
+static_library("wayland_server") {
Dirk Pranke 2015/11/10 01:58:55 is there a reason this target is a static library
reveman 2015/11/10 02:43:50 mainly because it mirrors upstream better. protoco
Dirk Pranke 2015/11/10 03:02:22 If you want to be able to include both wayland_cli
reveman 2015/11/10 06:09:27 added a wayland_protocol target to latest patch. t
+ sources = [
+ "include/protocol/wayland-server-protocol.h",
+ "protocol/wayland-protocol.c",
+ "src/src/event-loop.c",
+ "src/src/wayland-server.c",
+ "src/src/wayland-shm.c",
+ ]
+
+ deps = [
+ ":wayland_private",
+ ":wayland_util",
+ ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ "//build/config/compiler:no_chromium_code",
+ "//build/config/linux:libffi",
+ ]
+
+ public_configs = [ ":wayland_config" ]
+}
+
+static_library("wayland_client") {
Dirk Pranke 2015/11/10 01:58:55 same question.
+ sources = [
+ "include/protocol/wayland-client-protocol.h",
+ "protocol/wayland-protocol.c",
+ "src/src/wayland-client.c",
+ ]
+
+ deps = [
+ ":wayland_private",
+ ":wayland_util",
+ ]
+
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ "//build/config/compiler:no_chromium_code",
+ "//build/config/linux:libffi",
+ ]
+
+ public_configs = [ ":wayland_config" ]
+}
« no previous file with comments | « build/linux/system.gyp ('k') | third_party/wayland/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698