OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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, | 7 'chromium_code': 1, |
8 'conditions': [ | 8 'conditions': [ |
9 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm")', { | 9 # Pepper demos that are compiled as shared libraries need to be compiled |
| 10 # with -fPIC flag. All static libraries that these demos depend on must |
| 11 # also be compiled with -fPIC flag. Setting GYP_DEFINES="linux_fpic=1" |
| 12 # compiles everything with -fPIC. Disable pepper demos on linux/x64 |
| 13 # unless linux_fpic is 1. |
| 14 ['OS=="linux" and (target_arch=="x64" or target_arch=="arm") and linux_fpi
c!=1', { |
| 15 'enable_pepper_demos%': 0, |
| 16 }, { |
10 'enable_pepper_demos%': 1, | 17 'enable_pepper_demos%': 1, |
11 }, { | |
12 'enable_pepper_demos%': 0, | |
13 }], | 18 }], |
14 ], | 19 ], |
15 }, | 20 }, |
16 'targets': [ | 21 'targets': [ |
17 { | 22 { |
18 'target_name': 'gpu_demo_framework', | 23 'target_name': 'gpu_demo_framework', |
19 'type': 'static_library', | 24 'type': 'static_library', |
20 'dependencies': [ | 25 'dependencies': [ |
21 '../../base/base.gyp:base', | 26 '../../base/base.gyp:base', |
22 ], | 27 ], |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 ], | 295 ], |
291 }], | 296 }], |
292 ], | 297 ], |
293 } | 298 } |
294 | 299 |
295 # Local Variables: | 300 # Local Variables: |
296 # tab-width:2 | 301 # tab-width:2 |
297 # indent-tabs-mode:nil | 302 # indent-tabs-mode:nil |
298 # End: | 303 # End: |
299 # vim: set expandtab tabstop=2 shiftwidth=2: | 304 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |