blob: dfeb85ef60922459c6c79e3a6560254f1f637508 [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 fuse_adb_provider.cpp \
Ethan Yonker8373cfe2017-09-08 06:50:54 -050016 ../fuse_sideload.cpp \
Josh Gaoacb2a2f2016-08-26 18:24:34 -070017 minadbd.cpp \
Elliott Hughes24eb8a02016-06-15 15:12:17 -070018 minadbd_services.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
Ethan Yonkerea4efc62017-12-12 16:24:28 -060041LOCAL_SRC_FILES := \
42 fuse_adb_provider.cpp \
43 ../fuse_sideload.cpp \
44 minadbd.cpp \
45 minadbd_services.cpp \
46
47LOCAL_CLANG := true
48LOCAL_MODULE := libminadbd
49LOCAL_CFLAGS := $(minadbd_cflags)
50LOCAL_CONLY_FLAGS := -Wimplicit-function-declaration
51LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. system/core/adb
52LOCAL_WHOLE_STATIC_LIBRARIES := libadbd
53LOCAL_STATIC_LIBRARIES := libbase liblog libcutils libc
54
55ifeq ($(shell test $(PLATFORM_SDK_VERSION) -lt 24; echo $$?),0)
56 LOCAL_C_INCLUDES += $(LOCAL_PATH)/libmincrypt/includes
57 LOCAL_SHARED_LIBRARIES += libmincrypttwrp
58 LOCAL_CFLAGS += -DUSE_MINCRYPT
59else
60 LOCAL_SHARED_LIBRARIES += libcrypto \
61 $(if $(WITH_CRYPTO_UTILS),libcrypto_utils)
62endif
63
64include $(BUILD_STATIC_LIBRARY)
65
66include $(CLEAR_VARS)
67
Dan Albertffd6c312015-02-26 15:33:00 -080068LOCAL_CLANG := true
69LOCAL_MODULE := minadbd_test
Dan Shi73683162017-03-28 17:22:41 -070070LOCAL_COMPATIBILITY_SUITE := device-tests
Dan Albertffd6c312015-02-26 15:33:00 -080071LOCAL_SRC_FILES := fuse_adb_provider_test.cpp
72LOCAL_CFLAGS := $(minadbd_cflags)
73LOCAL_C_INCLUDES := $(LOCAL_PATH) system/core/adb
74LOCAL_STATIC_LIBRARIES := libminadbd
Elliott Hughes4cf34d52015-05-01 22:29:01 -070075LOCAL_SHARED_LIBRARIES := liblog libbase libcutils
Dan Albertffd6c312015-02-26 15:33:00 -080076
77include $(BUILD_NATIVE_TEST)