summaryrefslogtreecommitdiffstats
path: root/libcutils
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2015-11-16 16:17:25 -0800
committerJosh Gao <jmgao@google.com>2015-11-16 16:21:22 -0800
commitbb3f9ce0aaebffd859dcaff07d73523482e5efd2 (patch)
tree1f3240512d7dcdd0e755a97dcb0c22396cd27416 /libcutils
parenta629e2e578acf83dbadd55b70c3221c4289d7031 (diff)
downloadcore-bb3f9ce0aaebffd859dcaff07d73523482e5efd2.tar.gz
core-bb3f9ce0aaebffd859dcaff07d73523482e5efd2.tar.bz2
core-bb3f9ce0aaebffd859dcaff07d73523482e5efd2.zip
libcutils: don't build for Windows.
Change-Id: Ice07f892a346bbba2ed6bfdcddf7222799e76f9d
Diffstat (limited to 'libcutils')
-rw-r--r--libcutils/Android.mk56
1 files changed, 22 insertions, 34 deletions
diff --git a/libcutils/Android.mk b/libcutils/Android.mk
index 3ca544f04..158315020 100644
--- a/libcutils/Android.mk
+++ b/libcutils/Android.mk
@@ -17,27 +17,22 @@ LOCAL_PATH := $(my-dir)
include $(CLEAR_VARS)
commonSources := \
- hashmap.c \
- atomic.c.arm \
- native_handle.c \
- config_utils.c \
- load_file.c \
- strlcpy.c \
- open_memstream.c \
- strdup16to8.c \
- strdup8to16.c \
- record_stream.c \
- process_name.c \
- threads.c \
- sched_policy.c \
- iosched_policy.c \
- str_parms.c \
- fs_config.c
-
-# some files must not be compiled when building against Mingw
-# they correspond to features not used by our host development tools
-# which are also hard or even impossible to port to native Win32
-nonWindowsSources := \
+ hashmap.c \
+ atomic.c.arm \
+ native_handle.c \
+ config_utils.c \
+ load_file.c \
+ strlcpy.c \
+ open_memstream.c \
+ strdup16to8.c \
+ strdup8to16.c \
+ record_stream.c \
+ process_name.c \
+ threads.c \
+ sched_policy.c \
+ iosched_policy.c \
+ str_parms.c \
+ fs_config.c \
fs.c \
multiuser.c \
socket_inaddr_any_server.c \
@@ -48,7 +43,7 @@ nonWindowsSources := \
socket_network_client.c \
sockets.c \
-nonWindowsHostSources := \
+hostSources := \
ashmem-host.c \
trace-host.c
@@ -56,24 +51,18 @@ nonWindowsHostSources := \
# Shared and static library for host
# ========================================================
LOCAL_MODULE := libcutils
-LOCAL_SRC_FILES := $(commonSources) dlmalloc_stubs.c
-LOCAL_SRC_FILES_darwin := $(nonWindowsSources) $(nonWindowsHostSources)
-LOCAL_SRC_FILES_linux := $(nonWindowsSources) $(nonWindowsHostSources)
+LOCAL_SRC_FILES := $(commonSources) $(hostSources) dlmalloc_stubs.c
LOCAL_STATIC_LIBRARIES := liblog
-LOCAL_CFLAGS_darwin := -Werror -Wall -Wextra
-LOCAL_CFLAGS_linux := -Werror -Wall -Wextra
+LOCAL_CFLAGS := -Werror -Wall -Wextra
LOCAL_MULTILIB := both
-LOCAL_MODULE_HOST_OS := darwin linux windows
+LOCAL_MODULE_HOST_OS := darwin linux
include $(BUILD_HOST_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := libcutils
-LOCAL_SRC_FILES := $(commonSources) dlmalloc_stubs.c
-LOCAL_SRC_FILES_darwin := $(nonWindowsSources) $(nonWindowsHostSources)
-LOCAL_SRC_FILES_linux := $(nonWindowsSources) $(nonWindowsHostSources)
+LOCAL_SRC_FILES := $(commonSources) $(hostSources) dlmalloc_stubs.c
LOCAL_SHARED_LIBRARIES := liblog
-LOCAL_CFLAGS_darwin := -Werror -Wall -Wextra
-LOCAL_CFLAGS_linux := -Werror -Wall -Wextra
+LOCAL_CFLAGS := -Werror -Wall -Wextra
LOCAL_MULTILIB := both
include $(BUILD_HOST_SHARED_LIBRARY)
@@ -85,7 +74,6 @@ include $(BUILD_HOST_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := libcutils
LOCAL_SRC_FILES := $(commonSources) \
- $(nonWindowsSources) \
android_reboot.c \
ashmem-dev.c \
debugger.c \