mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
build: Do not cross-compile tests if tests are not enabled.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2f082de904
commit
2e4367a470
22
Makefile.am
22
Makefile.am
@ -445,11 +445,18 @@ if HAVE_CROSSTARGET32
|
|||||||
CROSS32_CC = @CROSSCC32@
|
CROSS32_CC = @CROSSCC32@
|
||||||
CROSS32_DLLTOOL = @CROSSTARGET32@-dlltool
|
CROSS32_DLLTOOL = @CROSSTARGET32@-dlltool
|
||||||
CROSS32_IMPLIBS = $(cross_implibs:=.cross32.a)
|
CROSS32_IMPLIBS = $(cross_implibs:=.cross32.a)
|
||||||
CROSS32_EXEFILES = $(vkd3d_cross_tests:=.cross32.exe)
|
CROSS32_EXEFILES =
|
||||||
|
if BUILD_TESTS
|
||||||
|
CROSS32_EXEFILES += $(vkd3d_cross_tests:=.cross32.exe)
|
||||||
|
endif
|
||||||
if BUILD_DEMOS
|
if BUILD_DEMOS
|
||||||
CROSS32_EXEFILES += $(vkd3d_demos:demos/vkd3d-%=demos/%.cross32.exe)
|
CROSS32_EXEFILES += $(vkd3d_demos:demos/vkd3d-%=demos/%.cross32.exe)
|
||||||
endif
|
endif
|
||||||
CROSS32_FILES = $(CROSS32_EXEFILES) tests/shader_runner.cross32.exe
|
|
||||||
|
CROSS32_FILES = $(CROSS32_EXEFILES)
|
||||||
|
if BUILD_TESTS
|
||||||
|
CROSS32_FILES += tests/shader_runner.cross32.exe
|
||||||
|
endif
|
||||||
|
|
||||||
CLEANFILES += $(CROSS32_IMPLIBS) $(CROSS32_FILES)
|
CLEANFILES += $(CROSS32_IMPLIBS) $(CROSS32_FILES)
|
||||||
crosstest32: $(CROSS32_FILES)
|
crosstest32: $(CROSS32_FILES)
|
||||||
@ -479,11 +486,18 @@ if HAVE_CROSSTARGET64
|
|||||||
CROSS64_CC = @CROSSCC64@
|
CROSS64_CC = @CROSSCC64@
|
||||||
CROSS64_DLLTOOL = @CROSSTARGET64@-dlltool
|
CROSS64_DLLTOOL = @CROSSTARGET64@-dlltool
|
||||||
CROSS64_IMPLIBS = $(cross_implibs:=.cross64.a)
|
CROSS64_IMPLIBS = $(cross_implibs:=.cross64.a)
|
||||||
CROSS64_EXEFILES = $(vkd3d_cross_tests:=.cross64.exe)
|
CROSS64_EXEFILES =
|
||||||
|
if BUILD_TESTS
|
||||||
|
CROSS64_EXEFILES += $(vkd3d_cross_tests:=.cross64.exe)
|
||||||
|
endif
|
||||||
if BUILD_DEMOS
|
if BUILD_DEMOS
|
||||||
CROSS64_EXEFILES += $(vkd3d_demos:demos/vkd3d-%=demos/%.cross64.exe)
|
CROSS64_EXEFILES += $(vkd3d_demos:demos/vkd3d-%=demos/%.cross64.exe)
|
||||||
endif
|
endif
|
||||||
CROSS64_FILES = $(CROSS64_EXEFILES) tests/shader_runner.cross64.exe
|
|
||||||
|
CROSS64_FILES = $(CROSS64_EXEFILES)
|
||||||
|
if BUILD_TESTS
|
||||||
|
CROSS64_FILES += tests/shader_runner.cross64.exe
|
||||||
|
endif
|
||||||
|
|
||||||
CLEANFILES += $(CROSS64_IMPLIBS) $(CROSS64_FILES)
|
CLEANFILES += $(CROSS64_IMPLIBS) $(CROSS64_FILES)
|
||||||
crosstest64: $(CROSS64_FILES)
|
crosstest64: $(CROSS64_FILES)
|
||||||
|
@ -165,6 +165,8 @@ AS_IF([test "x$CROSSTARGET32" != "xno" -o "x$CROSSTARGET64" != "xno"],
|
|||||||
[HAVE_CROSSTARGET=yes], [HAVE_CROSSTARGET=no])
|
[HAVE_CROSSTARGET=yes], [HAVE_CROSSTARGET=no])
|
||||||
AS_IF([test $DX_FLAG_doc = 1], [HAVE_DOCS=yes], [HAVE_DOCS=no])
|
AS_IF([test $DX_FLAG_doc = 1], [HAVE_DOCS=yes], [HAVE_DOCS=no])
|
||||||
|
|
||||||
|
AS_IF([test "x$enable_demos" != "xyes" -a "x$enable_tests" = "xno"], [CROSSTARGET64=no CROSSTARGET32=no])
|
||||||
|
|
||||||
AS_ECHO(["
|
AS_ECHO(["
|
||||||
Configuration summary for $PACKAGE $VERSION
|
Configuration summary for $PACKAGE $VERSION
|
||||||
|
|
||||||
@ -180,7 +182,7 @@ AS_ECHO(["
|
|||||||
"])
|
"])
|
||||||
|
|
||||||
AS_IF([test "x$enable_demos" = "xyes"], [AS_ECHO([" Cross-compiling demos: ${HAVE_CROSSTARGET}"])])
|
AS_IF([test "x$enable_demos" = "xyes"], [AS_ECHO([" Cross-compiling demos: ${HAVE_CROSSTARGET}"])])
|
||||||
AS_ECHO([" Cross-compiling tests: ${HAVE_CROSSTARGET}"])
|
AS_IF([test "x$enable_tests" != "xno"], [AS_ECHO([" Cross-compiling tests: ${HAVE_CROSSTARGET}"])])
|
||||||
AS_IF([test "x$CROSSTARGET32" != "xno"], [AS_ECHO([" Using 32-bit cross compiler: $CROSSCC32"])])
|
AS_IF([test "x$CROSSTARGET32" != "xno"], [AS_ECHO([" Using 32-bit cross compiler: $CROSSCC32"])])
|
||||||
AS_IF([test "x$CROSSTARGET64" != "xno"], [AS_ECHO([" Using 64-bit cross compiler: $CROSSCC64"])])
|
AS_IF([test "x$CROSSTARGET64" != "xno"], [AS_ECHO([" Using 64-bit cross compiler: $CROSSCC64"])])
|
||||||
AS_ECHO([])
|
AS_ECHO([])
|
||||||
|
Loading…
Reference in New Issue
Block a user