blob: 99056574c284265141acb11e483c94c6691ba446 [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
Colin Cross0e25b342016-07-14 16:53:18 -070017LOCAL_PATH := $(call my-dir)
18
Ying Wang4900f1c2015-06-06 11:55:16 -070019ifeq ($(HOST_OS),linux)
Dmitriy Ivanovf8ff6b12015-01-27 19:32:56 -080020
21# $(1) library name
22define copy-test-library
23include $(CLEAR_VARS)
24LOCAL_IS_HOST_MODULE := true
25LOCAL_MODULE := $(1)
26LOCAL_MODULE_CLASS := SHARED_LIBRARIES
27LOCAL_MODULE_PATH := $(HOST_OUT_EXECUTABLES)
28LOCAL_STRIP_MODULE := false
29LOCAL_SRC_FILES := test_data/$(1)
30include $(BUILD_PREBUILT)
31endef
32
33$(eval $(call copy-test-library,elf_file_unittest_relocs_arm32.so))
34$(eval $(call copy-test-library,elf_file_unittest_relocs_arm32_packed.so))
35$(eval $(call copy-test-library,elf_file_unittest_relocs_arm64.so))
36$(eval $(call copy-test-library,elf_file_unittest_relocs_arm64_packed.so))
Simon Baldwin1011e1a2015-05-22 15:17:29 +010037$(eval $(call copy-test-library,elf_file_unittest_relocs_ia32.so))
38$(eval $(call copy-test-library,elf_file_unittest_relocs_ia32_packed.so))
39$(eval $(call copy-test-library,elf_file_unittest_relocs_x64.so))
40$(eval $(call copy-test-library,elf_file_unittest_relocs_x64_packed.so))
41$(eval $(call copy-test-library,elf_file_unittest_relocs_mips32.so))
42$(eval $(call copy-test-library,elf_file_unittest_relocs_mips32_packed.so))
Ying Wang4900f1c2015-06-06 11:55:16 -070043
44endif