Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 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 | # ========================================================== |
Adam Lesinski | 16c4d15 | 2014-01-24 13:27:13 -0800 | [diff] [blame] | 21 | LOCAL_PATH:= $(call my-dir) |
Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 22 | testFiles := \ |
| 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 Lesinski | 16c4d15 | 2014-01-24 13:27:13 -0800 | [diff] [blame] | 34 | include $(CLEAR_VARS) |
| 35 | |
Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 36 | LOCAL_MODULE := libandroidfw_tests |
Adam Lesinski | 16c4d15 | 2014-01-24 13:27:13 -0800 | [diff] [blame] | 37 | |
Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 38 | LOCAL_SRC_FILES := $(testFiles) |
| 39 | LOCAL_STATIC_LIBRARIES := \ |
| 40 | libandroidfw \ |
| 41 | libutils \ |
| 42 | libcutils \ |
| 43 | liblog |
| 44 | |
| 45 | include $(BUILD_HOST_NATIVE_TEST) |
| 46 | |
| 47 | |
| 48 | # ========================================================== |
| 49 | # Build the device tests: libandroidfw_tests |
| 50 | # ========================================================== |
| 51 | include $(CLEAR_VARS) |
| 52 | |
| 53 | LOCAL_MODULE := libandroidfw_tests |
| 54 | |
| 55 | LOCAL_SRC_FILES := $(testFiles) \ |
| 56 | BackupData_test.cpp \ |
| 57 | ObbFile_test.cpp |
| 58 | |
| 59 | LOCAL_SHARED_LIBRARIES := \ |
Adam Lesinski | 16c4d15 | 2014-01-24 13:27:13 -0800 | [diff] [blame] | 60 | libandroidfw \ |
| 61 | libcutils \ |
| 62 | libutils \ |
| 63 | libui \ |
| 64 | libstlport |
| 65 | |
Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 66 | include $(BUILD_NATIVE_TEST) |