2011-09-15 14:24:33 +00:00
|
|
|
# conditions used in both common.gypi and skia.gyp in chromium
|
|
|
|
#
|
|
|
|
{
|
2012-08-13 14:26:36 +00:00
|
|
|
'defines': [
|
|
|
|
'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)',
|
2012-09-12 21:08:33 +00:00
|
|
|
# 'SK_SUPPORT_HINTING_SCALE_FACTOR',
|
2012-10-19 01:26:18 +00:00
|
|
|
'SK_REDEFINE_ROOT2OVER2_TO_MAKE_ARCTOS_CONVEX',
|
2012-08-13 14:26:36 +00:00
|
|
|
],
|
2011-09-15 14:24:33 +00:00
|
|
|
'conditions' : [
|
2012-08-02 14:03:32 +00:00
|
|
|
['skia_gpu == 1',
|
|
|
|
{
|
|
|
|
'defines': [
|
|
|
|
'SK_SUPPORT_GPU=1',
|
|
|
|
],
|
|
|
|
}, {
|
|
|
|
'defines': [
|
|
|
|
'SK_SUPPORT_GPU=0',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2011-09-15 14:24:33 +00:00
|
|
|
['skia_os == "win"',
|
|
|
|
{
|
|
|
|
'defines': [
|
|
|
|
'SK_BUILD_FOR_WIN32',
|
|
|
|
'SK_IGNORE_STDINT_DOT_H',
|
2011-09-28 14:32:01 +00:00
|
|
|
'_CRT_SECURE_NO_WARNINGS',
|
2012-07-12 00:34:39 +00:00
|
|
|
'GR_GL_FUNCTION_TYPE=__stdcall',
|
2011-09-15 14:24:33 +00:00
|
|
|
],
|
|
|
|
'msvs_cygwin_shell': 0,
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
|
|
|
'WarningLevel': '1',
|
|
|
|
'WarnAsError': 'false',
|
|
|
|
'DebugInformationFormat': '3',
|
2011-09-16 15:47:33 +00:00
|
|
|
'AdditionalOptions': [ '/MP' ],
|
2011-09-15 14:24:33 +00:00
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
|
|
|
'AdditionalDependencies': [
|
|
|
|
'OpenGL32.lib',
|
|
|
|
'usp10.lib',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
2011-09-28 14:32:01 +00:00
|
|
|
'DebugInformationFormat': '4', # editAndContiue (/ZI)
|
2011-10-03 20:15:13 +00:00
|
|
|
'ProgramDataBaseFileName': '$(OutDir)\\$(ProjectName).pdb',
|
2011-09-15 14:24:33 +00:00
|
|
|
'Optimization': '0', # optimizeDisabled (/Od)
|
|
|
|
'PreprocessorDefinitions': ['_DEBUG'],
|
|
|
|
'RuntimeLibrary': '3', # rtMultiThreadedDebugDLL (/MDd)
|
2011-09-28 14:32:01 +00:00
|
|
|
'ExceptionHandling': '0',
|
|
|
|
'RuntimeTypeInfo': 'false', # /GR-
|
|
|
|
'WarningLevel': '3', # level3 (/W3)
|
2011-09-15 14:24:33 +00:00
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
2011-09-28 14:32:01 +00:00
|
|
|
'GenerateDebugInformation': 'true', # /DEBUG
|
|
|
|
'LinkIncremental': '2', # /INCREMENTAL
|
2011-09-15 14:24:33 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
'Release': {
|
|
|
|
'msvs_settings': {
|
|
|
|
'VCCLCompilerTool': {
|
2012-05-31 14:12:46 +00:00
|
|
|
'DebugInformationFormat': '3', # programDatabase (/Zi)
|
2011-10-03 20:15:13 +00:00
|
|
|
'ProgramDataBaseFileName': '$(OutDir)\\$(ProjectName).pdb',
|
2012-05-31 14:12:46 +00:00
|
|
|
'Optimization': '3', # full (/Ox)
|
2011-09-28 14:32:01 +00:00
|
|
|
'WholeProgramOptimization': 'true', #/GL
|
|
|
|
# Changing the floating point model requires rebaseling gm images
|
2012-05-31 14:12:46 +00:00
|
|
|
#'FloatingPointModel': '2', # fast (/fp:fast)
|
|
|
|
'FavorSizeOrSpeed': '1', # speed (/Ot)
|
2011-09-15 14:24:33 +00:00
|
|
|
'PreprocessorDefinitions': ['NDEBUG'],
|
2012-05-31 14:12:46 +00:00
|
|
|
'RuntimeLibrary': '2', # rtMultiThreadedDLL (/MD)
|
2011-09-28 14:32:01 +00:00
|
|
|
'ExceptionHandling': '0',
|
2012-05-31 14:12:46 +00:00
|
|
|
'EnableEnhancedInstructionSet': '2',# /arch:SSE2
|
|
|
|
'RuntimeTypeInfo': 'false', # /GR-
|
|
|
|
'WarningLevel': '3', # level3 (/W3)
|
2011-09-15 14:24:33 +00:00
|
|
|
},
|
|
|
|
'VCLinkerTool': {
|
2011-09-28 14:32:01 +00:00
|
|
|
'GenerateDebugInformation': 'true', # /DEBUG
|
|
|
|
'LinkTimeCodeGeneration': '1', # useLinkTimeCodeGeneration /LTCG
|
2011-09-15 14:24:33 +00:00
|
|
|
},
|
2011-10-03 19:36:51 +00:00
|
|
|
'VCLibrarianTool': {
|
|
|
|
'LinkTimeCodeGeneration': 'true', # useLinkTimeCodeGeneration /LTCG
|
|
|
|
},
|
2011-09-15 14:24:33 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2012-08-20 18:58:26 +00:00
|
|
|
'conditions' : [
|
|
|
|
['skia_arch_width == 64', {
|
|
|
|
'msvs_configuration_platform': 'x64'
|
|
|
|
}],
|
|
|
|
['skia_arch_width == 32', {
|
|
|
|
'msvs_configuration_platform': 'Win32',
|
|
|
|
}],
|
|
|
|
],
|
2011-09-15 14:24:33 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
|
2012-11-01 17:43:44 +00:00
|
|
|
['skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl"]',
|
2011-09-15 14:24:33 +00:00
|
|
|
{
|
|
|
|
'defines': [
|
|
|
|
'SK_SAMPLES_FOR_X',
|
|
|
|
'SK_BUILD_FOR_UNIX',
|
|
|
|
],
|
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
'cflags': ['-g']
|
|
|
|
},
|
|
|
|
'Release': {
|
2012-07-30 20:40:50 +00:00
|
|
|
'cflags': ['-O3 -g'],
|
2012-01-19 19:59:22 +00:00
|
|
|
'defines': [ 'NDEBUG' ],
|
2011-09-15 14:24:33 +00:00
|
|
|
},
|
|
|
|
},
|
2012-01-06 19:22:11 +00:00
|
|
|
'cflags': [
|
|
|
|
# TODO(tony): Enable -Werror once all the strict-aliasing problems
|
|
|
|
# are fixed.
|
|
|
|
#'-Werror',
|
2011-11-23 15:01:08 +00:00
|
|
|
'-Wall',
|
|
|
|
'-Wextra',
|
|
|
|
'-Wno-unused',
|
|
|
|
# suppressions below here were added for clang
|
|
|
|
'-Wno-unused-parameter',
|
|
|
|
'-Wno-c++11-extensions'
|
|
|
|
],
|
2012-08-09 20:44:32 +00:00
|
|
|
'conditions' : [
|
|
|
|
['skia_arch_width == 64', {
|
|
|
|
'cflags': [
|
|
|
|
'-m64',
|
|
|
|
],
|
|
|
|
'ldflags': [
|
|
|
|
'-m64',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
['skia_arch_width == 32', {
|
|
|
|
'cflags': [
|
|
|
|
'-m32',
|
|
|
|
],
|
|
|
|
'ldflags': [
|
|
|
|
'-m32',
|
|
|
|
],
|
|
|
|
}],
|
2012-11-01 17:43:44 +00:00
|
|
|
[ 'skia_os == "nacl"', {
|
|
|
|
'defines': [
|
|
|
|
'SK_BUILD_FOR_NACL',
|
|
|
|
],
|
|
|
|
'link_settings': {
|
|
|
|
'libraries': [
|
|
|
|
'-lppapi',
|
|
|
|
'-lppapi_cpp',
|
|
|
|
'-lnosys',
|
|
|
|
'-pthread',
|
|
|
|
],
|
|
|
|
},
|
|
|
|
}, { # skia_os != "nacl"
|
|
|
|
'include_dirs' : [
|
|
|
|
'/usr/include/freetype2',
|
|
|
|
],
|
|
|
|
}],
|
2011-09-15 14:24:33 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
|
2012-08-13 14:26:36 +00:00
|
|
|
['skia_os == "mac"',
|
2011-09-15 14:24:33 +00:00
|
|
|
{
|
|
|
|
'defines': [
|
|
|
|
'SK_BUILD_FOR_MAC',
|
|
|
|
],
|
2012-06-28 16:08:05 +00:00
|
|
|
'conditions' : [
|
|
|
|
['skia_arch_width == 64', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'ARCHS': 'x86_64',
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
['skia_arch_width == 32', {
|
|
|
|
'xcode_settings': {
|
|
|
|
'ARCHS': 'i386',
|
|
|
|
},
|
|
|
|
}],
|
|
|
|
],
|
2011-09-15 14:24:33 +00:00
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
'xcode_settings': {
|
|
|
|
'GCC_OPTIMIZATION_LEVEL': '0',
|
|
|
|
},
|
|
|
|
},
|
2011-10-10 14:19:40 +00:00
|
|
|
'Release': {
|
|
|
|
'xcode_settings': {
|
|
|
|
'GCC_OPTIMIZATION_LEVEL': '3',
|
|
|
|
},
|
2012-01-19 19:59:22 +00:00
|
|
|
'defines': [ 'NDEBUG' ],
|
2011-10-10 14:19:40 +00:00
|
|
|
},
|
2011-09-15 14:24:33 +00:00
|
|
|
},
|
|
|
|
'xcode_settings': {
|
2012-04-05 19:29:04 +00:00
|
|
|
'GCC_SYMBOLS_PRIVATE_EXTERN': 'NO',
|
2012-09-20 16:10:02 +00:00
|
|
|
'SDKROOT': '<(skia_osx_sdkroot)',
|
2011-11-17 15:35:47 +00:00
|
|
|
# trying to get this to work, but it needs clang I think...
|
|
|
|
# 'WARNING_CFLAGS': '-Wexit-time-destructors',
|
2011-12-10 19:36:56 +00:00
|
|
|
'CLANG_WARN_CXX0X_EXTENSIONS': 'NO',
|
2012-06-06 12:12:28 +00:00
|
|
|
'GCC_WARN_64_TO_32_BIT_CONVERSION': 'YES',
|
|
|
|
'GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS': 'YES',
|
|
|
|
'GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO': 'YES',
|
|
|
|
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES',
|
|
|
|
'GCC_WARN_ABOUT_MISSING_PROTOTYPES': 'YES',
|
|
|
|
'GCC_WARN_ABOUT_POINTER_SIGNEDNESS': 'YES',
|
|
|
|
'GCC_WARN_ABOUT_RETURN_TYPE': 'YES',
|
|
|
|
'GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL': 'YES',
|
|
|
|
'GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED': 'YES',
|
|
|
|
'GCC_WARN_MISSING_PARENTHESES': 'YES',
|
|
|
|
'GCC_WARN_PROTOTYPE_CONVERSION': 'YES',
|
|
|
|
'GCC_WARN_SIGN_COMPARE': 'YES',
|
|
|
|
'GCC_WARN_TYPECHECK_CALLS_TO_PRINTF': 'YES',
|
|
|
|
'GCC_WARN_UNKNOWN_PRAGMAS': 'YES',
|
|
|
|
'GCC_WARN_UNUSED_FUNCTION': 'YES',
|
|
|
|
'GCC_WARN_UNUSED_LABEL': 'YES',
|
|
|
|
'GCC_WARN_UNUSED_VALUE': 'YES',
|
|
|
|
'GCC_WARN_UNUSED_VARIABLE': 'YES',
|
2012-10-02 15:42:21 +00:00
|
|
|
'OTHER_CPLUSPLUSFLAGS': [
|
|
|
|
'-mssse3',
|
|
|
|
'-fvisibility=hidden',
|
|
|
|
'-fvisibility-inlines-hidden',
|
|
|
|
],
|
2011-09-15 14:24:33 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
|
2012-08-13 14:26:36 +00:00
|
|
|
['skia_os == "ios"',
|
2011-09-15 14:24:33 +00:00
|
|
|
{
|
|
|
|
'defines': [
|
|
|
|
'SK_BUILD_FOR_IOS',
|
|
|
|
],
|
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
'xcode_settings': {
|
|
|
|
'GCC_OPTIMIZATION_LEVEL': '0',
|
|
|
|
},
|
|
|
|
},
|
2012-09-24 19:33:57 +00:00
|
|
|
'Release': {
|
|
|
|
'xcode_settings': {
|
|
|
|
'GCC_OPTIMIZATION_LEVEL': '3',
|
|
|
|
},
|
|
|
|
'defines': [ 'NDEBUG' ],
|
|
|
|
},
|
2011-09-15 14:24:33 +00:00
|
|
|
},
|
|
|
|
'xcode_settings': {
|
2012-09-24 19:33:57 +00:00
|
|
|
'ARCHS': 'armv6 armv7',
|
2012-09-20 15:45:41 +00:00
|
|
|
'CODE_SIGNING_REQUIRED': 'NO',
|
|
|
|
'CODE_SIGN_IDENTITY[sdk=iphoneos*]': '',
|
2012-09-24 19:33:57 +00:00
|
|
|
'IPHONEOS_DEPLOYMENT_TARGET': '<(ios_sdk_version)',
|
2012-09-20 15:45:41 +00:00
|
|
|
'SDKROOT': 'iphoneos',
|
2012-09-24 19:33:57 +00:00
|
|
|
'TARGETED_DEVICE_FAMILY': '1,2',
|
2012-09-20 15:45:41 +00:00
|
|
|
'OTHER_CPLUSPLUSFLAGS': '-fvisibility=hidden -fvisibility-inlines-hidden',
|
2012-09-28 18:33:11 +00:00
|
|
|
'GCC_THUMB_SUPPORT': 'NO',
|
2011-09-15 14:24:33 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2012-08-13 14:26:36 +00:00
|
|
|
|
|
|
|
['skia_os == "android"',
|
2011-11-03 13:08:29 +00:00
|
|
|
{
|
|
|
|
'defines': [
|
|
|
|
'SK_BUILD_FOR_ANDROID',
|
|
|
|
'SK_BUILD_FOR_ANDROID_NDK',
|
|
|
|
],
|
|
|
|
'configurations': {
|
|
|
|
'Debug': {
|
|
|
|
'cflags': ['-g']
|
|
|
|
},
|
|
|
|
'Release': {
|
2012-01-19 19:59:22 +00:00
|
|
|
'cflags': ['-O2'],
|
|
|
|
'defines': [ 'NDEBUG' ],
|
2011-11-03 13:08:29 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
'libraries': [
|
|
|
|
'-lstdc++',
|
|
|
|
'-lm',
|
2011-11-08 19:03:43 +00:00
|
|
|
'-llog',
|
2011-11-03 13:08:29 +00:00
|
|
|
],
|
2011-12-05 13:55:55 +00:00
|
|
|
'cflags': [
|
|
|
|
'-fno-exceptions',
|
|
|
|
'-fno-rtti',
|
2012-07-25 15:17:03 +00:00
|
|
|
'-fuse-ld=gold',
|
|
|
|
'--sysroot=<(android_base)/toolchains/<(android_toolchain)/sysroot',
|
|
|
|
],
|
|
|
|
'include_dirs' : [
|
|
|
|
'<(android_base)/toolchains/<(android_toolchain)/lib/gcc/arm-linux-androideabi/4.6.x-google/include',
|
|
|
|
'<(android_base)/toolchains/<(android_toolchain)/lib/gcc/arm-linux-androideabi/4.6.x-google/include-fixed',
|
|
|
|
'<(android_base)/toolchains/<(android_toolchain)/arm-linux-androideabi/include/c++/4.6',
|
|
|
|
'<(android_base)/toolchains/<(android_toolchain)/arm-linux-androideabi/include/c++/4.6/arm-linux-androideabi',
|
|
|
|
'<(android_base)/toolchains/<(android_toolchain)/sysroot/usr/include',
|
2011-12-05 13:55:55 +00:00
|
|
|
],
|
2011-11-03 13:08:29 +00:00
|
|
|
'conditions': [
|
2012-06-28 16:08:05 +00:00
|
|
|
[ 'skia_arch_type == "arm"', {
|
2012-02-24 14:09:02 +00:00
|
|
|
'ldflags': [
|
|
|
|
'-Wl',
|
|
|
|
],
|
|
|
|
}],
|
2012-06-28 16:08:05 +00:00
|
|
|
[ 'skia_arch_type == "arm" and arm_thumb == 1', {
|
2011-11-03 17:31:41 +00:00
|
|
|
'cflags': [
|
|
|
|
'-mthumb',
|
|
|
|
],
|
|
|
|
}],
|
2012-06-28 16:08:05 +00:00
|
|
|
[ 'skia_arch_type == "arm" and armv7 == 1', {
|
arm: First step towards dynamic NEON support.
This patch adds minimal support for dynamic ARM NEON support,
i.e. the ability to probe the CPU at runtime for NEON and
provide alternate code paths when it is available.
- Add include/core/SkUtilsArm.h, which declares a few helper
macros (e.g. SK_NEON_ARM_IS_DYNAMIC), plus the handy
function 'sk_cpu_arm_has_neon()' which returns true if
the target CPU supports the ARM NEON instruction set.
Note that the header is in include/core/ because it will
have to be included from NEON-specific code under src/code/
It would probably be more logical to put it under include/opts/
instead, but this would require moving all the NEON-specific
stuff under src/code/ into src/opts/, which is not trivial
due to the way the code is currently architected.
- Add src/core/SkUtilsArm.cpp which implements
'sk_cpu_arm_has_neon' for ARM-based Linux systems, only
when SK_NEON_ARM_IS_DYNAMIC is true.
(For other cases, 'sk_cpu_arm_has_neon' is an inline function
that returns a constant 'true' or 'false' value).
There is no user-level accessible CPUID instruction on ARM,
so do all CPU feature probing by parsing /proc/cpuinfo.
This is Linux-specific.
For Debug build types, the CPU probing result is printed
to the Android log (or Linux command-line) for easier
debugging.
- Create a new 'opts_neon' target (static library) which shall
contain all the NEON-specific code paths for the library.
This is necessary because -mfpu=neon impacts also non-scalar
code. Just like with -mssse3 on x86, we can't build the rest
of the library with this flag.
Note that for now, we only include memset16_neon and
memset32_neon in this library.
- Modify opts_check_arm.cpp to implement SK_ARM_NEON_IS_DYNAMIC
properly.
Compared to a 'xoom' build, the only difference is the use of
NEON-optimized memset16/32 functions. Later patches will move
more NEON-specific code paths to 'opts_neon'.
Review URL: https://codereview.appspot.com/6247058
git-svn-id: http://skia.googlecode.com/svn/trunk@4069 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-05-30 13:54:41 +00:00
|
|
|
'variables': {
|
|
|
|
'arm_neon_optional%': 0,
|
|
|
|
},
|
2011-11-03 13:08:29 +00:00
|
|
|
'defines': [
|
|
|
|
'__ARM_ARCH__=7',
|
|
|
|
],
|
|
|
|
'cflags': [
|
|
|
|
'-march=armv7-a',
|
2012-02-24 14:09:02 +00:00
|
|
|
'-mfloat-abi=softfp',
|
2011-11-03 13:08:29 +00:00
|
|
|
],
|
|
|
|
'conditions': [
|
|
|
|
[ 'arm_neon == 1', {
|
|
|
|
'defines': [
|
|
|
|
'__ARM_HAVE_NEON',
|
|
|
|
],
|
|
|
|
'cflags': [
|
|
|
|
'-mfpu=neon',
|
|
|
|
],
|
arm: First step towards dynamic NEON support.
This patch adds minimal support for dynamic ARM NEON support,
i.e. the ability to probe the CPU at runtime for NEON and
provide alternate code paths when it is available.
- Add include/core/SkUtilsArm.h, which declares a few helper
macros (e.g. SK_NEON_ARM_IS_DYNAMIC), plus the handy
function 'sk_cpu_arm_has_neon()' which returns true if
the target CPU supports the ARM NEON instruction set.
Note that the header is in include/core/ because it will
have to be included from NEON-specific code under src/code/
It would probably be more logical to put it under include/opts/
instead, but this would require moving all the NEON-specific
stuff under src/code/ into src/opts/, which is not trivial
due to the way the code is currently architected.
- Add src/core/SkUtilsArm.cpp which implements
'sk_cpu_arm_has_neon' for ARM-based Linux systems, only
when SK_NEON_ARM_IS_DYNAMIC is true.
(For other cases, 'sk_cpu_arm_has_neon' is an inline function
that returns a constant 'true' or 'false' value).
There is no user-level accessible CPUID instruction on ARM,
so do all CPU feature probing by parsing /proc/cpuinfo.
This is Linux-specific.
For Debug build types, the CPU probing result is printed
to the Android log (or Linux command-line) for easier
debugging.
- Create a new 'opts_neon' target (static library) which shall
contain all the NEON-specific code paths for the library.
This is necessary because -mfpu=neon impacts also non-scalar
code. Just like with -mssse3 on x86, we can't build the rest
of the library with this flag.
Note that for now, we only include memset16_neon and
memset32_neon in this library.
- Modify opts_check_arm.cpp to implement SK_ARM_NEON_IS_DYNAMIC
properly.
Compared to a 'xoom' build, the only difference is the use of
NEON-optimized memset16/32 functions. Later patches will move
more NEON-specific code paths to 'opts_neon'.
Review URL: https://codereview.appspot.com/6247058
git-svn-id: http://skia.googlecode.com/svn/trunk@4069 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-05-30 13:54:41 +00:00
|
|
|
}],
|
|
|
|
[ 'arm_neon_optional == 1', {
|
|
|
|
'defines': [
|
|
|
|
'__ARM_HAVE_OPTIONAL_NEON_SUPPORT',
|
|
|
|
],
|
|
|
|
}],
|
2011-11-03 13:08:29 +00:00
|
|
|
],
|
|
|
|
}],
|
2012-08-13 14:26:36 +00:00
|
|
|
],
|
2011-11-03 13:08:29 +00:00
|
|
|
},
|
|
|
|
],
|
2011-09-15 14:24:33 +00:00
|
|
|
|
2012-01-26 21:26:40 +00:00
|
|
|
# We can POD-style initialization of static mutexes to avoid generating
|
|
|
|
# static initializers if we're using a pthread-compatible thread interface.
|
|
|
|
[ 'skia_os != "win"', {
|
|
|
|
'defines': [
|
2012-11-01 17:43:44 +00:00
|
|
|
'SK_USE_POSIX_THREADS',
|
2012-01-26 21:26:40 +00:00
|
|
|
],
|
|
|
|
}],
|
2011-09-15 14:24:33 +00:00
|
|
|
], # end 'conditions'
|
2012-09-26 15:48:43 +00:00
|
|
|
# The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details
|
|
|
|
'xcode_settings': {
|
|
|
|
'SYMROOT': '<(DEPTH)/xcodebuild',
|
|
|
|
},
|
2011-09-15 14:24:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# Local Variables:
|
|
|
|
# tab-width:2
|
|
|
|
# indent-tabs-mode:nil
|
|
|
|
# End:
|
|
|
|
# vim: set expandtab tabstop=2 shiftwidth=2:
|