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 \ |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 10 | |
| 11 | include $(CLEAR_VARS) |
| 12 | |
| 13 | LOCAL_SRC_FILES := \ |
Elliott Hughes | 20531ef | 2015-04-10 13:59:19 -0700 | [diff] [blame] | 14 | adb_main.cpp \ |
| 15 | fuse_adb_provider.cpp \ |
| 16 | services.cpp \ |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 17 | ../fuse_sideload.c |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 18 | |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 19 | LOCAL_MODULE := libminadbd |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 20 | LOCAL_CFLAGS := $(minadbd_cflags) |
| 21 | LOCAL_CONLY_FLAGS := -Wimplicit-function-declaration |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 22 | LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. system/core/adb |
Dan Albert | f3a5726 | 2015-02-19 13:21:14 -0800 | [diff] [blame] | 23 | LOCAL_WHOLE_STATIC_LIBRARIES := libadbd |
Ethan Yonker | c798c9c | 2015-10-09 11:15:26 -0500 | [diff] [blame] | 24 | LOCAL_SHARED_LIBRARIES := libbase liblog libmincrypttwrp libcutils libc |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 25 | |
Dees_Troy | 2673cec | 2013-04-02 20:22:16 +0000 | [diff] [blame] | 26 | include $(BUILD_SHARED_LIBRARY) |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 27 | |
| 28 | include $(CLEAR_VARS) |
| 29 | |
| 30 | LOCAL_CLANG := true |
| 31 | LOCAL_MODULE := minadbd_test |
| 32 | LOCAL_SRC_FILES := fuse_adb_provider_test.cpp |
| 33 | LOCAL_CFLAGS := $(minadbd_cflags) |
| 34 | LOCAL_C_INCLUDES := $(LOCAL_PATH) system/core/adb |
| 35 | LOCAL_STATIC_LIBRARIES := libminadbd |
Elliott Hughes | 4cf34d5 | 2015-05-01 22:29:01 -0700 | [diff] [blame] | 36 | LOCAL_SHARED_LIBRARIES := liblog libbase libcutils |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 37 | |
| 38 | include $(BUILD_NATIVE_TEST) |