Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(277)

Side by Side Diff: third_party/android_platform/relocation_packer/Android.mk

Issue 1027823002: Port Android relocation packer to chromium build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
17 common_cppflags := -Wall -Wextra -Wunused -Werror -Wold-style-cast
18
19 LOCAL_PATH := $(call my-dir)
20
21 include $(CLEAR_VARS)
22
23 LOCAL_CPP_EXTENSION := .cc
24
25 LOCAL_SRC_FILES := \
26 src/debug.cc \
27 src/delta_encoder.cc \
28 src/elf_file.cc \
29 src/leb128.cc \
30 src/packer.cc \
31 src/sleb128.cc \
32
33 LOCAL_STATIC_LIBRARIES := libelf
34 LOCAL_C_INCLUDES := external/elfutils/src/libelf
35 LOCAL_MODULE := lib_relocation_packer
36
37 LOCAL_CPPFLAGS := $(common_cppflags)
38
39 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
40
41 include $(BUILD_HOST_STATIC_LIBRARY)
42
43 include $(CLEAR_VARS)
44
45 LOCAL_CPP_EXTENSION := .cc
46
47 LOCAL_SRC_FILES := src/main.cc
48 LOCAL_STATIC_LIBRARIES := lib_relocation_packer libelf
49 LOCAL_C_INCLUDES := external/elfutils/src/libelf libnativehelper/include
50
51 LOCAL_MODULE := relocation_packer
52
53 LOCAL_CPPFLAGS := $(common_cppflags)
54
55 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
56
57 include $(BUILD_HOST_EXECUTABLE)
58
59 include $(CLEAR_VARS)
60
61 LOCAL_CPP_EXTENSION := .cc
62
63 LOCAL_SRC_FILES := \
64 src/debug_unittest.cc \
65 src/delta_encoder_unittest.cc \
66 src/elf_file_unittest.cc \
67 src/leb128_unittest.cc \
68 src/sleb128_unittest.cc \
69 src/packer_unittest.cc \
70
71 LOCAL_STATIC_LIBRARIES := lib_relocation_packer libelf
72 LOCAL_C_INCLUDES := external/elfutils/src/libelf
73
74 LOCAL_CPPFLAGS := $(common_cppflags)
75
76 LOCAL_MODULE := relocation_packer_unit_tests
77 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
78
79 include $(BUILD_HOST_NATIVE_TEST)
80
81 # $(1) library name
82 define copy-test-library
83 include $(CLEAR_VARS)
84 LOCAL_IS_HOST_MODULE := true
85 LOCAL_MODULE := $(1)
86 LOCAL_MODULE_CLASS := SHARED_LIBRARIES
87 LOCAL_MODULE_PATH := $(HOST_OUT_EXECUTABLES)
88 LOCAL_STRIP_MODULE := false
89 LOCAL_SRC_FILES := test_data/$(1)
90 include $(BUILD_PREBUILT)
91 endef
92
93 $(eval $(call copy-test-library,elf_file_unittest_relocs_arm32.so))
94 $(eval $(call copy-test-library,elf_file_unittest_relocs_arm32_packed.so))
95 $(eval $(call copy-test-library,elf_file_unittest_relocs_arm64.so))
96 $(eval $(call copy-test-library,elf_file_unittest_relocs_arm64_packed.so))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698