blob: 50e3b34ef5b8da01332b2f1ca35b9d9e0625033f [file] [log] [blame]
Doug Zongker9270a202012-01-09 15:16:13 -08001# Copyright 2005 The Android Open Source Project
Tao Bao99f0d9e2016-10-13 12:46:38 -07002#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
Doug Zongker9270a202012-01-09 15:16:13 -080014
15LOCAL_PATH:= $(call my-dir)
16
Dan Albertffd6c312015-02-26 15:33:00 -080017minadbd_cflags := \
18 -Wall -Werror \
Dan Albertffd6c312015-02-26 15:33:00 -080019 -DADB_HOST=0 \
20
Tao Baof87d2042017-11-15 11:26:06 -080021# libminadbd (static library)
Tao Bao99f0d9e2016-10-13 12:46:38 -070022# ===============================
Doug Zongker9270a202012-01-09 15:16:13 -080023include $(CLEAR_VARS)
24
25LOCAL_SRC_FILES := \
Elliott Hughes20531ef2015-04-10 13:59:19 -070026 fuse_adb_provider.cpp \
Josh Gaoacb2a2f2016-08-26 18:24:34 -070027 minadbd.cpp \
Elliott Hughes24eb8a02016-06-15 15:12:17 -070028 minadbd_services.cpp \
Doug Zongker9270a202012-01-09 15:16:13 -080029
Dan Albertffd6c312015-02-26 15:33:00 -080030LOCAL_MODULE := libminadbd
31LOCAL_CFLAGS := $(minadbd_cflags)
Dan Albert1ddd3502015-02-18 15:58:15 -080032LOCAL_C_INCLUDES := bootable/recovery system/core/adb
Dan Albertf3a57262015-02-19 13:21:14 -080033LOCAL_WHOLE_STATIC_LIBRARIES := libadbd
Elliott Hughes16758482016-08-09 18:46:57 -070034LOCAL_STATIC_LIBRARIES := libcrypto libbase
Doug Zongker9270a202012-01-09 15:16:13 -080035
Doug Zongker9270a202012-01-09 15:16:13 -080036include $(BUILD_STATIC_LIBRARY)
Dan Albertffd6c312015-02-26 15:33:00 -080037
Tao Bao99f0d9e2016-10-13 12:46:38 -070038# minadbd_test (native test)
39# ===============================
Dan Albertffd6c312015-02-26 15:33:00 -080040include $(CLEAR_VARS)
41
Dan Albertffd6c312015-02-26 15:33:00 -080042LOCAL_MODULE := minadbd_test
Dan Shi73683162017-03-28 17:22:41 -070043LOCAL_COMPATIBILITY_SUITE := device-tests
Dan Albertffd6c312015-02-26 15:33:00 -080044LOCAL_SRC_FILES := fuse_adb_provider_test.cpp
45LOCAL_CFLAGS := $(minadbd_cflags)
46LOCAL_C_INCLUDES := $(LOCAL_PATH) system/core/adb
Tianjie Xua88cc542017-10-25 13:16:54 -070047LOCAL_STATIC_LIBRARIES := \
48 libBionicGtestMain \
49 libminadbd
50LOCAL_SHARED_LIBRARIES := \
51 liblog \
52 libbase \
53 libcutils
Dan Albertffd6c312015-02-26 15:33:00 -080054
55include $(BUILD_NATIVE_TEST)