blob: fa850d521e2de9ab600b759574871b60c0463dfa [file] [log] [blame]
[email protected]1758e882010-11-01 16:16:501# Copyright (c) 2010 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
[email protected]7a1f7c6f2011-05-10 21:17:485# This is the "public" ppapi.gyp file, which must have dependencies on the
6# redistributable portions of PPAPI only. This prevents circular dependencies
7# in the .gyp files (since ppapi_internal depends on parts of Chrome).
8
[email protected]1758e882010-11-01 16:16:509{
10 'variables': {
11 'chromium_code': 1, # Use higher warning level.
[email protected]df011f42011-07-07 17:38:0212
13 # NaCl also uses the C and C++ PPAPI targets. We want it to be able to use
14 # its own version of PPAPI when compiling into Chrome, which means we'll
15 # actually have two instances of each library in the checkout (though not
16 # compiled into the same binary since NaCl is a shared library).
17 #
18 # This value is the suffix that will be appended to the relevant projects.
19 # In Chrome, it's empty so the projects have the same name. NaCl sets this
20 # to "_nacl" and includes the .gypi files below, giving it different names
21 # for these projects.
22 'nacl_ppapi_library_suffix': '',
[email protected]1758e882010-11-01 16:16:5023 },
24 'target_defaults': {
25 'conditions': [
26 # Linux shared libraries should always be built -fPIC.
27 #
28 # TODO(ajwong): For internal pepper plugins, which are statically linked
29 # into chrome, do we want to build w/o -fPIC? If so, how can we express
30 # that in the build system?
[email protected]6a654d452011-05-23 22:06:5431 ['os_posix == 1 and OS != "mac"', {
[email protected]1758e882010-11-01 16:16:5032 'cflags': ['-fPIC', '-fvisibility=hidden'],
33
34 # This is needed to make the Linux shlib build happy. Without this,
35 # -fvisibility=hidden gets stripped by the exclusion in common.gypi
36 # that is triggered when a shared library build is specified.
37 'cflags/': [['include', '^-fvisibility=hidden$']],
38 }],
39 ],
40 },
[email protected]b42370e2011-01-22 01:13:0941 'includes': [
42 'ppapi_cpp.gypi',
43 'ppapi_gl.gypi',
[email protected]1758e882010-11-01 16:16:5044 ],
45}