File tree Expand file tree Collapse file tree 7 files changed +14
-88
lines changed Expand file tree Collapse file tree 7 files changed +14
-88
lines changed Original file line number Diff line number Diff line change 15
15
#
16
16
LOCAL_PATH := $(my-dir )
17
17
18
- ifneq ($(TARGET_SIMULATOR ) ,true)
19
- include $(call first-makefiles-under,$(LOCAL_PATH ) )
20
- else
21
- include $(addprefix $(LOCAL_PATH ) /,$(addsuffix /Android.mk, \
22
- adb \
23
- libcutils \
24
- libsysutils \
25
- liblog \
26
- libnetutils \
27
- libpixelflinger \
28
- libusbhost \
29
- libzipfile \
30
- ) )
31
- endif
18
+ include $(call first-makefiles-under,$(LOCAL_PATH ) )
Original file line number Diff line number Diff line change 95
95
# adbd device daemon
96
96
# =========================================================
97
97
98
- # build adbd in all non-simulator builds
99
- BUILD_ADBD := false
100
- ifneq ($(TARGET_SIMULATOR ) ,true)
101
- BUILD_ADBD := true
102
- endif
98
+ BUILD_ADBD := true
103
99
104
100
# build adbd for the Linux simulator build
105
101
# so we can use it to test the adb USB gadget driver on x86
@@ -143,21 +139,14 @@ LOCAL_FORCE_STATIC_EXECUTABLE := true
143
139
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN )
144
140
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_SBIN_UNSTRIPPED )
145
141
146
- ifeq ($(TARGET_SIMULATOR ) ,true)
147
- LOCAL_STATIC_LIBRARIES := libcutils
148
- LOCAL_LDLIBS += -lpthread
149
- include $(BUILD_HOST_EXECUTABLE )
150
- else
151
- LOCAL_STATIC_LIBRARIES := libcutils libc
152
- include $(BUILD_EXECUTABLE )
153
- endif
142
+ LOCAL_STATIC_LIBRARIES := libcutils libc
143
+ include $(BUILD_EXECUTABLE )
154
144
155
145
endif
156
146
157
147
158
148
# adb host tool for device-as-host
159
149
# =========================================================
160
- ifneq ($(TARGET_SIMULATOR ) ,true)
161
150
ifneq ($(SDK_ONLY ) ,true)
162
151
include $(CLEAR_VARS )
163
152
@@ -196,4 +185,3 @@ LOCAL_STATIC_LIBRARIES := libzipfile libunz libcutils
196
185
197
186
include $(BUILD_EXECUTABLE )
198
187
endif
199
- endif
Original file line number Diff line number Diff line change @@ -93,20 +93,6 @@ LOCAL_CFLAGS += $(hostSmpFlag)
93
93
include $(BUILD_HOST_STATIC_LIBRARY )
94
94
95
95
96
- ifeq ($(TARGET_SIMULATOR ) ,true)
97
-
98
- # Shared library for simulator
99
- # ========================================================
100
- include $(CLEAR_VARS )
101
- LOCAL_MODULE := libcutils
102
- LOCAL_SRC_FILES := $(commonSources ) $(commonHostSources ) memory.c dlmalloc_stubs.c
103
- LOCAL_LDLIBS := -lpthread
104
- LOCAL_SHARED_LIBRARIES := liblog
105
- LOCAL_CFLAGS += $(targetSmpFlag )
106
- include $(BUILD_SHARED_LIBRARY )
107
-
108
- else #!sim
109
-
110
96
# Shared and static library for target
111
97
# ========================================================
112
98
include $(CLEAR_VARS )
@@ -147,5 +133,3 @@ LOCAL_SRC_FILES := str_parms.c hashmap.c memory.c
147
133
LOCAL_SHARED_LIBRARIES := liblog
148
134
LOCAL_MODULE_TAGS := optional
149
135
include $(BUILD_EXECUTABLE )
150
-
151
- endif # !sim
Original file line number Diff line number Diff line change 1
1
LOCAL_PATH := $(call my-dir)
2
2
include $(CLEAR_VARS )
3
3
4
- ifneq ($(TARGET_SIMULATOR ) ,true)
5
-
6
4
commonSources := \
7
5
diskconfig.c \
8
6
diskutils.c \
@@ -23,5 +21,3 @@ LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils
23
21
LOCAL_CFLAGS := -O2 -g -W -Wall -Werror -D_LARGEFILE64_SOURCE
24
22
include $(BUILD_HOST_STATIC_LIBRARY )
25
23
endif # HOST_OS == linux
26
-
27
- endif # ! TARGET_SIMULATOR
Original file line number Diff line number Diff line change @@ -48,25 +48,14 @@ LOCAL_LDLIBS := -lpthread
48
48
LOCAL_CFLAGS := -DFAKE_LOG_DEVICE=1
49
49
include $(BUILD_HOST_STATIC_LIBRARY )
50
50
51
- ifeq ($(TARGET_SIMULATOR ) ,true)
52
- # Shared library for simulator
53
- # ========================================================
54
- include $(CLEAR_VARS )
55
- LOCAL_MODULE := liblog
56
- LOCAL_SRC_FILES := $(liblog_host_sources )
57
- LOCAL_LDLIBS := -lpthread
58
- LOCAL_CFLAGS := -DFAKE_LOG_DEVICE=1
59
- include $(BUILD_SHARED_LIBRARY )
60
- else # !sim
61
- # Shared and static library for target
62
- # ========================================================
63
- include $(CLEAR_VARS )
64
- LOCAL_MODULE := liblog
65
- LOCAL_SRC_FILES := $(liblog_sources )
66
- include $(BUILD_STATIC_LIBRARY )
51
+ # Shared and static library for target
52
+ # ========================================================
53
+ include $(CLEAR_VARS )
54
+ LOCAL_MODULE := liblog
55
+ LOCAL_SRC_FILES := $(liblog_sources )
56
+ include $(BUILD_STATIC_LIBRARY )
67
57
68
- include $(CLEAR_VARS )
69
- LOCAL_MODULE := liblog
70
- LOCAL_WHOLE_STATIC_LIBRARIES := liblog
71
- include $(BUILD_SHARED_LIBRARY )
72
- endif # !sim
58
+ include $(CLEAR_VARS )
59
+ LOCAL_MODULE := liblog
60
+ LOCAL_WHOLE_STATIC_LIBRARIES := liblog
61
+ include $(BUILD_SHARED_LIBRARY )
Original file line number Diff line number Diff line change @@ -11,13 +11,6 @@ LOCAL_SRC_FILES:= \
11
11
LOCAL_SHARED_LIBRARIES := \
12
12
libcutils
13
13
14
- # need "-lrt" on Linux simulator to pick up clock_gettime
15
- ifeq ($(TARGET_SIMULATOR ) ,true)
16
- ifeq ($(HOST_OS),linux)
17
- LOCAL_LDLIBS += -lrt -lpthread
18
- endif
19
- endif
20
-
21
14
LOCAL_MODULE: = libnetutils
22
15
23
16
include $(BUILD_SHARED_LIBRARY )
Original file line number Diff line number Diff line change 1
1
ifneq ($(BUILD_TINY_ANDROID ) ,true)
2
- BUILD_LIBSYSUTILS := false
3
- ifneq ($(TARGET_SIMULATOR ) ,true)
4
- BUILD_LIBSYSUTILS := true
5
- endif
6
-
7
- ifeq ($(BUILD_LIBSYSUTILS ) ,true)
8
2
9
3
LOCAL_PATH: = $(call my-dir)
10
4
@@ -27,11 +21,6 @@ LOCAL_CFLAGS :=
27
21
28
22
LOCAL_SHARED_LIBRARIES := libcutils
29
23
30
- ifeq ($(TARGET_SIMULATOR ) ,true)
31
- LOCAL_LDLIBS += -lpthread
32
- endif
33
-
34
24
include $(BUILD_SHARED_LIBRARY )
35
25
36
26
endif
37
- endif
You can’t perform that action at this time.
0 commit comments