summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/cpp/BUILD.gn')
-rw-r--r--ppapi/cpp/BUILD.gn26
1 files changed, 26 insertions, 0 deletions
diff --git a/ppapi/cpp/BUILD.gn b/ppapi/cpp/BUILD.gn
new file mode 100644
index 0000000..2e121be
--- /dev/null
+++ b/ppapi/cpp/BUILD.gn
@@ -0,0 +1,26 @@
+# 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.
+
+import("//ppapi/ppapi_sources.gni")
+
+# Link to this target to get the PPAPI C++ wrapper objects and plugin startup
+# code. See also "objects" below.
+source_set("cpp") {
+ sources = [
+ "module_embedder.h",
+ "ppp_entrypoints.cc",
+ ]
+
+ deps = [
+ ":objects",
+ "//ppapi/c",
+ ]
+}
+
+# Link to this target to get only the PPAPI C++ wrapper objects but not the
+# plugin startup code. Some plugins need special startup code that they supply
+# themselves.
+source_set("objects") {
+ sources = rebase_path(ppapi_sources.cpp_source_files, ".", "..")
+}