[email protected] | d7ec681 | 2012-07-13 22:07:01 | [diff] [blame] | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 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. |
| 12 | }, |
| 13 | 'target_defaults': { |
| 14 | 'conditions': [ |
| 15 | # Linux shared libraries should always be built -fPIC. |
| 16 | # |
| 17 | # TODO(ajwong): For internal pepper plugins, which are statically linked |
| 18 | # into chrome, do we want to build w/o -fPIC? If so, how can we express |
| 19 | # that in the build system? |
[email protected] | d7ec681 | 2012-07-13 22:07:01 | [diff] [blame] | 20 | ['os_posix == 1 and OS != "mac" and OS != "android"', { |
[email protected] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 21 | 'cflags': ['-fPIC', '-fvisibility=hidden'], |
| 22 | |
| 23 | # This is needed to make the Linux shlib build happy. Without this, |
| 24 | # -fvisibility=hidden gets stripped by the exclusion in common.gypi |
| 25 | # that is triggered when a shared library build is specified. |
| 26 | 'cflags/': [['include', '^-fvisibility=hidden$']], |
| 27 | }], |
| 28 | ], |
| 29 | }, |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 30 | 'includes': [ |
[email protected] | 1f081e7a | 2011-12-01 19:33:21 | [diff] [blame] | 31 | 'ppapi_sources.gypi', |
[email protected] | b42370e | 2011-01-22 01:13:09 | [diff] [blame] | 32 | 'ppapi_cpp.gypi', |
| 33 | 'ppapi_gl.gypi', |
[email protected] | 1758e88 | 2010-11-01 16:16:50 | [diff] [blame] | 34 | ], |
| 35 | } |