Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame^] | 1 | // Copyright (C) 2016 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
| 15 | cc_binary_host { |
| 16 | name: "c2hal", |
| 17 | srcs: [ |
| 18 | "AST.cpp", |
| 19 | "c2hal_l.ll", |
| 20 | "c2hal_y.yy", |
| 21 | "CompositeDeclaration.cpp", |
| 22 | "Declaration.cpp", |
| 23 | "Define.cpp", |
| 24 | "EnumVarDeclaration.cpp", |
| 25 | "Expression.cpp", |
| 26 | "FunctionDeclaration.cpp", |
| 27 | "Include.cpp", |
| 28 | "main.cpp", |
| 29 | "Note.cpp", |
| 30 | "Type.cpp", |
| 31 | "TypeDef.cpp", |
| 32 | "VarDeclaration.cpp", |
| 33 | ], |
| 34 | |
| 35 | shared_libs: [ |
| 36 | "libbase", |
| 37 | "liblog", |
| 38 | "libhidl-gen-utils", |
| 39 | ], |
| 40 | |
| 41 | static_libs: ["libutils"], |
| 42 | |
| 43 | cflags: [ |
| 44 | "-O0", |
| 45 | "-g", |
| 46 | ], |
| 47 | } |