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", |
Dan Willemsen | 676abdc | 2016-09-28 19:42:22 -0700 | [diff] [blame] | 17 | "test", |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 18 | "utils", |
| 19 | ] |
| 20 | |
Steven Moreland | 6081863 | 2017-02-04 00:33:42 -0800 | [diff] [blame] | 21 | hidl_flags = [ |
| 22 | "-O0", |
| 23 | "-g", |
| 24 | "-Wall", |
| 25 | "-Werror", |
| 26 | ] |
| 27 | |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 28 | // |
| 29 | // libhidl-gen |
| 30 | // |
| 31 | cc_library_shared { |
| 32 | name: "libhidl-gen", |
| 33 | host_supported: true, |
Steven Moreland | 6081863 | 2017-02-04 00:33:42 -0800 | [diff] [blame] | 34 | cflags: hidl_flags, |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 35 | srcs: [ |
| 36 | "Annotation.cpp", |
| 37 | "ArrayType.cpp", |
| 38 | "CompoundType.cpp", |
| 39 | "ConstantExpression.cpp", |
Martijn Coenen | 115d428 | 2016-12-19 05:14:04 +0100 | [diff] [blame] | 40 | "DeathRecipientType.cpp", |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 41 | "EnumType.cpp", |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 42 | "HandleType.cpp", |
| 43 | "Interface.cpp", |
Martijn Coenen | 99e6beb | 2016-12-01 15:48:42 +0100 | [diff] [blame] | 44 | "MemoryType.cpp", |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 45 | "Method.cpp", |
| 46 | "NamedType.cpp", |
Martijn Coenen | 99e6beb | 2016-12-01 15:48:42 +0100 | [diff] [blame] | 47 | "PointerType.cpp", |
Hridya Valsaraju | a32bde8 | 2016-12-27 11:47:46 -0800 | [diff] [blame] | 48 | "FmqType.cpp", |
Yifan Hong | bf459bc | 2016-08-23 16:50:37 -0700 | [diff] [blame] | 49 | "RefType.cpp", |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 50 | "ScalarType.cpp", |
| 51 | "Scope.cpp", |
| 52 | "StringType.cpp", |
| 53 | "Type.cpp", |
| 54 | "TypeDef.cpp", |
| 55 | "VectorType.cpp", |
| 56 | ], |
| 57 | shared_libs: [ |
| 58 | "libbase", |
Yifan Hong | 30b5d1f | 2017-04-03 12:19:25 -0700 | [diff] [blame] | 59 | "libcrypto", |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 60 | "liblog", |
| 61 | "libhidl-gen-utils", |
Yifan Hong | 30b5d1f | 2017-04-03 12:19:25 -0700 | [diff] [blame] | 62 | "libssl", |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 63 | ], |
| 64 | } |
| 65 | |
| 66 | // |
| 67 | // libhidl-gen-ast |
| 68 | // |
| 69 | |
| 70 | cc_library_host_shared { |
| 71 | name: "libhidl-gen-ast", |
Steven Moreland | 6081863 | 2017-02-04 00:33:42 -0800 | [diff] [blame] | 72 | cflags: hidl_flags, |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 73 | srcs: [ |
| 74 | "Coordinator.cpp", |
| 75 | "generateCpp.cpp", |
| 76 | "generateCppImpl.cpp", |
| 77 | "generateJava.cpp", |
| 78 | "generateVts.cpp", |
| 79 | "hidl-gen_y.yy", |
| 80 | "hidl-gen_l.ll", |
| 81 | "AST.cpp", |
| 82 | ], |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 83 | shared_libs: [ |
| 84 | "libbase", |
| 85 | "liblog", |
| 86 | "libhidl-gen", |
| 87 | "libhidl-gen-utils", |
| 88 | ], |
| 89 | } |
| 90 | |
| 91 | // |
| 92 | // hidl-gen |
| 93 | // |
| 94 | cc_binary_host { |
| 95 | name: "hidl-gen", |
Steven Moreland | 6081863 | 2017-02-04 00:33:42 -0800 | [diff] [blame] | 96 | cflags: hidl_flags, |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 97 | srcs: ["main.cpp"], |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 98 | shared_libs: [ |
| 99 | "libbase", |
| 100 | "liblog", |
| 101 | "libhidl-gen", |
| 102 | "libhidl-gen-ast", |
| 103 | "libhidl-gen-utils", |
| 104 | ], |
Dan Willemsen | e4376b8 | 2016-09-26 13:58:25 -0700 | [diff] [blame] | 105 | } |