Chromium Code Reviews| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 'skia_arch_type%': 'arm', | 86 'skia_arch_type%': 'arm', |
| 87 'arm_version%': 7, | 87 'arm_version%': 7, |
| 88 'arm_neon%': 0, # neon asm files known not to work with the ios build | 88 'arm_neon%': 0, # neon asm files known not to work with the ios build |
| 89 },{ # skia_os is not ios | 89 },{ # skia_os is not ios |
| 90 'skia_arch_type%': 'x86', | 90 'skia_arch_type%': 'x86', |
| 91 'arm_version%': 0, | 91 'arm_version%': 0, |
| 92 'arm_neon%': 0, | 92 'arm_neon%': 0, |
| 93 }], | 93 }], |
| 94 ], | 94 ], |
| 95 | 95 |
| 96 # skia_freetype_static - on OS variants that normally would | |
| 97 # dynamically link the system FreeType library, don't do that; | |
| 98 # instead statically link to the version in third_party/freetype | |
| 99 # and third_party/externals/freetype. | |
| 100 'skia_freetype_static%': 'skia_os in ["android", "nacl"]', | |
|
scroggo
2014/02/18 21:46:24
It seems like these aren't really "common". Aren't
borenet
2014/02/18 22:15:36
I could go either way, but I think it makes sense
hal.canary
2014/02/19 15:21:03
It looks like many of the variables are only used
| |
| 101 | |
| 102 # skia_freetype_dynamic - use the system-proviced version of the | |
| 103 # FreeType library. If both skia_freetype_dynamic and | |
| 104 # skia_freetype_static are true, skia_freetype_static takes | |
| 105 # precedence. | |
|
borenet
2014/02/18 22:15:36
I don't like these conflicting variables. "not ski
hal.canary
2014/02/19 15:21:03
More inspection indicated that if we got to freety
| |
| 106 'skia_freetype_dynamic%': | |
| 107 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', | |
| 108 | |
| 109 # skia_giflib_static - on OS variants that normally would link giflib | |
| 110 # with '-lgif' and include the headers from '/usr/include/gif_lib.h', | |
| 111 # don't do that; instead compile and staticlly link the version of | |
| 112 # giflib in third_party/externals/giflib. | |
| 113 'skia_giflib_static%': '0', | |
| 114 | |
| 115 # skia_libpng_static - on OS variants that normally would link libpng | |
| 116 # with '-lpng' and include the headers from '/usr/include/png.h', | |
| 117 # don't do that; instead compile and staticlly link the version of | |
| 118 # libpng in third_party/externals/libpng. | |
| 119 'skia_libpng_static%': '0', | |
| 120 | |
| 121 # skia_zlib_static - on OS variants that normally would link zlib with | |
| 122 # '-lz' or libz.dylib and include the headers from '<zlib.h>', | |
| 123 # don't do that; instead compile and staticlly link the version of | |
| 124 # zlib in third_party/externals/zlib. | |
| 125 'skia_zlib_static%': '0', | |
| 126 | |
| 127 # skia_no_fontconfig - On POSIX systems that would normally use the | |
| 128 # SkFontHost_fontconfig interface; use the SkFontHost_linux | |
| 129 # version instead. | |
| 130 'skia_no_fontconfig%': '0', | |
| 131 | |
| 96 'skia_sanitizer%': '', | 132 'skia_sanitizer%': '', |
| 97 'skia_scalar%': 'float', | 133 'skia_scalar%': 'float', |
| 98 'skia_mesa%': 0, | 134 'skia_mesa%': 0, |
| 99 'skia_stroke_path_rendering%': 0, | 135 'skia_stroke_path_rendering%': 0, |
| 100 'skia_android_path_rendering%': 0, | 136 'skia_android_path_rendering%': 0, |
| 101 'skia_resource_cache_mb_limit%': 0, | 137 'skia_resource_cache_mb_limit%': 0, |
| 102 'skia_resource_cache_count_limit%': 0, | 138 'skia_resource_cache_count_limit%': 0, |
| 103 'skia_angle%': 0, | 139 'skia_angle%': 0, |
| 104 'skia_directwrite%': 0, | 140 'skia_directwrite%': 0, |
| 105 'skia_gpu%': 1, | 141 'skia_gpu%': 1, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 144 }], | 180 }], |
| 145 ], | 181 ], |
| 146 | 182 |
| 147 # Re-define all variables defined within the level-2 'variables' dict, | 183 # Re-define all variables defined within the level-2 'variables' dict, |
| 148 # so that siblings of the level-1 'variables' dict can see them. | 184 # so that siblings of the level-1 'variables' dict can see them. |
| 149 'arm_version%': '<(arm_version)', | 185 'arm_version%': '<(arm_version)', |
| 150 'arm_neon%': '<(arm_neon)', | 186 'arm_neon%': '<(arm_neon)', |
| 151 'arm_neon_optional%': 0, | 187 'arm_neon_optional%': 0, |
| 152 'skia_os%': '<(skia_os)', | 188 'skia_os%': '<(skia_os)', |
| 153 'os_posix%': '<(os_posix)', | 189 'os_posix%': '<(os_posix)', |
| 190 | |
| 191 'skia_freetype_static%': '<(skia_freetype_static)', | |
| 192 'skia_freetype_dynamic%': '<(skia_freetype_dynamic)', | |
| 193 'skia_giflib_static%': '<(skia_giflib_static)', | |
| 194 'skia_libpng_static%': '<(skia_libpng_static)', | |
| 195 'skia_zlib_static%': '<(skia_zlib_static)', | |
| 196 'skia_no_fontconfig%': '<(skia_no_fontconfig)', | |
| 154 'skia_sanitizer%': '<(skia_sanitizer)', | 197 'skia_sanitizer%': '<(skia_sanitizer)', |
| 155 'skia_scalar%': '<(skia_scalar)', | 198 'skia_scalar%': '<(skia_scalar)', |
| 156 'skia_mesa%': '<(skia_mesa)', | 199 'skia_mesa%': '<(skia_mesa)', |
| 157 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', | 200 'skia_stroke_path_rendering%': '<(skia_stroke_path_rendering)', |
| 158 'skia_android_framework%': '<(skia_android_framework)', | 201 'skia_android_framework%': '<(skia_android_framework)', |
| 159 'skia_android_path_rendering%': '<(skia_android_path_rendering)', | 202 'skia_android_path_rendering%': '<(skia_android_path_rendering)', |
| 160 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)', | 203 'skia_resource_cache_mb_limit%': '<(skia_resource_cache_mb_limit)', |
| 161 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)', | 204 'skia_resource_cache_count_limit%': '<(skia_resource_cache_count_limit)', |
| 162 'skia_angle%': '<(skia_angle)', | 205 'skia_angle%': '<(skia_angle)', |
| 163 'skia_poppler_enabled%': '<(skia_poppler_enabled)', | 206 'skia_poppler_enabled%': '<(skia_poppler_enabled)', |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 177 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', | 220 'skia_win_debuggers_path%': '<(skia_win_debuggers_path)', |
| 178 'skia_run_pdfviewer_in_gm%': 0, | 221 'skia_run_pdfviewer_in_gm%': 0, |
| 179 'skia_disable_inlining%': 0, | 222 'skia_disable_inlining%': 0, |
| 180 | 223 |
| 181 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 224 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
| 182 # | 225 # |
| 183 'skia_src_path%': '../src', | 226 'skia_src_path%': '../src', |
| 184 'skia_include_path%': '../include', | 227 'skia_include_path%': '../include', |
| 185 }, | 228 }, |
| 186 } | 229 } |
| OLD | NEW |