blob: 80208ec430e25c385cdd87c6db8afea1b70ed6ac [file] [log] [blame]
Dmitriy Ivanovf8ff6b12015-01-27 19:32:56 -08001#
2# Copyright (C) 2015 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
Ying Wang4900f1c2015-06-06 11:55:16 -070017ifeq ($(HOST_OS),linux)
Dmitriy Ivanovf8ff6b12015-01-27 19:32:56 -080018
19# $(1) library name
20define copy-test-library
21include $(CLEAR_VARS)
22LOCAL_IS_HOST_MODULE := true
23LOCAL_MODULE := $(1)
24LOCAL_MODULE_CLASS := SHARED_LIBRARIES
25LOCAL_MODULE_PATH := $(HOST_OUT_EXECUTABLES)
26LOCAL_STRIP_MODULE := false
27LOCAL_SRC_FILES := test_data/$(1)
28include $(BUILD_PREBUILT)
29endef
30
31$(eval $(call copy-test-library,elf_file_unittest_relocs_arm32.so))
32$(eval $(call copy-test-library,elf_file_unittest_relocs_arm32_packed.so))
33$(eval $(call copy-test-library,elf_file_unittest_relocs_arm64.so))
34$(eval $(call copy-test-library,elf_file_unittest_relocs_arm64_packed.so))
Simon Baldwin1011e1a2015-05-22 15:17:29 +010035$(eval $(call copy-test-library,elf_file_unittest_relocs_ia32.so))
36$(eval $(call copy-test-library,elf_file_unittest_relocs_ia32_packed.so))
37$(eval $(call copy-test-library,elf_file_unittest_relocs_x64.so))
38$(eval $(call copy-test-library,elf_file_unittest_relocs_x64_packed.so))
39$(eval $(call copy-test-library,elf_file_unittest_relocs_mips32.so))
40$(eval $(call copy-test-library,elf_file_unittest_relocs_mips32_packed.so))
Ying Wang4900f1c2015-06-06 11:55:16 -070041
42endif