Merge "Lose adb.c and sockets.c to libadb."
This commit is contained in:
commit
7e84308b74
|
@ -15,8 +15,10 @@ LOCAL_PATH:= $(call my-dir)
|
||||||
# small by moving common files into a static library. Hopefully some day we can
|
# small by moving common files into a static library. Hopefully some day we can
|
||||||
# get enough of adb in here that we no longer need minadb. https://b/17626262
|
# get enough of adb in here that we no longer need minadb. https://b/17626262
|
||||||
LIBADB_SRC_FILES := \
|
LIBADB_SRC_FILES := \
|
||||||
|
adb.c \
|
||||||
adb_auth.c \
|
adb_auth.c \
|
||||||
adb_listeners.c \
|
adb_listeners.c \
|
||||||
|
sockets.c \
|
||||||
transport.c \
|
transport.c \
|
||||||
transport_usb.c \
|
transport_usb.c \
|
||||||
|
|
||||||
|
@ -34,6 +36,8 @@ LOCAL_CFLAGS := $(LIBADB_CFLAGS) -DADB_HOST=0
|
||||||
LOCAL_SRC_FILES := \
|
LOCAL_SRC_FILES := \
|
||||||
$(LIBADB_SRC_FILES) \
|
$(LIBADB_SRC_FILES) \
|
||||||
$(LIBADB_LINUX_SRC_FILES) \
|
$(LIBADB_LINUX_SRC_FILES) \
|
||||||
|
adb_auth_client.c \
|
||||||
|
jdwp_service.c \
|
||||||
qemu_tracing.c \
|
qemu_tracing.c \
|
||||||
usb_linux_client.c \
|
usb_linux_client.c \
|
||||||
|
|
||||||
|
@ -42,13 +46,14 @@ include $(BUILD_STATIC_LIBRARY)
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
LOCAL_MODULE := libadb
|
LOCAL_MODULE := libadb
|
||||||
LOCAL_CFLAGS := $(LIBADB_CFLAGS) -DADB_HOST=1
|
LOCAL_CFLAGS := $(LIBADB_CFLAGS) -DADB_HOST=1
|
||||||
LOCAL_SRC_FILES := $(LIBADB_SRC_FILES) $(LIBADB_LINUX_SRC_FILES)
|
LOCAL_SRC_FILES := \
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
$(LIBADB_SRC_FILES) \
|
||||||
|
adb_auth_host.c \
|
||||||
|
|
||||||
|
# Even though we're building a static library (and thus there's no link step for
|
||||||
|
# this to take effect), this adds the SSL includes to our path.
|
||||||
|
LOCAL_STATIC_LIBRARIES := libcrypto_static
|
||||||
|
|
||||||
include $(CLEAR_VARS)
|
|
||||||
LOCAL_MODULE := libadb
|
|
||||||
LOCAL_CFLAGS := $(LIBADB_CFLAGS) -DADB_HOST=1
|
|
||||||
LOCAL_SRC_FILES := $(LIBADB_SRC_FILES)
|
|
||||||
ifeq ($(HOST_OS),windows)
|
ifeq ($(HOST_OS),windows)
|
||||||
LOCAL_SRC_FILES += $(LIBADB_WINDOWS_SRC_FILES)
|
LOCAL_SRC_FILES += $(LIBADB_WINDOWS_SRC_FILES)
|
||||||
else
|
else
|
||||||
|
@ -91,14 +96,11 @@ ifeq ($(HOST_OS),windows)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
LOCAL_SRC_FILES := \
|
||||||
adb.c \
|
|
||||||
adb_main.c \
|
adb_main.c \
|
||||||
console.c \
|
console.c \
|
||||||
transport_local.c \
|
transport_local.c \
|
||||||
commandline.c \
|
commandline.c \
|
||||||
adb_client.c \
|
adb_client.c \
|
||||||
adb_auth_host.c \
|
|
||||||
sockets.c \
|
|
||||||
services.c \
|
services.c \
|
||||||
file_sync_client.c \
|
file_sync_client.c \
|
||||||
$(EXTRA_SRCS) \
|
$(EXTRA_SRCS) \
|
||||||
|
@ -141,14 +143,10 @@ endif
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_SRC_FILES := \
|
LOCAL_SRC_FILES := \
|
||||||
adb.c \
|
|
||||||
adb_main.c \
|
adb_main.c \
|
||||||
transport_local.c \
|
transport_local.c \
|
||||||
adb_auth_client.c \
|
|
||||||
sockets.c \
|
|
||||||
services.c \
|
services.c \
|
||||||
file_sync_service.c \
|
file_sync_service.c \
|
||||||
jdwp_service.c \
|
|
||||||
framebuffer_service.c \
|
framebuffer_service.c \
|
||||||
remount_service.c \
|
remount_service.c \
|
||||||
set_verity_enable_state_service.c \
|
set_verity_enable_state_service.c \
|
||||||
|
|
Loading…
Reference in New Issue