Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 # This gypi file handles the removal of platform-specific files from the | 5 # This gypi file handles the removal of platform-specific files from the |
| 6 # Skia build. | 6 # Skia build. |
| 7 { | 7 { |
| 8 'include_dirs': [ | |
| 9 '..', | |
| 10 'config', | |
| 11 ], | |
| 12 | |
| 8 'conditions': [ | 13 'conditions': [ |
| 9 [ 'OS != "android"', { | 14 [ 'OS != "android"', { |
| 10 'sources/': [ | 15 'sources/': [ |
| 11 ['exclude', '_android\\.(cc|cpp)$'], | 16 ['exclude', '_android\\.(cc|cpp)$'], |
| 12 ], | 17 ], |
| 13 }], | 18 }], |
| 14 [ 'OS != "ios"', { | 19 [ 'OS != "ios"', { |
| 15 'sources/': [ | 20 'sources/': [ |
| 16 ['exclude', '_ios\\.(cc|cpp|mm?)$'], | 21 ['exclude', '_ios\\.(cc|cpp|mm?)$'], |
| 17 ], | 22 ], |
| 18 }], | 23 }], |
| 19 [ 'OS != "mac"', { | 24 [ 'OS != "mac"', { |
| 20 'sources/': [ | 25 'sources/': [ |
| 21 ['exclude', '_mac\\.(cc|cpp|mm?)$'], | 26 ['exclude', '_mac\\.(cc|cpp|mm?)$'], |
| 22 ], | 27 ], |
| 23 }], | 28 }], |
| 24 [ 'OS != "win"', { | 29 [ 'OS != "win"', { |
| 25 'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ], | 30 'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ], |
| 26 }], | 31 }], |
| 27 [ 'use_glib == 0', { | 32 [ 'use_glib == 0', { |
| 28 'sources/': [ ['exclude', '_linux\\.(cc|cpp)$'] ], | 33 'sources/': [ ['exclude', '_linux\\.(cc|cpp)$'] ], |
| 29 }], | 34 }], |
| 30 ], | 35 ], |
| 31 | 36 |
| 37 'variables': { | |
| 38 'variables': { 'conditions': [ | |
| 39 [ 'OS == "win"', { | |
| 40 'skia_atomics_impl': 'win', | |
| 41 'skia_mutex_impl': 'win', | |
| 42 }, { 'conditions': [ | |
| 43 [ 'OS == "android" and use_system_skia == 1', { | |
| 44 'skia_atomics_impl': 'android', | |
| 45 'skia_mutex_impl': 'pthread', | |
| 46 }, { | |
| 47 'skia_atomics_impl': 'sync', | |
| 48 'skia_mutex_impl': 'pthread', | |
| 49 }], | |
| 50 ]}], | |
| 51 ]}, | |
| 52 'skia_threading_defines': [ | |
| 53 'SK_ATOMICS_PLATFORM_H="third_party/skia/src/ports/SkAtomics_<(skia_atomic s_impl).h"', | |
| 54 'SK_MUTEX_PLATFORM_H="third_party/skia/src/ports/SkMutex_<(skia_mutex_impl ).h"', | |
| 55 ], | |
| 56 }, | |
| 57 | |
| 58 'defines': [ | |
| 59 '<@(skia_threading_defines)', | |
| 60 ], | |
| 61 | |
| 62 'direct_dependent_settings': { | |
| 63 'include_dirs': [ | |
| 64 '..', | |
| 65 'config', | |
| 66 ], | |
| 67 'defines': [ | |
| 68 '<@(skia_threading_defines)', | |
|
djsollen
2013/09/27 18:17:10
should this be in an all_dependent_settings block
bungeman-skia
2013/09/27 18:39:43
Good question with a complex answer. So, as a poli
| |
| 69 ], | |
| 70 }, | |
| 71 | |
| 32 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800], | 72 'msvs_disabled_warnings': [4244, 4267, 4341, 4345, 4390, 4554, 4748, 4800], |
| 33 } | 73 } |
| OLD | NEW |