Skip to content

Commit 29e1e73

Browse files
author
Jeff Brown
committed
Remove the simulator target from all makefiles.
Bug: 5010576 Change-Id: I2fcf31af681d92880e5d31a46d5f6777f7ca1977
1 parent 56286d6 commit 29e1e73

File tree

7 files changed

+14
-88
lines changed

7 files changed

+14
-88
lines changed

Android.mk

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,4 @@
1515
#
1616
LOCAL_PATH := $(my-dir)
1717

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))

adb/Android.mk

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,7 @@ endif
9595
# adbd device daemon
9696
# =========================================================
9797

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
10399

104100
# build adbd for the Linux simulator build
105101
# so we can use it to test the adb USB gadget driver on x86
@@ -143,21 +139,14 @@ LOCAL_FORCE_STATIC_EXECUTABLE := true
143139
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT_SBIN)
144140
LOCAL_UNSTRIPPED_PATH := $(TARGET_ROOT_OUT_SBIN_UNSTRIPPED)
145141

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)
154144

155145
endif
156146

157147

158148
# adb host tool for device-as-host
159149
# =========================================================
160-
ifneq ($(TARGET_SIMULATOR),true)
161150
ifneq ($(SDK_ONLY),true)
162151
include $(CLEAR_VARS)
163152

@@ -196,4 +185,3 @@ LOCAL_STATIC_LIBRARIES := libzipfile libunz libcutils
196185

197186
include $(BUILD_EXECUTABLE)
198187
endif
199-
endif

libcutils/Android.mk

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,6 @@ LOCAL_CFLAGS += $(hostSmpFlag)
9393
include $(BUILD_HOST_STATIC_LIBRARY)
9494

9595

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-
11096
# Shared and static library for target
11197
# ========================================================
11298
include $(CLEAR_VARS)
@@ -147,5 +133,3 @@ LOCAL_SRC_FILES := str_parms.c hashmap.c memory.c
147133
LOCAL_SHARED_LIBRARIES := liblog
148134
LOCAL_MODULE_TAGS := optional
149135
include $(BUILD_EXECUTABLE)
150-
151-
endif #!sim

libdiskconfig/Android.mk

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
LOCAL_PATH := $(call my-dir)
22
include $(CLEAR_VARS)
33

4-
ifneq ($(TARGET_SIMULATOR),true)
5-
64
commonSources := \
75
diskconfig.c \
86
diskutils.c \
@@ -23,5 +21,3 @@ LOCAL_SYSTEM_SHARED_LIBRARIES := libcutils
2321
LOCAL_CFLAGS := -O2 -g -W -Wall -Werror -D_LARGEFILE64_SOURCE
2422
include $(BUILD_HOST_STATIC_LIBRARY)
2523
endif # HOST_OS == linux
26-
27-
endif # ! TARGET_SIMULATOR

liblog/Android.mk

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -48,25 +48,14 @@ LOCAL_LDLIBS := -lpthread
4848
LOCAL_CFLAGS := -DFAKE_LOG_DEVICE=1
4949
include $(BUILD_HOST_STATIC_LIBRARY)
5050

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)
6757

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)

libnetutils/Android.mk

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ LOCAL_SRC_FILES:= \
1111
LOCAL_SHARED_LIBRARIES := \
1212
libcutils
1313

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-
2114
LOCAL_MODULE:= libnetutils
2215

2316
include $(BUILD_SHARED_LIBRARY)

libsysutils/Android.mk

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
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)
82

93
LOCAL_PATH:= $(call my-dir)
104

@@ -27,11 +21,6 @@ LOCAL_CFLAGS :=
2721

2822
LOCAL_SHARED_LIBRARIES := libcutils
2923

30-
ifeq ($(TARGET_SIMULATOR),true)
31-
LOCAL_LDLIBS += -lpthread
32-
endif
33-
3424
include $(BUILD_SHARED_LIBRARY)
3525

3626
endif
37-
endif

0 commit comments

Comments
 (0)