Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 1 | # Copyright 2005 The Android Open Source Project |
Tao Bao | 99f0d9e | 2016-10-13 12:46:38 -0700 | [diff] [blame] | 2 | # |
| 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 Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 14 | |
| 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 17 | minadbd_cflags := \ |
| 18 | -Wall -Werror \ |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 19 | -DADB_HOST=0 \ |
| 20 | |
Tao Bao | f87d204 | 2017-11-15 11:26:06 -0800 | [diff] [blame] | 21 | # libminadbd (static library) |
Tao Bao | 99f0d9e | 2016-10-13 12:46:38 -0700 | [diff] [blame] | 22 | # =============================== |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 23 | include $(CLEAR_VARS) |
| 24 | |
| 25 | LOCAL_SRC_FILES := \ |
Elliott Hughes | 20531ef | 2015-04-10 13:59:19 -0700 | [diff] [blame] | 26 | fuse_adb_provider.cpp \ |
Josh Gao | acb2a2f | 2016-08-26 18:24:34 -0700 | [diff] [blame] | 27 | minadbd.cpp \ |
Elliott Hughes | 24eb8a0 | 2016-06-15 15:12:17 -0700 | [diff] [blame] | 28 | minadbd_services.cpp \ |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 29 | |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 30 | LOCAL_MODULE := libminadbd |
| 31 | LOCAL_CFLAGS := $(minadbd_cflags) |
Dan Albert | 1ddd350 | 2015-02-18 15:58:15 -0800 | [diff] [blame] | 32 | LOCAL_C_INCLUDES := bootable/recovery system/core/adb |
Dan Albert | f3a5726 | 2015-02-19 13:21:14 -0800 | [diff] [blame] | 33 | LOCAL_WHOLE_STATIC_LIBRARIES := libadbd |
Elliott Hughes | 1675848 | 2016-08-09 18:46:57 -0700 | [diff] [blame] | 34 | LOCAL_STATIC_LIBRARIES := libcrypto libbase |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 35 | |
Doug Zongker | 9270a20 | 2012-01-09 15:16:13 -0800 | [diff] [blame] | 36 | include $(BUILD_STATIC_LIBRARY) |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 37 | |
Tao Bao | 99f0d9e | 2016-10-13 12:46:38 -0700 | [diff] [blame] | 38 | # minadbd_test (native test) |
| 39 | # =============================== |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 40 | include $(CLEAR_VARS) |
| 41 | |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 42 | LOCAL_MODULE := minadbd_test |
Dan Shi | 7368316 | 2017-03-28 17:22:41 -0700 | [diff] [blame] | 43 | LOCAL_COMPATIBILITY_SUITE := device-tests |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 44 | LOCAL_SRC_FILES := fuse_adb_provider_test.cpp |
| 45 | LOCAL_CFLAGS := $(minadbd_cflags) |
| 46 | LOCAL_C_INCLUDES := $(LOCAL_PATH) system/core/adb |
Tianjie Xu | a88cc54 | 2017-10-25 13:16:54 -0700 | [diff] [blame] | 47 | LOCAL_STATIC_LIBRARIES := \ |
| 48 | libBionicGtestMain \ |
| 49 | libminadbd |
| 50 | LOCAL_SHARED_LIBRARIES := \ |
| 51 | liblog \ |
| 52 | libbase \ |
| 53 | libcutils |
Dan Albert | ffd6c31 | 2015-02-26 15:33:00 -0800 | [diff] [blame] | 54 | |
| 55 | include $(BUILD_NATIVE_TEST) |