The Android Open Source Project | 9ca14dc | 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 | df5bb43 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 8 | ifeq ($(HOST_OS),windows) |
Dan Albert | 1fa736d | 2015-05-05 14:50:09 -0700 | [diff] [blame] | 9 | adb_host_clang := false # libc++ for mingw not ready yet. |
Elliott Hughes | df5bb43 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 10 | else |
Dan Albert | 1fa736d | 2015-05-05 14:50:09 -0700 | [diff] [blame] | 11 | adb_host_clang := true |
Elliott Hughes | df5bb43 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 12 | endif |
Dan Albert | 250e58c | 2015-02-20 17:28:44 -0800 | [diff] [blame] | 13 | |
Dan Albert | a8285fb | 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 := \ |
Dan Albert | c6d3a24 | 2015-05-20 18:56:10 -0700 | [diff] [blame] | 17 | -Wall -Wextra -Werror \ |
Dan Albert | 7d8fc46 | 2015-07-08 13:50:42 -0700 | [diff] [blame] | 18 | -Wno-unused-parameter \ |
Dan Albert | 3d978e6 | 2015-07-09 20:35:09 +0000 | [diff] [blame] | 19 | -Wno-missing-field-initializers \ |
Dan Albert | a8285fb | 2015-05-05 17:46:50 -0700 | [diff] [blame] | 20 | -DADB_REVISION='"$(adb_version)"' \ |
| 21 | |
Dan Albert | bbbbea6 | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 22 | # libadb |
| 23 | # ========================================================= |
| 24 | |
| 25 | # Much of adb is duplicated in bootable/recovery/minadb and fastboot. Changes |
| 26 | # made to adb rarely get ported to the other two, so the trees have diverged a |
| 27 | # bit. We'd like to stop this because it is a maintenance nightmare, but the |
| 28 | # divergence makes this difficult to do all at once. For now, we will start |
| 29 | # small by moving common files into a static library. Hopefully some day we can |
| 30 | # get enough of adb in here that we no longer need minadb. https://b/17626262 |
Dan Albert | 056ad0e | 2015-02-18 17:47:33 -0800 | [diff] [blame] | 31 | LIBADB_SRC_FILES := \ |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 32 | adb.cpp \ |
| 33 | adb_auth.cpp \ |
Dan Albert | 66a91b0 | 2015-02-24 21:26:58 -0800 | [diff] [blame] | 34 | adb_io.cpp \ |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 35 | adb_listeners.cpp \ |
Elliott Hughes | 3810445 | 2015-04-17 13:57:15 -0700 | [diff] [blame] | 36 | adb_utils.cpp \ |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 37 | sockets.cpp \ |
| 38 | transport.cpp \ |
| 39 | transport_local.cpp \ |
| 40 | transport_usb.cpp \ |
Dan Albert | 056ad0e | 2015-02-18 17:47:33 -0800 | [diff] [blame] | 41 | |
Elliott Hughes | df5bb43 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 42 | LIBADB_TEST_SRCS := \ |
| 43 | adb_io_test.cpp \ |
| 44 | adb_utils_test.cpp \ |
| 45 | transport_test.cpp \ |
| 46 | |
Dan Albert | 357bd49 | 2015-02-20 17:20:09 -0800 | [diff] [blame] | 47 | LIBADB_CFLAGS := \ |
Dan Albert | a8285fb | 2015-05-05 17:46:50 -0700 | [diff] [blame] | 48 | $(ADB_COMMON_CFLAGS) \ |
Dan Albert | 056ad0e | 2015-02-18 17:47:33 -0800 | [diff] [blame] | 49 | -fvisibility=hidden \ |
Elliott Hughes | bb4fe4a | 2015-07-24 14:32:46 -0700 | [diff] [blame^] | 50 | |
| 51 | LIBADB_linux_CFLAGS := \ |
Elliott Hughes | 3af421c | 2015-07-23 15:20:09 -0700 | [diff] [blame] | 52 | -std=c++14 \ |
Dan Albert | bbbbea6 | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 53 | |
Elliott Hughes | bb4fe4a | 2015-07-24 14:32:46 -0700 | [diff] [blame^] | 54 | LIBADB_CFLAGS += $(LIBADB_$(HOST_OS)_CFLAGS) |
| 55 | |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 56 | LIBADB_darwin_SRC_FILES := \ |
| 57 | fdevent.cpp \ |
Elliott Hughes | 7f963e1 | 2015-04-16 13:24:58 -0700 | [diff] [blame] | 58 | get_my_path_darwin.cpp \ |
Dan Albert | 2589606 | 2015-04-16 19:20:40 -0700 | [diff] [blame] | 59 | usb_osx.cpp \ |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 60 | |
| 61 | LIBADB_linux_SRC_FILES := \ |
| 62 | fdevent.cpp \ |
| 63 | get_my_path_linux.cpp \ |
| 64 | usb_linux.cpp \ |
| 65 | |
| 66 | LIBADB_windows_SRC_FILES := \ |
| 67 | get_my_path_windows.cpp \ |
Elliott Hughes | 6a09693 | 2015-04-16 16:47:02 -0700 | [diff] [blame] | 68 | sysdeps_win32.cpp \ |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 69 | usb_windows.cpp \ |
Dan Albert | dfef94a | 2014-11-25 11:00:56 -0800 | [diff] [blame] | 70 | |
| 71 | include $(CLEAR_VARS) |
Elliott Hughes | 392692c | 2015-04-16 14:12:50 -0700 | [diff] [blame] | 72 | LOCAL_CLANG := true |
Dan Albert | dfef94a | 2014-11-25 11:00:56 -0800 | [diff] [blame] | 73 | LOCAL_MODULE := libadbd |
| 74 | LOCAL_CFLAGS := $(LIBADB_CFLAGS) -DADB_HOST=0 |
Dan Albert | 052c253 | 2015-02-18 17:20:44 -0800 | [diff] [blame] | 75 | LOCAL_SRC_FILES := \ |
| 76 | $(LIBADB_SRC_FILES) \ |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 77 | adb_auth_client.cpp \ |
Dan Albert | c37cd7c | 2015-02-20 17:24:30 -0800 | [diff] [blame] | 78 | fdevent.cpp \ |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 79 | jdwp_service.cpp \ |
| 80 | qemu_tracing.cpp \ |
Elliott Hughes | 392692c | 2015-04-16 14:12:50 -0700 | [diff] [blame] | 81 | usb_linux_client.cpp \ |
Dan Albert | 052c253 | 2015-02-18 17:20:44 -0800 | [diff] [blame] | 82 | |
Elliott Hughes | a585cbd | 2015-04-20 08:09:20 -0700 | [diff] [blame] | 83 | LOCAL_SHARED_LIBRARIES := libbase |
| 84 | |
Dan Albert | 27929b0 | 2015-03-19 13:25:27 -0700 | [diff] [blame] | 85 | # Even though we're building a static library (and thus there's no link step for |
| 86 | # this to take effect), this adds the includes to our path. |
| 87 | LOCAL_STATIC_LIBRARIES := libbase |
| 88 | |
Dan Albert | dfef94a | 2014-11-25 11:00:56 -0800 | [diff] [blame] | 89 | include $(BUILD_STATIC_LIBRARY) |
| 90 | |
Dan Albert | bbbbea6 | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 91 | include $(CLEAR_VARS) |
Elliott Hughes | df5bb43 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 92 | LOCAL_CLANG := $(adb_host_clang) |
Dan Albert | bbbbea6 | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 93 | LOCAL_MODULE := libadb |
Dan Albert | dfef94a | 2014-11-25 11:00:56 -0800 | [diff] [blame] | 94 | LOCAL_CFLAGS := $(LIBADB_CFLAGS) -DADB_HOST=1 |
Dan Albert | 01c58ca | 2015-02-19 13:19:42 -0800 | [diff] [blame] | 95 | LOCAL_SRC_FILES := \ |
| 96 | $(LIBADB_SRC_FILES) \ |
Dan Albert | c37cd7c | 2015-02-20 17:24:30 -0800 | [diff] [blame] | 97 | $(LIBADB_$(HOST_OS)_SRC_FILES) \ |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 98 | adb_auth_host.cpp \ |
Dan Albert | bbbbea6 | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 99 | |
Elliott Hughes | a585cbd | 2015-04-20 08:09:20 -0700 | [diff] [blame] | 100 | LOCAL_SHARED_LIBRARIES := libbase |
| 101 | |
Dan Albert | 01c58ca | 2015-02-19 13:19:42 -0800 | [diff] [blame] | 102 | # Even though we're building a static library (and thus there's no link step for |
Dan Albert | 27929b0 | 2015-03-19 13:25:27 -0700 | [diff] [blame] | 103 | # this to take effect), this adds the includes to our path. |
| 104 | LOCAL_STATIC_LIBRARIES := libcrypto_static libbase |
Dan Albert | 01c58ca | 2015-02-19 13:19:42 -0800 | [diff] [blame] | 105 | |
Dan Albert | 8ce3213 | 2015-02-24 14:08:03 -0800 | [diff] [blame] | 106 | ifeq ($(HOST_OS),windows) |
| 107 | LOCAL_C_INCLUDES += development/host/windows/usb/api/ |
| 108 | endif |
| 109 | |
Dan Albert | bbbbea6 | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 110 | include $(BUILD_HOST_STATIC_LIBRARY) |
| 111 | |
Dan Albert | 4895c52 | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 112 | include $(CLEAR_VARS) |
Elliott Hughes | df5bb43 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 113 | LOCAL_CLANG := true |
Dan Albert | 4895c52 | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 114 | LOCAL_MODULE := adbd_test |
| 115 | LOCAL_CFLAGS := -DADB_HOST=0 $(LIBADB_CFLAGS) |
| 116 | LOCAL_SRC_FILES := $(LIBADB_TEST_SRCS) |
| 117 | LOCAL_STATIC_LIBRARIES := libadbd |
Dan Albert | 46cf4ee | 2015-03-16 10:08:46 -0700 | [diff] [blame] | 118 | LOCAL_SHARED_LIBRARIES := liblog libbase libcutils |
Dan Albert | 4895c52 | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 119 | include $(BUILD_NATIVE_TEST) |
| 120 | |
Dan Albert | 1fa736d | 2015-05-05 14:50:09 -0700 | [diff] [blame] | 121 | ifneq ($(HOST_OS),windows) |
Dan Albert | 4895c52 | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 122 | include $(CLEAR_VARS) |
Elliott Hughes | df5bb43 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 123 | LOCAL_CLANG := $(adb_host_clang) |
Dan Albert | 4895c52 | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 124 | LOCAL_MODULE := adb_test |
| 125 | LOCAL_CFLAGS := -DADB_HOST=1 $(LIBADB_CFLAGS) |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 126 | LOCAL_SRC_FILES := $(LIBADB_TEST_SRCS) services.cpp |
Dan Albert | 46cf4ee | 2015-03-16 10:08:46 -0700 | [diff] [blame] | 127 | LOCAL_SHARED_LIBRARIES := liblog libbase |
Dan Albert | 4895c52 | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 128 | LOCAL_STATIC_LIBRARIES := \ |
| 129 | libadb \ |
| 130 | libcrypto_static \ |
| 131 | libcutils \ |
| 132 | |
| 133 | ifeq ($(HOST_OS),linux) |
Dan Albert | 1fa736d | 2015-05-05 14:50:09 -0700 | [diff] [blame] | 134 | LOCAL_LDLIBS += -lrt -ldl -lpthread |
Dan Albert | 4895c52 | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 135 | endif |
| 136 | |
Dan Albert | 23bb6e5 | 2015-04-16 19:13:58 -0700 | [diff] [blame] | 137 | ifeq ($(HOST_OS),darwin) |
Dan Albert | 1fa736d | 2015-05-05 14:50:09 -0700 | [diff] [blame] | 138 | LOCAL_LDLIBS += -framework CoreFoundation -framework IOKit |
Dan Albert | 23bb6e5 | 2015-04-16 19:13:58 -0700 | [diff] [blame] | 139 | endif |
| 140 | |
Dan Albert | 4895c52 | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 141 | include $(BUILD_HOST_NATIVE_TEST) |
Dan Albert | 1fa736d | 2015-05-05 14:50:09 -0700 | [diff] [blame] | 142 | endif |
Dan Albert | 4895c52 | 2015-02-20 17:24:58 -0800 | [diff] [blame] | 143 | |
Elliott Hughes | 88b4c85 | 2015-04-30 17:32:03 -0700 | [diff] [blame] | 144 | # adb device tracker (used by ddms) test tool |
| 145 | # ========================================================= |
| 146 | |
| 147 | ifeq ($(HOST_OS),linux) |
| 148 | include $(CLEAR_VARS) |
| 149 | LOCAL_CLANG := $(adb_host_clang) |
| 150 | LOCAL_MODULE := adb_device_tracker_test |
| 151 | LOCAL_CFLAGS := -DADB_HOST=1 $(LIBADB_CFLAGS) |
| 152 | LOCAL_SRC_FILES := test_track_devices.cpp |
| 153 | LOCAL_SHARED_LIBRARIES := liblog libbase |
| 154 | LOCAL_STATIC_LIBRARIES := libadb libcrypto_static libcutils |
| 155 | LOCAL_LDLIBS += -lrt -ldl -lpthread |
| 156 | include $(BUILD_HOST_EXECUTABLE) |
| 157 | endif |
| 158 | |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 159 | # adb host tool |
| 160 | # ========================================================= |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 161 | include $(CLEAR_VARS) |
| 162 | |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 163 | ifeq ($(HOST_OS),linux) |
Spencer Low | 7dc759f | 2015-05-06 16:13:42 -0700 | [diff] [blame] | 164 | LOCAL_LDLIBS += -lrt -ldl -lpthread |
| 165 | LOCAL_CFLAGS += -DWORKAROUND_BUG6558362 |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 166 | endif |
| 167 | |
| 168 | ifeq ($(HOST_OS),darwin) |
Spencer Low | 7dc759f | 2015-05-06 16:13:42 -0700 | [diff] [blame] | 169 | LOCAL_LDLIBS += -lpthread -framework CoreFoundation -framework IOKit -framework Carbon |
| 170 | LOCAL_CFLAGS += -Wno-sizeof-pointer-memaccess -Wno-unused-parameter |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 171 | endif |
| 172 | |
| 173 | ifeq ($(HOST_OS),windows) |
Spencer Low | 7dc759f | 2015-05-06 16:13:42 -0700 | [diff] [blame] | 174 | LOCAL_LDLIBS += -lws2_32 -lgdi32 |
| 175 | EXTRA_STATIC_LIBS := AdbWinApi |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 176 | endif |
| 177 | |
Elliott Hughes | df5bb43 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 178 | LOCAL_CLANG := $(adb_host_clang) |
Dan Albert | 250e58c | 2015-02-20 17:28:44 -0800 | [diff] [blame] | 179 | |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 180 | LOCAL_SRC_FILES := \ |
Dan Albert | 53a3744 | 2015-05-08 16:13:53 -0700 | [diff] [blame] | 181 | client/main.cpp \ |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 182 | console.cpp \ |
| 183 | commandline.cpp \ |
| 184 | adb_client.cpp \ |
| 185 | services.cpp \ |
| 186 | file_sync_client.cpp \ |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 187 | |
Dan Albert | 50f9b90 | 2015-02-24 22:38:21 -0800 | [diff] [blame] | 188 | LOCAL_CFLAGS += \ |
Dan Albert | a8285fb | 2015-05-05 17:46:50 -0700 | [diff] [blame] | 189 | $(ADB_COMMON_CFLAGS) \ |
Dan Albert | 50f9b90 | 2015-02-24 22:38:21 -0800 | [diff] [blame] | 190 | -D_GNU_SOURCE \ |
| 191 | -DADB_HOST=1 \ |
| 192 | |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 193 | LOCAL_MODULE := adb |
Benoit Goby | 12dc369 | 2013-02-20 15:04:53 -0800 | [diff] [blame] | 194 | LOCAL_MODULE_TAGS := debug |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 195 | |
Dan Albert | bbbbea6 | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 196 | LOCAL_STATIC_LIBRARIES := \ |
| 197 | libadb \ |
Elliott Hughes | 170b568 | 2015-04-17 10:59:34 -0700 | [diff] [blame] | 198 | libbase \ |
Dan Albert | bbbbea6 | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 199 | libcrypto_static \ |
Elliott Hughes | df5bb43 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 200 | libcutils \ |
Elliott Hughes | 949f262 | 2015-04-27 14:20:17 -0700 | [diff] [blame] | 201 | liblog \ |
Dan Albert | bbbbea6 | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 202 | $(EXTRA_STATIC_LIBS) \ |
| 203 | |
Colin Cross | 3b43460 | 2015-04-20 12:36:50 -0700 | [diff] [blame] | 204 | # libc++ not available on windows yet |
| 205 | ifneq ($(HOST_OS),windows) |
| 206 | LOCAL_CXX_STL := libc++_static |
| 207 | endif |
Colin Cross | 0a34bfb | 2015-04-16 16:21:44 -0700 | [diff] [blame] | 208 | |
| 209 | # Don't add anything here, we don't want additional shared dependencies |
| 210 | # on the host adb tool, and shared libraries that link against libc++ |
| 211 | # will violate ODR |
| 212 | LOCAL_SHARED_LIBRARIES := |
| 213 | |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 214 | include $(BUILD_HOST_EXECUTABLE) |
| 215 | |
Ying Wang | 9dc5069 | 2012-09-05 10:26:43 -0700 | [diff] [blame] | 216 | $(call dist-for-goals,dist_files sdk,$(LOCAL_BUILT_MODULE)) |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 217 | |
| 218 | ifeq ($(HOST_OS),windows) |
Raphael | 121c4ec | 2009-08-11 11:08:45 -0700 | [diff] [blame] | 219 | $(LOCAL_INSTALLED_MODULE): \ |
| 220 | $(HOST_OUT_EXECUTABLES)/AdbWinApi.dll \ |
| 221 | $(HOST_OUT_EXECUTABLES)/AdbWinUsbApi.dll |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 222 | endif |
| 223 | |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 224 | |
| 225 | # adbd device daemon |
| 226 | # ========================================================= |
| 227 | |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 228 | include $(CLEAR_VARS) |
| 229 | |
Elliott Hughes | df5bb43 | 2015-04-19 13:17:01 -0700 | [diff] [blame] | 230 | LOCAL_CLANG := true |
Dan Albert | 250e58c | 2015-02-20 17:28:44 -0800 | [diff] [blame] | 231 | |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 232 | LOCAL_SRC_FILES := \ |
Dan Albert | 53a3744 | 2015-05-08 16:13:53 -0700 | [diff] [blame] | 233 | daemon/main.cpp \ |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 234 | services.cpp \ |
| 235 | file_sync_service.cpp \ |
| 236 | framebuffer_service.cpp \ |
| 237 | remount_service.cpp \ |
| 238 | set_verity_enable_state_service.cpp \ |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 239 | |
Christopher Ferris | d930691 | 2014-09-03 19:48:48 -0700 | [diff] [blame] | 240 | LOCAL_CFLAGS := \ |
Dan Albert | a8285fb | 2015-05-05 17:46:50 -0700 | [diff] [blame] | 241 | $(ADB_COMMON_CFLAGS) \ |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 242 | -DADB_HOST=0 \ |
| 243 | -D_GNU_SOURCE \ |
Dan Albert | f30d73c | 2015-02-25 17:51:28 -0800 | [diff] [blame] | 244 | -Wno-deprecated-declarations \ |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 245 | |
Elliott Hughes | d7eb854 | 2015-06-17 15:23:42 -0700 | [diff] [blame] | 246 | LOCAL_CFLAGS += -DALLOW_ADBD_NO_AUTH=$(if $(filter userdebug eng,$(TARGET_BUILD_VARIANT)),1,0) |
Nick Kralevich | 0926403 | 2012-01-19 13:11:35 -0800 | [diff] [blame] | 247 | |
Elliott Hughes | dedf767 | 2015-03-16 21:58:32 +0000 | [diff] [blame] | 248 | ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT))) |
Paul Lawrence | 5f35648 | 2014-10-09 14:22:49 +0000 | [diff] [blame] | 249 | LOCAL_CFLAGS += -DALLOW_ADBD_DISABLE_VERITY=1 |
Elliott Hughes | d7eb854 | 2015-06-17 15:23:42 -0700 | [diff] [blame] | 250 | LOCAL_CFLAGS += -DALLOW_ADBD_ROOT=1 |
Paul Lawrence | 5f35648 | 2014-10-09 14:22:49 +0000 | [diff] [blame] | 251 | endif |
| 252 | |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 253 | LOCAL_MODULE := adbd |
| 254 | |
| 255 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
| 256 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN) |
| 257 | LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_SBIN_UNSTRIPPED) |
Tao Bao | 0db6764 | 2015-03-29 11:22:34 -0700 | [diff] [blame] | 258 | LOCAL_C_INCLUDES += system/extras/ext4_utils |
The Android Open Source Project | 9ca14dc | 2009-03-03 19:32:55 -0800 | [diff] [blame] | 259 | |
Dan Albert | bbbbea6 | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 260 | LOCAL_STATIC_LIBRARIES := \ |
Dan Albert | dfef94a | 2014-11-25 11:00:56 -0800 | [diff] [blame] | 261 | libadbd \ |
Tao Bao | 0db6764 | 2015-03-29 11:22:34 -0700 | [diff] [blame] | 262 | libbase \ |
Dan Albert | 0ca996b | 2015-01-26 17:13:54 -0800 | [diff] [blame] | 263 | libfs_mgr \ |
Dan Albert | bbbbea6 | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 264 | liblog \ |
Dan Albert | bbbbea6 | 2014-11-24 23:34:35 -0800 | [diff] [blame] | 265 | libmincrypt \ |
| 266 | libselinux \ |
Dan Albert | 0ca996b | 2015-01-26 17:13:54 -0800 | [diff] [blame] | 267 | libext4_utils_static \ |
Dan Albert | 27929b0 | 2015-03-19 13:25:27 -0700 | [diff] [blame] | 268 | libcutils \ |
| 269 | libbase \ |
Paul Lawrence | 5f35648 | 2014-10-09 14:22:49 +0000 | [diff] [blame] | 270 | |
Jeff Brown | f5287b7 | 2011-07-11 22:12:32 -0700 | [diff] [blame] | 271 | include $(BUILD_EXECUTABLE) |