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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 # skia_freetype_static - on OS variants that normally would | 114 # skia_freetype_static - on OS variants that normally would |
115 # dynamically link the system FreeType library, don't do | 115 # dynamically link the system FreeType library, don't do |
116 # that; instead statically link to the version in | 116 # that; instead statically link to the version in |
117 # third_party/freetype and third_party/externals/freetype. | 117 # third_party/freetype and third_party/externals/freetype. |
118 { | 118 { |
119 'skia_freetype_static%': '1', | 119 'skia_freetype_static%': '1', |
120 }, { | 120 }, { |
121 'skia_freetype_static%': '0', | 121 'skia_freetype_static%': '0', |
122 } | 122 } |
123 ], | 123 ], |
| 124 [ 'skia_os in ["mac", "ios", "win"]', { |
| 125 # skia_libpng_static - instead of linking libpng with '-lpng' and |
| 126 # including the headers from '/usr/include/png.h', compile and |
| 127 # statically link the version of libpng in |
| 128 # third_party/externals/libpng. |
| 129 'skia_libpng_static%': '1', |
| 130 }, { |
| 131 'skia_libpng_static%': '0', |
| 132 } |
| 133 ], |
124 ], | 134 ], |
125 | 135 |
126 # skia_giflib_static - on OS variants that normally would link giflib | 136 # skia_giflib_static - on OS variants that normally would link giflib |
127 # with '-lgif' and include the headers from '/usr/include/gif_lib.h', | 137 # with '-lgif' and include the headers from '/usr/include/gif_lib.h', |
128 # don't do that; instead compile and staticlly link the version of | 138 # don't do that; instead compile and staticlly link the version of |
129 # giflib in third_party/externals/giflib. | 139 # giflib in third_party/externals/giflib. |
130 'skia_giflib_static%': '0', | 140 'skia_giflib_static%': '0', |
131 | 141 |
132 # skia_libpng_static - on OS variants that normally would link libpng | |
133 # with '-lpng' and include the headers from '/usr/include/png.h', | |
134 # don't do that; instead compile and staticlly link the version of | |
135 # libpng in third_party/externals/libpng. | |
136 'skia_libpng_static%': '0', | |
137 | 142 |
138 # skia_no_fontconfig - On POSIX systems that would normally use the | 143 # skia_no_fontconfig - On POSIX systems that would normally use the |
139 # SkFontHost_fontconfig interface; use the SkFontHost_linux | 144 # SkFontHost_fontconfig interface; use the SkFontHost_linux |
140 # version instead. | 145 # version instead. |
141 'skia_no_fontconfig%': '0', | 146 'skia_no_fontconfig%': '0', |
142 | 147 |
143 'skia_sanitizer%': '', | 148 'skia_sanitizer%': '', |
144 'skia_scalar%': 'float', | 149 'skia_scalar%': 'float', |
145 'skia_mesa%': 0, | 150 'skia_mesa%': 0, |
146 'skia_stroke_path_rendering%': 0, | 151 'skia_stroke_path_rendering%': 0, |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 'skia_moz2d%': 0, | 245 'skia_moz2d%': 0, |
241 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD
LESS\', 0)")', | 246 'skia_is_bot%': '<!(python -c "import os; print os.environ.get(\'CHROME_HEAD
LESS\', 0)")', |
242 'skia_egl%': '<(skia_egl)', | 247 'skia_egl%': '<(skia_egl)', |
243 | 248 |
244 # These are referenced by our .gypi files that list files (e.g. core.gypi) | 249 # These are referenced by our .gypi files that list files (e.g. core.gypi) |
245 # | 250 # |
246 'skia_src_path%': '../src', | 251 'skia_src_path%': '../src', |
247 'skia_include_path%': '../include', | 252 'skia_include_path%': '../include', |
248 }, | 253 }, |
249 } | 254 } |
OLD | NEW |