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 template("third_party") { | 6 template("third_party") { |
7 config(target_name + "_public") { | 7 config(target_name + "_public") { |
8 include_dirs = invoker.public_include_dirs | 8 include_dirs = invoker.public_include_dirs |
9 } | 9 } |
10 source_set(target_name) { | 10 source_set(target_name) { |
11 forward_variables_from(invoker, "*", [ "public_include_dirs" ]) | 11 forward_variables_from(invoker, "*", [ "public_include_dirs" ]) |
12 public_configs = [ ":" + target_name + "_public" ] | 12 public_configs = [ ":" + target_name + "_public" ] |
13 | 13 |
14 # Warnings are just noise if we're not maintaining the code. | 14 # Warnings are just noise if we're not maintaining the code. |
15 cflags = [ "-w" ] | 15 if (is_win) { |
| 16 cflags = [ "/w" ] |
| 17 } else { |
| 18 cflags = [ "-w" ] |
| 19 } |
16 } | 20 } |
17 } | 21 } |
18 | 22 |
19 set_defaults("third_party") { | 23 set_defaults("third_party") { |
20 configs = default_configs | 24 configs = default_configs |
21 } | 25 } |
OLD | NEW |