2012-01-10 00:16:13 +01:00
|
|
|
# Copyright 2005 The Android Open Source Project
|
2016-10-13 21:46:38 +02:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
2012-01-10 00:16:13 +01:00
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
2015-02-27 00:33:00 +01:00
|
|
|
minadbd_cflags := \
|
|
|
|
-Wall -Werror \
|
|
|
|
-Wno-missing-field-initializers \
|
|
|
|
-DADB_HOST=0 \
|
|
|
|
|
2016-10-13 21:46:38 +02:00
|
|
|
# libadbd (static library)
|
|
|
|
# ===============================
|
2012-01-10 00:16:13 +01:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2015-04-10 22:59:19 +02:00
|
|
|
fuse_adb_provider.cpp \
|
2016-08-27 03:24:34 +02:00
|
|
|
minadbd.cpp \
|
2016-06-16 00:12:17 +02:00
|
|
|
minadbd_services.cpp \
|
2015-02-25 07:07:18 +01:00
|
|
|
|
2015-02-27 00:33:00 +01:00
|
|
|
LOCAL_MODULE := libminadbd
|
|
|
|
LOCAL_CFLAGS := $(minadbd_cflags)
|
|
|
|
LOCAL_CONLY_FLAGS := -Wimplicit-function-declaration
|
2015-02-19 00:58:15 +01:00
|
|
|
LOCAL_C_INCLUDES := bootable/recovery system/core/adb
|
2015-02-19 22:21:14 +01:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := libadbd
|
2016-08-10 03:46:57 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := libcrypto libbase
|
2012-01-10 00:16:13 +01:00
|
|
|
|
|
|
|
include $(BUILD_STATIC_LIBRARY)
|
2015-02-27 00:33:00 +01:00
|
|
|
|
2016-10-13 21:46:38 +02:00
|
|
|
# minadbd_test (native test)
|
|
|
|
# ===============================
|
2015-02-27 00:33:00 +01:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := minadbd_test
|
2017-03-29 02:22:41 +02:00
|
|
|
LOCAL_COMPATIBILITY_SUITE := device-tests
|
2015-02-27 00:33:00 +01:00
|
|
|
LOCAL_SRC_FILES := fuse_adb_provider_test.cpp
|
|
|
|
LOCAL_CFLAGS := $(minadbd_cflags)
|
|
|
|
LOCAL_C_INCLUDES := $(LOCAL_PATH) system/core/adb
|
2017-10-25 22:16:54 +02:00
|
|
|
LOCAL_STATIC_LIBRARIES := \
|
|
|
|
libBionicGtestMain \
|
|
|
|
libminadbd
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
liblog \
|
|
|
|
libbase \
|
|
|
|
libcutils
|
2015-02-27 00:33:00 +01:00
|
|
|
|
|
|
|
include $(BUILD_NATIVE_TEST)
|