Android.mk revision f90f2f8dc36e7243b85e0b6a7fd5a590893c827e
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    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# ==========================================================
34include $(CLEAR_VARS)
35
36LOCAL_MODULE := libandroidfw_tests
37
38LOCAL_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 := \
60    libandroidfw \
61    libcutils \
62    libutils \
63    libui \
64    libstlport
65
66include $(BUILD_NATIVE_TEST)
67