-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAndroid_adb.mk
72 lines (61 loc) · 2.2 KB
/
Android_adb.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
LOCAL_PATH := $(call my-dir)
adb_version := $(shell git -C $(LOCAL_PATH) rev-parse --short=12 HEAD 2>/dev/null)-android
include $(CLEAR_VARS)
LOCAL_MODULE := adb
LOCAL_CPPFLAGS := -std=c++14
LOCAL_CFLAGS := \
-Wall -Wextra -Werror \
-Wno-unused-parameter \
-Wno-missing-field-initializers \
-Wvla \
-Wexit-time-destructors \
-fvisibility=hidden \
-DADB_VERSION='"shakalaca-$(shell date +%Y-%m-%d)-$(adb_version)"' \
-DADB_HOST=1 -DADB_HOST_ON_TARGET=1 -D_GNU_SOURCE -DANDROID_HOST_BUILD
LOCAL_C_INCLUDES := \
src/system/core/adb \
src/system/core/include \
src/system/core/mkbootimg \
src/external/libusb/include \
src/system/core/libcrypto_utils/include
LOCAL_SRC_FILES := \
src/system/core/adb/adb.cpp \
src/system/core/adb/adb_io.cpp \
src/system/core/adb/adb_listeners.cpp \
src/system/core/adb/adb_trace.cpp \
src/system/core/adb/adb_utils.cpp \
src/system/core/adb/fdevent.cpp \
src/system/core/adb/sockets.cpp \
src/system/core/adb/socket_spec.cpp \
src/system/core/adb/sysdeps/errno.cpp \
src/system/core/adb/transport.cpp \
src/system/core/adb/transport_local.cpp \
src/system/core/adb/transport_usb.cpp \
\
src/system/core/adb/sysdeps_unix.cpp \
src/system/core/adb/sysdeps/posix/network.cpp \
src/system/core/adb/client/usb_dispatch.cpp \
src/system/core/adb/client/usb_libusb.cpp \
src/system/core/adb/client/usb_linux.cpp \
\
src/system/core/adb/adb_auth_host.cpp \
src/system/core/adb/transport_mdns.cpp \
\
src/system/core/adb/diagnose_usb.cpp \
\
src/system/core/adb/adb_client.cpp \
src/system/core/adb/bugreport.cpp \
src/system/core/adb/client/main.cpp \
src/system/core/adb/console.cpp \
src/system/core/adb/commandline.cpp \
src/system/core/adb/file_sync_client.cpp \
src/system/core/adb/line_printer.cpp \
src/system/core/adb/services.cpp \
src/system/core/adb/shell_service_protocol.cpp
# libutils
LOCAL_SRC_FILES += \
src/system/core/libutils/FileMap.cpp
LOCAL_LDLIBS := -ldl
LOCAL_STATIC_LIBRARIES := crypto decrepit base cutils log_fake mdnssd usb crypto_utils
include $(BUILD_EXECUTABLE)
include $(LOCAL_PATH)/Android_library.mk