blob: b3bbb428c9055386b1b160aefd03d9d3e70a011a [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 adb_main.cpp \
15 fuse_adb_provider.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 Hughes40399332015-05-01 17:07:44 -070024LOCAL_STATIC_LIBRARIES := 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
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 Hughesdbb20c42015-05-01 22:29:01 -070036LOCAL_SHARED_LIBRARIES := liblog libbase libcutils
Dan Albertffd6c312015-02-26 15:33:00 -080037
38include $(BUILD_NATIVE_TEST)