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 | subdirs = [ |
| 16 | "c2hal", |
| 17 | "utils", |
| 18 | ] |
| 19 | |
| 20 | // |
| 21 | // libhidl-gen |
| 22 | // |
| 23 | cc_library_shared { |
| 24 | name: "libhidl-gen", |
| 25 | host_supported: true, |
| 26 | cflags: [ |
| 27 | "-O0", |
| 28 | "-g", |
| 29 | ], |
| 30 | srcs: [ |
| 31 | "Annotation.cpp", |
| 32 | "ArrayType.cpp", |
| 33 | "CompoundType.cpp", |
| 34 | "ConstantExpression.cpp", |
| 35 | "EnumType.cpp", |
| 36 | "FQName.cpp", |
| 37 | "GenericBinder.cpp", |
| 38 | "HandleType.cpp", |
| 39 | "Interface.cpp", |
| 40 | "Method.cpp", |
| 41 | "NamedType.cpp", |
| 42 | "PredefinedType.cpp", |
| 43 | "ScalarType.cpp", |
| 44 | "Scope.cpp", |
| 45 | "StringType.cpp", |
| 46 | "Type.cpp", |
| 47 | "TypeDef.cpp", |
| 48 | "VectorType.cpp", |
| 49 | ], |
| 50 | shared_libs: [ |
| 51 | "libbase", |
| 52 | "liblog", |
| 53 | "libhidl-gen-utils", |
| 54 | ], |
| 55 | } |
| 56 | |
| 57 | // |
| 58 | // libhidl-gen-ast |
| 59 | // |
| 60 | |
| 61 | cc_library_host_shared { |
| 62 | name: "libhidl-gen-ast", |
| 63 | cflags: [ |
| 64 | "-O0", |
| 65 | "-g", |
| 66 | ], |
| 67 | srcs: [ |
| 68 | "Coordinator.cpp", |
| 69 | "generateCpp.cpp", |
| 70 | "generateCppImpl.cpp", |
| 71 | "generateJava.cpp", |
| 72 | "generateVts.cpp", |
| 73 | "hidl-gen_y.yy", |
| 74 | "hidl-gen_l.ll", |
| 75 | "AST.cpp", |
| 76 | ], |
| 77 | |
| 78 | shared_libs: [ |
| 79 | "libbase", |
| 80 | "liblog", |
| 81 | "libhidl-gen", |
| 82 | "libhidl-gen-utils", |
| 83 | ], |
| 84 | } |
| 85 | |
| 86 | // |
| 87 | // hidl-gen |
| 88 | // |
| 89 | cc_binary_host { |
| 90 | name: "hidl-gen", |
| 91 | srcs: ["main.cpp"], |
| 92 | |
| 93 | shared_libs: [ |
| 94 | "libbase", |
| 95 | "liblog", |
| 96 | "libhidl-gen", |
| 97 | "libhidl-gen-ast", |
| 98 | "libhidl-gen-utils", |
| 99 | ], |
| 100 | |
| 101 | cflags: [ |
| 102 | "-O0", |
| 103 | "-g", |
| 104 | ], |
| 105 | } |