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

Side by Side Diff: gn/BUILD.gn

Issue 2200833010: GN: build sfntly, icu, harfbuzz (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-08-03 (Wednesday) 17:32:27 EDT Created 4 years, 4 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
« no previous file with comments | « BUILD.gn ('k') | gn/BUILDCONFIG.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 2016 Google Inc. 1 # Copyright 2016 Google Inc.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 declare_args() { 6 declare_args() {
7 ar = "ar" 7 ar = "ar"
8 cc = "cc" 8 cc = "cc"
9 cxx = "c++" 9 cxx = "c++"
10 } 10 }
11 11
12 config("no_rtti") {
13 cflags_cc = [ "-fno-rtti" ]
14 }
15
12 config("default") { 16 config("default") {
13 cflags = [ 17 cflags = [
14 "-g", 18 "-g",
15 "-fstrict-aliasing", 19 "-fstrict-aliasing",
16 "-fPIC", 20 "-fPIC",
17 "-fvisibility=hidden", 21 "-fvisibility=hidden",
18 22
19 "-Werror", 23 "-Werror",
20 "-Wall", 24 "-Wall",
21 "-Wextra", 25 "-Wextra",
22 "-Winit-self", 26 "-Winit-self",
23 "-Wpointer-arith", 27 "-Wpointer-arith",
24 "-Wsign-compare", 28 "-Wsign-compare",
25 "-Wvla", 29 "-Wvla",
26 30
27 "-Wno-deprecated-declarations", 31 "-Wno-deprecated-declarations",
28 "-Wno-unused-parameter", 32 "-Wno-unused-parameter",
29 ] 33 ]
30 cflags_cc = [ 34 cflags_cc = [
31 "-std=c++11", 35 "-std=c++11",
32 "-fno-exceptions", 36 "-fno-exceptions",
33 "-fno-rtti",
34 "-fno-threadsafe-statics", 37 "-fno-threadsafe-statics",
35 "-fvisibility-inlines-hidden", 38 "-fvisibility-inlines-hidden",
36 39
37 "-Wnon-virtual-dtor", 40 "-Wnon-virtual-dtor",
38 ] 41 ]
39 } 42 }
40 43
41 config("release") { 44 config("release") {
42 cflags = [ "-Os" ] 45 cflags = [ "-Os" ]
43 defines = [ "NDEBUG" ] 46 defines = [ "NDEBUG" ]
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 124 }
122 125
123 tool("stamp") { 126 tool("stamp") {
124 command = "touch {{output}}" 127 command = "touch {{output}}"
125 } 128 }
126 129
127 tool("copy") { 130 tool("copy") {
128 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})" 131 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} && cp -af {{source}} {{output}})"
129 } 132 }
130 } 133 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | gn/BUILDCONFIG.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698