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 15LOCAL_PATH := $(call my-dir) 16 17test_src_files := \ 18 sockets_test.cpp \ 19 20test_src_files_nonwindows := \ 21 test_str_parms.cpp \ 22 23test_target_only_src_files := \ 24 MemsetTest.cpp \ 25 PropertiesTest.cpp \ 26 trace-dev_test.cpp \ 27 28test_libraries := libcutils liblog libbase 29 30 31# 32# Target. 33# 34 35include $(CLEAR_VARS) 36LOCAL_MODULE := libcutils_test 37LOCAL_SRC_FILES := $(test_src_files) $(test_target_only_src_files) 38LOCAL_SHARED_LIBRARIES := $(test_libraries) 39LOCAL_MULTILIB := both 40LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32 41LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 42include $(BUILD_NATIVE_TEST) 43 44include $(CLEAR_VARS) 45LOCAL_MODULE := libcutils_test_static 46LOCAL_FORCE_STATIC_EXECUTABLE := true 47LOCAL_SRC_FILES := $(test_src_files) $(test_target_only_src_files) 48LOCAL_STATIC_LIBRARIES := libc $(test_libraries) 49LOCAL_CXX_STL := libc++_static 50LOCAL_MULTILIB := both 51LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32 52LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 53include $(BUILD_NATIVE_TEST) 54 55 56# 57# Host. 58# 59 60include $(CLEAR_VARS) 61LOCAL_MODULE := libcutils_test 62LOCAL_SRC_FILES := $(test_src_files) $(test_src_files_nonwindows) 63LOCAL_SHARED_LIBRARIES := $(test_libraries) 64LOCAL_MULTILIB := both 65LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32 66LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 67include $(BUILD_HOST_NATIVE_TEST) 68 69include $(CLEAR_VARS) 70LOCAL_MODULE := libcutils_test_static 71LOCAL_SRC_FILES := $(test_src_files) 72LOCAL_SRC_FILES_darwin := $(test_src_files_nonwindows) 73LOCAL_SRC_FILES_linux := $(test_src_files_nonwindows) 74LOCAL_STATIC_LIBRARIES := $(test_libraries) 75LOCAL_LDLIBS_windows := -lws2_32 76LOCAL_CXX_STL := libc++_static 77LOCAL_MULTILIB := both 78LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32 79LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64 80LOCAL_MODULE_HOST_OS := darwin linux windows 81include $(BUILD_HOST_NATIVE_TEST) 82