From d77a5fe2b25516d59caac2ea8d64d29f5d88c427 Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Thu, 3 Jul 2025 16:11:24 -0600 Subject: [PATCH] make: Build Battleye bridge using makedep rules. CW-Bug-Id: #25631 --- Makefile.in | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/Makefile.in b/Makefile.in index 92d78ac0..0aedc5f2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -646,32 +646,14 @@ $(OBJ)/.vkd3d-proton-post-source: ## BattlEye Bridge ## -ifneq ($(wildcard $(SRCDIR)/battleye-bridge/.*),) -BATTLEYE_LDFLAGS = -static-libgcc -static-libstdc++ -ldl +ifneq ($(wildcard $(SRCDIR)/battleye-bridge/.*),) BATTLEYE_DEPENDS = wine $(eval $(call rules-source,battleye,$(SRCDIR)/battleye-bridge)) -$(eval $(call rules-winemaker,battleye,i386,beclient.dll)) -$(eval $(call rules-winemaker,battleye,x86_64,beclient_x64.dll)) - -$(OBJ)/.battleye-post-source: - mkdir -p $(BATTLEYE_i386_OBJ) && cp -a $(BATTLEYE_SRC)/beclient.spec $(BATTLEYE_i386_OBJ)/beclient.spec - mkdir -p $(BATTLEYE_x86_64_OBJ) && cp -a $(BATTLEYE_SRC)/beclient.spec $(BATTLEYE_x86_64_OBJ)/beclient_x64.spec - touch $@ - -$(OBJ)/.battleye-x86_64-post-build: - mkdir -p $(OBJ)/dist-battleye/v1 - cp -r $(BATTLEYE_x86_64_DST)/* $(OBJ)/dist-battleye/v1/ - rm -rf $(BATTLEYE_x86_64_DST)/* - touch $@ - -$(OBJ)/.battleye-i386-post-build: - mkdir -p $(OBJ)/dist-battleye/v1 - cp -r $(BATTLEYE_i386_DST)/* $(OBJ)/dist-battleye/v1/ - rm -rf $(BATTLEYE_i386_DST)/* - touch $@ +$(eval $(call rules-makedep,battleye,i386)) +$(eval $(call rules-makedep,battleye,x86_64)) endif