blob: 444c19ca7b5a532dcab3aa441259778bed7fc0ca [file] [log] [blame]
Igor Murashkin5289ec12018-08-09 17:54:43 -07001// Copyright (C) 2018 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// Simply '#include <fruit/fruit.h>' to get started.
16// See https://github.com/google/fruit/wiki for more details.
Bob Badourd2effc72021-02-12 21:28:40 -080017package {
18 default_applicable_licenses: ["external_google-fruit_license"],
19}
20
21// Added automatically by a large-scale-change
22//
23// large-scale-change included anything that looked like it might be a license
24// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
25//
26// Please consider removing redundant or irrelevant files from 'license_text:'.
27// See: http://go/android-license-faq
28license {
29 name: "external_google-fruit_license",
30 visibility: [":__subpackages__"],
31 license_kinds: [
32 "SPDX-license-identifier-Apache-2.0",
33 ],
34 license_text: [
35 "COPYING",
36 "LICENSE",
37 ],
38}
39
Igor Murashkin5289ec12018-08-09 17:54:43 -070040cc_library {
41 name: "libfruit",
42 host_supported: true,
A. Cody Schuffelen982e10c2021-03-23 21:39:43 -070043 vendor_available: true,
Igor Murashkin5289ec12018-08-09 17:54:43 -070044 export_include_dirs: ["include", "configuration/android"],
45 srcs: ["src/**/*.cpp", ],
A. Cody Schuffelen982e10c2021-03-23 21:39:43 -070046 apex_available: [
47 "//apex_available:platform",
48 "//apex_available:anyapex",
49 ],
Igor Murashkin5289ec12018-08-09 17:54:43 -070050}
51
52// TODO: tests written in python+pytest that calls back into compiler. unclear how to best proceed.
53
54cc_defaults {
55 name: "libfruit-example-defaults",
56 host_supported: true,
57 gtest: false,
58 shared_libs: ["libfruit"],
59 cflags: ["-Wno-non-virtual-dtor"],
60}
61
62cc_test {
63 defaults: ["libfruit-example-defaults"],
64 name: "libfruit-example-hello-world",
65 srcs: ["examples/hello_world/**/*.cpp"],
66}