OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 # Declares a PPAPI example target of the correct type for the current platform |
| 6 # and with the right linker flags. |
| 7 template("ppapi_example") { |
| 8 # TODO(GYP) on Mac this should be loadable_module. |
| 9 shared_library(target_name) { |
| 10 testonly = true |
| 11 if (defined(invoker.output_name)) { |
| 12 output_name = invoker.output_name |
| 13 } |
| 14 sources = invoker.sources |
| 15 deps = invoker.deps |
| 16 |
| 17 if (is_mac) { |
| 18 # TODO(GYP) this should be a mac bundle |
| 19 output_extension = "plugin" |
| 20 ldflags = [ |
| 21 # Not to strip important symbols by -Wl,-dead_strip. |
| 22 "-Wl,-exported_symbol,_PPP_GetInterface", |
| 23 "-Wl,-exported_symbol,_PPP_InitializeModule", |
| 24 "-Wl,-exported_symbol,_PPP_ShutdownModule", |
| 25 ] |
| 26 } |
| 27 } |
| 28 } |
OLD | NEW |