Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2011 The Android Open Source Project | 1 # Copyright 2011 The Android Open Source Project |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 # | 5 # |
| 6 # This file is automatically included by gyp_skia when building any target. | 6 # This file is automatically included by gyp_skia when building any target. |
| 7 | 7 |
| 8 { | 8 { |
| 9 'includes': [ | 9 'includes': [ |
| 10 'common_variables.gypi', | 10 'common_variables.gypi', |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 # Validate the 'skia_os' setting against 'OS', because only certain | 21 # Validate the 'skia_os' setting against 'OS', because only certain |
| 22 # combinations work. You should only override 'skia_os' for certain | 22 # combinations work. You should only override 'skia_os' for certain |
| 23 # situations, like building for iOS on a Mac. | 23 # situations, like building for iOS on a Mac. |
| 24 'variables': { | 24 'variables': { |
| 25 'conditions': [ | 25 'conditions': [ |
| 26 [ 'skia_os != OS and not ((skia_os == "ios" and OS == "mac") or \ | 26 [ 'skia_os != OS and not ((skia_os == "ios" and OS == "mac") or \ |
| 27 (skia_os == "chromeos" and OS == "linux"))', { | 27 (skia_os == "chromeos" and OS == "linux"))', { |
| 28 'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))', | 28 'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))', |
| 29 }], | 29 }], |
| 30 [ 'skia_mesa and skia_os not in ["mac", "linux"]', { | 30 [ 'skia_mesa and skia_os not in ["mac", "linux"]', { |
| 31 'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux". )', | 31 'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux". )', |
| 32 }], | 32 }], |
| 33 [ 'skia_angle and not skia_os == "win"', { | 33 [ 'skia_angle and not (skia_os == "win" or skia_os == "linux")', { |
| 34 'error': '<!(skia_angle=1 only supported with skia_os="win".)', | 34 'error': '<!(skia_angle=1 only supported with skia_os="win" or skia_ok ="linux".)', |
|
bsalomon
2015/09/21 12:57:08
skia_os?
| |
| 35 }], | 35 }], |
| 36 [ 'skia_os == "chromeos" and OS != "linux"', { | 36 [ 'skia_os == "chromeos" and OS != "linux"', { |
| 37 'error': '<!(Skia ChromeOS build is only supported on Linux.)', | 37 'error': '<!(Skia ChromeOS build is only supported on Linux.)', |
| 38 }], | 38 }], |
| 39 ], | 39 ], |
| 40 }, | 40 }, |
| 41 'includes': [ | 41 'includes': [ |
| 42 'common_conditions.gypi', | 42 'common_conditions.gypi', |
| 43 ], | 43 ], |
| 44 'conditions': [ | 44 'conditions': [ |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 'Release': { 'defines': [ 'NDEBUG' ] }, | 98 'Release': { 'defines': [ 'NDEBUG' ] }, |
| 99 'Release_Developer': { | 99 'Release_Developer': { |
| 100 'inherit_from': ['Release'], | 100 'inherit_from': ['Release'], |
| 101 'defines': [ 'SK_DEVELOPER=1' ], | 101 'defines': [ 'SK_DEVELOPER=1' ], |
| 102 }, | 102 }, |
| 103 }, | 103 }, |
| 104 }], | 104 }], |
| 105 ], | 105 ], |
| 106 }, # end 'target_defaults' | 106 }, # end 'target_defaults' |
| 107 } | 107 } |
| OLD | NEW |