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

Unified Diff: ppapi/BUILD.gn

Issue 1878033002: [Mac/GN] Add new template for creating .plugin loadable modules. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 months 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/config/mac/rules.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/BUILD.gn
diff --git a/ppapi/BUILD.gn b/ppapi/BUILD.gn
index 6cac3cf42d34918575fb5b24fd873b6998b8528e..9ae8d5f78f54e0d79628076adc68aa21015069bd 100644
--- a/ppapi/BUILD.gn
+++ b/ppapi/BUILD.gn
@@ -7,6 +7,10 @@ import("//build/config/features.gni")
assert(!is_android || enable_plugins,
"//ppapi should not be referenced when is_android && !enable_plugins")
+if (is_mac) {
+ import("//build/config/mac/rules.gni")
+}
+
copy("copy_test_files") {
visibility = [ ":*" ]
sources = [
@@ -72,7 +76,7 @@ shared_library("power_saver_test_plugin") {
]
}
-loadable_module("blink_deprecated_test_plugin") {
+source_set("blink_deprecated_test_plugin_sources") {
sources = [
"tests/blink_deprecated_test_plugin.cc",
]
@@ -85,7 +89,21 @@ loadable_module("blink_deprecated_test_plugin") {
]
}
-loadable_module("blink_test_plugin") {
+if (!is_mac) {
+ loadable_module("blink_deprecated_test_plugin") {
+ deps = [
+ ":blink_deprecated_test_plugin_sources",
+ ]
+ }
+} else {
+ mac_plugin_bundle("blink_deprecated_test_plugin") {
+ deps = [
+ ":blink_deprecated_test_plugin_sources",
+ ]
+ }
+}
+
+source_set("blink_test_plugin_sources") {
sources = [
"tests/blink_test_plugin.cc",
]
@@ -98,6 +116,20 @@ loadable_module("blink_test_plugin") {
]
}
+if (!is_mac) {
+ loadable_module("blink_test_plugin") {
+ deps = [
+ ":blink_test_plugin_sources",
+ ]
+ }
+} else {
+ mac_plugin_bundle("blink_test_plugin") {
+ deps = [
+ ":blink_test_plugin_sources",
+ ]
+ }
+}
+
test("ppapi_unittests") {
sources = [
"host/resource_message_filter_unittest.cc",
« no previous file with comments | « build/config/mac/rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698