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 27 matching lines...) Expand all Loading... |
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 # We use 'skia_os' instead of 'OS' throughout our gyp files, to allow |
44 # for cross-compilation (e.g. building for either MacOS or iOS on Mac). | 44 # for cross-compilation (e.g. building for either MacOS or iOS on Mac). |
45 # We set it automatically based on 'OS' (the host OS), but allow the | 45 # We set it automatically based on 'OS' (the host OS), but allow the |
46 # user to override it via GYP_DEFINES if they like. | 46 # user to override it via GYP_DEFINES if they like. |
47 'skia_os%': '<(OS)', | 47 'skia_os%': '<(OS)', |
| 48 |
| 49 'skia_android_framework%': 0, |
48 }, | 50 }, |
49 | 51 |
50 # Re-define all variables defined within the level-3 'variables' dict, | 52 # Re-define all variables defined within the level-3 'variables' dict, |
51 # so that siblings of the level-2 'variables' dict can see them. | 53 # so that siblings of the level-2 'variables' dict can see them. |
52 'skia_os%': '<(skia_os)', | 54 # (skia_os will depend on skia_android_framework.) |
| 55 'skia_android_framework%': '<(skia_android_framework)', |
53 | 56 |
54 'conditions': [ | 57 'conditions': [ |
| 58 [ 'skia_android_framework == 1', { |
| 59 'skia_os%': 'android', |
| 60 }, { |
| 61 'skia_os%': '<(skia_os)', |
| 62 }], |
55 [ 'skia_os == "win"', { | 63 [ 'skia_os == "win"', { |
56 'os_posix%': 0, | 64 'os_posix%': 0, |
57 }, { | 65 }, { |
58 'os_posix%': 1, | 66 'os_posix%': 1, |
59 }], | 67 }], |
60 [ 'skia_os in ["linux", "win"]', { | 68 [ 'skia_os in ["linux", "win"]', { |
61 'skia_poppler_enabled%': 1, | 69 'skia_poppler_enabled%': 1, |
62 }, { | 70 }, { |
63 'skia_poppler_enabled%': 0, | 71 'skia_poppler_enabled%': 0, |
64 }], | 72 }], |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 'skia_distancefield_fonts%': 0, | 111 'skia_distancefield_fonts%': 0, |
104 | 112 |
105 # These variables determine the default optimization level for different | 113 # These variables determine the default optimization level for different |
106 # compilers. | 114 # compilers. |
107 'skia_default_vs_optimization_level': 3, # full (/Ox) | 115 'skia_default_vs_optimization_level': 3, # full (/Ox) |
108 'skia_default_gcc_optimization_level': 3, # -O3 | 116 'skia_default_gcc_optimization_level': 3, # -O3 |
109 }, | 117 }, |
110 | 118 |
111 'conditions': [ | 119 'conditions': [ |
112 [ 'skia_os == "win" and skia_arch_width == 32 or ' | 120 [ 'skia_os == "win" and skia_arch_width == 32 or ' |
113 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"] or ' | 121 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "android"] ' |
| 122 'and skia_android_framework == 0 or ' |
114 'skia_os == "mac" and skia_arch_width == 32', { | 123 'skia_os == "mac" and skia_arch_width == 32', { |
115 'skia_warnings_as_errors%': 1, | 124 'skia_warnings_as_errors%': 1, |
116 }, { | 125 }, { |
117 'skia_warnings_as_errors%': 0, | 126 'skia_warnings_as_errors%': 0, |
118 }], | 127 }], |
119 | 128 |
120 # This variable allows the user to customize the optimization level used | 129 # This variable allows the user to customize the optimization level used |
121 # by the compiler. The user should be aware that this has different | 130 # by the compiler. The user should be aware that this has different |
122 # meanings for different compilers and should exercise caution when | 131 # meanings for different compilers and should exercise caution when |
123 # overriding it. | 132 # overriding it. |
(...skipping 16 matching lines...) Expand all Loading... |
140 'arm_version%': '<(arm_version)', | 149 'arm_version%': '<(arm_version)', |
141 'arm_neon%': '<(arm_neon)', | 150 'arm_neon%': '<(arm_neon)', |
142 'arm_neon_optional%': 0, | 151 'arm_neon_optional%': 0, |
143 'skia_os%': '<(skia_os)', | 152 'skia_os%': '<(skia_os)', |
144 'os_posix%': '<(os_posix)', | 153 'os_posix%': '<(os_posix)', |
145 'skia_sanitizer%': '<(skia_sanitizer)', | 154 'skia_sanitizer%': '<(skia_sanitizer)', |
146 'skia_scalar%': '<(skia_scalar)', | 155 'skia_scalar%': '<(skia_scalar)', |
147 'skia_mesa%': '<(skia_mesa)', | 156 'skia_mesa%': '<(skia_mesa)', |
148 'skia_nv_path_rendering%': '<(skia_nv_path_rendering)', | 157 'skia_nv_path_rendering%': '<(skia_nv_path_rendering)', |
149 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', | 158 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', |
| 159 'skia_android_framework%': '<(skia_android_framework)', |
150 'skia_android_path_rendering%': '<(skia_android_path_rendering)', | 160 'skia_android_path_rendering%': '<(skia_android_path_rendering)', |
151 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)', | 161 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)', |
152 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)', | 162 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)', |
153 'skia_angle%': '<(skia_angle)', | 163 'skia_angle%': '<(skia_angle)', |
154 'skia_poppler_enabled%': '<(skia_poppler_enabled)', | 164 'skia_poppler_enabled%': '<(skia_poppler_enabled)', |
155 'skia_arch_width%': '<(skia_arch_width)', | 165 'skia_arch_width%': '<(skia_arch_width)', |
156 'skia_arch_type%': '<(skia_arch_type)', | 166 'skia_arch_type%': '<(skia_arch_type)', |
157 'skia_chrome_utils%': '<(skia_chrome_utils)', | 167 'skia_chrome_utils%': '<(skia_chrome_utils)', |
158 'skia_directwrite%': '<(skia_directwrite)', | 168 'skia_directwrite%': '<(skia_directwrite)', |
159 'skia_gpu%': '<(skia_gpu)', | 169 'skia_gpu%': '<(skia_gpu)', |
160 'skia_win_exceptions%': 0, | 170 'skia_win_exceptions%': 0, |
161 'skia_osx_sdkroot%': '<(skia_osx_sdkroot)', | 171 'skia_osx_sdkroot%': '<(skia_osx_sdkroot)', |
162 'skia_profile_enabled%': '<(skia_profile_enabled)', | 172 'skia_profile_enabled%': '<(skia_profile_enabled)', |
163 'skia_shared_lib%': '<(skia_shared_lib)', | 173 'skia_shared_lib%': '<(skia_shared_lib)', |
164 'skia_opencl%': '<(skia_opencl)', | 174 'skia_opencl%': '<(skia_opencl)', |
165 'skia_distancefield_fonts%': '<(skia_distancefield_fonts)', | 175 'skia_distancefield_fonts%': '<(skia_distancefield_fonts)', |
166 'skia_static_initializers%': '<(skia_static_initializers)', | 176 'skia_static_initializers%': '<(skia_static_initializers)', |
167 'ios_sdk_version%': '6.0', | 177 'ios_sdk_version%': '6.0', |
168 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', | 178 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', |
169 'skia_run_pdfviewer_in_gm%': 0, | 179 'skia_run_pdfviewer_in_gm%': 0, |
170 | 180 |
171 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 181 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
172 # | 182 # |
173 'skia_src_path%': '../src', | 183 'skia_src_path%': '../src', |
174 'skia_include_path%': '../include', | 184 'skia_include_path%': '../include', |
175 }, | 185 }, |
176 } | 186 } |
OLD | NEW |