OLD | NEW |
1 # Copyright 2012 The Android Open Source Project | 1 # Copyright 2012 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 { | 6 { |
7 # Get ready for the ugly... | 7 # Get ready for the ugly... |
8 # | 8 # |
9 # - We have to nest our variables dictionaries multiple levels deep, so that | 9 # - We have to nest our variables dictionaries multiple levels deep, so that |
10 # this and other gyp files can rely on previously-set variable values in | 10 # this and other gyp files can rely on previously-set variable values in |
(...skipping 22 matching lines...) Expand all Loading... |
33 # we have variable definitions like this: 'skia_os%': '<(skia_os)', | 33 # we have variable definitions like this: 'skia_os%': '<(skia_os)', |
34 # | 34 # |
35 # See http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi?revisi
on=127004 , | 35 # See http://src.chromium.org/viewvc/chrome/trunk/src/build/common.gypi?revisi
on=127004 , |
36 # which deals with these same constraints in a similar manner. | 36 # which deals with these same constraints in a similar manner. |
37 # | 37 # |
38 'variables': { # level 1 | 38 'variables': { # level 1 |
39 'variables': { # level 2 | 39 'variables': { # level 2 |
40 | 40 |
41 # Variables needed by conditions list within the level-2 variables dict. | 41 # Variables needed by conditions list within the level-2 variables dict. |
42 'variables': { # level 3 | 42 'variables': { # level 3 |
43 # We use 'skia_os' instead of 'OS' throughout our gyp files, to allow | 43 'variables': { # level 4 |
44 # for cross-compilation (e.g. building for either MacOS or iOS on Mac). | 44 # We use 'skia_os' instead of 'OS' throughout our gyp files, to allow |
45 # We set it automatically based on 'OS' (the host OS), but allow the | 45 # for cross-compilation (e.g. building for either MacOS or iOS on Mac)
. |
46 # user to override it via GYP_DEFINES if they like. | 46 # We set it automatically based on 'OS' (the host OS), but allow the |
47 'skia_os%': '<(OS)', | 47 # user to override it via GYP_DEFINES if they like. |
| 48 'skia_os%': '<(OS)', |
| 49 }, |
| 50 'skia_os%': '<(skia_os)', |
48 | 51 |
49 'skia_android_framework%': 0, | 52 'skia_android_framework%': 0, |
50 'skia_arch_type%': 'x86', | 53 'conditions' : [ |
| 54 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "mac"]', { |
| 55 'skia_arch_type%': 'x86_64', |
| 56 }, { |
| 57 'skia_arch_type%': 'x86', |
| 58 }], |
| 59 ], |
51 'arm_version%': 0, | 60 'arm_version%': 0, |
52 'arm_neon%': 0, | 61 'arm_neon%': 0, |
53 'skia_egl%': 0, | 62 'skia_egl%': 0, |
54 }, | 63 }, |
55 | 64 |
56 # Re-define all variables defined within the level-3 'variables' dict, | 65 # Re-define all variables defined within the level-3 'variables' dict, |
57 # so that siblings of the level-2 'variables' dict can see them. | 66 # so that siblings of the level-2 'variables' dict can see them. |
58 # (skia_os will depend on skia_android_framework.) | 67 # (skia_os will depend on skia_android_framework.) |
59 'skia_android_framework%': '<(skia_android_framework)', | 68 'skia_android_framework%': '<(skia_android_framework)', |
60 'skia_arch_type%': '<(skia_arch_type)', | 69 'skia_arch_type%': '<(skia_arch_type)', |
(...skipping 14 matching lines...) Expand all Loading... |
75 [ 'skia_os == "win"', { | 84 [ 'skia_os == "win"', { |
76 'os_posix%': 0, | 85 'os_posix%': 0, |
77 }, { | 86 }, { |
78 'os_posix%': 1, | 87 'os_posix%': 1, |
79 }], | 88 }], |
80 [ 'skia_os in ["linux"]', { | 89 [ 'skia_os in ["linux"]', { |
81 'skia_poppler_enabled%': 1, | 90 'skia_poppler_enabled%': 1, |
82 }, { | 91 }, { |
83 'skia_poppler_enabled%': 0, | 92 'skia_poppler_enabled%': 0, |
84 }], | 93 }], |
85 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "mac"] or skia_
arch_type == "arm64"', { | 94 ['"64" in skia_arch_type', { |
86 'skia_arch_width%': 64, | 95 'skia_arch_width%': 64, |
87 }, { | 96 }, { |
88 'skia_arch_width%': 32, | 97 'skia_arch_width%': 32, |
89 }], | 98 }], |
90 [ 'skia_os == "android"', { | 99 [ 'skia_os == "android"', { |
91 'skia_static_initializers%': 0, | 100 'skia_static_initializers%': 0, |
92 'skia_egl%': 1, | 101 'skia_egl%': 1, |
93 }, { | 102 }, { |
94 'skia_static_initializers%': 1, | 103 'skia_static_initializers%': 1, |
95 }], | 104 }], |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 'skia_moz2d%': 0, | 247 'skia_moz2d%': 0, |
239 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD
LESS\', 0)")', | 248 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD
LESS\', 0)")', |
240 'skia_egl%': '<(skia_egl)', | 249 'skia_egl%': '<(skia_egl)', |
241 | 250 |
242 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 251 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
243 # | 252 # |
244 'skia_src_path%': '../src', | 253 'skia_src_path%': '../src', |
245 'skia_include_path%': '../include', | 254 'skia_include_path%': '../include', |
246 }, | 255 }, |
247 } | 256 } |
OLD | NEW |