Dmitriy Ivanov | f8ff6b1 | 2015-01-27 19:32:56 -0800 | [diff] [blame] | 1 | # |
| 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 Cross | 0e25b34 | 2016-07-14 16:53:18 -0700 | [diff] [blame] | 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
Ying Wang | 4900f1c | 2015-06-06 11:55:16 -0700 | [diff] [blame] | 19 | ifeq ($(HOST_OS),linux) |
Dmitriy Ivanov | f8ff6b1 | 2015-01-27 19:32:56 -0800 | [diff] [blame] | 20 | |
| 21 | # $(1) library name |
| 22 | define copy-test-library |
| 23 | include $(CLEAR_VARS) |
| 24 | LOCAL_IS_HOST_MODULE := true |
| 25 | LOCAL_MODULE := $(1) |
| 26 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 27 | LOCAL_MODULE_PATH := $(HOST_OUT_EXECUTABLES) |
| 28 | LOCAL_STRIP_MODULE := false |
| 29 | LOCAL_SRC_FILES := test_data/$(1) |
| 30 | include $(BUILD_PREBUILT) |
| 31 | endef |
| 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 Baldwin | 1011e1a | 2015-05-22 15:17:29 +0100 | [diff] [blame] | 37 | $(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 Wang | 4900f1c | 2015-06-06 11:55:16 -0700 | [diff] [blame] | 43 | |
| 44 | endif |