Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: gyp/common.gypi

Issue 1036283002: Remove all code related to NaCl (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gyp/apptype_console.gypi ('k') | gyp/common_conditions.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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',
11 ], 11 ],
12 12
13 'target_defaults': { 13 'target_defaults': {
14 'defines': [ 14 'defines': [
15 'SK_INTERNAL', 15 'SK_INTERNAL',
16 'SK_GAMMA_SRGB', 16 'SK_GAMMA_SRGB',
17 'SK_GAMMA_APPLY_TO_A8', 17 'SK_GAMMA_APPLY_TO_A8',
18 'SK_SCALAR_TO_FLOAT_EXCLUDED', # temporary to allow Chrome to call SkFloa tToScalar 18 'SK_SCALAR_TO_FLOAT_EXCLUDED', # temporary to allow Chrome to call SkFloa tToScalar
19 # 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE', # TODO(reed): Re-enable when tes ts don't crash with this. 19 # 'SK_USE_DISCARDABLE_SCALEDIMAGECACHE', # TODO(reed): Re-enable when tes ts don't crash with this.
20 ], 20 ],
21 21
22 # Validate the 'skia_os' setting against 'OS', because only certain 22 # Validate the 'skia_os' setting against 'OS', because only certain
23 # combinations work. You should only override 'skia_os' for certain 23 # combinations work. You should only override 'skia_os' for certain
24 # situations, like building for iOS on a Mac. 24 # situations, like building for iOS on a Mac.
25 'variables': { 25 'variables': {
26 'conditions': [ 26 'conditions': [
27 [ 'skia_os != OS and not ((skia_os == "ios" and OS == "mac") or \ 27 [ 'skia_os != OS and not ((skia_os == "ios" and OS == "mac") or \
28 (skia_os == "nacl" and OS == "linux") or \
29 (skia_os == "chromeos" and OS == "linux"))', { 28 (skia_os == "chromeos" and OS == "linux"))', {
30 'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))', 29 'error': '<!(Cannot build with skia_os=<(skia_os) on OS=<(OS))',
31 }], 30 }],
32 [ 'skia_mesa and skia_os not in ["mac", "linux"]', { 31 [ 'skia_mesa and skia_os not in ["mac", "linux"]', {
33 'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux". )', 32 'error': '<!(skia_mesa=1 only supported with skia_os="mac" or "linux". )',
34 }], 33 }],
35 [ 'skia_angle and not skia_os == "win"', { 34 [ 'skia_angle and not skia_os == "win"', {
36 'error': '<!(skia_angle=1 only supported with skia_os="win".)', 35 'error': '<!(skia_angle=1 only supported with skia_os="win".)',
37 }], 36 }],
38 [ 'skia_arch_width != 32 and skia_arch_width != 64', { 37 [ 'skia_arch_width != 32 and skia_arch_width != 64', {
39 'error': '<!(skia_arch_width can only be 32 or 64 bits not <(skia_arch _width) bits)', 38 'error': '<!(skia_arch_width can only be 32 or 64 bits not <(skia_arch _width) bits)',
40 }], 39 }],
41 [ 'skia_os == "nacl" and OS != "linux"', {
42 'error': '<!(Skia NaCl build only currently supported on Linux.)',
43 }],
44 [ 'skia_os == "chromeos" and OS != "linux"', { 40 [ 'skia_os == "chromeos" and OS != "linux"', {
45 'error': '<!(Skia ChromeOS build is only supported on Linux.)', 41 'error': '<!(Skia ChromeOS build is only supported on Linux.)',
46 }], 42 }],
47 ], 43 ],
48 }, 44 },
49 'includes': [ 45 'includes': [
50 'common_conditions.gypi', 46 'common_conditions.gypi',
51 ], 47 ],
52 'conditions': [ 48 'conditions': [
53 [ 'skia_mesa', { 49 [ 'skia_mesa', {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 'Release': { 'defines': [ 'NDEBUG' ] }, 82 'Release': { 'defines': [ 'NDEBUG' ] },
87 'Release_Developer': { 83 'Release_Developer': {
88 'inherit_from': ['Release'], 84 'inherit_from': ['Release'],
89 'defines': [ 'SK_DEVELOPER=1' ], 85 'defines': [ 'SK_DEVELOPER=1' ],
90 }, 86 },
91 }, 87 },
92 }], 88 }],
93 ], 89 ],
94 }, # end 'target_defaults' 90 }, # end 'target_defaults'
95 } 91 }
OLDNEW
« no previous file with comments | « gyp/apptype_console.gypi ('k') | gyp/common_conditions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698