Dan Albert | 27d166c | 2014-10-16 20:47:51 -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 | |
Jeff Brown | 66db689 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 17 | # Build the unit tests. |
| 18 | LOCAL_PATH := $(call my-dir) |
Jeff Brown | 66db689 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 19 | |
Dan Albert | 27d166c | 2014-10-16 20:47:51 -0700 | [diff] [blame] | 20 | include $(CLEAR_VARS) |
Dan Albert | 27d166c | 2014-10-16 20:47:51 -0700 | [diff] [blame] | 21 | |
| 22 | LOCAL_MODULE := libutils_tests |
| 23 | |
| 24 | LOCAL_SRC_FILES := \ |
Kenny Root | 2fe13f1 | 2012-10-02 09:09:10 -0700 | [diff] [blame] | 25 | BlobCache_test.cpp \ |
Michael Wright | d614ee4 | 2013-05-21 14:11:34 -0700 | [diff] [blame] | 26 | BitSet_test.cpp \ |
Kenny Root | 2fe13f1 | 2012-10-02 09:09:10 -0700 | [diff] [blame] | 27 | Looper_test.cpp \ |
Raph Levien | b6ea175 | 2012-10-25 23:11:13 -0700 | [diff] [blame] | 28 | LruCache_test.cpp \ |
Kenny Root | 2fe13f1 | 2012-10-02 09:09:10 -0700 | [diff] [blame] | 29 | String8_test.cpp \ |
John Reck | d69089a | 2015-10-28 15:36:33 -0700 | [diff] [blame] | 30 | StrongPointer_test.cpp \ |
Greg Hackmann | 340079d | 2016-04-25 15:57:44 -0700 | [diff] [blame] | 31 | SystemClock_test.cpp \ |
Kenny Root | 2fe13f1 | 2012-10-02 09:09:10 -0700 | [diff] [blame] | 32 | Unicode_test.cpp \ |
Dan Albert | 27d166c | 2014-10-16 20:47:51 -0700 | [diff] [blame] | 33 | Vector_test.cpp \ |
Jeff Brown | 66db689 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 34 | |
Dan Albert | 27d166c | 2014-10-16 20:47:51 -0700 | [diff] [blame] | 35 | LOCAL_SHARED_LIBRARIES := \ |
Kenny Root | 2fe13f1 | 2012-10-02 09:09:10 -0700 | [diff] [blame] | 36 | libz \ |
| 37 | liblog \ |
| 38 | libcutils \ |
| 39 | libutils \ |
Jeff Brown | 66db689 | 2010-04-22 18:58:52 -0700 | [diff] [blame] | 40 | |
Dan Albert | 27d166c | 2014-10-16 20:47:51 -0700 | [diff] [blame] | 41 | include $(BUILD_NATIVE_TEST) |
Narayan Kamath | c609c31 | 2015-08-28 12:59:48 +0100 | [diff] [blame] | 42 | |
| 43 | include $(CLEAR_VARS) |
| 44 | |
| 45 | LOCAL_MODULE := libutils_tests_host |
| 46 | LOCAL_SRC_FILES := Vector_test.cpp |
| 47 | LOCAL_STATIC_LIBRARIES := libutils liblog |
| 48 | |
| 49 | include $(BUILD_HOST_NATIVE_TEST) |