blob: 24d16350ff6b6344e4fe4521daf7932b22dc2447 [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
D. Andrei Măceșb29a5e22016-12-22 06:19:44 -050033 LOCAL_SHARED_LIBRARIES += libcrypto \
34 $(if $(WITH_CRYPTO_UTILS),libcrypto_utils)
Ethan Yonker99af7662016-09-15 14:48:29 -050035endif
Doug Zongker9270a202012-01-09 15:16:13 -080036
Dees_Troy2673cec2013-04-02 20:22:16 +000037include $(BUILD_SHARED_LIBRARY)
Dan Albertffd6c312015-02-26 15:33:00 -080038
39include $(CLEAR_VARS)
40
41LOCAL_CLANG := true
42LOCAL_MODULE := minadbd_test
43LOCAL_SRC_FILES := fuse_adb_provider_test.cpp
44LOCAL_CFLAGS := $(minadbd_cflags)
45LOCAL_C_INCLUDES := $(LOCAL_PATH) system/core/adb
46LOCAL_STATIC_LIBRARIES := libminadbd
Elliott Hughes4cf34d52015-05-01 22:29:01 -070047LOCAL_SHARED_LIBRARIES := liblog libbase libcutils
Dan Albertffd6c312015-02-26 15:33:00 -080048
49include $(BUILD_NATIVE_TEST)