Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(662)

Side by Side Diff: build/config/BUILDCONFIG.gn

Issue 315313002: Roll pdfium, add GN build for pdf and pdfium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | build/config/compiler/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium 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 # ============================================================================= 5 # =============================================================================
6 # BUILD FLAGS 6 # BUILD FLAGS
7 # ============================================================================= 7 # =============================================================================
8 # 8 #
9 # This block lists input arguments to the build, along with their default 9 # This block lists input arguments to the build, along with their default
10 # values. GN requires listing them explicitly so it can validate input and have 10 # values. GN requires listing them explicitly so it can validate input and have
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 "//build/config/compiler:no_rtti", 322 "//build/config/compiler:no_rtti",
323 "//build/config/compiler:runtime_library", 323 "//build/config/compiler:runtime_library",
324 ] 324 ]
325 if (is_win) { 325 if (is_win) {
326 _native_compiler_configs += [ 326 _native_compiler_configs += [
327 "//build/config/win:lean_and_mean", 327 "//build/config/win:lean_and_mean",
328 "//build/config/win:nominmax", 328 "//build/config/win:nominmax",
329 "//build/config/win:sdk", 329 "//build/config/win:sdk",
330 "//build/config/win:unicode", 330 "//build/config/win:unicode",
331 ] 331 ]
332 } else if (is_linux) { 332 }
333 if (is_posix) {
334 _native_compiler_configs += [
335 "//build/config/gcc:no_exceptions",
336 "//build/config/gcc:symbol_visibility_hidden",
337 ]
338 }
339
340 if (is_linux) {
333 _native_compiler_configs += [ "//build/config/linux:sdk", ] 341 _native_compiler_configs += [ "//build/config/linux:sdk", ]
334 } else if (is_mac) { 342 } else if (is_mac) {
335 _native_compiler_configs += [ "//build/config/mac:sdk", ] 343 _native_compiler_configs += [ "//build/config/mac:sdk", ]
336 } else if (is_ios) { 344 } else if (is_ios) {
337 _native_compiler_configs += [ "//build/config/ios:sdk", ] 345 _native_compiler_configs += [ "//build/config/ios:sdk", ]
338 } else if (is_android) { 346 } else if (is_android) {
339 _native_compiler_configs += [ "//build/config/android:sdk", ] 347 _native_compiler_configs += [ "//build/config/android:sdk", ]
340 } 348 }
341 if (!is_win) { 349
342 _native_compiler_configs += [ "//build/config/gcc:symbol_visibility_hidden" ]
343 }
344 if (is_clang) { 350 if (is_clang) {
345 _native_compiler_configs += [ 351 _native_compiler_configs += [
346 "//build/config/clang:find_bad_constructs", 352 "//build/config/clang:find_bad_constructs",
347 "//build/config/clang:extra_warnings", 353 "//build/config/clang:extra_warnings",
348 ] 354 ]
349 } 355 }
350 356
351 # Optimizations and debug checking. 357 # Optimizations and debug checking.
352 if (is_debug) { 358 if (is_debug) {
353 _native_compiler_configs += [ "//build/config:debug" ] 359 _native_compiler_configs += [ "//build/config:debug" ]
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 } else if (is_linux) { 464 } else if (is_linux) {
459 host_toolchain = "//build/toolchain/linux:$build_cpu_arch" 465 host_toolchain = "//build/toolchain/linux:$build_cpu_arch"
460 set_default_toolchain("//build/toolchain/linux:$cpu_arch") 466 set_default_toolchain("//build/toolchain/linux:$cpu_arch")
461 } else if (is_mac) { 467 } else if (is_mac) {
462 host_toolchain = "//build/toolchain/mac:clang" 468 host_toolchain = "//build/toolchain/mac:clang"
463 set_default_toolchain(host_toolchain) 469 set_default_toolchain(host_toolchain)
464 } else if (is_ios) { 470 } else if (is_ios) {
465 host_toolchain = "//build/toolchain/mac:host_clang" 471 host_toolchain = "//build/toolchain/mac:host_clang"
466 set_default_toolchain("//build/toolchain/mac:clang") 472 set_default_toolchain("//build/toolchain/mac:clang")
467 } 473 }
OLDNEW
« no previous file with comments | « DEPS ('k') | build/config/compiler/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698