Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
67828b60
Commit
67828b60
authored
Aug 28, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Build the winetest dependencies in configure instead of make_makefiles.
parent
f5e9a01c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
16 deletions
+34
-16
configure
configure
+17
-1
configure.ac
configure.ac
+14
-0
Makefile.in
programs/winetest/Makefile.in
+0
-0
make_makefiles
tools/make_makefiles
+3
-15
No files found.
configure
View file @
67828b60
...
...
@@ -781,6 +781,7 @@ ALL_TEST_DIRS
ALL_PROGRAM_DIRS
ALL_PROGRAM_INSTALL_DIRS
ALL_PROGRAM_BIN_INSTALL_DIRS
ALL_WINETEST_DEPENDS
LIBOBJS
LTLIBOBJS'
ac_subst_files
=
'MAKE_RULES
...
...
@@ -25648,6 +25649,20 @@ tools/wrc/Makefile: tools/wrc/Makefile.in Make.rules"
ac_config_files
=
"
$ac_config_files
tools/wrc/Makefile"
ALL_WINETEST_DEPENDS
=
"# Test binaries"
for
dir
in
$ALL_TEST_DIRS
do
if
test
"
$dir
"
!=
"
\\
"
then
testname
=
`
expr
$dir
:
'\(.*\)/tests'
`
_test.exe
ALL_WINETEST_DEPENDS
=
"
$ALL_WINETEST_DEPENDS
$testname
:
\$
(DLLDIR)/
$dir
/
$testname
\$
(DLLEXT)
cp
\$
(DLLDIR)/
$dir
/
$testname
\$
(DLLEXT)
\$
@ &&
\$
(STRIP)
\$
@"
fi
done
cat
>
confcache
<<
\
_ACEOF
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
...
...
@@ -26932,11 +26947,12 @@ ALL_TEST_DIRS!$ALL_TEST_DIRS$ac_delim
ALL_PROGRAM_DIRS!
$ALL_PROGRAM_DIRS$ac_delim
ALL_PROGRAM_INSTALL_DIRS!
$ALL_PROGRAM_INSTALL_DIRS$ac_delim
ALL_PROGRAM_BIN_INSTALL_DIRS!
$ALL_PROGRAM_BIN_INSTALL_DIRS$ac_delim
ALL_WINETEST_DEPENDS!
$ALL_WINETEST_DEPENDS$ac_delim
LIBOBJS!
$LIBOBJS$ac_delim
LTLIBOBJS!
$LTLIBOBJS$ac_delim
_ACEOF
if
test
`
sed
-n
"s/.*
$ac_delim
\$
/X/p"
conf
$$
subs.sed |
grep
-c
X
`
=
8
6
;
then
if
test
`
sed
-n
"s/.*
$ac_delim
\$
/X/p"
conf
$$
subs.sed |
grep
-c
X
`
=
8
7
;
then
break
elif
$ac_last_try
;
then
{
{
echo
"
$as_me
:
$LINENO
: error: could not make
$CONFIG_STATUS
"
>
&5
...
...
configure.ac
View file @
67828b60
...
...
@@ -2121,6 +2121,20 @@ WINE_CONFIG_MAKEFILE([tools/winegcc/Makefile],[Make.rules])
WINE_CONFIG_MAKEFILE([tools/wmc/Makefile],[Make.rules])
WINE_CONFIG_MAKEFILE([tools/wrc/Makefile],[Make.rules])
dnl Build dependencies for test files compiled into winetest
AC_SUBST(ALL_WINETEST_DEPENDS,["# Test binaries"])
for dir in $ALL_TEST_DIRS
do
if test "$dir" != "\\"
then
testname=`expr $dir : '\(.*\)/tests'`_test.exe
ALL_WINETEST_DEPENDS="$ALL_WINETEST_DEPENDS
$testname: \$(DLLDIR)/$dir/$testname\$(DLLEXT)
cp \$(DLLDIR)/$dir/$testname\$(DLLEXT) \$@ && \$(STRIP) \$@"
fi
done
AC_OUTPUT
if test "$no_create" = "yes"
...
...
programs/winetest/Makefile.in
View file @
67828b60
This diff is collapsed.
Click to expand it.
tools/make_makefiles
View file @
67828b60
...
...
@@ -218,7 +218,7 @@ sub parse_makefile($)
################################################################
# update the tests list in programs/winetest/
Makefile.in and programs/winetest/
winetest.rc
# update the tests list in programs/winetest/winetest.rc
sub
update_winetest
(@)
{
...
...
@@ -228,18 +228,6 @@ sub update_winetest(@)
{
if
(
$file
=~
/^dlls\/(.*)\/tests\/Makefile/
)
{
push
@tests
,
$1
;
}
}
push
@lines
,
"TESTBINS ="
;
push
@lines
,
map
{
" \\\n\t"
.
$_
.
"_test.exe"
;
}
sort
@tests
;
push
@lines
,
"\n\n"
;
foreach
my
$test
(
sort
@tests
)
{
push
@lines
,
"${test}_test.exe: \$(DLLDIR)/$test/tests/${test}_test.exe\$(DLLEXT)\n"
;
push
@lines
,
"\tcp \$(DLLDIR)/$test/tests/${test}_test.exe\$(DLLEXT) \$\@ && \$(STRIP) \$\@\n"
;
}
push
@lines
,
"\n# Special rules\n"
;
replace_in_file
(
"programs/winetest/Makefile.in"
,
'^TESTBINS\s*='
,
'^# Special rules'
,
@lines
);
replace_in_file
(
"programs/winetest/winetest.rc"
,
' TESTRES '
,
undef
,
map
{
$_
.
"_test.exe TESTRES \""
.
$_
.
"_test.exe\"\n"
;
}
sort
@tests
);
...
...
@@ -285,8 +273,8 @@ sub update_makefiles(@)
push
@lines
,
"WINE_CONFIG_MAKEFILE([$file],[$rules]$args)\n"
;
}
push
@lines
,
"\n
AC_OUTPUT
\n"
;
replace_in_file
(
"configure.ac"
,
'^WINE_CONFIG_MAKERULES'
,
'^
AC_OUTPUT
$'
,
@lines
);
push
@lines
,
"\n
dnl Build dependencies for test files compiled into winetest
\n"
;
replace_in_file
(
"configure.ac"
,
'^WINE_CONFIG_MAKERULES'
,
'^
dnl Build dependencies for test files compiled into winetest
$'
,
@lines
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment