Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 1 | # Copyright 2005 The Android Open Source Project |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 2 | |
| 3 | LOCAL_PATH:= $(call my-dir) |
| 4 | |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 5 | minadbd_cflags := \ |
| 6 | -Wall -Werror \ |
| 7 | -Wno-unused-parameter \ |
| 8 | -Wno-missing-field-initializers \ |
| 9 | -DADB_HOST=0 \ |
Ethan Yonker | 534d4e0 | 2016-08-26 10:05:03 -0500 | [diff] [blame] | 10 | -DPLATFORM_SDK_VERSION=$(PLATFORM_SDK_VERSION) |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 11 | |
| 12 | include $(CLEAR_VARS) |
| 13 | |
| 14 | LOCAL_SRC_FILES := \ |
Elliott Hughes | 20531ef | 2015-04-10 13:59:19 -0700 | [diff] [blame] | 15 | fuse_adb_provider.cpp \ |
Ethan Yonker | 8373cfe | 2017-09-08 06:50:54 -0500 | [diff] [blame] | 16 | ../fuse_sideload.cpp \ |
Josh Gao | acb2a2f | 2016-08-26 18:24:34 -0700 | [diff] [blame] | 17 | minadbd.cpp \ |
Elliott Hughes | 24eb8a0 | 2016-06-15 15:12:17 -0700 | [diff] [blame] | 18 | minadbd_services.cpp \ |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 19 | |
Tao Bao | 80e46e0 | 2015-06-03 10:49:29 -0700 | [diff] [blame] | 20 | LOCAL_CLANG := true |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 21 | LOCAL_MODULE := libminadbd |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 22 | LOCAL_CFLAGS := $(minadbd_cflags) |
| 23 | LOCAL_CONLY_FLAGS := -Wimplicit-function-declaration |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 24 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. system/core/adb |
Dan Albert | f3a5726 | 2015-02-19 13:21:14 -0800 | [diff] [blame] | 25 | LOCAL_WHOLE_STATIC_LIBRARIES := libadbd |
Ethan Yonker | 99af766 | 2016-09-15 14:48:29 -0500 | [diff] [blame] | 26 | LOCAL_SHARED_LIBRARIES := libbase liblog libcutils libc |
| 27 | |
| 28 | ifeq ($(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 |
| 32 | else |
D. Andrei Măceș | b29a5e2 | 2016-12-22 06:19:44 -0500 | [diff] [blame] | 33 | LOCAL_SHARED_LIBRARIES += libcrypto \ |
| 34 | $(if $(WITH_CRYPTO_UTILS),libcrypto_utils) |
Ethan Yonker | 99af766 | 2016-09-15 14:48:29 -0500 | [diff] [blame] | 35 | endif |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 36 | |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 37 | include $(BUILD_SHARED_LIBRARY) |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 38 | |
| 39 | include $(CLEAR_VARS) |
| 40 | |
Ethan Yonker | ea4efc6 | 2017-12-12 16:24:28 -0600 | [diff] [blame] | 41 | LOCAL_SRC_FILES := \ |
| 42 | fuse_adb_provider.cpp \ |
| 43 | ../fuse_sideload.cpp \ |
| 44 | minadbd.cpp \ |
| 45 | minadbd_services.cpp \ |
| 46 | |
| 47 | LOCAL_CLANG := true |
| 48 | LOCAL_MODULE := libminadbd |
| 49 | LOCAL_CFLAGS := $(minadbd_cflags) |
| 50 | LOCAL_CONLY_FLAGS := -Wimplicit-function-declaration |
| 51 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. system/core/adb |
| 52 | LOCAL_WHOLE_STATIC_LIBRARIES := libadbd |
| 53 | LOCAL_STATIC_LIBRARIES := libbase liblog libcutils libc |
| 54 | |
| 55 | ifeq ($(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 |
| 59 | else |
| 60 | LOCAL_SHARED_LIBRARIES += libcrypto \ |
| 61 | $(if $(WITH_CRYPTO_UTILS),libcrypto_utils) |
| 62 | endif |
| 63 | |
| 64 | include $(BUILD_STATIC_LIBRARY) |
| 65 | |
| 66 | include $(CLEAR_VARS) |
| 67 | |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 68 | LOCAL_CLANG := true |
| 69 | LOCAL_MODULE := minadbd_test |
Dan Shi | 7368316 | 2017-03-28 17:22:41 -0700 | [diff] [blame] | 70 | LOCAL_COMPATIBILITY_SUITE := device-tests |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 71 | LOCAL_SRC_FILES := fuse_adb_provider_test.cpp |
| 72 | LOCAL_CFLAGS := $(minadbd_cflags) |
| 73 | LOCAL_C_INCLUDES := $(LOCAL_PATH) system/core/adb |
| 74 | LOCAL_STATIC_LIBRARIES := libminadbd |
Elliott Hughes | 4cf34d5 | 2015-05-01 22:29:01 -0700 | [diff] [blame] | 75 | LOCAL_SHARED_LIBRARIES := liblog libbase libcutils |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 76 | |
| 77 | include $(BUILD_NATIVE_TEST) |