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.
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) {
11 if (defined(invoker.output_name)) {
12 output_name = invoker.output_name
14 sources = invoker.sources
18 # TODO(GYP) this should be a mac bundle
19 output_extension = "plugin"
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",