summaryrefslogtreecommitdiffstats
path: root/tests/Android.mk
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-10-17 09:47:57 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-17 09:47:57 +0200
commitc7249660f908c74687b5fdadc1296eb9d4903cc7 (patch)
treee812e7c4951fccdfb3aacc68f42640c76a09a7ab /tests/Android.mk
parentam 28ffde5e: Merge "Revert "Copy epoll(2) changes to minadb."" (diff)
parentMerge "More test makefile cleanup." (diff)
downloadandroid_bootable_recovery-c7249660f908c74687b5fdadc1296eb9d4903cc7.tar
android_bootable_recovery-c7249660f908c74687b5fdadc1296eb9d4903cc7.tar.gz
android_bootable_recovery-c7249660f908c74687b5fdadc1296eb9d4903cc7.tar.bz2
android_bootable_recovery-c7249660f908c74687b5fdadc1296eb9d4903cc7.tar.lz
android_bootable_recovery-c7249660f908c74687b5fdadc1296eb9d4903cc7.tar.xz
android_bootable_recovery-c7249660f908c74687b5fdadc1296eb9d4903cc7.tar.zst
android_bootable_recovery-c7249660f908c74687b5fdadc1296eb9d4903cc7.zip
Diffstat (limited to 'tests/Android.mk')
-rw-r--r--tests/Android.mk47
1 files changed, 23 insertions, 24 deletions
diff --git a/tests/Android.mk b/tests/Android.mk
index 4d99d5249..02a272a24 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -1,26 +1,25 @@
-# Build the unit tests.
-LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
-
-# Build the unit tests.
-test_src_files := \
- asn1_decoder_test.cpp
+#
+# Copyright (C) 2014 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.
+#
-shared_libraries := \
- liblog \
- libcutils
-
-static_libraries := \
- libgtest \
- libgtest_main \
- libverifier
+LOCAL_PATH := $(call my-dir)
-$(foreach file,$(test_src_files), \
- $(eval include $(CLEAR_VARS)) \
- $(eval LOCAL_SHARED_LIBRARIES := $(shared_libraries)) \
- $(eval LOCAL_STATIC_LIBRARIES := $(static_libraries)) \
- $(eval LOCAL_SRC_FILES := $(file)) \
- $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
- $(eval LOCAL_C_INCLUDES := $(LOCAL_PATH)/..) \
- $(eval include $(BUILD_NATIVE_TEST)) \
-) \ No newline at end of file
+include $(CLEAR_VARS)
+LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
+LOCAL_STATIC_LIBRARIES := libverifier
+LOCAL_SRC_FILES := asn1_decoder_test.cpp
+LOCAL_MODULE := asn1_decoder_test
+LOCAL_C_INCLUDES := $(LOCAL_PATH)/..
+include $(BUILD_NATIVE_TEST)