blob: 88622cbf8010dd29e431ee7d915b4ad3c41dba2c [file] [log] [blame]
Andrew Sculle4e2ffc2017-08-10 10:03:20 +01001//
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 Sculla64f2872018-01-17 11:53:37 +000017// Language and vendor related defaults
Andrew Sculle4e2ffc2017-08-10 10:03:20 +010018cc_defaults {
Andrew Sculla64f2872018-01-17 11:53:37 +000019 name: "nos_cc_defaults",
Andrew Sculle4e2ffc2017-08-10 10:03:20 +010020 clang: true,
21 cflags: [
22 "-pedantic",
23 "-Wall",
24 "-Wextra",
25 "-Werror",
Allen Webbdbc6c622018-01-26 12:46:47 -080026 "-Wno-zero-length-array",
Andrew Sculle4e2ffc2017-08-10 10:03:20 +010027 ],
Andrew Scull7c4ce9c2017-09-20 17:06:10 +010028 conlyflags: [
29 "-std=c11",
30 ],
Andrew Scull6cfb00e2017-09-01 10:31:40 +010031 vendor: true,
32 owner: "google",
33}
34
Andrew Sculla64f2872018-01-17 11:53:37 +000035// Defaults for components under the hw subdirectory
Andrew Scull6cfb00e2017-09-01 10:31:40 +010036cc_defaults {
Andrew Sculla64f2872018-01-17 11:53:37 +000037 name: "nos_cc_hw_defaults",
38 defaults: ["nos_cc_defaults"],
39 relative_install_path: "hw",
Andrew Scull6cfb00e2017-09-01 10:31:40 +010040}
nagendra modadugu74964a22017-12-22 11:42:08 -080041
Andrew Sculla64f2872018-01-17 11:53:37 +000042// Defaults for components shared between the host and device
nagendra modadugu74964a22017-12-22 11:42:08 -080043cc_defaults {
Andrew Sculla64f2872018-01-17 11:53:37 +000044 name: "nos_cc_host_supported_defaults",
45 defaults: ["nos_cc_defaults"],
46 host_supported: true,
nagendra modadugu74964a22017-12-22 11:42:08 -080047}