| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |