3 'visibility%': 'hidden', # V8's visibility setting
4 'target_arch%': 'ia32', # set v8's target architecture
5 'host_arch%': 'ia32', # set v8's host architecture
6 'library%': 'static_library', # allow override to 'shared_library' for DLL/.so builds
7 'component%': 'static_library', # NB. these names match with what V8 expects
8 'msvs_multi_core_compile': '0', # we do enable multicore compiles, but not using the V8 way
12 'default_configuration': 'Debug',
15 'defines': [ 'DEBUG', '_DEBUG' ],
16 'cflags': [ '-g', '-O0' ],
19 'target_conditions': [
20 ['library=="static_library"', {
21 'RuntimeLibrary': 1, # static debug
23 'RuntimeLibrary': 3, # DLL debug
26 'Optimization': 0, # /Od, no optimization
27 'MinimalRebuild': 'true',
28 'OmitFramePointers': 'false',
29 'BasicRuntimeChecks': 3, # /RTC1
32 'LinkIncremental': 2, # enable incremental linking
37 'defines': [ 'EV_VERIFY=2' ],
42 'defines': [ 'NDEBUG' ],
43 'cflags': [ '-O3', '-fomit-frame-pointer', '-fdata-sections', '-ffunction-sections' ],
46 'target_conditions': [
47 ['library=="static_library"', {
48 'RuntimeLibrary': 0, # static release
50 'RuntimeLibrary': 2, # debug release
53 'Optimization': 3, # /Ox, full optimization
54 'FavorSizeOrSpeed': 1, # /Ot, favour speed over size
55 'InlineFunctionExpansion': 2, # /Ob2, inline anything eligible
56 'WholeProgramOptimization': 'true', # /GL, whole program optimization, needed for LTCG
57 'OmitFramePointers': 'true',
58 'EnableFunctionLevelLinking': 'true',
59 'EnableIntrinsicFunctions': 'true',
60 'AdditionalOptions': [
61 '/MP', # compile across multiple CPUs
65 'AdditionalOptions': [
66 '/LTCG', # link time code generation
70 'LinkTimeCodeGeneration': 1, # link-time code generation
71 'OptimizeReferences': 2, # /OPT:REF
72 'EnableCOMDATFolding': 2, # /OPT:ICF
73 'LinkIncremental': 1, # disable incremental linking
80 'StringPooling': 'true', # pool string literals
81 'DebugInformationFormat': 3, # Generate a PDB
83 'BufferSecurityCheck': 'true',
84 'ExceptionHandling': 1, # /EHsc
85 'SuppressStartupBanner': 'true',
86 'WarnAsError': 'false',
91 'GenerateDebugInformation': 'true',
92 'RandomizedBaseAddress': 2, # enable ASLR
93 'DataExecutionPrevention': 2, # enable DEP
94 'AllowIsolation': 'true',
95 'SuppressStartupBanner': 'true',
96 'target_conditions': [
97 ['_type=="executable"', {
98 'SubSystem': 1, # console executable
105 'msvs_cygwin_shell': 0, # prevent actions from trying to use cygwin
108 # we don't really want VC++ warning us about
109 # how dangerous C functions are...
110 '_CRT_SECURE_NO_DEPRECATE',
111 # ... or that C implementations shouldn't use
113 '_CRT_NONSTDC_NO_DEPRECATE',
116 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
117 'cflags': [ '-Wall', '-pthread', ],
118 'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
119 'ldflags': [ '-pthread', ],
121 [ 'host_arch != target_arch and target_arch=="ia32"', {
122 'cflags': [ '-m32' ],
123 'ldflags': [ '-m32' ],
126 'cflags': [ '-ansi' ],
128 [ 'visibility=="hidden"', {
129 'cflags': [ '-fvisibility=hidden' ],
135 'ALWAYS_SEARCH_USER_PATHS': 'NO',
136 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks
137 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic
138 # (Equivalent to -fPIC)
139 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
140 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
141 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
142 # GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden
143 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
144 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
145 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
146 'GCC_VERSION': '4.2',
147 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
148 'MACOSX_DEPLOYMENT_TARGET': '10.4', # -mmacosx-version-min=10.4
149 'PREBINDING': 'NO', # No -Wl,-prebind
150 'USE_HEADERMAP': 'NO',
152 '-fno-strict-aliasing',
158 '-Wno-unused-parameter',
161 'target_conditions': [
162 ['_type!="static_library"', {
163 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},