aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2018-08-09 17:54:43 -0700
committerIgor Murashkin <iam@google.com>2018-08-10 11:59:25 -0700
commit5289ec110eaca1768c167e1b5fbe1a4602c3b49e (patch)
treed52b2960c70a980d3513cf51a820367a0a3693bf /Android.bp
parent7dfecaa23cfb56b360d683a301e6dd0144b15214 (diff)
downloadgoogle-fruit-5289ec110eaca1768c167e1b5fbe1a4602c3b49e.tar.gz
android: Add build target 'libfruit'master-cuttlefish-testing-release
Also adds an android config (no rtti, no boost, no exceptions). Change-Id: Ib7cce745ec009ca85e64420e8c7034c2e4bb7bdb
Diffstat (limited to 'Android.bp')
-rw-r--r--Android.bp38
1 files changed, 38 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 0000000..9907842
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,38 @@
+// Copyright (C) 2018 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+// Simply '#include <fruit/fruit.h>' to get started.
+// See https://github.com/google/fruit/wiki for more details.
+cc_library {
+ name: "libfruit",
+ host_supported: true,
+ export_include_dirs: ["include", "configuration/android"],
+ srcs: ["src/**/*.cpp", ],
+}
+
+// TODO: tests written in python+pytest that calls back into compiler. unclear how to best proceed.
+
+cc_defaults {
+ name: "libfruit-example-defaults",
+ host_supported: true,
+ gtest: false,
+ shared_libs: ["libfruit"],
+ cflags: ["-Wno-non-virtual-dtor"],
+}
+
+cc_test {
+ defaults: ["libfruit-example-defaults"],
+ name: "libfruit-example-hello-world",
+ srcs: ["examples/hello_world/**/*.cpp"],
+}