Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
build
Commits
636c1c4a
Commit
636c1c4a
authored
9 years ago
by
Elliott Hughes
Browse files
Options
Download
Email Patches
Plain Diff
Clean up Mac OS hacks in acp slightly.
Change-Id: I7cba3a345cd8907ae050961cc4f173003ac90f39
parent
b11bf3f7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
13 deletions
+6
-13
libs/host/Android.mk
libs/host/Android.mk
+1
-1
libs/host/CopyFile.c
libs/host/CopyFile.c
+4
-3
tools/acp/Android.mk
tools/acp/Android.mk
+1
-8
tools/atree/Android.mk
tools/atree/Android.mk
+0
-1
No files found.
libs/host/Android.mk
View file @
636c1c4a
...
...
@@ -5,11 +5,11 @@ LOCAL_SRC_FILES:= \
CopyFile.c
LOCAL_CFLAGS
:=
-Werror
-Wall
LOCAL_CFLAGS_darwin
+=
-DMACOSX_RSRC
LOCAL_MODULE
:=
libhost
LOCAL_MODULE_HOST_OS
:=
darwin linux windows
LOCAL_C_INCLUDES
:=
$(LOCAL_PATH)
/include
LOCAL_EXPORT_C_INCLUDE_DIRS
:=
$(LOCAL_PATH)
/include
LOCAL_CXX_STL
:=
none
# acp uses libhost, so we can't use
...
...
This diff is collapsed.
Click to expand it.
libs/host/CopyFile.c
View file @
636c1c4a
...
...
@@ -68,8 +68,8 @@ static bool isSourceNewer(const struct stat* pSrcStat, const struct stat* pDstSt
static
bool
isHiresMtime
(
const
struct
stat
*
pSrcStat
)
{
#if defined(_WIN32)
return
0
;
#elif defined(
MACOSX_RSRC
)
return
0
;
#elif defined(
__APPLE__
)
return
pSrcStat
->
st_mtimespec
.
tv_nsec
>
0
;
#else
return
pSrcStat
->
st_mtim
.
tv_nsec
>
0
;
...
...
@@ -295,7 +295,8 @@ static int copyRegular(const char* src, const char* dst, const struct stat* pSrc
if
(
copyResult
!=
0
)
return
-
1
;
#ifdef MACOSX_RSRC
#if defined(__APPLE__)
// Copy Mac OS X resource forks too.
{
char
*
srcRsrcName
=
NULL
;
char
*
dstRsrcName
=
NULL
;
...
...
This diff is collapsed.
Click to expand it.
tools/acp/Android.mk
View file @
636c1c4a
...
...
@@ -3,20 +3,13 @@
# Custom version of cp.
LOCAL_PATH
:=
$(
call
my-dir
)
include
$(CLEAR_VARS)
LOCAL_ADDITIONAL_DEPENDENCIES
:=
$(LOCAL_PATH)
/Android.mk
LOCAL_SRC_FILES
:=
\
acp.c
ifeq
($(HOST_OS),darwin)
LOCAL_CFLAGS
+=
-DMACOSX_RSRC
endif
ifeq
($(HOST_OS),linux)
endif
LOCAL_STATIC_LIBRARIES
:=
libhost
LOCAL_C_INCLUDES
:=
build/libs/host/include
LOCAL_MODULE
:=
acp
LOCAL_ACP_UNAVAILABLE
:=
true
LOCAL_CXX_STL
:=
none
...
...
This diff is collapsed.
Click to expand it.
tools/atree/Android.mk
View file @
636c1c4a
...
...
@@ -12,7 +12,6 @@ LOCAL_SRC_FILES := \
LOCAL_STATIC_LIBRARIES
:=
\
libhost
LOCAL_C_INCLUDES
:=
build/libs/host/include
LOCAL_MODULE
:=
atree
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment