blob: 4ff6eecf168581ef8cfe1e94785e94ceeab8c915 [file] [log] [blame]
Adam Lesinskif90f2f8d2014-06-06 14:27:00 -07001#
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# ==========================================================
Adam Lesinski16c4d152014-01-24 13:27:13 -080021LOCAL_PATH:= $(call my-dir)
Adam Lesinskif90f2f8d2014-06-06 14:27:00 -070022testFiles := \
23 ByteBucketArray_test.cpp \
24 Idmap_test.cpp \
25 ResourceTypes_test.cpp \
26 ResTable_test.cpp \
27 Split_test.cpp \
28 TypeWrappers_test.cpp \
29 ZipUtils_test.cpp
30
31# ==========================================================
32# Build the host tests: libandroidfw_tests
33# ==========================================================
Adam Lesinski16c4d152014-01-24 13:27:13 -080034include $(CLEAR_VARS)
35
Adam Lesinskif90f2f8d2014-06-06 14:27:00 -070036LOCAL_MODULE := libandroidfw_tests
Adam Lesinski16c4d152014-01-24 13:27:13 -080037
Adam Lesinskif90f2f8d2014-06-06 14:27:00 -070038LOCAL_SRC_FILES := $(testFiles)
39LOCAL_STATIC_LIBRARIES := \
40 libandroidfw \
41 libutils \
42 libcutils \
43 liblog
44
45include $(BUILD_HOST_NATIVE_TEST)
46
47
48# ==========================================================
49# Build the device tests: libandroidfw_tests
50# ==========================================================
51include $(CLEAR_VARS)
52
53LOCAL_MODULE := libandroidfw_tests
54
55LOCAL_SRC_FILES := $(testFiles) \
56 BackupData_test.cpp \
57 ObbFile_test.cpp
58
59LOCAL_SHARED_LIBRARIES := \
Adam Lesinski16c4d152014-01-24 13:27:13 -080060 libandroidfw \
61 libcutils \
62 libutils \
63 libui \
64 libstlport
65
Adam Lesinskif90f2f8d2014-06-06 14:27:00 -070066include $(BUILD_NATIVE_TEST)