1// 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. 17cc_library { 18 name: "libfruit", 19 host_supported: true, 20 export_include_dirs: ["include", "configuration/android"], 21 srcs: ["src/**/*.cpp", ], 22} 23 24// TODO: tests written in python+pytest that calls back into compiler. unclear how to best proceed. 25 26cc_defaults { 27 name: "libfruit-example-defaults", 28 host_supported: true, 29 gtest: false, 30 shared_libs: ["libfruit"], 31 cflags: ["-Wno-non-virtual-dtor"], 32} 33 34cc_test { 35 defaults: ["libfruit-example-defaults"], 36 name: "libfruit-example-hello-world", 37 srcs: ["examples/hello_world/**/*.cpp"], 38} 39