Skip to content
This repository
Newer
Older
100644 201 lines (199 sloc) 7.039 kb
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
1 {
2 'variables': {
30b29d8f » bnoordhuis
2012-03-02 build: disable -fstrict-aliasing if gcc < 4.6.0
3 'strict_aliasing%': 'false', # turn on/off -fstrict-aliasing
b433c42a » ry
2011-08-15 gyp: Support Linux
4 'visibility%': 'hidden', # V8's visibility setting
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
5 'target_arch%': 'ia32', # set v8's target architecture
6 'host_arch%': 'ia32', # set v8's host architecture
c65a91c9 » ry
2011-12-19 GYP: don't build V8 twice
7 'want_separate_host_toolset': 0, # V8 should not build target and host
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
8 'library%': 'static_library', # allow override to 'shared_library' for DLL/.so builds
9 'component%': 'static_library', # NB. these names match with what V8 expects
10 'msvs_multi_core_compile': '0', # we do enable multicore compiles, but not using the V8 way
930fabe4 » piscisaureus
2012-04-03 Disable V8 postmortem debugging on Windows
11
12 # Enable V8's post-mortem debugging only on unix flavors.
13 'conditions': [
14 ['OS != "win"', {
15 'v8_postmortem_support': 'true'
16 }]
17 ],
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
18 },
19
20 'target_defaults': {
491ec171 » shigeki
2012-02-23 build: change default BUILDTYPE of gyp to Release
21 'default_configuration': 'Release',
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
22 'configurations': {
23 'Debug': {
24 'defines': [ 'DEBUG', '_DEBUG' ],
25 'cflags': [ '-g', '-O0' ],
0a347559 » Igor Zinkovsky
2012-02-06 enable x64 windows build
26 'conditions': [
27 ['target_arch=="x64"', {
28 'msvs_configuration_platform': 'x64',
29 }],
30 ],
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
31 'msvs_settings': {
32 'VCCLCompilerTool': {
71e97566 » TooTallNate
2012-02-15 Default to static linking CRT on Windows.
33 'RuntimeLibrary': 1, # static debug
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
34 'Optimization': 0, # /Od, no optimization
51e66ec4 » piscisaureus
2012-04-27 Windows: turn off /Gm
35 'MinimalRebuild': 'false',
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
36 'OmitFramePointers': 'false',
37 'BasicRuntimeChecks': 3, # /RTC1
38 },
39 'VCLinkerTool': {
40 'LinkIncremental': 2, # enable incremental linking
41 },
42 },
43 },
44 'Release': {
30b29d8f » bnoordhuis
2012-03-02 build: disable -fstrict-aliasing if gcc < 4.6.0
45 'cflags': [ '-O3', '-fdata-sections', '-ffunction-sections' ],
7864bb9e » davepacheco
2012-02-07 build: disable -fomit-frame-pointer on solaris
46 'conditions': [
0a347559 » Igor Zinkovsky
2012-02-06 enable x64 windows build
47 ['target_arch=="x64"', {
48 'msvs_configuration_platform': 'x64',
49 }],
30b29d8f » bnoordhuis
2012-03-02 build: disable -fstrict-aliasing if gcc < 4.6.0
50 ['OS=="solaris"', {
51 'cflags': [ '-fno-omit-frame-pointer' ],
cc15299c » davepacheco
2012-03-28 build: add support for DTrace and postmortem
52 # pull in V8's postmortem metadata
53 'ldflags': [ '-Wl,-z,allextract' ]
30b29d8f » bnoordhuis
2012-03-02 build: disable -fstrict-aliasing if gcc < 4.6.0
54 }],
55 ['strict_aliasing!="true"', {
56 'cflags': [ '-fno-strict-aliasing' ],
57 }],
0a347559 » Igor Zinkovsky
2012-02-06 enable x64 windows build
58 ],
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
59 'msvs_settings': {
60 'VCCLCompilerTool': {
71e97566 » TooTallNate
2012-02-15 Default to static linking CRT on Windows.
61 'RuntimeLibrary': 0, # static release
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
62 'Optimization': 3, # /Ox, full optimization
63 'FavorSizeOrSpeed': 1, # /Ot, favour speed over size
64 'InlineFunctionExpansion': 2, # /Ob2, inline anything eligible
65 'WholeProgramOptimization': 'true', # /GL, whole program optimization, needed for LTCG
66 'OmitFramePointers': 'true',
67 'EnableFunctionLevelLinking': 'true',
68 'EnableIntrinsicFunctions': 'true',
2e2df04b » piscisaureus
2012-02-06 Windows: disable RTTI and exceptions
69 'RuntimeTypeInfo': 'false',
70 'ExceptionHandling': '0',
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
71 'AdditionalOptions': [
72 '/MP', # compile across multiple CPUs
73 ],
74 },
75 'VCLibrarianTool': {
76 'AdditionalOptions': [
77 '/LTCG', # link time code generation
78 ],
79 },
80 'VCLinkerTool': {
81 'LinkTimeCodeGeneration': 1, # link-time code generation
82 'OptimizeReferences': 2, # /OPT:REF
83 'EnableCOMDATFolding': 2, # /OPT:ICF
84 'LinkIncremental': 1, # disable incremental linking
85 },
86 },
87 }
88 },
89 'msvs_settings': {
90 'VCCLCompilerTool': {
91 'StringPooling': 'true', # pool string literals
92 'DebugInformationFormat': 3, # Generate a PDB
93 'WarningLevel': 3,
94 'BufferSecurityCheck': 'true',
95 'ExceptionHandling': 1, # /EHsc
96 'SuppressStartupBanner': 'true',
97 'WarnAsError': 'false',
98 },
99 'VCLibrarianTool': {
100 },
101 'VCLinkerTool': {
0a347559 » Igor Zinkovsky
2012-02-06 enable x64 windows build
102 'conditions': [
103 ['target_arch=="x64"', {
104 'TargetMachine' : 17 # /MACHINE:X64
105 }],
106 ],
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
107 'GenerateDebugInformation': 'true',
108 'RandomizedBaseAddress': 2, # enable ASLR
109 'DataExecutionPrevention': 2, # enable DEP
110 'AllowIsolation': 'true',
111 'SuppressStartupBanner': 'true',
766430c7 » DrPizza
2011-08-30 Windows: set executables to be console programs
112 'target_conditions': [
113 ['_type=="executable"', {
114 'SubSystem': 1, # console executable
115 }],
116 ],
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
117 },
118 },
119 'conditions': [
120 ['OS == "win"', {
121 'msvs_cygwin_shell': 0, # prevent actions from trying to use cygwin
122 'defines': [
123 'WIN32',
124 # we don't really want VC++ warning us about
125 # how dangerous C functions are...
126 '_CRT_SECURE_NO_DEPRECATE',
127 # ... or that C implementations shouldn't use
128 # POSIX names
129 '_CRT_NONSTDC_NO_DEPRECATE',
4a1efb2b » piscisaureus
2011-10-28 Support native extension loading on Windows
130 'BUILDING_V8_SHARED=1',
131 'BUILDING_UV_SHARED=1',
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
132 ],
bbd976b8 » bnoordhuis
2011-11-30 build: always compile with large file support
133 }, {
134 'defines': [
135 '_LARGEFILE_SOURCE',
136 '_FILE_OFFSET_BITS=64',
137 ],
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
138 }],
139 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
8a29e5ea » martine
2011-08-23 gyp: Don't pass C++ flags to C compiler, and don't pass -ansi in Open…
140 'cflags': [ '-Wall', '-pthread', ],
141 'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
a916d888 » martine
2011-08-23 common.gypi: don't nest "target_defaults" within "target_defaults"
142 'ldflags': [ '-pthread', ],
143 'conditions': [
144 [ 'target_arch=="ia32"', {
145 'cflags': [ '-m32' ],
146 'ldflags': [ '-m32' ],
147 }],
148 [ 'OS=="linux"', {
55c21970 » shigeki
2012-01-05 build: compile without -fvisibility=hidden
149 'ldflags': [ '-rdynamic' ],
a916d888 » martine
2011-08-23 common.gypi: don't nest "target_defaults" within "target_defaults"
150 }],
3c68c85f » TooTallNate
2012-02-25 build: use -pthreads (not -pthread) on Solaris
151 [ 'OS=="solaris"', {
152 'cflags': [ '-pthreads' ],
153 'ldflags': [ '-pthreads' ],
154 'cflags!': [ '-pthread' ],
155 'ldflags!': [ '-pthread' ],
156 }],
a916d888 » martine
2011-08-23 common.gypi: don't nest "target_defaults" within "target_defaults"
157 ],
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
158 }],
159 ['OS=="mac"', {
92c0c695 » bnoordhuis
2012-04-02 build: define _DARWIN_USE_64_BIT_INODE=1 on OS X
160 'defines': ['_DARWIN_USE_64_BIT_INODE=1'],
a916d888 » martine
2011-08-23 common.gypi: don't nest "target_defaults" within "target_defaults"
161 'xcode_settings': {
162 'ALWAYS_SEARCH_USER_PATHS': 'NO',
163 'GCC_CW_ASM_SYNTAX': 'NO', # No -fasm-blocks
164 'GCC_DYNAMIC_NO_PIC': 'NO', # No -mdynamic-no-pic
165 # (Equivalent to -fPIC)
166 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
167 'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
168 'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
169 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
170 'GCC_VERSION': '4.2',
171 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof
172 'PREBINDING': 'NO', # No -Wl,-prebind
7b71fd0c » TooTallNate
2012-04-10 build: add comment explaining MACOSX_DEPLOYMENT_TARGET.
173 'MACOSX_DEPLOYMENT_TARGET': '10.5', # -mmacosx-version-min=10.5
a916d888 » martine
2011-08-23 common.gypi: don't nest "target_defaults" within "target_defaults"
174 'USE_HEADERMAP': 'NO',
175 'OTHER_CFLAGS': [
176 '-fno-strict-aliasing',
177 ],
178 'WARNING_CFLAGS': [
179 '-Wall',
180 '-Wendif-labels',
181 '-W',
182 '-Wno-unused-parameter',
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
183 ],
184 },
a916d888 » martine
2011-08-23 common.gypi: don't nest "target_defaults" within "target_defaults"
185 'target_conditions': [
186 ['_type!="static_library"', {
187 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
188 }],
189 ],
546870ed » TooTallNate
2012-02-18 build: use proper `-arch` for target_arch on OS X
190 'conditions': [
191 ['target_arch=="ia32"', {
192 'xcode_settings': {'ARCHS': ['i386']},
193 }],
194 ['target_arch=="x64"', {
195 'xcode_settings': {'ARCHS': ['x86_64']},
196 }],
197 ],
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
198 }],
199 ],
a916d888 » martine
2011-08-23 common.gypi: don't nest "target_defaults" within "target_defaults"
200 }
25a5e902 » ry
2011-08-15 Fix GYP build on OSX
201 }
Something went wrong with that request. Please try again.