blob: cf70345cf911676b16391949bb815bcd6d6bc106 [file] [log] [blame]
Igor Murashkind8f2a8d2014-04-08 11:22:42 -07001# 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)
Igor Murashkind8f2a8d2014-04-08 11:22:42 -070016
17test_src_files := \
Elliott Hughesaf98efb2015-04-02 13:36:54 -070018 test_str_parms.cpp \
19
20test_target_only_src_files := \
Christopher Ferrisd660d892014-06-20 10:28:28 -070021 MemsetTest.cpp \
Igor Murashkind8f2a8d2014-04-08 11:22:42 -070022 PropertiesTest.cpp \
23
Elliott Hughesaf98efb2015-04-02 13:36:54 -070024test_libraries := libcutils liblog
Christopher Ferrisd660d892014-06-20 10:28:28 -070025
Elliott Hughesaf98efb2015-04-02 13:36:54 -070026
27#
28# Target.
29#
30
31include $(CLEAR_VARS)
32LOCAL_MODULE := libcutils_test
33LOCAL_SRC_FILES := $(test_src_files) $(test_target_only_src_files)
34LOCAL_SHARED_LIBRARIES := $(test_libraries)
Christopher Ferrisd660d892014-06-20 10:28:28 -070035LOCAL_MULTILIB := both
36LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32
37LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64
38include $(BUILD_NATIVE_TEST)
39
Dan Albert43db1c32015-04-01 16:43:47 -070040include $(CLEAR_VARS)
Dan Albert43db1c32015-04-01 16:43:47 -070041LOCAL_MODULE := libcutils_test_static
42LOCAL_FORCE_STATIC_EXECUTABLE := true
Elliott Hughesaf98efb2015-04-02 13:36:54 -070043LOCAL_SRC_FILES := $(test_src_files) $(test_target_only_src_files)
44LOCAL_STATIC_LIBRARIES := libc $(test_libraries)
Dan Albert43db1c32015-04-01 16:43:47 -070045LOCAL_CXX_STL := libc++_static
46LOCAL_MULTILIB := both
47LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32
48LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64
49include $(BUILD_NATIVE_TEST)
Elliott Hughesaf98efb2015-04-02 13:36:54 -070050
51
52#
53# Host.
54#
55
56include $(CLEAR_VARS)
57LOCAL_MODULE := libcutils_test
58LOCAL_SRC_FILES := $(test_src_files)
59LOCAL_SHARED_LIBRARIES := $(test_libraries)
60LOCAL_MULTILIB := both
61LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32
62LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64
63include $(BUILD_HOST_NATIVE_TEST)
64
65include $(CLEAR_VARS)
66LOCAL_MODULE := libcutils_test_static
67LOCAL_SRC_FILES := $(test_src_files)
68LOCAL_STATIC_LIBRARIES := $(test_libraries)
69LOCAL_CXX_STL := libc++_static
70LOCAL_MULTILIB := both
71LOCAL_MODULE_STEM_32 := $(LOCAL_MODULE)32
72LOCAL_MODULE_STEM_64 := $(LOCAL_MODULE)64
73include $(BUILD_HOST_NATIVE_TEST)