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

Side by Side Diff: build/config/compiler/BUILD.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 | « build/config/BUILDCONFIG.gn ('k') | build/config/gcc/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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 if (cpu_arch == "arm") { 6 if (cpu_arch == "arm") {
7 import("//build/config/arm.gni") 7 import("//build/config/arm.gni")
8 } 8 }
9 if (is_posix) { 9 if (is_posix) {
10 import("//build/config/gcc/gcc_version.gni") 10 import("//build/config/gcc/gcc_version.gni")
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 # structured exceptions (only C++ ones). 51 # structured exceptions (only C++ ones).
52 ] 52 ]
53 } 53 }
54 } else { 54 } else {
55 # Common GCC compiler flags setup. 55 # Common GCC compiler flags setup.
56 # -------------------------------- 56 # --------------------------------
57 cflags += [ 57 cflags += [
58 "-fno-strict-aliasing", # See http://crbug.com/32204 58 "-fno-strict-aliasing", # See http://crbug.com/32204
59 ] 59 ]
60 cflags_cc += [ 60 cflags_cc += [
61 "-fno-exceptions",
62 "-fno-threadsafe-statics", 61 "-fno-threadsafe-statics",
63 # Not exporting C++ inline functions can generally be applied anywhere 62 # Not exporting C++ inline functions can generally be applied anywhere
64 # so we do so here. Normal function visibility is controlled by 63 # so we do so here. Normal function visibility is controlled by
65 # //build/config/gcc:symbol_visibility_hidden. 64 # //build/config/gcc:symbol_visibility_hidden.
66 "-fvisibility-inlines-hidden", 65 "-fvisibility-inlines-hidden",
67 ] 66 ]
68 67
69 # Stack protection. 68 # Stack protection.
70 if (is_mac) { 69 if (is_mac) {
71 cflags += [ "-fstack-protector-all" ] 70 cflags += [ "-fstack-protector-all" ]
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 } else { 792 } else {
794 cflags = [ "-g1" ] 793 cflags = [ "-g1" ]
795 } 794 }
796 } 795 }
797 796
798 config("no_symbols") { 797 config("no_symbols") {
799 if (!is_win) { 798 if (!is_win) {
800 cflags = [ "-g0" ] 799 cflags = [ "-g0" ]
801 } 800 }
802 } 801 }
OLDNEW
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | build/config/gcc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698