summaryrefslogtreecommitdiff
path: root/contexthubhal/test
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-10-24 15:18:31 -0700
committerDan Willemsen <dwillemsen@google.com>2018-10-24 15:39:18 -0700
commit543168df41d7a13870c8805400586e459908d5b7 (patch)
tree3f9d84a473612030728e9bfab68937aaaa9a94c3 /contexthubhal/test
parent84c9163a88da3ba2e6428190ebb22a32c8ae08c2 (diff)
downloadcontexthub-543168df41d7a13870c8805400586e459908d5b7.tar.gz
Convert to Android.bp
Converts the rest of the Host/Android rules from Android.mk to Android.bp. See build/soong/README.md for more information. Test: cd device/google/contexthub; mma Change-Id: I7e29b58010ccf6f966afe94f5a11f79692700b4c
Diffstat (limited to 'contexthubhal/test')
-rw-r--r--contexthubhal/test/Android.bp39
-rw-r--r--contexthubhal/test/Android.mk48
2 files changed, 39 insertions, 48 deletions
diff --git a/contexthubhal/test/Android.bp b/contexthubhal/test/Android.bp
new file mode 100644
index 00000000..9ab543c5
--- /dev/null
+++ b/contexthubhal/test/Android.bp
@@ -0,0 +1,39 @@
+//
+// Copyright (C) 2016 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.
+//
+
+cc_test {
+ name: "nanohub_hal_test",
+ gtest: false,
+
+ srcs: ["main.cpp"],
+
+ cflags: [
+ "-Wall",
+ "-Werror",
+ "-Wextra",
+ "-DHOST_BUILD",
+ "-DBOOTLOADER=",
+ "-DBOOTLOADER_RO=",
+ ],
+
+ static_libs: ["libnanohub_common"],
+
+ shared_libs: [
+ "libhardware",
+ "liblog",
+ "libcutils",
+ ],
+}
diff --git a/contexthubhal/test/Android.mk b/contexthubhal/test/Android.mk
deleted file mode 100644
index 44d2744e..00000000
--- a/contexthubhal/test/Android.mk
+++ /dev/null
@@ -1,48 +0,0 @@
-#
-# Copyright (C) 2016 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.
-#
-
-LOCAL_PATH := $(call my-dir)
-
-include $(CLEAR_VARS)
-
-
-LOCAL_SRC_FILES := main.cpp \
- ../../lib/nanohub/nanoapp.c \
-
-
-LOCAL_CFLAGS := \
- -Wall \
- -Werror \
- -Wextra \
- -DHOST_BUILD \
- -DBOOTLOADER= \
- -DBOOTLOADER_RO= \
-
-
-LOCAL_C_INCLUDES := \
- device/google/contexthub/lib/include \
- hardware/libhardware/include \
-
-LOCAL_SHARED_LIBRARIES := \
- libhardware \
- liblog \
- libcutils \
-
-LOCAL_MODULE := nanohub_hal_test
-
-LOCAL_MODULE_TAGS := optional
-
-include $(BUILD_EXECUTABLE)