Android.mk revision 4bf58108d442b37ab4adf5ce3a4ecd63472ce254
1# 2# Copyright (C) 2014 The Android Open Source Project 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15# 16 17# ========================================================== 18# Setup some common variables for the different build 19# targets here. 20# ========================================================== 21LOCAL_PATH:= $(call my-dir) 22testFiles := \ 23 ByteBucketArray_test.cpp \ 24 Config_test.cpp \ 25 ConfigLocale_test.cpp \ 26 Idmap_test.cpp \ 27 ResTable_test.cpp \ 28 Split_test.cpp \ 29 TestHelpers.cpp \ 30 Theme_test.cpp \ 31 TypeWrappers_test.cpp \ 32 ZipUtils_test.cpp 33 34# ========================================================== 35# Build the host tests: libandroidfw_tests 36# ========================================================== 37include $(CLEAR_VARS) 38 39LOCAL_MODULE := libandroidfw_tests 40LOCAL_SRC_FILES := $(testFiles) 41LOCAL_STATIC_LIBRARIES := \ 42 libandroidfw \ 43 libutils \ 44 libcutils \ 45 liblog 46 47include $(BUILD_HOST_NATIVE_TEST) 48 49 50# ========================================================== 51# Build the device tests: libandroidfw_tests 52# ========================================================== 53include $(CLEAR_VARS) 54 55LOCAL_MODULE := libandroidfw_tests 56LOCAL_SRC_FILES := $(testFiles) \ 57 BackupData_test.cpp \ 58 ObbFile_test.cpp 59LOCAL_SHARED_LIBRARIES := \ 60 libandroidfw \ 61 libcutils \ 62 libutils \ 63 libui \ 64 libstlport 65 66include $(BUILD_NATIVE_TEST) 67