acb2a2fa4c
adb_server_main in adb refers to the adb server on the host, not adbd. Since there doesn't seem to be a good reason to reuse the declaration from adb's headers, give minadbd a main function of its own. Change-Id: I748f1a6822dc14c726cb73ef3b533c57a6615608
38 lines
949 B
Makefile
38 lines
949 B
Makefile
# Copyright 2005 The Android Open Source Project
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
minadbd_cflags := \
|
|
-Wall -Werror \
|
|
-Wno-unused-parameter \
|
|
-Wno-missing-field-initializers \
|
|
-DADB_HOST=0 \
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_SRC_FILES := \
|
|
fuse_adb_provider.cpp \
|
|
minadbd.cpp \
|
|
minadbd_services.cpp \
|
|
|
|
LOCAL_CLANG := true
|
|
LOCAL_MODULE := libminadbd
|
|
LOCAL_CFLAGS := $(minadbd_cflags)
|
|
LOCAL_CONLY_FLAGS := -Wimplicit-function-declaration
|
|
LOCAL_C_INCLUDES := bootable/recovery system/core/adb
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := libadbd
|
|
LOCAL_STATIC_LIBRARIES := libcrypto libbase
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_CLANG := true
|
|
LOCAL_MODULE := minadbd_test
|
|
LOCAL_SRC_FILES := fuse_adb_provider_test.cpp
|
|
LOCAL_CFLAGS := $(minadbd_cflags)
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH) system/core/adb
|
|
LOCAL_STATIC_LIBRARIES := libminadbd
|
|
LOCAL_SHARED_LIBRARIES := liblog libbase libcutils
|
|
|
|
include $(BUILD_NATIVE_TEST)
|