• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17LOCAL_PATH := $(call my-dir)
18
19ifeq ($(HOST_OS),linux)
20
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))
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))
43
44endif
45