blob: 3d675dda59e7b15f7648954a9ed15a23a59bdef7 [file] [log] [blame]
Doug Zongker9270a202012-01-09 15:16:13 -08001# Copyright 2005 The Android Open Source Project
Doug Zongker9270a202012-01-09 15:16:13 -08002
3LOCAL_PATH:= $(call my-dir)
4
Dan Albertffd6c312015-02-26 15:33:00 -08005minadbd_cflags := \
6 -Wall -Werror \
7 -Wno-unused-parameter \
8 -Wno-missing-field-initializers \
9 -DADB_HOST=0 \
Ethan Yonker534d4e02016-08-26 10:05:03 -050010 -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION)
Doug Zongker9270a202012-01-09 15:16:13 -080011
12include $(CLEAR_VARS)
13
14LOCAL_SRC_FILES := \
Elliott Hughes20531ef2015-04-10 13:59:19 -070015 adb_main.cpp \
16 fuse_adb_provider.cpp \
17 services.cpp \
Ethan Yonker34ae4832016-08-24 15:32:18 -050018 ../fuse_sideload.cpp
Doug Zongker9270a202012-01-09 15:16:13 -080019
Tao Bao80e46e02015-06-03 10:49:29 -070020LOCAL_CLANG := true
Doug Zongker9270a202012-01-09 15:16:13 -080021LOCAL_MODULE := libminadbd
Dan Albertffd6c312015-02-26 15:33:00 -080022LOCAL_CFLAGS := $(minadbd_cflags)
23LOCAL_CONLY_FLAGS := -Wimplicit-function-declaration
Ethan Yonkerc798c9c2015-10-09 11:15:26 -050024LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. system/core/adb
Dan Albertf3a57262015-02-19 13:21:14 -080025LOCAL_WHOLE_STATIC_LIBRARIES := libadbd
Ethan Yonker99af7662016-09-15 14:48:29 -050026LOCAL_SHARED_LIBRARIES := libbase liblog libcutils libc
27
28ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 24; echo $$?),0)
29 LOCAL_C_INCLUDES += $(LOCAL_PATH)/libmincrypt/includes
30 LOCAL_SHARED_LIBRARIES += libmincrypttwrp
31 LOCAL_CFLAGS += -DUSE_MINCRYPT
32else
33 LOCAL_SHARED_LIBRARIES += libcrypto
34endif
Doug Zongker9270a202012-01-09 15:16:13 -080035
Dees_Troy2673cec2013-04-02 20:22:16 +000036include $(BUILD_SHARED_LIBRARY)
Dan Albertffd6c312015-02-26 15:33:00 -080037
38include $(CLEAR_VARS)
39
40LOCAL_CLANG := true
41LOCAL_MODULE := minadbd_test
42LOCAL_SRC_FILES := fuse_adb_provider_test.cpp
43LOCAL_CFLAGS := $(minadbd_cflags)
44LOCAL_C_INCLUDES := $(LOCAL_PATH) system/core/adb
45LOCAL_STATIC_LIBRARIES := libminadbd
Elliott Hughes4cf34d52015-05-01 22:29:01 -070046LOCAL_SHARED_LIBRARIES := liblog libbase libcutils
Dan Albertffd6c312015-02-26 15:33:00 -080047
48include $(BUILD_NATIVE_TEST)