| 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("default") { | 12 config("default") { |
| 13 cflags = [ | 13 cflags = [ |
| 14 "-g", | 14 "-g", |
| 15 "-fstrict-aliasing", | 15 "-fstrict-aliasing", |
| 16 "-fPIC", | 16 "-fPIC", |
| 17 "-fvisibility=hidden", |
| 17 | 18 |
| 18 "-Werror", | 19 "-Werror", |
| 19 "-Wall", | 20 "-Wall", |
| 20 "-Wextra", | 21 "-Wextra", |
| 21 "-Winit-self", | 22 "-Winit-self", |
| 22 "-Wpointer-arith", | 23 "-Wpointer-arith", |
| 23 "-Wsign-compare", | 24 "-Wsign-compare", |
| 24 "-Wvla", | 25 "-Wvla", |
| 25 | 26 |
| 26 "-Wno-deprecated-declarations", | 27 "-Wno-deprecated-declarations", |
| 27 "-Wno-unused-parameter", | 28 "-Wno-unused-parameter", |
| 28 ] | 29 ] |
| 29 cflags_cc = [ | 30 cflags_cc = [ |
| 30 "-std=c++11", | 31 "-std=c++11", |
| 31 "-fno-exceptions", | 32 "-fno-exceptions", |
| 32 "-fno-rtti", | 33 "-fno-rtti", |
| 33 "-fno-threadsafe-statics", | 34 "-fno-threadsafe-statics", |
| 35 "-fvisibility-inlines-hidden", |
| 34 | 36 |
| 35 "-Wnon-virtual-dtor", | 37 "-Wnon-virtual-dtor", |
| 36 ] | 38 ] |
| 37 } | 39 } |
| 38 | 40 |
| 39 config("release") { | 41 config("release") { |
| 40 cflags = [ "-Os" ] | 42 cflags = [ "-Os" ] |
| 41 defines = [ "NDEBUG" ] | 43 defines = [ "NDEBUG" ] |
| 42 } | 44 } |
| 43 | 45 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 } | 115 } |
| 114 | 116 |
| 115 tool("stamp") { | 117 tool("stamp") { |
| 116 command = "touch {{output}}" | 118 command = "touch {{output}}" |
| 117 } | 119 } |
| 118 | 120 |
| 119 tool("copy") { | 121 tool("copy") { |
| 120 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} &&
cp -af {{source}} {{output}})" | 122 command = "ln -f {{source}} {{output}} 2>/dev/null || (rm -rf {{output}} &&
cp -af {{source}} {{output}})" |
| 121 } | 123 } |
| 122 } | 124 } |
| OLD | NEW |