blob: 803171d990ef9719f35839cd41e318f8597c7d4c [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 -Wno-missing-field-initializers \
20 -DADB_HOST=0 \
21
Tao Bao99f0d9e2016-10-13 12:46:38 -070022# libadbd (static library)
23# ===============================
Doug Zongker9270a202012-01-09 15:16:13 -080024include $(CLEAR_VARS)
25
26LOCAL_SRC_FILES := \
Elliott Hughes20531ef2015-04-10 13:59:19 -070027 fuse_adb_provider.cpp \
Josh Gaoacb2a2f2016-08-26 18:24:34 -070028 minadbd.cpp \
Elliott Hughes24eb8a02016-06-15 15:12:17 -070029 minadbd_services.cpp \
Doug Zongker9270a202012-01-09 15:16:13 -080030
Dan Albertffd6c312015-02-26 15:33:00 -080031LOCAL_MODULE := libminadbd
32LOCAL_CFLAGS := $(minadbd_cflags)
33LOCAL_CONLY_FLAGS := -Wimplicit-function-declaration
Dan Albert1ddd3502015-02-18 15:58:15 -080034LOCAL_C_INCLUDES := bootable/recovery system/core/adb
Dan Albertf3a57262015-02-19 13:21:14 -080035LOCAL_WHOLE_STATIC_LIBRARIES := libadbd
Elliott Hughes16758482016-08-09 18:46:57 -070036LOCAL_STATIC_LIBRARIES := libcrypto libbase
Doug Zongker9270a202012-01-09 15:16:13 -080037
Doug Zongker9270a202012-01-09 15:16:13 -080038include $(BUILD_STATIC_LIBRARY)
Dan Albertffd6c312015-02-26 15:33:00 -080039
Tao Bao99f0d9e2016-10-13 12:46:38 -070040# minadbd_test (native test)
41# ===============================
Dan Albertffd6c312015-02-26 15:33:00 -080042include $(CLEAR_VARS)
43
Dan Albertffd6c312015-02-26 15:33:00 -080044LOCAL_MODULE := minadbd_test
Dan Shi73683162017-03-28 17:22:41 -070045LOCAL_COMPATIBILITY_SUITE := device-tests
Dan Albertffd6c312015-02-26 15:33:00 -080046LOCAL_SRC_FILES := fuse_adb_provider_test.cpp
47LOCAL_CFLAGS := $(minadbd_cflags)
48LOCAL_C_INCLUDES := $(LOCAL_PATH) system/core/adb
49LOCAL_STATIC_LIBRARIES := libminadbd
Elliott Hughesdbb20c42015-05-01 22:29:01 -070050LOCAL_SHARED_LIBRARIES := liblog libbase libcutils
Dan Albertffd6c312015-02-26 15:33:00 -080051
52include $(BUILD_NATIVE_TEST)