Index: ppapi/BUILD.gn |
diff --git a/ppapi/BUILD.gn b/ppapi/BUILD.gn |
index 9ae8d5f78f54e0d79628076adc68aa21015069bd..1a491cb054683a8dea34498ce7a6871f1300b204 100644 |
--- a/ppapi/BUILD.gn |
+++ b/ppapi/BUILD.gn |
@@ -42,7 +42,7 @@ import("//build/config/nacl/rules.gni") |
import("//ppapi/ppapi_sources.gni") |
import("//testing/test.gni") |
-shared_library("ppapi_tests") { |
+source_set("ppapi_tests_sources") { |
sources = ppapi_sources.test_common_source_files + |
ppapi_sources.test_trusted_source_files |
@@ -63,7 +63,21 @@ shared_library("ppapi_tests") { |
] |
} |
-shared_library("power_saver_test_plugin") { |
+if (!is_mac) { |
+ shared_library("ppapi_tests") { |
+ deps = [ |
+ ":ppapi_tests_sources", |
+ ] |
+ } |
+} else { |
+ mac_plugin_bundle("ppapi_tests") { |
+ deps = [ |
+ ":ppapi_tests_sources", |
+ ] |
+ } |
+} |
+ |
+source_set("power_saver_test_plugin_sources") { |
sources = [ |
"tests/power_saver_test_plugin.cc", |
"tests/test_utils.cc", |
@@ -76,6 +90,20 @@ shared_library("power_saver_test_plugin") { |
] |
} |
+if (!is_mac) { |
+ shared_library("power_saver_test_plugin") { |
+ deps = [ |
+ ":power_saver_test_plugin_sources", |
+ ] |
+ } |
+} else { |
+ mac_plugin_bundle("power_saver_test_plugin") { |
+ deps = [ |
+ ":power_saver_test_plugin_sources", |
+ ] |
+ } |
+} |
+ |
source_set("blink_deprecated_test_plugin_sources") { |
sources = [ |
"tests/blink_deprecated_test_plugin.cc", |