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 \ |
Adam Lesinski | 31245b4 | 2014-08-22 19:10:56 -0700 | [diff] [blame] | 24 | Config_test.cpp \ |
| 25 | ConfigLocale_test.cpp \ |
Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 26 | Idmap_test.cpp \ |
Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 27 | ResTable_test.cpp \ |
| 28 | Split_test.cpp \ |
Adam Lesinski | 6029319 | 2014-10-21 18:36:42 -0700 | [diff] [blame] | 29 | TestHelpers.cpp \ |
Adam Lesinski | 9d9cc62 | 2014-08-29 14:10:04 -0700 | [diff] [blame] | 30 | Theme_test.cpp \ |
Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 31 | TypeWrappers_test.cpp \ |
| 32 | ZipUtils_test.cpp |
| 33 | |
| 34 | # ========================================================== |
| 35 | # Build the host tests: libandroidfw_tests |
| 36 | # ========================================================== |
Adam Lesinski | 16c4d15 | 2014-01-24 13:27:13 -0800 | [diff] [blame] | 37 | include $(CLEAR_VARS) |
| 38 | |
Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 39 | LOCAL_MODULE := libandroidfw_tests |
Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 40 | LOCAL_SRC_FILES := $(testFiles) |
| 41 | LOCAL_STATIC_LIBRARIES := \ |
| 42 | libandroidfw \ |
| 43 | libutils \ |
| 44 | libcutils \ |
| 45 | liblog |
| 46 | |
| 47 | include $(BUILD_HOST_NATIVE_TEST) |
| 48 | |
| 49 | |
| 50 | # ========================================================== |
| 51 | # Build the device tests: libandroidfw_tests |
| 52 | # ========================================================== |
Adam Lesinski | f001e37 | 2014-10-20 16:15:33 -0700 | [diff] [blame] | 53 | ifneq ($(SDK_ONLY),true) |
Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 54 | include $(CLEAR_VARS) |
| 55 | |
| 56 | LOCAL_MODULE := libandroidfw_tests |
Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 57 | LOCAL_SRC_FILES := $(testFiles) \ |
| 58 | BackupData_test.cpp \ |
| 59 | ObbFile_test.cpp |
Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 60 | LOCAL_SHARED_LIBRARIES := \ |
Adam Lesinski | 16c4d15 | 2014-01-24 13:27:13 -0800 | [diff] [blame] | 61 | libandroidfw \ |
| 62 | libcutils \ |
| 63 | libutils \ |
| 64 | libui \ |
| 65 | libstlport |
| 66 | |
Adam Lesinski | f90f2f8d | 2014-06-06 14:27:00 -0700 | [diff] [blame] | 67 | include $(BUILD_NATIVE_TEST) |
Adam Lesinski | f001e37 | 2014-10-20 16:15:33 -0700 | [diff] [blame] | 68 | endif # Not SDK_ONLY |
| 69 | |