blob: 8d86fd65319fb30a6992f0747f858873e2079ec2 [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
Dan Albertffd6c312015-02-26 15:33:00 -080018LOCAL_MODULE := libminadbd
19LOCAL_CFLAGS := $(minadbd_cflags)
20LOCAL_CONLY_FLAGS := -Wimplicit-function-declaration
Dan Albert1ddd3502015-02-18 15:58:15 -080021LOCAL_C_INCLUDES := bootable/recovery system/core/adb
Dan Albertf3a57262015-02-19 13:21:14 -080022LOCAL_WHOLE_STATIC_LIBRARIES := libadbd
Elliott Hughes16758482016-08-09 18:46:57 -070023LOCAL_STATIC_LIBRARIES := libcrypto libbase
Doug Zongker9270a202012-01-09 15:16:13 -080024
Doug Zongker9270a202012-01-09 15:16:13 -080025include $(BUILD_STATIC_LIBRARY)
Dan Albertffd6c312015-02-26 15:33:00 -080026
27include $(CLEAR_VARS)
28
Dan Albertffd6c312015-02-26 15:33:00 -080029LOCAL_MODULE := minadbd_test
Dan Shi73683162017-03-28 17:22:41 -070030LOCAL_COMPATIBILITY_SUITE := device-tests
Dan Albertffd6c312015-02-26 15:33:00 -080031LOCAL_SRC_FILES := fuse_adb_provider_test.cpp
32LOCAL_CFLAGS := $(minadbd_cflags)
33LOCAL_C_INCLUDES := $(LOCAL_PATH) system/core/adb
34LOCAL_STATIC_LIBRARIES := libminadbd
Elliott Hughesdbb20c42015-05-01 22:29:01 -070035LOCAL_SHARED_LIBRARIES := liblog libbase libcutils
Dan Albertffd6c312015-02-26 15:33:00 -080036
37include $(BUILD_NATIVE_TEST)