Andrew Scull | e4e2ffc | 2017-08-10 10:03:20 +0100 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2017 The Android Open Source Project |
| 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 | |
Andrew Scull | a64f287 | 2018-01-17 11:53:37 +0000 | [diff] [blame] | 17 | // Language and vendor related defaults |
Andrew Scull | e4e2ffc | 2017-08-10 10:03:20 +0100 | [diff] [blame] | 18 | cc_defaults { |
Andrew Scull | a64f287 | 2018-01-17 11:53:37 +0000 | [diff] [blame] | 19 | name: "nos_cc_defaults", |
Andrew Scull | e4e2ffc | 2017-08-10 10:03:20 +0100 | [diff] [blame] | 20 | clang: true, |
| 21 | cflags: [ |
| 22 | "-pedantic", |
| 23 | "-Wall", |
| 24 | "-Wextra", |
| 25 | "-Werror", |
Allen Webb | dbc6c62 | 2018-01-26 12:46:47 -0800 | [diff] [blame] | 26 | "-Wno-zero-length-array", |
Andrew Scull | e4e2ffc | 2017-08-10 10:03:20 +0100 | [diff] [blame] | 27 | ], |
Andrew Scull | 7c4ce9c | 2017-09-20 17:06:10 +0100 | [diff] [blame] | 28 | conlyflags: [ |
| 29 | "-std=c11", |
| 30 | ], |
Andrew Scull | 6cfb00e | 2017-09-01 10:31:40 +0100 | [diff] [blame] | 31 | vendor: true, |
| 32 | owner: "google", |
| 33 | } |
| 34 | |
Andrew Scull | a64f287 | 2018-01-17 11:53:37 +0000 | [diff] [blame] | 35 | // Defaults for components under the hw subdirectory |
Andrew Scull | 6cfb00e | 2017-09-01 10:31:40 +0100 | [diff] [blame] | 36 | cc_defaults { |
Andrew Scull | a64f287 | 2018-01-17 11:53:37 +0000 | [diff] [blame] | 37 | name: "nos_cc_hw_defaults", |
| 38 | defaults: ["nos_cc_defaults"], |
| 39 | relative_install_path: "hw", |
Andrew Scull | 6cfb00e | 2017-09-01 10:31:40 +0100 | [diff] [blame] | 40 | } |
nagendra modadugu | 74964a2 | 2017-12-22 11:42:08 -0800 | [diff] [blame] | 41 | |
Andrew Scull | a64f287 | 2018-01-17 11:53:37 +0000 | [diff] [blame] | 42 | // Defaults for components shared between the host and device |
nagendra modadugu | 74964a2 | 2017-12-22 11:42:08 -0800 | [diff] [blame] | 43 | cc_defaults { |
Andrew Scull | a64f287 | 2018-01-17 11:53:37 +0000 | [diff] [blame] | 44 | name: "nos_cc_host_supported_defaults", |
| 45 | defaults: ["nos_cc_defaults"], |
| 46 | host_supported: true, |
nagendra modadugu | 74964a2 | 2017-12-22 11:42:08 -0800 | [diff] [blame] | 47 | } |