make: Build Battleye bridge using makedep rules.

CW-Bug-Id: #25631
This commit is contained in:
Paul Gofman 2025-07-03 16:11:24 -06:00
parent 65f52400f2
commit 34d1cde2a3

View File

@ -724,32 +724,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