Skip to content

Commit

Permalink
gzdoom: stage host binaries
Browse files Browse the repository at this point in the history
Install host-built binaries to STAGING_DIR_HOSTPKG as HOST_BUILD_DIR gets
cleared and should not be referenced after host build has completed.

Signed-off-by: Daniel Golle <[email protected]>
  • Loading branch information
dangowrt committed Dec 7, 2024
1 parent a3eafcf commit 67c8df3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions games/gzdoom/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,17 @@ endef

define Host/Install
$(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/gzdoom
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/re2c/re2c $(STAGING_DIR_HOSTPKG)/share/gzdoom
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/lemon/lemon $(STAGING_DIR_HOSTPKG)/share/gzdoom
$(INSTALL_DATA) $(HOST_BUILD_DIR)/tools/lemon/lempar.c $(STAGING_DIR_HOSTPKG)/share/gzdoom
$(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/zipdir/zipdir $(STAGING_DIR_HOSTPKG)/share/gzdoom
$(INSTALL_DATA) $(HOST_BUILD_DIR)/ImportExecutables.cmake $(STAGING_DIR_HOSTPKG)/share/gzdoom
$(SED) "s#$(HOST_BUILD_DIR)/tools/re2c/re2c#$(STAGING_DIR_HOSTPKG)/share/gzdoom/re2c#" \
$(STAGING_DIR_HOSTPKG)/share/gzdoom/ImportExecutables.cmake
$(SED) "s#$(HOST_BUILD_DIR)/tools/lemon/lemon#$(STAGING_DIR_HOSTPKG)/share/gzdoom/lemon#" \
$(STAGING_DIR_HOSTPKG)/share/gzdoom/ImportExecutables.cmake
$(SED) "s#$(HOST_BUILD_DIR)/tools/zipdir/zipdir#$(STAGING_DIR_HOSTPKG)/share/gzdoom/zipdir#" \
$(STAGING_DIR_HOSTPKG)/share/gzdoom/ImportExecutables.cmake
endef

define Host/Uninstall
Expand Down

0 comments on commit 67c8df3

Please sign in to comment.