The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 1 | # Copyright 2005 The Android Open Source Project |
| 2 | # |
| 3 | # Android.mk for adb |
| 4 | # |
| 5 | |
| 6 | LOCAL_PATH:= $(call my-dir) |
| 7 | |
Elliott Hughes | 53daee6 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 8 | ifeq ($(HOST_OS),windows) |
Dan Albert | a7a67c3 | 2015-05-05 14:50:09 -0700 | [diff] [blame] | 9 | adb_host_clang := false # libc++ for mingw not ready yet. |
Elliott Hughes | 53daee6 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 10 | else |
Dan Albert | a7a67c3 | 2015-05-05 14:50:09 -0700 | [diff] [blame] | 11 | adb_host_clang := true |
Elliott Hughes | 53daee6 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 12 | endif |
Dan Albert | 9697ce5 | 2015-02-20 17:28:44 -0800 | [diff] [blame] | 13 | |
Dan Albert | 1ba1d7c | 2015-05-05 17:46:50 -0700 | [diff] [blame] | 14 | adb_version := $(shell git -C $(LOCAL_PATH) rev-parse --short=12 HEAD 2>/dev/null)-android |
| 15 | |
| 16 | ADB_COMMON_CFLAGS := \ |
| 17 | -Wall -Werror \ |
| 18 | -Wno-unused-parameter \ |
| 19 | -DADB_REVISION='"$(adb_version)"' \ |
| 20 | |
Dan Albert | 630b9af | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 21 | # libadb |
| 22 | # ========================================================= |
| 23 | |
| 24 | # Much of adb is duplicated in bootable/recovery/minadb and fastboot. Changes |
| 25 | # made to adb rarely get ported to the other two, so the trees have diverged a |
| 26 | # bit. We'd like to stop this because it is a maintenance nightmare, but the |
| 27 | # divergence makes this difficult to do all at once. For now, we will start |
| 28 | # small by moving common files into a static library. Hopefully some day we can |
| 29 | # get enough of adb in here that we no longer need minadb. https://b/17626262 |
Dan Albert | ba3a251 | 2015-02-18 17:47:33 -0800 | [diff] [blame] | 30 | LIBADB_SRC_FILES := \ |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 31 | adb.cpp \ |
| 32 | adb_auth.cpp \ |
Dan Albert | cc731cc | 2015-02-24 21:26:58 -0800 | [diff] [blame] | 33 | adb_io.cpp \ |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 34 | adb_listeners.cpp \ |
Elliott Hughes | 5830577 | 2015-04-17 13:57:15 -0700 | [diff] [blame] | 35 | adb_utils.cpp \ |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 36 | sockets.cpp \ |
| 37 | transport.cpp \ |
| 38 | transport_local.cpp \ |
| 39 | transport_usb.cpp \ |
Dan Albert | ba3a251 | 2015-02-18 17:47:33 -0800 | [diff] [blame] | 40 | |
Elliott Hughes | 53daee6 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 41 | LIBADB_TEST_SRCS := \ |
| 42 | adb_io_test.cpp \ |
| 43 | adb_utils_test.cpp \ |
| 44 | transport_test.cpp \ |
| 45 | |
Dan Albert | bf10647 | 2015-02-20 17:20:09 -0800 | [diff] [blame] | 46 | LIBADB_CFLAGS := \ |
Dan Albert | 1ba1d7c | 2015-05-05 17:46:50 -0700 | [diff] [blame] | 47 | $(ADB_COMMON_CFLAGS) \ |
Dan Albert | 055f1aa | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 48 | -Wno-missing-field-initializers \ |
Dan Albert | ba3a251 | 2015-02-18 17:47:33 -0800 | [diff] [blame] | 49 | -fvisibility=hidden \ |
Dan Albert | 630b9af | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 50 | |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 51 | LIBADB_darwin_SRC_FILES := \ |
| 52 | fdevent.cpp \ |
Elliott Hughes | 1a4d85a | 2015-04-16 13:24:58 -0700 | [diff] [blame] | 53 | get_my_path_darwin.cpp \ |
Dan Albert | 7447dd0 | 2015-04-16 19:20:40 -0700 | [diff] [blame] | 54 | usb_osx.cpp \ |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 55 | |
| 56 | LIBADB_linux_SRC_FILES := \ |
| 57 | fdevent.cpp \ |
| 58 | get_my_path_linux.cpp \ |
| 59 | usb_linux.cpp \ |
| 60 | |
| 61 | LIBADB_windows_SRC_FILES := \ |
| 62 | get_my_path_windows.cpp \ |
Elliott Hughes | a2f2e56 | 2015-04-16 16:47:02 -0700 | [diff] [blame] | 63 | sysdeps_win32.cpp \ |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 64 | usb_windows.cpp \ |
Dan Albert | 9449376 | 2014-11-25 11:00:56 -0800 | [diff] [blame] | 65 | |
| 66 | include $(CLEAR_VARS) |
Elliott Hughes | 2acec91 | 2015-04-16 14:12:50 -0700 | [diff] [blame] | 67 | LOCAL_CLANG := true |
Dan Albert | 9449376 | 2014-11-25 11:00:56 -0800 | [diff] [blame] | 68 | LOCAL_MODULE := libadbd |
| 69 | LOCAL_CFLAGS := $(LIBADB_CFLAGS) -DADB_HOST=0 |
Dan Albert | 21c3eaf | 2015-02-18 17:20:44 -0800 | [diff] [blame] | 70 | LOCAL_SRC_FILES := \ |
| 71 | $(LIBADB_SRC_FILES) \ |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 72 | adb_auth_client.cpp \ |
Dan Albert | 3c43858 | 2015-02-20 17:24:30 -0800 | [diff] [blame] | 73 | fdevent.cpp \ |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 74 | jdwp_service.cpp \ |
| 75 | qemu_tracing.cpp \ |
Elliott Hughes | 2acec91 | 2015-04-16 14:12:50 -0700 | [diff] [blame] | 76 | usb_linux_client.cpp \ |
Dan Albert | 21c3eaf | 2015-02-18 17:20:44 -0800 | [diff] [blame] | 77 | |
Elliott Hughes | 7b50609 | 2015-04-20 08:09:20 -0700 | [diff] [blame] | 78 | LOCAL_SHARED_LIBRARIES := libbase |
| 79 | |
Dan Albert | 9449376 | 2014-11-25 11:00:56 -0800 | [diff] [blame] | 80 | include $(BUILD_STATIC_LIBRARY) |
| 81 | |
Dan Albert | 630b9af | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 82 | include $(CLEAR_VARS) |
Elliott Hughes | 53daee6 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 83 | LOCAL_CLANG := $(adb_host_clang) |
Dan Albert | 630b9af | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 84 | LOCAL_MODULE := libadb |
Dan Albert | 9449376 | 2014-11-25 11:00:56 -0800 | [diff] [blame] | 85 | LOCAL_CFLAGS := $(LIBADB_CFLAGS) -DADB_HOST=1 |
Dan Albert | e1ca623 | 2015-02-19 13:19:42 -0800 | [diff] [blame] | 86 | LOCAL_SRC_FILES := \ |
| 87 | $(LIBADB_SRC_FILES) \ |
Dan Albert | 3c43858 | 2015-02-20 17:24:30 -0800 | [diff] [blame] | 88 | $(LIBADB_$(HOST_OS)_SRC_FILES) \ |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 89 | adb_auth_host.cpp \ |
Dan Albert | 630b9af | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 90 | |
Elliott Hughes | 7b50609 | 2015-04-20 08:09:20 -0700 | [diff] [blame] | 91 | LOCAL_SHARED_LIBRARIES := libbase |
| 92 | |
Dan Albert | e1ca623 | 2015-02-19 13:19:42 -0800 | [diff] [blame] | 93 | # Even though we're building a static library (and thus there's no link step for |
| 94 | # this to take effect), this adds the SSL includes to our path. |
| 95 | LOCAL_STATIC_LIBRARIES := libcrypto_static |
| 96 | |
Dan Albert | 88cf1c8 | 2015-02-24 14:08:03 -0800 | [diff] [blame] | 97 | ifeq ($(HOST_OS),windows) |
| 98 | LOCAL_C_INCLUDES += development/host/windows/usb/api/ |
Spencer Low | 142ec75 | 2015-05-06 16:13:42 -0700 | [diff] [blame] | 99 | # Windows.h defines an awful ERROR macro that collides with base/logging.h. |
| 100 | # Suppress it with NOGDI. |
| 101 | LOCAL_CFLAGS += -DNOGDI |
Dan Albert | 88cf1c8 | 2015-02-24 14:08:03 -0800 | [diff] [blame] | 102 | endif |
| 103 | |
Dan Albert | 630b9af | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 104 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 105 | |
Dan Albert | 055f1aa | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 106 | include $(CLEAR_VARS) |
Elliott Hughes | 53daee6 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 107 | LOCAL_CLANG := true |
Dan Albert | 055f1aa | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 108 | LOCAL_MODULE := adbd_test |
| 109 | LOCAL_CFLAGS := -DADB_HOST=0 $(LIBADB_CFLAGS) |
| 110 | LOCAL_SRC_FILES := $(LIBADB_TEST_SRCS) |
| 111 | LOCAL_STATIC_LIBRARIES := libadbd |
Dan Albert | c007bc3 | 2015-03-16 10:08:46 -0700 | [diff] [blame] | 112 | LOCAL_SHARED_LIBRARIES := liblog libbase libcutils |
Dan Albert | 055f1aa | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 113 | include $(BUILD_NATIVE_TEST) |
| 114 | |
Dan Albert | a7a67c3 | 2015-05-05 14:50:09 -0700 | [diff] [blame] | 115 | ifneq ($(HOST_OS),windows) |
Dan Albert | 055f1aa | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 116 | include $(CLEAR_VARS) |
Elliott Hughes | 53daee6 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 117 | LOCAL_CLANG := $(adb_host_clang) |
Dan Albert | 055f1aa | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 118 | LOCAL_MODULE := adb_test |
| 119 | LOCAL_CFLAGS := -DADB_HOST=1 $(LIBADB_CFLAGS) |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 120 | LOCAL_SRC_FILES := $(LIBADB_TEST_SRCS) services.cpp |
Dan Albert | c007bc3 | 2015-03-16 10:08:46 -0700 | [diff] [blame] | 121 | LOCAL_SHARED_LIBRARIES := liblog libbase |
Dan Albert | 055f1aa | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 122 | LOCAL_STATIC_LIBRARIES := \ |
| 123 | libadb \ |
| 124 | libcrypto_static \ |
| 125 | libcutils \ |
| 126 | |
| 127 | ifeq ($(HOST_OS),linux) |
Dan Albert | a7a67c3 | 2015-05-05 14:50:09 -0700 | [diff] [blame] | 128 | LOCAL_LDLIBS += -lrt -ldl -lpthread |
Dan Albert | 055f1aa | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 129 | endif |
| 130 | |
Dan Albert | f8d6b9b | 2015-04-16 19:13:58 -0700 | [diff] [blame] | 131 | ifeq ($(HOST_OS),darwin) |
Dan Albert | a7a67c3 | 2015-05-05 14:50:09 -0700 | [diff] [blame] | 132 | LOCAL_LDLIBS += -framework CoreFoundation -framework IOKit |
Dan Albert | f8d6b9b | 2015-04-16 19:13:58 -0700 | [diff] [blame] | 133 | endif |
| 134 | |
Dan Albert | 055f1aa | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 135 | include $(BUILD_HOST_NATIVE_TEST) |
Dan Albert | a7a67c3 | 2015-05-05 14:50:09 -0700 | [diff] [blame] | 136 | endif |
Dan Albert | 055f1aa | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 137 | |
Elliott Hughes | e67f1f8 | 2015-04-30 17:32:03 -0700 | [diff] [blame] | 138 | # adb device tracker (used by ddms) test tool |
| 139 | # ========================================================= |
| 140 | |
| 141 | ifeq ($(HOST_OS),linux) |
| 142 | include $(CLEAR_VARS) |
| 143 | LOCAL_CLANG := $(adb_host_clang) |
| 144 | LOCAL_MODULE := adb_device_tracker_test |
| 145 | LOCAL_CFLAGS := -DADB_HOST=1 $(LIBADB_CFLAGS) |
| 146 | LOCAL_SRC_FILES := test_track_devices.cpp |
| 147 | LOCAL_SHARED_LIBRARIES := liblog libbase |
| 148 | LOCAL_STATIC_LIBRARIES := libadb libcrypto_static libcutils |
| 149 | LOCAL_LDLIBS += -lrt -ldl -lpthread |
| 150 | include $(BUILD_HOST_EXECUTABLE) |
| 151 | endif |
| 152 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 153 | # adb host tool |
| 154 | # ========================================================= |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 155 | include $(CLEAR_VARS) |
| 156 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 157 | ifeq ($(HOST_OS),linux) |
Spencer Low | 142ec75 | 2015-05-06 16:13:42 -0700 | [diff] [blame] | 158 | LOCAL_LDLIBS += -lrt -ldl -lpthread |
| 159 | LOCAL_CFLAGS += -DWORKAROUND_BUG6558362 |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 160 | endif |
| 161 | |
| 162 | ifeq ($(HOST_OS),darwin) |
Spencer Low | 142ec75 | 2015-05-06 16:13:42 -0700 | [diff] [blame] | 163 | LOCAL_LDLIBS += -lpthread -framework CoreFoundation -framework IOKit -framework Carbon |
| 164 | LOCAL_CFLAGS += -Wno-sizeof-pointer-memaccess -Wno-unused-parameter |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 165 | endif |
| 166 | |
| 167 | ifeq ($(HOST_OS),windows) |
Spencer Low | 142ec75 | 2015-05-06 16:13:42 -0700 | [diff] [blame] | 168 | # Windows.h defines an awful ERROR macro that collides with base/logging.h. |
| 169 | # Suppress it with NOGDI. |
| 170 | LOCAL_CFLAGS += -DNOGDI |
| 171 | LOCAL_LDLIBS += -lws2_32 -lgdi32 |
| 172 | EXTRA_STATIC_LIBS := AdbWinApi |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 173 | endif |
| 174 | |
Elliott Hughes | 53daee6 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 175 | LOCAL_CLANG := $(adb_host_clang) |
Dan Albert | 9697ce5 | 2015-02-20 17:28:44 -0800 | [diff] [blame] | 176 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 177 | LOCAL_SRC_FILES := \ |
Dan Albert | c89e0cc | 2015-05-08 16:13:53 -0700 | [diff] [blame^] | 178 | client/main.cpp \ |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 179 | console.cpp \ |
| 180 | commandline.cpp \ |
| 181 | adb_client.cpp \ |
| 182 | services.cpp \ |
| 183 | file_sync_client.cpp \ |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 184 | |
Dan Albert | 7fd821e | 2015-02-24 22:38:21 -0800 | [diff] [blame] | 185 | LOCAL_CFLAGS += \ |
Dan Albert | 1ba1d7c | 2015-05-05 17:46:50 -0700 | [diff] [blame] | 186 | $(ADB_COMMON_CFLAGS) \ |
Dan Albert | 7fd821e | 2015-02-24 22:38:21 -0800 | [diff] [blame] | 187 | -D_GNU_SOURCE \ |
| 188 | -DADB_HOST=1 \ |
| 189 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 190 | LOCAL_MODULE := adb |
Kenny Root | d5d6d97 | 2012-09-26 09:58:07 -0700 | [diff] [blame] | 191 | LOCAL_MODULE_TAGS := debug |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 192 | |
Dan Albert | 630b9af | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 193 | LOCAL_STATIC_LIBRARIES := \ |
| 194 | libadb \ |
Elliott Hughes | 2baae3a | 2015-04-17 10:59:34 -0700 | [diff] [blame] | 195 | libbase \ |
Dan Albert | 630b9af | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 196 | libcrypto_static \ |
Elliott Hughes | 53daee6 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 197 | libcutils \ |
Elliott Hughes | 9309ecb | 2015-04-27 14:20:17 -0700 | [diff] [blame] | 198 | liblog \ |
Dan Albert | 630b9af | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 199 | $(EXTRA_STATIC_LIBS) \ |
| 200 | |
Colin Cross | dc1e482 | 2015-04-20 12:36:50 -0700 | [diff] [blame] | 201 | # libc++ not available on windows yet |
| 202 | ifneq ($(HOST_OS),windows) |
| 203 | LOCAL_CXX_STL := libc++_static |
| 204 | endif |
Colin Cross | 55bf5f0 | 2015-04-16 16:21:44 -0700 | [diff] [blame] | 205 | |
| 206 | # Don't add anything here, we don't want additional shared dependencies |
| 207 | # on the host adb tool, and shared libraries that link against libc++ |
| 208 | # will violate ODR |
| 209 | LOCAL_SHARED_LIBRARIES := |
| 210 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 211 | include $(BUILD_HOST_EXECUTABLE) |
| 212 | |
Ying Wang | 96535ba | 2012-09-05 10:26:43 -0700 | [diff] [blame] | 213 | $(call dist-for-goals,dist_files sdk,$(LOCAL_BUILT_MODULE)) |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 214 | |
| 215 | ifeq ($(HOST_OS),windows) |
Raphael | 26f3de6 | 2009-08-11 11:08:45 -0700 | [diff] [blame] | 216 | $(LOCAL_INSTALLED_MODULE): \ |
| 217 | $(HOST_OUT_EXECUTABLES)/AdbWinApi.dll \ |
| 218 | $(HOST_OUT_EXECUTABLES)/AdbWinUsbApi.dll |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 219 | endif |
| 220 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 221 | |
| 222 | # adbd device daemon |
| 223 | # ========================================================= |
| 224 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 225 | include $(CLEAR_VARS) |
| 226 | |
Elliott Hughes | 53daee6 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 227 | LOCAL_CLANG := true |
Dan Albert | 9697ce5 | 2015-02-20 17:28:44 -0800 | [diff] [blame] | 228 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 229 | LOCAL_SRC_FILES := \ |
Dan Albert | c89e0cc | 2015-05-08 16:13:53 -0700 | [diff] [blame^] | 230 | daemon/main.cpp \ |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 231 | services.cpp \ |
| 232 | file_sync_service.cpp \ |
| 233 | framebuffer_service.cpp \ |
| 234 | remount_service.cpp \ |
| 235 | set_verity_enable_state_service.cpp \ |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 236 | |
Christopher Ferris | 51448eb | 2014-09-03 19:48:48 -0700 | [diff] [blame] | 237 | LOCAL_CFLAGS := \ |
Dan Albert | 1ba1d7c | 2015-05-05 17:46:50 -0700 | [diff] [blame] | 238 | $(ADB_COMMON_CFLAGS) \ |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 239 | -DADB_HOST=0 \ |
| 240 | -D_GNU_SOURCE \ |
Dan Albert | bac3474 | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 241 | -Wno-deprecated-declarations \ |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 242 | |
Nick Kralevich | 5890fe3 | 2012-01-19 13:11:35 -0800 | [diff] [blame] | 243 | ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
| 244 | LOCAL_CFLAGS += -DALLOW_ADBD_ROOT=1 |
| 245 | endif |
| 246 | |
Elliott Hughes | ec7a667 | 2015-03-16 21:58:32 +0000 | [diff] [blame] | 247 | ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
Paul Lawrence | ec900bb | 2014-10-09 14:22:49 +0000 | [diff] [blame] | 248 | LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1 |
| 249 | endif |
| 250 | |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 251 | LOCAL_MODULE := adbd |
| 252 | |
| 253 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 254 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN) |
| 255 | LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_SBIN_UNSTRIPPED) |
Tao Bao | 175b7bb | 2015-03-29 11:22:34 -0700 | [diff] [blame] | 256 | LOCAL_C_INCLUDES += system/extras/ext4_utils |
The Android Open Source Project | dd7bc33 | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 257 | |
Dan Albert | 630b9af | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 258 | LOCAL_STATIC_LIBRARIES := \ |
Dan Albert | 9449376 | 2014-11-25 11:00:56 -0800 | [diff] [blame] | 259 | libadbd \ |
Tao Bao | 175b7bb | 2015-03-29 11:22:34 -0700 | [diff] [blame] | 260 | libbase \ |
Dan Albert | 030b76f | 2015-01-26 17:13:54 -0800 | [diff] [blame] | 261 | libfs_mgr \ |
Dan Albert | 630b9af | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 262 | liblog \ |
| 263 | libcutils \ |
| 264 | libc \ |
| 265 | libmincrypt \ |
| 266 | libselinux \ |
Dan Albert | 030b76f | 2015-01-26 17:13:54 -0800 | [diff] [blame] | 267 | libext4_utils_static \ |
Paul Lawrence | ec900bb | 2014-10-09 14:22:49 +0000 | [diff] [blame] | 268 | |
Jeff Brown | 29e1e73 | 2011-07-11 22:12:32 -0700 | [diff] [blame] | 269 | include $(BUILD_EXECUTABLE) |