• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    Theme_test.cpp \
30    TypeWrappers_test.cpp \
31    ZipUtils_test.cpp
32
33# ==========================================================
34# Build the host tests: libandroidfw_tests
35# ==========================================================
36include $(CLEAR_VARS)
37
38LOCAL_MODULE := libandroidfw_tests
39
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
56
57LOCAL_SRC_FILES := $(testFiles) \
58    BackupData_test.cpp \
59    ObbFile_test.cpp
60
61LOCAL_SHARED_LIBRARIES := \
62    libandroidfw \
63    libcutils \
64    libutils \
65    libui \
66    libstlport
67
68include $(BUILD_NATIVE_TEST)
69