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

Side by Side Diff: ppapi/examples/ppapi_example.gni

Issue 1903623002: [Mac/GN] Get //ppapi tests and examples working. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-framework-content
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « ppapi/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 if (is_mac) {
6 import("//build/config/mac/rules.gni")
7 }
8
5 # Declares a PPAPI example target of the correct type for the current platform 9 # Declares a PPAPI example target of the correct type for the current platform
6 # and with the right linker flags. 10 # and with the right linker flags.
7 template("ppapi_example") { 11 template("ppapi_example") {
8 # TODO(GYP) on Mac this should be loadable_module. 12 if (!is_mac) {
9 shared_library(target_name) { 13 shared_library(target_name) {
10 testonly = true 14 testonly = true
11 if (defined(invoker.output_name)) { 15
12 output_name = invoker.output_name 16 if (defined(invoker.output_name)) {
17 output_name = invoker.output_name
18 }
19
20 sources = invoker.sources
21 deps = invoker.deps
13 } 22 }
14 sources = invoker.sources 23 } else {
15 deps = invoker.deps 24 mac_plugin_bundle(target_name) {
25 testonly = true
16 26
17 if (is_mac) { 27 if (defined(invoker.output_name)) {
18 # TODO(GYP) this should be a mac bundle 28 output_name = invoker.output_name
19 output_extension = "plugin" 29 }
30
31 sources = invoker.sources
32 deps = invoker.deps
33
20 ldflags = [ 34 ldflags = [
21 # Not to strip important symbols by -Wl,-dead_strip. 35 # Not to strip important symbols by -Wl,-dead_strip.
22 "-Wl,-exported_symbol,_PPP_GetInterface", 36 "-Wl,-exported_symbol,_PPP_GetInterface",
23 "-Wl,-exported_symbol,_PPP_InitializeModule", 37 "-Wl,-exported_symbol,_PPP_InitializeModule",
24 "-Wl,-exported_symbol,_PPP_ShutdownModule", 38 "-Wl,-exported_symbol,_PPP_ShutdownModule",
25 ] 39 ]
26 } 40 }
27 } 41 }
28 } 42 }
OLDNEW
« no previous file with comments | « ppapi/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698