[email protected] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 1 | # 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] | 7a1f7c6f | 2011-05-10 21:17:48 | [diff] [blame] | 5 | # 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] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 9 | { |
| 10 | 'variables': { |
| 11 | 'chromium_code': 1, # Use higher warning level. |
[email protected] | df011f4 | 2011-07-07 17:38:02 | [diff] [blame] | 12 | |
| 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] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 23 | }, |
| 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] | 6a654d45 | 2011-05-23 22:06:54 | [diff] [blame] | 31 | ['os_posix == 1 and OS != "mac"', { |
[email protected] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 32 | '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] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 41 | 'includes': [ |
| 42 | 'ppapi_cpp.gypi', |
| 43 | 'ppapi_gl.gypi', |
[email protected] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 44 | ], |
| 45 | } |