Eric Holk | c4239ac | 2018-09-05 10:43:31 -0700 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2018 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 | |
Eric Holk | dbc36e2 | 2018-09-20 12:03:10 -0700 | [diff] [blame] | 17 | cc_defaults { |
| 18 | name: "viewcompiler_defaults", |
| 19 | shared_libs: [ |
| 20 | "libdexfile", |
| 21 | "slicer", |
| 22 | ], |
| 23 | } |
| 24 | |
Eric Holk | c4239ac | 2018-09-05 10:43:31 -0700 | [diff] [blame] | 25 | cc_library_host_static { |
| 26 | name: "libviewcompiler", |
Eric Holk | dbc36e2 | 2018-09-20 12:03:10 -0700 | [diff] [blame] | 27 | defaults: ["viewcompiler_defaults"], |
Eric Holk | c4239ac | 2018-09-05 10:43:31 -0700 | [diff] [blame] | 28 | srcs: [ |
Eric Holk | dbc36e2 | 2018-09-20 12:03:10 -0700 | [diff] [blame] | 29 | "dex_builder.cc", |
Eric Holk | c4239ac | 2018-09-05 10:43:31 -0700 | [diff] [blame] | 30 | "java_lang_builder.cc", |
| 31 | "util.cc", |
| 32 | ], |
| 33 | static_libs: [ |
Eric Holk | dbc36e2 | 2018-09-20 12:03:10 -0700 | [diff] [blame] | 34 | "libbase", |
| 35 | ], |
Eric Holk | c4239ac | 2018-09-05 10:43:31 -0700 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | cc_binary_host { |
| 39 | name: "viewcompiler", |
Eric Holk | dbc36e2 | 2018-09-20 12:03:10 -0700 | [diff] [blame] | 40 | defaults: ["viewcompiler_defaults"], |
Eric Holk | c4239ac | 2018-09-05 10:43:31 -0700 | [diff] [blame] | 41 | srcs: [ |
| 42 | "main.cc", |
| 43 | ], |
| 44 | static_libs: [ |
| 45 | "libbase", |
| 46 | "libtinyxml2", |
| 47 | "libgflags", |
| 48 | "libviewcompiler", |
| 49 | ], |
| 50 | } |
| 51 | |
| 52 | cc_test_host { |
| 53 | name: "view-compiler-tests", |
Eric Holk | dbc36e2 | 2018-09-20 12:03:10 -0700 | [diff] [blame] | 54 | defaults: ["viewcompiler_defaults"], |
Eric Holk | c4239ac | 2018-09-05 10:43:31 -0700 | [diff] [blame] | 55 | srcs: [ |
Eric Holk | dbc36e2 | 2018-09-20 12:03:10 -0700 | [diff] [blame] | 56 | "dex_builder_test.cc", |
Eric Holk | c4239ac | 2018-09-05 10:43:31 -0700 | [diff] [blame] | 57 | "util_test.cc", |
| 58 | ], |
| 59 | static_libs: [ |
| 60 | "libviewcompiler", |
Eric Holk | dbc36e2 | 2018-09-20 12:03:10 -0700 | [diff] [blame] | 61 | ], |
Eric Holk | c4239ac | 2018-09-05 10:43:31 -0700 | [diff] [blame] | 62 | } |