| Igor Murashkin | d8f2a8d | 2014-04-08 11:22:42 -0700 | [diff] [blame] | 1 | # Copyright (C) 2014 The Android Open Source Project | 
 | 2 | # | 
 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 
 | 4 | # you may not use this file except in compliance with the License. | 
 | 5 | # You may obtain a copy of the License at | 
 | 6 | # | 
 | 7 | #      http://www.apache.org/licenses/LICENSE-2.0 | 
 | 8 | # | 
 | 9 | # Unless required by applicable law or agreed to in writing, software | 
 | 10 | # distributed under the License is distributed on an "AS IS" BASIS, | 
 | 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 
 | 12 | # See the License for the specific language governing permissions and | 
 | 13 | # limitations under the License. | 
 | 14 |  | 
 | 15 | LOCAL_PATH := $(call my-dir) | 
| Igor Murashkin | d8f2a8d | 2014-04-08 11:22:42 -0700 | [diff] [blame] | 16 |  | 
 | 17 | test_src_files := \ | 
| David Pursell | 0eb8e1b | 2016-01-14 17:18:27 -0800 | [diff] [blame] | 18 |     sockets_test.cpp \ | 
 | 19 |  | 
 | 20 | test_src_files_nonwindows := \ | 
| Elliott Hughes | af98efb | 2015-04-02 13:36:54 -0700 | [diff] [blame] | 21 |     test_str_parms.cpp \ | 
 | 22 |  | 
 | 23 | test_target_only_src_files := \ | 
| Christopher Ferris | d660d89 | 2014-06-20 10:28:28 -0700 | [diff] [blame] | 24 |     MemsetTest.cpp \ | 
| Igor Murashkin | d8f2a8d | 2014-04-08 11:22:42 -0700 | [diff] [blame] | 25 |     PropertiesTest.cpp \ | 
| Christopher Ferris | 626efb7 | 2016-02-23 18:02:20 -0800 | [diff] [blame] | 26 |     trace-dev_test.cpp \ | 
| Igor Murashkin | d8f2a8d | 2014-04-08 11:22:42 -0700 | [diff] [blame] | 27 |  | 
| Christopher Ferris | 626efb7 | 2016-02-23 18:02:20 -0800 | [diff] [blame] | 28 | test_libraries := libcutils liblog libbase | 
| Christopher Ferris | d660d89 | 2014-06-20 10:28:28 -0700 | [diff] [blame] | 29 |  | 
| Elliott Hughes | af98efb | 2015-04-02 13:36:54 -0700 | [diff] [blame] | 30 |  | 
 | 31 | # | 
 | 32 | # Target. | 
 | 33 | # | 
 | 34 |  | 
 | 35 | include $(CLEAR_VARS) | 
 | 36 | LOCAL_MODULE := libcutils_test | 
 | 37 | LOCAL_SRC_FILES := $(test_src_files) $(test_target_only_src_files) | 
 | 38 | LOCAL_SHARED_LIBRARIES := $(test_libraries) | 
| Christopher Ferris | d660d89 | 2014-06-20 10:28:28 -0700 | [diff] [blame] | 39 | LOCAL_MULTILIB := both | 
 | 40 | LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32 | 
 | 41 | LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 | 
 | 42 | include $(BUILD_NATIVE_TEST) | 
 | 43 |  | 
| Dan Albert | 43db1c3 | 2015-04-01 16:43:47 -0700 | [diff] [blame] | 44 | include $(CLEAR_VARS) | 
| Dan Albert | 43db1c3 | 2015-04-01 16:43:47 -0700 | [diff] [blame] | 45 | LOCAL_MODULE := libcutils_test_static | 
 | 46 | LOCAL_FORCE_STATIC_EXECUTABLE := true | 
| Elliott Hughes | af98efb | 2015-04-02 13:36:54 -0700 | [diff] [blame] | 47 | LOCAL_SRC_FILES := $(test_src_files) $(test_target_only_src_files) | 
 | 48 | LOCAL_STATIC_LIBRARIES := libc $(test_libraries) | 
| Dan Albert | 43db1c3 | 2015-04-01 16:43:47 -0700 | [diff] [blame] | 49 | LOCAL_CXX_STL := libc++_static | 
 | 50 | LOCAL_MULTILIB := both | 
 | 51 | LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32 | 
 | 52 | LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 | 
 | 53 | include $(BUILD_NATIVE_TEST) | 
| Elliott Hughes | af98efb | 2015-04-02 13:36:54 -0700 | [diff] [blame] | 54 |  | 
 | 55 |  | 
 | 56 | # | 
 | 57 | # Host. | 
 | 58 | # | 
 | 59 |  | 
 | 60 | include $(CLEAR_VARS) | 
 | 61 | LOCAL_MODULE := libcutils_test | 
| David Pursell | 0eb8e1b | 2016-01-14 17:18:27 -0800 | [diff] [blame] | 62 | LOCAL_SRC_FILES := $(test_src_files) $(test_src_files_nonwindows) | 
| Elliott Hughes | af98efb | 2015-04-02 13:36:54 -0700 | [diff] [blame] | 63 | LOCAL_SHARED_LIBRARIES := $(test_libraries) | 
 | 64 | LOCAL_MULTILIB := both | 
 | 65 | LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32 | 
 | 66 | LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 | 
 | 67 | include $(BUILD_HOST_NATIVE_TEST) | 
 | 68 |  | 
 | 69 | include $(CLEAR_VARS) | 
 | 70 | LOCAL_MODULE := libcutils_test_static | 
 | 71 | LOCAL_SRC_FILES := $(test_src_files) | 
| David Pursell | 0eb8e1b | 2016-01-14 17:18:27 -0800 | [diff] [blame] | 72 | LOCAL_SRC_FILES_darwin := $(test_src_files_nonwindows) | 
 | 73 | LOCAL_SRC_FILES_linux := $(test_src_files_nonwindows) | 
| Elliott Hughes | af98efb | 2015-04-02 13:36:54 -0700 | [diff] [blame] | 74 | LOCAL_STATIC_LIBRARIES := $(test_libraries) | 
| David Pursell | 0eb8e1b | 2016-01-14 17:18:27 -0800 | [diff] [blame] | 75 | LOCAL_LDLIBS_windows := -lws2_32 | 
| Elliott Hughes | af98efb | 2015-04-02 13:36:54 -0700 | [diff] [blame] | 76 | LOCAL_CXX_STL := libc++_static | 
 | 77 | LOCAL_MULTILIB := both | 
 | 78 | LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32 | 
 | 79 | LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 | 
| David Pursell | 0eb8e1b | 2016-01-14 17:18:27 -0800 | [diff] [blame] | 80 | LOCAL_MODULE_HOST_OS := darwin linux windows | 
| Elliott Hughes | af98efb | 2015-04-02 13:36:54 -0700 | [diff] [blame] | 81 | include $(BUILD_HOST_NATIVE_TEST) |