wineopenxr: Build using makedep rules.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon 2023-09-26 18:49:50 +02:00
parent 4e0905bd48
commit 836821d00a
3 changed files with 15 additions and 4 deletions

View file

@ -330,13 +330,11 @@ $(eval $(call rules-cmake,openxr,64))
## Note 32-bit is not supported by SteamVR, so we don't build it. ## Note 32-bit is not supported by SteamVR, so we don't build it.
## ##
WINEOPENXR_LDFLAGS = -lopenxr_loader -ldxgi -lvulkan -ldl WINEOPENXR_LDFLAGS = -lopenxr_loader
WINEOPENXR_DEPENDS = wine openxr WINEOPENXR_DEPENDS = wine openxr
$(eval $(call rules-source,wineopenxr,$(SRCDIR)/wineopenxr)) $(eval $(call rules-source,wineopenxr,$(SRCDIR)/wineopenxr))
# $(eval $(call rules-winemaker,wineopenxr,32,wineopenxr.dll)) $(eval $(call rules-makedep,wineopenxr,64))
$(eval $(call rules-winemaker,wineopenxr,64,wineopenxr.dll))
DIST_WINEOPENXR_JSON64 := $(DIST_PREFIX)/drive_c/openxr/wineopenxr64.json DIST_WINEOPENXR_JSON64 := $(DIST_PREFIX)/drive_c/openxr/wineopenxr64.json
$(WINEOPENXR_SRC)/wineopenxr64.json: wineopenxr $(WINEOPENXR_SRC)/wineopenxr64.json: wineopenxr

9
wineopenxr/Makefile.in Normal file
View file

@ -0,0 +1,9 @@
MODULE = wineopenxr.dll
IMPORTS = advapi32 dxgi vulkan-1
EXTRADLLFLAGS = -mcygwin
EXTRADEFS = -DWINE_NO_LONG_TYPES
C_SRCS = \
openxr.c \
openxr_thunks.c \

View file

@ -43,6 +43,10 @@
#define WINE_XR_ALIGN DECLSPEC_ALIGN #define WINE_XR_ALIGN DECLSPEC_ALIGN
#endif #endif
#ifdef __x86_64__
#define XR_PTR_SIZE 8
#endif
#define XR_TRUE 1 #define XR_TRUE 1
#define XR_FALSE 0 #define XR_FALSE 0
#define XR_MAX_EXTENSION_NAME_SIZE 128 #define XR_MAX_EXTENSION_NAME_SIZE 128