[DEV] better management of the Mac binary generation an Other
This commit is contained in:
parent
fa06553c5e
commit
77caff070b
@ -9,6 +9,9 @@
|
|||||||
## General setup.
|
## General setup.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
|
# show for windows : http://benjamin.smedbergs.us/pymake/
|
||||||
|
|
||||||
|
|
||||||
# Make sure SHELL is correctly set
|
# Make sure SHELL is correctly set
|
||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
|
|
||||||
|
@ -702,8 +702,7 @@ endif
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
## Commands for running gcc to link an executable.
|
## Commands for running gcc to link an executable.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
ifneq ("$(TARGET_OS)","MacOs")
|
define transform-o-to-executable-mac
|
||||||
define transform-o-to-executable
|
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
@echo "Executable (mac): $(PRIVATE_MODULE) ==> $(call path-from-top,$@)"
|
@echo "Executable (mac): $(PRIVATE_MODULE) ==> $(call path-from-top,$@)"
|
||||||
$(call check-pwd-is-top-dir)
|
$(call check-pwd-is-top-dir)
|
||||||
@ -719,7 +718,7 @@ $(Q)$(TARGET_CXX) \
|
|||||||
$(TARGET_GLOBAL_LDLIBS)
|
$(TARGET_GLOBAL_LDLIBS)
|
||||||
$(call strip-executable)
|
$(call strip-executable)
|
||||||
endef
|
endef
|
||||||
else
|
|
||||||
define transform-o-to-executable
|
define transform-o-to-executable
|
||||||
@mkdir -p $(dir $@)
|
@mkdir -p $(dir $@)
|
||||||
@echo "Executable: $(PRIVATE_MODULE) ==> $(call path-from-top,$@)"
|
@echo "Executable: $(PRIVATE_MODULE) ==> $(call path-from-top,$@)"
|
||||||
@ -742,7 +741,7 @@ $(Q)$(TARGET_CXX) \
|
|||||||
$(TARGET_GLOBAL_LDLIBS)
|
$(TARGET_GLOBAL_LDLIBS)
|
||||||
$(call strip-executable)
|
$(call strip-executable)
|
||||||
endef
|
endef
|
||||||
endif
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
## Commands for copying files.
|
## Commands for copying files.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -97,10 +97,13 @@ endif
|
|||||||
ifeq ("$(LOCAL_MODULE_CLASS)","EXECUTABLE")
|
ifeq ("$(LOCAL_MODULE_CLASS)","EXECUTABLE")
|
||||||
|
|
||||||
include $(BUILD_RULES)
|
include $(BUILD_RULES)
|
||||||
|
ifeq ("$(TARGET_OS)","MacOs")
|
||||||
|
$(LOCAL_BUILD_MODULE): $(all_objects) $(all_libraries)
|
||||||
|
$(transform-o-to-executable-mac)
|
||||||
|
else
|
||||||
$(LOCAL_BUILD_MODULE): $(all_objects) $(all_libraries)
|
$(LOCAL_BUILD_MODULE): $(all_objects) $(all_libraries)
|
||||||
$(transform-o-to-executable)
|
$(transform-o-to-executable)
|
||||||
|
endif
|
||||||
copy_to_staging := 1
|
copy_to_staging := 1
|
||||||
|
|
||||||
endif
|
endif
|
||||||
@ -117,6 +120,22 @@ $(LOCAL_BUILD_MODULE):
|
|||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
## Package Generation.
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
ifeq ("$(LOCAL_MODULE_CLASS)","PACKAGE")
|
||||||
|
|
||||||
|
include $(BUILD_RULES)
|
||||||
|
|
||||||
|
$(LOCAL_BUILD_MODULE)-pkg: $(LOCAL_BUILD_MODULE)
|
||||||
|
$(transform-staging-to-package)
|
||||||
|
|
||||||
|
copy_to_staging := 1
|
||||||
|
|
||||||
|
|
||||||
|
endif
|
||||||
###############################################################################
|
###############################################################################
|
||||||
## Files to copy.
|
## Files to copy.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user