OLD | NEW |
---|---|
1 # Copyright 2014 PDFium Authors. All rights reserved. | 1 # Copyright 2014 PDFium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # Definitions to be used when building stand-alone PDFium binaries. | 5 # Definitions to be used when building stand-alone PDFium binaries. |
6 | 6 |
7 { | 7 { |
8 'variables': { | 8 'variables': { |
9 'component%': 'static_library', | 9 'component%': 'static_library', |
10 'asan%': 0, | |
10 'clang%': 0, | 11 'clang%': 0, |
11 'msvs_multi_core_compile%': '1', | 12 'msvs_multi_core_compile%': '1', |
12 'variables': { | 13 'variables': { |
13 'variables': { | 14 'variables': { |
14 'variables': { | 15 'variables': { |
15 'conditions': [ | 16 'conditions': [ |
16 ['OS=="linux" or OS=="mac"', { | 17 ['OS=="linux" or OS=="mac"', { |
17 # This handles the Unix platforms we generally deal with. | 18 # This handles the Unix platforms we generally deal with. |
18 # Anything else gets passed through, which probably won't work | 19 # Anything else gets passed through, which probably won't work |
19 # very well; such hosts should pass an explicit target_arch | 20 # very well; such hosts should pass an explicit target_arch |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
154 '-fvisibility=hidden', | 155 '-fvisibility=hidden', |
155 ], | 156 ], |
156 'cflags_cc': [ | 157 'cflags_cc': [ |
157 '-std=gnu++0x', | 158 '-std=gnu++0x', |
158 '-Wnon-virtual-dtor', | 159 '-Wnon-virtual-dtor', |
159 '-fno-rtti', | 160 '-fno-rtti', |
160 ], | 161 ], |
161 'ldflags': [ | 162 'ldflags': [ |
162 '-pthread', | 163 '-pthread', |
163 ], | 164 ], |
165 'conditions': [ | |
166 ['asan==1', { | |
167 'cflags': [ | |
168 '-fsanitize=address', | |
169 '-gline-tables-only', | |
170 ], | |
171 'ldflags': [ | |
172 '-fsanitize=address', | |
173 ], | |
174 }], | |
175 ], | |
164 'defines': [ | 176 'defines': [ |
165 # Don't use deprecated V8 APIs anywhere. | 177 # Don't use deprecated V8 APIs anywhere. |
166 'V8_DEPRECATION_WARNINGS', | 178 'V8_DEPRECATION_WARNINGS', |
167 ], | 179 ], |
168 'msvs_cygwin_dirs': ['<(DEPTH)/v8/third_party/cygwin'], | 180 'msvs_cygwin_dirs': ['<(DEPTH)/v8/third_party/cygwin'], |
169 'msvs_configuration_attributes': { | 181 'msvs_configuration_attributes': { |
170 'OutputDirectory': '<(DEPTH)\\build\\$(ConfigurationName)', | 182 'OutputDirectory': '<(DEPTH)\\build\\$(ConfigurationName)', |
171 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', | 183 'IntermediateDirectory': '$(OutDir)\\obj\\$(ProjectName)', |
172 'CharacterSet': '1', | 184 'CharacterSet': '1', |
173 }, | 185 }, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
243 '-Wno-unused-parameter', | 255 '-Wno-unused-parameter', |
244 ], | 256 ], |
245 }, | 257 }, |
246 }, | 258 }, |
247 'conditions': [ | 259 'conditions': [ |
248 ['component=="shared_library"', { | 260 ['component=="shared_library"', { |
249 'cflags': [ | 261 'cflags': [ |
250 '-fPIC', | 262 '-fPIC', |
251 ], | 263 ], |
252 }], | 264 }], |
265 ['OS=="linux"', { | |
266 'conditions': [ | |
267 ['clang==1', { | |
268 'make_global_settings': [ | |
269 ['CC', '<!(which clang)'], | |
Nico
2015/10/14 23:55:21
Isn't it better if you deps in chromium's tools/cl
Oliver Chang
2015/10/15 01:00:49
Ah I didn't know v8 does this, thanks! I got a lit
| |
270 ['CXX', '<!(which clang++)'], | |
271 ], | |
272 }], | |
273 ], | |
274 }], # OS=="linux" | |
253 ['OS=="win"', { | 275 ['OS=="win"', { |
254 'target_defaults': { | 276 'target_defaults': { |
255 'defines': [ | 277 'defines': [ |
256 'NOMINMAX', | 278 'NOMINMAX', |
257 '_CRT_SECURE_NO_DEPRECATE', | 279 '_CRT_SECURE_NO_DEPRECATE', |
258 '_CRT_NONSTDC_NO_DEPRECATE', | 280 '_CRT_NONSTDC_NO_DEPRECATE', |
259 ], | 281 ], |
260 'conditions': [ | 282 'conditions': [ |
261 ['component=="static_library"', { | 283 ['component=="static_library"', { |
262 'defines': [ | 284 'defines': [ |
(...skipping 18 matching lines...) Expand all Loading... | |
281 'V8_USE_EXTERNAL_STARTUP_DATA', | 303 'V8_USE_EXTERNAL_STARTUP_DATA', |
282 ], | 304 ], |
283 }, | 305 }, |
284 }], # v8_use_external_startup_data==1 | 306 }], # v8_use_external_startup_data==1 |
285 ], | 307 ], |
286 'xcode_settings': { | 308 'xcode_settings': { |
287 # See comment in Chromium's common.gypi for why this is needed. | 309 # See comment in Chromium's common.gypi for why this is needed. |
288 'SYMROOT': '<(DEPTH)/xcodebuild', | 310 'SYMROOT': '<(DEPTH)/xcodebuild', |
289 } | 311 } |
290 } | 312 } |
OLD | NEW |