Arman Uguray | 9ca3fb8 | 2015-05-26 14:50:36 -0700 | [diff] [blame] | 1 | # |
Jakub Pawlowski | 5b790fe | 2017-09-18 09:00:20 -0700 | [diff] [blame] | 2 | # Copyright 2015 Google, Inc. |
Arman Uguray | 9ca3fb8 | 2015-05-26 14:50:36 -0700 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at: |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
Jakub Pawlowski | e287853 | 2016-10-18 09:56:57 -0700 | [diff] [blame] | 17 | set_default_toolchain("//build/toolchain/clang") |
Jack He | 1f60d2d | 2016-11-22 12:39:52 -0800 | [diff] [blame] | 18 | toolchain_config="//build/toolchain/clang:clang_config" |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 19 | |
| 20 | set_defaults("executable") { |
Arman Uguray | cdc6f3a | 2015-05-21 13:39:18 -0700 | [diff] [blame] | 21 | configs = [ |
| 22 | "//build:linux", |
| 23 | "//build:gc", |
| 24 | "//build:default_include_dirs", |
Jack He | 1f60d2d | 2016-11-22 12:39:52 -0800 | [diff] [blame] | 25 | toolchain_config, |
Arman Uguray | cdc6f3a | 2015-05-21 13:39:18 -0700 | [diff] [blame] | 26 | ] |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | set_defaults("shared_library") { |
Arman Uguray | cdc6f3a | 2015-05-21 13:39:18 -0700 | [diff] [blame] | 30 | configs = [ |
| 31 | "//build:linux", |
| 32 | "//build:gc", |
| 33 | "//build:default_include_dirs", |
Jack He | 1f60d2d | 2016-11-22 12:39:52 -0800 | [diff] [blame] | 34 | toolchain_config, |
Arman Uguray | cdc6f3a | 2015-05-21 13:39:18 -0700 | [diff] [blame] | 35 | ] |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | set_defaults("source_set") { |
Arman Uguray | cdc6f3a | 2015-05-21 13:39:18 -0700 | [diff] [blame] | 39 | configs = [ |
| 40 | "//build:linux", |
| 41 | "//build:gc", |
| 42 | "//build:default_include_dirs", |
Jack He | 1f60d2d | 2016-11-22 12:39:52 -0800 | [diff] [blame] | 43 | toolchain_config, |
Arman Uguray | cdc6f3a | 2015-05-21 13:39:18 -0700 | [diff] [blame] | 44 | ] |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 45 | } |
Arman Uguray | 2c494e1 | 2015-05-29 14:43:20 -0700 | [diff] [blame] | 46 | |
| 47 | set_defaults("static_library") { |
| 48 | configs = [ |
| 49 | "//build:linux", |
| 50 | "//build:gc", |
| 51 | "//build:default_include_dirs", |
Jack He | 1f60d2d | 2016-11-22 12:39:52 -0800 | [diff] [blame] | 52 | toolchain_config, |
Arman Uguray | 2c494e1 | 2015-05-29 14:43:20 -0700 | [diff] [blame] | 53 | ] |
| 54 | } |