mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-25 16:54:19 +01:00
build: Build vkd3d-shader with cross-compilation rules.
This commit is contained in:
parent
587f86fb9d
commit
04bf8f150e
2 changed files with 6 additions and 15 deletions
|
|
@ -2,9 +2,10 @@
|
|||
# $(1): lowercase package name
|
||||
# $(2): uppercase package name
|
||||
# $(3): 32/64, build type
|
||||
# $(4): CROSS/<empty>, cross compile
|
||||
#
|
||||
define create-rules-autoconf
|
||||
$(call create-rules-common,$(1),$(2),$(3))
|
||||
$(call create-rules-common,$(1),$(2),$(3),$(4))
|
||||
|
||||
ifeq ($(CONTAINER),1)
|
||||
$$(OBJ)/.$(1)-pre-configure: $$($(2)_SRC)/configure.ac
|
||||
|
|
@ -20,6 +21,7 @@ $$(OBJ)/.$(1)-configure$(3): $$(OBJ)/.$(1)-pre-configure
|
|||
$$($(2)_SRC)/configure $(--quiet?) -C \
|
||||
--prefix="$$($(2)_DST$(3))" \
|
||||
--libdir="$$($(2)_DST$(3))/lib$(subst 32,,$(3))" \
|
||||
--host="$$(TARGET_$(4)$(3))" \
|
||||
$$($(2)_ENV$(3)) \
|
||||
$$($(2)_CONFIGURE_ARGS) \
|
||||
$$($(2)_CONFIGURE_ARGS$(3))
|
||||
|
|
@ -36,4 +38,4 @@ $$(OBJ)/.$(1)-build$(3):
|
|||
endif
|
||||
endef
|
||||
|
||||
rules-autoconf = $(call create-rules-autoconf,$(1),$(call toupper,$(1)),$(2))
|
||||
rules-autoconf = $(call create-rules-autoconf,$(1),$(call toupper,$(1)),$(2),$(3))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue