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
a2d88ab3
Commit
a2d88ab3
authored
May 30, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Use winegcc to build the crosstests too.
parent
ad6279de
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
52 deletions
+9
-52
configure
configure
+3
-44
configure.ac
configure.ac
+1
-1
Maketest.rules.in
dlls/Maketest.rules.in
+5
-7
No files found.
configure
View file @
a2d88ab3
...
...
@@ -693,8 +693,8 @@ X_PRE_LIBS
X_CFLAGS
XMKMF
LIBPTHREAD
CROSSTARGETFLAGS
CROSSTEST
CROSSWINDRES
CROSSCC
CARBONLIB
COREAUDIO
...
...
@@ -8199,49 +8199,6 @@ fi
done
test
-n
"
$DLLTOOL
"
||
DLLTOOL
=
"false"
for
ac_prog
in
$host_cpu
-pc-mingw32-windres
i586-mingw32msvc-windres i386-mingw32msvc-windres i686-mingw32-windres i586-mingw32-windres i486-mingw32-windres i386-mingw32-windres mingw32-windres i686-pc-mingw32-windres mingw-windres
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set
dummy
$ac_prog
;
ac_word
=
$2
{
$as_echo
"
$as_me
:
$LINENO
: checking for
$ac_word
"
>
&5
$as_echo_n
"checking for
$ac_word
... "
>
&6
;
}
if
test
"
${
ac_cv_prog_CROSSWINDRES
+set
}
"
=
set
;
then
$as_echo_n
"(cached) "
>
&6
else
if
test
-n
"
$CROSSWINDRES
"
;
then
ac_cv_prog_CROSSWINDRES
=
"
$CROSSWINDRES
"
# Let the user override the test.
else
as_save_IFS
=
$IFS
;
IFS
=
$PATH_SEPARATOR
for
as_dir
in
$PATH
do
IFS
=
$as_save_IFS
test
-z
"
$as_dir
"
&&
as_dir
=
.
for
ac_exec_ext
in
''
$ac_executable_extensions
;
do
if
{
test
-f
"
$as_dir
/
$ac_word$ac_exec_ext
"
&&
$as_test_x
"
$as_dir
/
$ac_word$ac_exec_ext
"
;
}
;
then
ac_cv_prog_CROSSWINDRES
=
"
$ac_prog
"
$as_echo
"
$as_me
:
$LINENO
: found
$as_dir
/
$ac_word$ac_exec_ext
"
>
&5
break
2
fi
done
done
IFS
=
$as_save_IFS
fi
fi
CROSSWINDRES
=
$ac_cv_prog_CROSSWINDRES
if
test
-n
"
$CROSSWINDRES
"
;
then
{
$as_echo
"
$as_me
:
$LINENO
: result:
$CROSSWINDRES
"
>
&5
$as_echo
"
$CROSSWINDRES
"
>
&6
;
}
else
{
$as_echo
"
$as_me
:
$LINENO
: result: no"
>
&5
$as_echo
"no"
>
&6
;
}
fi
test
-n
"
$CROSSWINDRES
"
&&
break
done
test
-n
"
$CROSSWINDRES
"
||
CROSSWINDRES
=
"false"
for
ac_prog
in
$host_cpu
-pc-mingw32-ar
i586-mingw32msvc-ar i386-mingw32msvc-ar i686-mingw32-ar i586-mingw32-ar i486-mingw32-ar i386-mingw32-ar mingw32-ar i686-pc-mingw32-ar mingw-ar
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
...
...
@@ -8289,6 +8246,8 @@ test -n "$MINGWAR" || MINGWAR="false"
then
CROSSTEST
=
"
\$
(CROSSTEST)"
CROSSTARGETFLAGS
=
"-b
`
expr
$CROSSCC
:
'\(.*\)-gcc'
`
"
fi
fi
...
...
configure.ac
View file @
a2d88ab3
...
...
@@ -679,11 +679,11 @@ if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll"
then
WINE_CHECK_MINGW_PROG(CROSSCC,gcc,false)
WINE_CHECK_MINGW_PROG(DLLTOOL,dlltool,false)
WINE_CHECK_MINGW_PROG(CROSSWINDRES,windres,false)
WINE_CHECK_MINGW_PROG(MINGWAR,ar,false)
if test "$CROSSCC" != "false"
then
AC_SUBST(CROSSTEST,"\$(CROSSTEST)")
AC_SUBST(CROSSTARGETFLAGS,"-b `expr $CROSSCC : '\(.*\)-gcc'`")
fi
fi
...
...
dlls/Maketest.rules.in
View file @
a2d88ab3
...
...
@@ -22,9 +22,8 @@ ALL_LIBS = $(IMPORTS:%=-l%) $(EXTRALIBS) $(LDFLAGS) $(LIBS)
EXTRA_OBJS = testlist.o
CROSSTEST = $(TESTDLL:%.dll=%)_crosstest.exe
CROSSOBJS = $(C_SRCS:.c=.cross.o) $(RC_SRCS:.rc=.res.cross.o) $(BISON_SRCS:.y=.tab.cross.o) $(LEX_SRCS:.l=.yy.cross.o) $(IDL_GEN_C_SRCS:.c=.cross.o) testlist.cross.o
CROSSCC = @CROSSCC@
CROSSWIN
DRES = @CROSSWINDRES@
CROSSWIN
EGCC = $(TOOLSDIR)/tools/winegcc/winegcc @CROSSTARGETFLAGS@ -B$(TOOLSDIR)/tools/winebuild --sysroot=$(TOPOBJDIR)
@MAKE_RULES@
...
...
@@ -48,18 +47,17 @@ $(TESTRESULTS): $(MODULE)$(DLLEXT) ../$(TESTDLL)$(DLLEXT)
# Rules for cross-compiling tests
.SUFFIXES: .cross.o .res.cross.o
CROSSOBJS = $(OBJS:.o=.cross.o) $(RC_SRCS:.rc=.res)
.SUFFIXES: .cross.o
.c.cross.o:
$(CROSSCC) -c $(INCLUDES) $(DEFS) $(CPPFLAGS) $(CFLAGS) -o $@ $<
.res.res.cross.o:
$(CROSSWINDRES) -i $< -o $@
crosstest:: @CROSSTEST@
$(CROSSTEST): $(CROSSOBJS) Makefile.in
$(CROSS
CC) $(CROSSOBJS) -o $@ -L$(DLLDIR) $(IMPORTS:%=-L$(DLLDIR)/%)
$(ALL_LIBS)
$(CROSS
WINEGCC) $(CROSSOBJS) -o $@
$(ALL_LIBS)
$(CROSSOBJS): $(IDL_GEN_HEADERS)
...
...
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