Commit 454fb3c1 authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Generate the list of test binaries from configure.

parent d5addea2
......@@ -223,6 +223,8 @@ dnl Usage: WINE_CONFIG_TEST(dir)
dnl
AC_DEFUN([WINE_CONFIG_TEST],
[m4_pushdef([ac_name],m4_bpatsubst([$1],[.*/\(.*\)/tests$],[\1_test]))dnl
ALL_TEST_BINARIES="$ALL_TEST_BINARIES \\
ac_name.exe"
ALL_WINETEST_DEPENDS="$ALL_WINETEST_DEPENDS
ac_name.exe: \$(TOPOBJDIR)/$1/ac_name.exe$DLLEXT
cp \$(TOPOBJDIR)/$1/ac_name.exe$DLLEXT \$[@] && \$(STRIP) \$[@]
......
......@@ -2108,6 +2108,7 @@ AC_SUBST(ALL_STATIC_LIBS,"")
AC_SUBST(ALL_IMPORT_LIBS,"")
AC_SUBST(ALL_IMPORTLIB_RULES,"")
AC_SUBST(ALL_TEST_DIRS,"")
AC_SUBST(ALL_TEST_BINARIES,"")
AC_SUBST(ALL_PROGRAM_DIRS,"")
AC_SUBST(ALL_PROGRAM_INSTALL_DIRS,"")
AC_SUBST(ALL_PROGRAM_BIN_INSTALL_DIRS,"")
......
......@@ -18,9 +18,7 @@ RC_SRCS = \
SVG_SRCS = winetest.svg
ALL_TEST_DIRS = @ALL_TEST_DIRS@
TESTBINS = $(ALL_TEST_DIRS:%/tests=%_test.exe)
TESTBINS = @ALL_TEST_BINARIES@
TESTRCS = build.rc $(TESTBINS:.exe=.rc)
EXTRA_OBJS = $(TESTRCS:.rc=.res)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment