blob: de0b0c8902480fc41a345f827015db73613bd0d6 [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 \
10
Doug Zongker9270a202012-01-09 15:16:13 -080011include $(CLEAR_VARS)
12
13LOCAL_SRC_FILES := \
Elliott Hughes20531ef2015-04-10 13:59:19 -070014 fuse_adb_provider.cpp \
Josh Gaoacb2a2f2016-08-26 18:24:34 -070015 minadbd.cpp \
Elliott Hughes24eb8a02016-06-15 15:12:17 -070016 minadbd_services.cpp \
Doug Zongker9270a202012-01-09 15:16:13 -080017
Tao Bao80e46e02015-06-03 10:49:29 -070018LOCAL_CLANG := true
Dan Albertffd6c312015-02-26 15:33:00 -080019LOCAL_MODULE := libminadbd
20LOCAL_CFLAGS := $(minadbd_cflags)
21LOCAL_CONLY_FLAGS := -Wimplicit-function-declaration
Dan Albert1ddd3502015-02-18 15:58:15 -080022LOCAL_C_INCLUDES := bootable/recovery system/core/adb
Dan Albertf3a57262015-02-19 13:21:14 -080023LOCAL_WHOLE_STATIC_LIBRARIES := libadbd
Elliott Hughes16758482016-08-09 18:46:57 -070024LOCAL_STATIC_LIBRARIES := libcrypto libbase
Doug Zongker9270a202012-01-09 15:16:13 -080025
Doug Zongker9270a202012-01-09 15:16:13 -080026include $(BUILD_STATIC_LIBRARY)
Dan Albertffd6c312015-02-26 15:33:00 -080027
28include $(CLEAR_VARS)
29
30LOCAL_CLANG := true
31LOCAL_MODULE := minadbd_test
Dan Shi73683162017-03-28 17:22:41 -070032LOCAL_COMPATIBILITY_SUITE := device-tests
Dan Albertffd6c312015-02-26 15:33:00 -080033LOCAL_SRC_FILES := fuse_adb_provider_test.cpp
34LOCAL_CFLAGS := $(minadbd_cflags)
35LOCAL_C_INCLUDES := $(LOCAL_PATH) system/core/adb
36LOCAL_STATIC_LIBRARIES := libminadbd
Elliott Hughesdbb20c42015-05-01 22:29:01 -070037LOCAL_SHARED_LIBRARIES := liblog libbase libcutils
Dan Albertffd6c312015-02-26 15:33:00 -080038
39include $(BUILD_NATIVE_TEST)