| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, # Use higher warning level. | 7 'chromium_code': 1, # Use higher warning level. |
| 8 }, | 8 }, |
| 9 'target_defaults': { | 9 'target_defaults': { |
| 10 'conditions': [ | 10 'conditions': [ |
| 11 # Linux shared libraries should always be built -fPIC. | 11 # Linux shared libraries should always be built -fPIC. |
| 12 # | 12 # |
| 13 # TODO(ajwong): For internal pepper plugins, which are statically linked | 13 # TODO(ajwong): For internal pepper plugins, which are statically linked |
| 14 # into chrome, do we want to build w/o -fPIC? If so, how can we express | 14 # into chrome, do we want to build w/o -fPIC? If so, how can we express |
| 15 # that in the build system? | 15 # that in the build system? |
| 16 ['os_posix==1 and OS!="android" and OS!="mac"', { | 16 ['os_posix==1 and OS!="android" and OS!="mac"', { |
| 17 'cflags': ['-fPIC', '-fvisibility=hidden'], | 17 'cflags': ['-fPIC', '-fvisibility=hidden'], |
| 18 | 18 |
| 19 # This is needed to make the Linux shlib build happy. Without this, | 19 # This is needed to make the Linux shlib build happy. Without this, |
| 20 # -fvisibility=hidden gets stripped by the exclusion in common.gypi | 20 # -fvisibility=hidden gets stripped by the exclusion in common.gypi |
| 21 # that is triggered when a shared library build is specified. | 21 # that is triggered when a shared library build is specified. |
| 22 'cflags/': [['include', '^-fvisibility=hidden$']], | 22 'cflags/': [['include', '^-fvisibility=hidden$']], |
| 23 }], | 23 }], |
| 24 ], | 24 ], |
| 25 }, | 25 }, |
| 26 'includes': [ | 26 'includes': [ |
| 27 '../native_client/build/untrusted.gypi', | 27 'ppapi_sources.gypi', |
| 28 'ppapi_proxy.gypi', | 28 'ppapi_proxy.gypi', |
| 29 'ppapi_shared.gypi', | 29 'ppapi_shared.gypi', |
| 30 'ppapi_tests.gypi', | 30 'ppapi_tests.gypi', |
| 31 ], | 31 ], |
| 32 } | 32 } |
| OLD | NEW |