| 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_HINTING_SCALE_FACTOR', | 6 # 'SK_SUPPORT_HINTING_SCALE_FACTOR', |
| 7 ], | 7 ], |
| 8 'conditions' : [ | 8 'conditions' : [ |
| 9 [ 'skia_gpu == 1', | 9 [ 'skia_gpu == 1', |
| 10 { | 10 { |
| 11 'defines': [ | 11 'defines': [ |
| 12 'SK_SUPPORT_GPU=1', | 12 'SK_SUPPORT_GPU=1', |
| 13 ], | 13 ], |
| 14 }, { | 14 }, { |
| 15 'defines': [ | 15 'defines': [ |
| 16 'SK_SUPPORT_GPU=0', | 16 'SK_SUPPORT_GPU=0', |
| 17 ], | 17 ], |
| 18 }, | 18 }, |
| 19 ], | 19 ], |
| 20 |
| 20 [ 'skia_os == "win"', | 21 [ 'skia_os == "win"', |
| 21 { | 22 { |
| 22 'defines': [ | 23 'defines': [ |
| 23 'SK_BUILD_FOR_WIN32', | 24 'SK_BUILD_FOR_WIN32', |
| 24 'SK_IGNORE_STDINT_DOT_H', | 25 'SK_IGNORE_STDINT_DOT_H', |
| 25 '_CRT_SECURE_NO_WARNINGS', | 26 '_CRT_SECURE_NO_WARNINGS', |
| 26 'GR_GL_FUNCTION_TYPE=__stdcall', | 27 'GR_GL_FUNCTION_TYPE=__stdcall', |
| 27 ], | 28 ], |
| 28 'msvs_cygwin_shell': 0, | 29 'msvs_cygwin_shell': 0, |
| 29 'msvs_settings': { | 30 'msvs_settings': { |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 'AdditionalOptions': [ | 120 'AdditionalOptions': [ |
| 120 '/EHsc', | 121 '/EHsc', |
| 121 ], | 122 ], |
| 122 }, | 123 }, |
| 123 }, | 124 }, |
| 124 }], | 125 }], |
| 125 ], | 126 ], |
| 126 }, | 127 }, |
| 127 ], | 128 ], |
| 128 | 129 |
| 130 # The following section is common to linux + derivatives and android |
| 131 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos",
"android"]', |
| 132 { |
| 133 'conditions': [ |
| 134 [ 'skia_warnings_as_errors', { |
| 135 'cflags': [ |
| 136 '-Werror', |
| 137 ], |
| 138 }], |
| 139 [ 'skia_arch_type == "arm" and arm_thumb == 1', { |
| 140 'cflags': [ |
| 141 '-mthumb', |
| 142 ], |
| 143 }], |
| 144 [ 'skia_arch_type == "arm" and armv7 == 1', { |
| 145 'variables': { |
| 146 'arm_neon_optional%': 0, |
| 147 }, |
| 148 'defines': [ |
| 149 '__ARM_ARCH__=7', |
| 150 ], |
| 151 'cflags': [ |
| 152 '-march=armv7-a', |
| 153 '-mfloat-abi=softfp', |
| 154 ], |
| 155 'conditions': [ |
| 156 [ 'arm_neon == 1', { |
| 157 'defines': [ |
| 158 '__ARM_HAVE_NEON', |
| 159 ], |
| 160 'cflags': [ |
| 161 '-mfpu=neon', |
| 162 ], |
| 163 'ldflags': [ |
| 164 '-march=armv7-a', |
| 165 '-Wl,--fix-cortex-a8', |
| 166 ], |
| 167 }], |
| 168 [ 'arm_neon_optional == 1', { |
| 169 'defines': [ |
| 170 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', |
| 171 ], |
| 172 }], |
| 173 ], |
| 174 }], |
| 175 ], |
| 176 }, |
| 177 ], |
| 178 |
| 179 |
| 129 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"]
', | 180 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"]
', |
| 130 { | 181 { |
| 131 'defines': [ | 182 'defines': [ |
| 132 'SK_SAMPLES_FOR_X', | 183 'SK_SAMPLES_FOR_X', |
| 133 'SK_BUILD_FOR_UNIX', | 184 'SK_BUILD_FOR_UNIX', |
| 134 ], | 185 ], |
| 135 'configurations': { | 186 'configurations': { |
| 136 'Debug': { | 187 'Debug': { |
| 137 'cflags': ['-g'] | 188 'cflags': ['-g'] |
| 138 }, | 189 }, |
| (...skipping 17 matching lines...) Expand all Loading... |
| 156 'cflags': [ | 207 'cflags': [ |
| 157 '-fPIC', | 208 '-fPIC', |
| 158 ], | 209 ], |
| 159 'defines': [ | 210 'defines': [ |
| 160 'GR_DLL=1', | 211 'GR_DLL=1', |
| 161 'GR_IMPLEMENTATION=1', | 212 'GR_IMPLEMENTATION=1', |
| 162 'SKIA_DLL', | 213 'SKIA_DLL', |
| 163 'SKIA_IMPLEMENTATION=1', | 214 'SKIA_IMPLEMENTATION=1', |
| 164 ], | 215 ], |
| 165 }], | 216 }], |
| 166 [ 'skia_warnings_as_errors', { | |
| 167 'cflags': [ | |
| 168 '-Werror', | |
| 169 ], | |
| 170 }], | |
| 171 [ 'skia_os == "nacl"', { | 217 [ 'skia_os == "nacl"', { |
| 172 'defines': [ | 218 'defines': [ |
| 173 'SK_BUILD_FOR_NACL', | 219 'SK_BUILD_FOR_NACL', |
| 174 ], | 220 ], |
| 175 'link_settings': { | 221 'link_settings': { |
| 176 'libraries': [ | 222 'libraries': [ |
| 177 '-lppapi', | 223 '-lppapi', |
| 178 '-lppapi_cpp', | 224 '-lppapi_cpp', |
| 179 '-lnosys', | 225 '-lnosys', |
| 180 '-pthread', | 226 '-pthread', |
| 181 ], | 227 ], |
| 182 }, | 228 }, |
| 183 }, { # skia_os != "nacl" | 229 }, { # skia_os != "nacl" |
| 184 'include_dirs' : [ | 230 'include_dirs' : [ |
| 185 '/usr/include/freetype2', | 231 '/usr/include/freetype2', |
| 186 ], | 232 ], |
| 187 }], | 233 }], |
| 188 [ 'skia_os == "chromeos"', { | 234 [ 'skia_os == "chromeos"', { |
| 189 'ldflags': [ | 235 'ldflags': [ |
| 190 '-lstdc++', | 236 '-lstdc++', |
| 191 '-lm', | 237 '-lm', |
| 192 ], | 238 ], |
| 193 }, { | 239 }, { |
| 194 'conditions': [ | 240 'conditions': [ |
| 195 [ 'skia_arch_width == 64', { | 241 [ 'skia_arch_width == 64 and skia_arch_type == "x86"', { |
| 196 'cflags': [ | 242 'cflags': [ |
| 197 '-m64', | 243 '-m64', |
| 198 ], | 244 ], |
| 199 'ldflags': [ | 245 'ldflags': [ |
| 200 '-m64', | 246 '-m64', |
| 201 ], | 247 ], |
| 202 }], | 248 }], |
| 203 [ 'skia_arch_width == 32', { | 249 [ 'skia_arch_width == 32 and skia_arch_type == "x86"', { |
| 204 'cflags': [ | 250 'cflags': [ |
| 205 '-m32', | 251 '-m32', |
| 206 ], | 252 ], |
| 207 'ldflags': [ | 253 'ldflags': [ |
| 208 '-m32', | 254 '-m32', |
| 209 ], | 255 ], |
| 210 }], | 256 }], |
| 211 ], | 257 ], |
| 212 }], | 258 }], |
| 213 ], | 259 ], |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 'cflags': [ | 404 'cflags': [ |
| 359 '-Wall', | 405 '-Wall', |
| 360 '-fno-exceptions', | 406 '-fno-exceptions', |
| 361 '-fstrict-aliasing', | 407 '-fstrict-aliasing', |
| 362 '-fuse-ld=gold', | 408 '-fuse-ld=gold', |
| 363 ], | 409 ], |
| 364 'cflags_cc': [ | 410 'cflags_cc': [ |
| 365 '-fno-rtti', | 411 '-fno-rtti', |
| 366 ], | 412 ], |
| 367 'conditions': [ | 413 'conditions': [ |
| 368 [ 'skia_warnings_as_errors', { | |
| 369 'cflags': [ | |
| 370 '-Werror', | |
| 371 ], | |
| 372 }], | |
| 373 [ 'skia_profile_enabled == 1', { | |
| 374 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'], | |
| 375 }], | |
| 376 [ 'skia_shared_lib', { | 414 [ 'skia_shared_lib', { |
| 377 'cflags': [ | 415 'cflags': [ |
| 378 '-fPIC', | 416 '-fPIC', |
| 379 ], | 417 ], |
| 380 'defines': [ | 418 'defines': [ |
| 381 'GR_DLL=1', | 419 'GR_DLL=1', |
| 382 'GR_IMPLEMENTATION=1', | 420 'GR_IMPLEMENTATION=1', |
| 383 'SKIA_DLL', | 421 'SKIA_DLL', |
| 384 'SKIA_IMPLEMENTATION=1', | 422 'SKIA_IMPLEMENTATION=1', |
| 385 ], | 423 ], |
| 386 }], | 424 }], |
| 387 [ 'skia_arch_type == "arm" and arm_thumb == 1', { | 425 [ 'skia_profile_enabled == 1', { |
| 388 'cflags': [ | 426 'cflags': ['-g', '-fno-omit-frame-pointer', '-marm', '-mapcs'], |
| 389 '-mthumb', | |
| 390 ], | |
| 391 }], | 427 }], |
| 392 [ 'skia_arch_type == "arm" and armv7 == 1', { | |
| 393 'variables': { | |
| 394 'arm_neon_optional%': 0, | |
| 395 }, | |
| 396 'defines': [ | |
| 397 '__ARM_ARCH__=7', | |
| 398 ], | |
| 399 'cflags': [ | |
| 400 '-march=armv7-a', | |
| 401 '-mfloat-abi=softfp', | |
| 402 ], | |
| 403 'conditions': [ | |
| 404 [ 'arm_neon == 1', { | |
| 405 'defines': [ | |
| 406 '__ARM_HAVE_NEON', | |
| 407 ], | |
| 408 'cflags': [ | |
| 409 '-mfpu=neon', | |
| 410 ], | |
| 411 'ldflags': [ | |
| 412 '-march=armv7-a', | |
| 413 '-Wl,--fix-cortex-a8', | |
| 414 ], | |
| 415 }], | |
| 416 [ 'arm_neon_optional == 1', { | |
| 417 'defines': [ | |
| 418 '__ARM_HAVE_OPTIONAL_NEON_SUPPORT', | |
| 419 ], | |
| 420 }], | |
| 421 ], | |
| 422 }], | |
| 423 ], | 428 ], |
| 424 }, | 429 }, |
| 425 ], | 430 ], |
| 426 | 431 |
| 427 # We can POD-style initialization of static mutexes to avoid generating | 432 # We can POD-style initialization of static mutexes to avoid generating |
| 428 # static initializers if we're using a pthread-compatible thread interface. | 433 # static initializers if we're using a pthread-compatible thread interface. |
| 429 [ 'skia_os != "win"', { | 434 [ 'skia_os != "win"', { |
| 430 'defines': [ | 435 'defines': [ |
| 431 'SK_USE_POSIX_THREADS', | 436 'SK_USE_POSIX_THREADS', |
| 432 ], | 437 ], |
| 433 }], | 438 }], |
| 434 ], # end 'conditions' | 439 ], # end 'conditions' |
| 435 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details | 440 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for
more details |
| 436 'xcode_settings': { | 441 'xcode_settings': { |
| 437 'SYMROOT': '<(DEPTH)/xcodebuild', | 442 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 438 }, | 443 }, |
| 439 } | 444 } |
| 440 | 445 |
| 441 # Local Variables: | 446 # Local Variables: |
| 442 # tab-width:2 | 447 # tab-width:2 |
| 443 # indent-tabs-mode:nil | 448 # indent-tabs-mode:nil |
| 444 # End: | 449 # End: |
| 445 # vim: set expandtab tabstop=2 shiftwidth=2: | 450 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |