Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # conditions used in both common.gypi and skia.gyp in chromium | 1 # conditions used in both common.gypi and skia.gyp in chromium |
| 2 # | 2 # |
| 3 { | 3 { |
| 4 'defines': [ | 4 'defines': [ |
| 5 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', | 5 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', |
| 6 'SK_SUPPORT_GPU=<(skia_gpu)', | 6 'SK_SUPPORT_GPU=<(skia_gpu)', |
| 7 'SK_SUPPORT_OPENCL=<(skia_opencl)', | 7 'SK_SUPPORT_OPENCL=<(skia_opencl)', |
| 8 'SK_DISTANCEFIELD_FONTS=<(skia_distancefield_fonts)', | 8 'SK_DISTANCEFIELD_FONTS=<(skia_distancefield_fonts)', |
| 9 ], | 9 ], |
| 10 'conditions' : [ | 10 'conditions' : [ |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 186 'cflags': [ | 186 'cflags': [ |
| 187 '-mfloat-abi=softfp', | 187 '-mfloat-abi=softfp', |
| 188 ], | 188 ], |
| 189 }], | 189 }], |
| 190 ], | 190 ], |
| 191 }], | 191 }], |
| 192 ], | 192 ], |
| 193 }, | 193 }, |
| 194 ], | 194 ], |
| 195 | 195 |
| 196 ['skia_android_framework', { | |
| 197 'cflags': [ | |
| 198 # Skia does not enforce this usage pattern so we disable it here to avoi d | |
| 199 # unecessary log spew when building | |
| 200 '-Wno-unused-parameter', | |
| 201 | |
| 202 # Android's -D_FORTIFY_SOURCE=2 extensions are incompatibile with SkStri ng. | |
| 203 # Revert to -D_FORTIFY_SOURCE=1 | |
| 204 '-U_FORTIFY_SOURCE', | |
| 205 '-D_FORTIFY_SOURCE=1', | |
| 206 ], | |
| 207 'cflags!': [ | |
|
djsollen
2014/01/21 17:47:37
how do we determine what goes in this list?
scroggo
2014/01/21 19:10:06
Mostly these are flags that ended up in the final
| |
| 208 '-fstrict-aliasing', | |
| 209 '-Wall', | |
| 210 '-Wno-c++11-extensions', | |
| 211 '-fuse-ld=gold', | |
| 212 '-fno-exceptions', | |
| 213 '-fomit-frame-pointer', | |
| 214 '-mno-apcs-frame', | |
| 215 '-g', | |
|
scroggo
2014/01/21 19:10:06
This flag came along with using the default config
| |
| 216 '-mthumb', | |
| 217 '-march=armv7-a', | |
| 218 '-mfpu=neon', | |
| 219 '-mfloat-abi=softfp', | |
| 220 '-msse2', | |
| 221 '-mssse3', | |
| 222 ], | |
| 223 'cflags_cc!': [ | |
| 224 '-fno-rtti', | |
| 225 ], | |
| 226 'defines': [ | |
| 227 'DCT_IFAST_SUPPORTED', | |
| 228 # using freetype's embolden allows us to adjust fake bold settings at | |
| 229 # draw-time, at which point we know which SkTypeface is being drawn | |
| 230 'SK_USE_FREETYPE_EMBOLDEN', | |
| 231 # Android provides at least FreeType 2.4.0 at runtime. | |
| 232 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', | |
| 233 # Skia should not use dlopen on Android. | |
| 234 'SK_CAN_USE_DLOPEN=0', | |
| 235 ], | |
| 236 'defines!': [ | |
| 237 # Don't hardcode these into the Android.mk | |
| 238 'SK_DEBUG', | |
| 239 'SK_DEVELOPER=1', | |
| 240 ], | |
| 241 'libraries!': [ | |
| 242 '-lstdc++', | |
| 243 '-lm', | |
| 244 ], | |
| 245 'include_dirs!': [ | |
|
djsollen
2014/01/21 17:47:37
who generates these?
scroggo
2014/01/21 19:10:06
core.gyp. They've been there since the start (see
| |
| 246 'config', | |
| 247 'ext', | |
| 248 ], | |
| 249 }], | |
| 196 | 250 |
| 197 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"] ', | 251 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"] ', |
| 198 { | 252 { |
| 199 'defines': [ | 253 'defines': [ |
| 200 'SK_SAMPLES_FOR_X', | 254 'SK_SAMPLES_FOR_X', |
| 201 'SK_BUILD_FOR_UNIX', | 255 'SK_BUILD_FOR_UNIX', |
| 202 ], | 256 ], |
| 203 'configurations': { | 257 'configurations': { |
| 204 'Coverage': { | 258 'Coverage': { |
| 205 'cflags': ['--coverage'], | 259 'cflags': ['--coverage'], |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 468 'defines': [ | 522 'defines': [ |
| 469 'SK_USE_POSIX_THREADS', | 523 'SK_USE_POSIX_THREADS', |
| 470 ], | 524 ], |
| 471 }], | 525 }], |
| 472 ], # end 'conditions' | 526 ], # end 'conditions' |
| 473 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details | 527 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details |
| 474 'xcode_settings': { | 528 'xcode_settings': { |
| 475 'SYMROOT': '<(DEPTH)/xcodebuild', | 529 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 476 }, | 530 }, |
| 477 } | 531 } |
| OLD | NEW |