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
0d66be89
Commit
0d66be89
authored
Jul 19, 2002
by
Jon Griffiths
Committed by
Alexandre Julliard
Jul 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update output for recent build changes.
parent
63a9e11e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
27 deletions
+32
-27
output.c
tools/winedump/output.c
+32
-27
No files found.
tools/winedump/output.c
View file @
0d66be89
/*
* Code generation functions
*
* Copyright 2000 Jon Griffiths
* Copyright 2000
-2002
Jon Griffiths
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -51,15 +51,8 @@ void output_spec_preamble (void)
puts
(
"Creating .spec preamble"
);
fprintf
(
specfile
,
"# Generated from %s by winedump
\n
name %s
\n
"
"type win32
\n
init %s_Init
\n\n
import kernel32.dll
\n
"
"import ntdll.dll
\n
"
,
globals
.
input_name
,
OUTPUT_DLL_NAME
,
OUTPUT_UC_DLL_NAME
);
if
(
globals
.
forward_dll
)
fprintf
(
specfile
,
"#import %s.dll
\n
"
,
globals
.
forward_dll
);
fprintf
(
specfile
,
"
\n\n
debug_channels (%s)
\n\n
"
,
OUTPUT_DLL_NAME
);
"# Generated from %s by winedump
\n
init %s_Init
\n\n
"
,
globals
.
input_name
,
OUTPUT_UC_DLL_NAME
);
}
...
...
@@ -439,11 +432,21 @@ void output_makefile (void)
fprintf
(
makefile
,
"# Generated from %s by winedump.
\n
TOPSRCDIR = @top_srcdir@
\n
"
"TOPOBJDIR = ../..
\n
SRCDIR = @srcdir@
\n
VPATH = @srcdir@
\n
"
"MODULE = %s
\n
EXTRALIBS = $(LIBUNICODE)
\n\n
"
"LDDLLFLAGS = @LDDLLFLAGS@
\n
SYMBOLFILE = $(MODULE).tmp.o
\n\n
"
"MODULE = %s
\n
"
,
globals
.
input_name
,
OUTPUT_DLL_NAME
);
fprintf
(
makefile
,
"IMPORTS = user32 advapi32 kernel32 ntdll"
);
if
(
globals
.
forward_dll
)
fprintf
(
makefile
,
" %s"
,
globals
.
forward_dll
);
fprintf
(
makefile
,
"
\n
EXTRALIBS = $(LIBUNICODE)
\n\n
LDDLLFLAGS = @LDDLLFLAGS@
\n
"
"SYMBOLFILE = $(MODULE).tmp.o
\n\n
"
"C_SRCS =
\\\n\t
%s_main.c
\n\n
@MAKE_DLL_RULES@
\n\n
### Dependencies:"
,
globals
.
input_name
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
);
OUTPUT_DLL_NAME
);
if
(
globals
.
forward_dll
)
fprintf
(
specfile
,
"#import %s.dll
\n
"
,
globals
.
forward_dll
);
fclose
(
makefile
);
}
...
...
@@ -475,20 +478,21 @@ void output_install_script (void)
"cp %s_main.c $1/dlls/%s
\n
cp %s_dll.h $1/dlls/%s
\n
"
"cp Makefile.in $1/dlls/%s/Makefile.in
\n
echo Copied DLL files
\n\n
"
"cd $1
\n\n
sed '/dlls
\\
/"
"x11drv
\\
/Makefile/{G;s/$/dlls
\\
/%s
\\
/Makefile/;}' configure.
in
"
" >t.tmp
\n
mv -f t.tmp configure.
in
\n
echo Patched configure.in
\n\n
"
"sed '/all:/{G;s/$/
\\
^
lib%s.so
\\\\
/;}'"
"x11drv
\\
/Makefile/{G;s/$/dlls
\\
/%s
\\
/Makefile/;}' configure.
ac
"
" >t.tmp
\n
mv -f t.tmp configure.
ac
\n
echo Patched configure.ac
\n\n
"
"sed '/all:/{G;s/$/
\\
^
%s.dll$(DLLEXT)
\\\\
/;}'"
" dlls/Makefile.in| tr ^
\\\\
t >t.tmp
\n
"
"sed '/SUBDIRS =/{G;s/$/
\\
^%s
\\\\
/;}' t.tmp | tr ^
\\\\
t >t.tmp2"
"
\n
sed '/Map library name /{G;s/$/^
\\
$(RM)
\\
$
\\
@
\\
&
\\
&
\\
$
\\
"
"(LN_S
\\
) %s
\\
/lib%s.
\\
$(LIBEXT)
\\
$
\\
@/;}' t.tmp2 | tr ^
\\\\
t"
" > t.tmp
\n
sed '/Map library name /{G;s/$/lib%s.
\\
$(LIBEXT): "
"%s
\\
/lib%s.
\\
$(LIBEXT)/;}' t.tmp > t.tmp2
\n
sed '/dll "
"dependencies/{G;s/$/^
\\
@cd %s
\\
&
\\
&
\\
$(MAKE) lib%s.
\\
$(LIBEXT)"
"/;}' t.tmp2 | tr ^
\\\\
t > t.tmp
\n
sed '/dll "
"dependencies/{G;s/$/%s
\\
/lib%s.
\\
$(LIBEXT)
\\
: libkernel32."
"
\\
$(LIBEXT) libntdll.
\\
$(LIBEXT)/;}' t.tmp > t.tmp2
\n
"
"mv -f t.tmp2 dlls/Makefile.in
\n
rm -f t.tmp
\n
echo Patched dlls/"
"sed '/BASEDIRS =/{G;s/$/
\\
^%s
\\\\
/;}' t.tmp | tr ^
\\\\
t >t.tmp2"
"
\n
sed '/Map symlink name /{G;s/$/^
\\
$(RM)
\\
$
\\
@
\\
&
\\
&
\\
$
\\
"
"(LN_S
\\
) %s
\\
/%s.dll
\\
$(DLLEXT)
\\
$
\\
@/;}' t.tmp2 | tr ^
\\\\
t"
" > t.tmp
\n
sed '/Map symlink name /{G;s/$/%s.dll
\\
$(DLLEXT): "
"%s
\\
/%s.dll
\\
$(DLLEXT)/;}' t.tmp > t.tmp2
\n
sed '/all dependencies"
"/{G;s/$/%s
\\
/__install__: %s.dll$(DLLEXT)/;}' t.tmp2 > t.tmp
\n
"
"sed '/dll dependencies/{G;s/$/%s: user32.dll
\\
$(DLLEXT) "
"kernel32.dll
\\
$(DLLEXT) ntdll.dll
\\
$(DLLEXT) advapi32.dll"
"
\\
$(DLLEXT)/;}' t.tmp > t.tmp2
\n\n
sed '/Map library name "
"/{G;s/$/%s
\\
/%s.dll
\\
$(DLLEXT): %s/;}' t.tmp2 >t.tmp
\n
"
"mv -f t.tmp dlls/Makefile.in
\n
rm -f t.tmp2
\n
echo Patched dlls/"
"Makefile.in
\n\n
echo
\n
echo ...done.
\n
echo Run
\\
'autoconf
\\
', "
"
\\
'./configure
\\
' then
\\
'make
\\
' to rebuild Wine
\n\n
"
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
...
...
@@ -496,7 +500,8 @@ void output_install_script (void)
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
);
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
,
OUTPUT_DLL_NAME
);
fclose
(
install_file
);
snprintf
(
cmd
,
sizeof
(
cmd
),
"chmod a+x %s_install"
,
OUTPUT_DLL_NAME
);
...
...
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