blob: 36e14a51e676193cadc2b050314061ffb9f4f312 [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 \
Doug Zongker9270a202012-01-09 15:16:13 -080010
11include $(CLEAR_VARS)
12
13LOCAL_SRC_FILES := \
Elliott Hughes20531ef2015-04-10 13:59:19 -070014 adb_main.cpp \
15 fuse_adb_provider.cpp \
16 services.cpp \
Ethan Yonkerc798c9c2015-10-09 11:15:26 -050017 ../fuse_sideload.c
Doug Zongker9270a202012-01-09 15:16:13 -080018
Doug Zongker9270a202012-01-09 15:16:13 -080019LOCAL_MODULE := libminadbd
Dan Albertffd6c312015-02-26 15:33:00 -080020LOCAL_CFLAGS := $(minadbd_cflags)
21LOCAL_CONLY_FLAGS := -Wimplicit-function-declaration
Ethan Yonkerc798c9c2015-10-09 11:15:26 -050022LOCAL_C_INCLUDES := $(LOCAL_PATH)/.. system/core/adb
Dan Albertf3a57262015-02-19 13:21:14 -080023LOCAL_WHOLE_STATIC_LIBRARIES := libadbd
Ethan Yonkerc798c9c2015-10-09 11:15:26 -050024LOCAL_SHARED_LIBRARIES := libbase liblog libmincrypttwrp libcutils libc
Doug Zongker9270a202012-01-09 15:16:13 -080025
Dees_Troy2673cec2013-04-02 20:22:16 +000026include $(BUILD_SHARED_LIBRARY)
Dan Albertffd6c312015-02-26 15:33:00 -080027
28include $(CLEAR_VARS)
29
30LOCAL_CLANG := true
31LOCAL_MODULE := minadbd_test
32LOCAL_SRC_FILES := fuse_adb_provider_test.cpp
33LOCAL_CFLAGS := $(minadbd_cflags)
34LOCAL_C_INCLUDES := $(LOCAL_PATH) system/core/adb
35LOCAL_STATIC_LIBRARIES := libminadbd
Elliott Hughes4cf34d52015-05-01 22:29:01 -070036LOCAL_SHARED_LIBRARIES := liblog libbase libcutils
Dan Albertffd6c312015-02-26 15:33:00 -080037
38include $(BUILD_NATIVE_TEST)