diff options
| author | Raphael <raphael@google.com> | 2009-05-26 13:23:23 -0700 |
|---|---|---|
| committer | Raphael <raphael@google.com> | 2009-05-26 13:23:23 -0700 |
| commit | f3cdf37276576295e8998fabc735ab07898389d8 (patch) | |
| tree | a62c69e7a1d3d2e8a7bfdbb532f6585a7e647341 /libcutils | |
| parent | cd95bf3ea31bbe87dd6ac91c8b41f688095caec4 (diff) | |
| download | system_core-f3cdf37276576295e8998fabc735ab07898389d8.tar.gz system_core-f3cdf37276576295e8998fabc735ab07898389d8.tar.bz2 system_core-f3cdf37276576295e8998fabc735ab07898389d8.zip | |
Don't compile abort_socket.c for host targets. It is only intended to run on Linux targets.
Diffstat (limited to 'libcutils')
| -rw-r--r-- | libcutils/Android.mk | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcutils/Android.mk b/libcutils/Android.mk index 285e1952..6754a74a 100644 --- a/libcutils/Android.mk +++ b/libcutils/Android.mk @@ -17,7 +17,6 @@ LOCAL_PATH := $(my-dir) include $(CLEAR_VARS) commonSources := \ - abort_socket.c \ array.c \ hashmap.c \ atomic.c \ @@ -45,22 +44,23 @@ commonHostSources := \ # 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 -WITH_MINGW := +WINDOWS_HOST_ONLY := ifeq ($(HOST_OS),windows) ifeq ($(strip $(USE_CYGWIN)),) - WITH_MINGW := 1 + WINDOWS_HOST_ONLY := 1 endif endif # USE_MINGW is defined when we build against Mingw on Linux ifneq ($(strip $(USE_MINGW)),) - WITH_MINGW := 1 + WINDOWS_HOST_ONLY := 1 endif -ifeq ($(WITH_MINGW),1) +ifeq ($(WINDOWS_HOST_ONLY),1) commonSources += \ uio.c else commonSources += \ + abort_socket.c \ mspace.c \ selector.c \ tztime.c \ |
