Home | History | Annotate | Download | only in core

Lines Matching defs:host

16 # These definitions contain a few host-specific functions. I.e. they are
22 # Function : host-path
24 # Returns : file path, as understood by the host file system
25 # Usage : $(call host-path,<path>)
31 host-path = $(if $(strip $1),$(call cygwin-to-host-path,$1))
33 host-path = $1
37 # Function : host-rm
39 # Usage : $(call host-rm,<files>)
40 # Rationale: This function expands to the host-specific shell command used
44 host-rm = \
48 host-rm = rm -f $1
52 # Function : host-rmdir
54 # Usage : $(call host-rm,<files>)
55 # Rationale: This function expands to the host-specific shell command used
59 host-rmdir = \
63 host-rmdir = rm -rf $1
67 # Function : host-mkdir
69 # Usage : $(call host-mkdir,<path>
70 # Rationale: This function expands to the host-specific shell command used
74 host-mkdir = md $(subst /,\,"$1") >NUL 2>NUL || rem
76 host-mkdir = mkdir -p $1
80 # Function : host-cp
83 # Usage : $(call host-cp,<src-file>,<dst-file>)
84 # Rationale: This function expands to the host-specific shell command used
88 host-cp = copy /b/y $(subst /,\,"$1" "$2") > NUL
90 host-cp = cp -f $1 $2
94 # Function : host-mv
97 # Usage : $(call host-mv,<src-file>,<dst-file>)
98 # Rationale: This function expands to the host-specific shell command used
102 host-mv = move /y $(subst /,\,"$1" "$2") > NUL
104 host-mv = mv -f $1 $2
108 # Function : host-install
111 # Usage : $(call host-install,<src-file>,<dst-file>)
112 # Rationale: This function expands to the host-specific shell command used
117 host-install = copy /b/y $(subst /,\,"$1" "$2") > NUL
119 host-install = install -p $1 $2
123 # Function : host-echo-build-step
126 # Usage : ---->|$(call host-echo-build-step,Compile) ....other text...
127 # Rationale: This function expands to the host-specific shell command used
130 host-echo-build-step = @ $(HOST_ECHO) [$1] $(call left-justify-quoted-15,$2):
133 # Function : host-c-includes
136 # Usage : $(call host-c-includes,<paths>)
142 host-c-includes = $(patsubst %,-I%,$(call host-path,$1))
144 host-c-includes = $(1:%=-I%)
148 # Function : host-copy-if-differ
151 # Usage : $(call host-copy-if-differ,<src-file>,<dst-file>)
156 host-copy-if-differ = $(HOST_CMP) -s $1 $2 > NUL || copy /b/y $(subst /,\,"$1" "$2") > NUL
158 host-copy-if-differ = $(HOST_CMP) -s $1 $2 > /dev/null 2>&1 || cp -f $1 $2
163 # Function : host-path-is-absolute
165 # Usage : $(call host-path-is-absolute,<path>)
167 # absolute on the host filesystem.
189 host-path-is-absolute = $(call windows-path-is-absolute,$1)
191 host-path-is-absolute = $(if $(filter /%,$1),true)
194 -test-host-path-is-absolute.relative-paths = \
195 $(call test-expect,,$(call host-path-is-absolute,foo))\
196 $(call test-expect,,$(call host-path-is-absolute,foo/bar))\
197 $(call test-expect,,$(call host-path-is-absolute,.))\
198 $(call test-expect,,$(call host-path-is-absolute,..))
200 -test-host-path-is-absolute.absolute-paths = \
201 $(call test-expect,true,$(call host-path-is-absolute,/))\
202 $(call test-expect,true,$(call host-path-is-absolute,/foo))\
203 $(call test-expect,true,$(call host-path-is-absolute,/foo/bar))\
204 $(call test-expect,true,$(call host-path-is-absolute,//foo))\
205 $(call test-expect,true,$(call host-path-is-absolute,/.))
207 -test-host-path-is-asbolute.windows-relative-paths = \
213 -test-host-path-is-asbolute.windows-absolute-paths = \