blob: 3681529643bcd461489ec01395d42feba936eccf [file] [log] [blame]
Eric Holkc4239ac2018-09-05 10:43:31 -07001//
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 Holkdbc36e22018-09-20 12:03:10 -070017cc_defaults {
18 name: "viewcompiler_defaults",
19 shared_libs: [
20 "libdexfile",
21 "slicer",
22 ],
23}
24
Eric Holkc4239ac2018-09-05 10:43:31 -070025cc_library_host_static {
26 name: "libviewcompiler",
Eric Holkdbc36e22018-09-20 12:03:10 -070027 defaults: ["viewcompiler_defaults"],
Eric Holkc4239ac2018-09-05 10:43:31 -070028 srcs: [
Eric Holkdbc36e22018-09-20 12:03:10 -070029 "dex_builder.cc",
Eric Holkc4239ac2018-09-05 10:43:31 -070030 "java_lang_builder.cc",
31 "util.cc",
32 ],
33 static_libs: [
Eric Holkdbc36e22018-09-20 12:03:10 -070034 "libbase",
35 ],
Eric Holkc4239ac2018-09-05 10:43:31 -070036}
37
38cc_binary_host {
39 name: "viewcompiler",
Eric Holkdbc36e22018-09-20 12:03:10 -070040 defaults: ["viewcompiler_defaults"],
Eric Holkc4239ac2018-09-05 10:43:31 -070041 srcs: [
42 "main.cc",
43 ],
44 static_libs: [
45 "libbase",
46 "libtinyxml2",
47 "libgflags",
48 "libviewcompiler",
49 ],
50}
51
52cc_test_host {
53 name: "view-compiler-tests",
Eric Holkdbc36e22018-09-20 12:03:10 -070054 defaults: ["viewcompiler_defaults"],
Eric Holkc4239ac2018-09-05 10:43:31 -070055 srcs: [
Eric Holkdbc36e22018-09-20 12:03:10 -070056 "dex_builder_test.cc",
Eric Holkc4239ac2018-09-05 10:43:31 -070057 "util_test.cc",
58 ],
59 static_libs: [
60 "libviewcompiler",
Eric Holkdbc36e22018-09-20 12:03:10 -070061 ],
Eric Holkc4239ac2018-09-05 10:43:31 -070062}