Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
272d2404
Commit
272d2404
authored
Mar 15, 2003
by
Jon Griffiths
Committed by
Alexandre Julliard
Mar 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Output a dummy function for linking.
Define __WINE_USE_NATIVE_HEADERS for tests that need to care. Change the debug information format to prevent winedbg from crashing.
parent
7c6ebddd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
msvcmaker
tools/winapi/msvcmaker
+21
-5
No files found.
tools/winapi/msvcmaker
View file @
272d2404
...
@@ -349,7 +349,8 @@ $wine_test_dsp_files{"wineruntests.dsp"}{imports} = [];
...
@@ -349,7 +349,8 @@ $wine_test_dsp_files{"wineruntests.dsp"}{imports} = [];
$wine_test_dsp_files
{
"winetest.dsp"
}{
files
}
=
[
$wine_test_dsp_files
{
"winetest.dsp"
}{
files
}
=
[
'include/wine/exception.h'
,
'include/wine/exception.h'
,
'include/wine/test.h'
,
'include/wine/test.h'
,
'include/wine/unicode.h'
'include/wine/unicode.h'
,
'winetest.c'
];
];
$wine_test_dsp_files
{
"winetest.dsp"
}{
imports
}
=
[]
;
$wine_test_dsp_files
{
"winetest.dsp"
}{
imports
}
=
[]
;
...
@@ -625,10 +626,10 @@ sub _generate_dsp {
...
@@ -625,10 +626,10 @@ sub _generate_dsp {
my
@defines
;
my
@defines
;
if
(
$debug
)
{
if
(
$debug
)
{
if
(
$lib
||
$exe
)
{
if
(
$lib
||
$exe
)
{
print
OUT
"# ADD BASE CPP /nologo /W3 /Gm /GX /Z
I
/Od"
;
print
OUT
"# ADD BASE CPP /nologo /W3 /Gm /GX /Z
i
/Od"
;
@defines
=
(
qw(WIN32 _DEBUG _MBCS _LIB)
);
@defines
=
(
qw(WIN32 _DEBUG _MBCS _LIB)
);
}
else
{
}
else
{
print
OUT
"# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Z
I
/Od"
;
print
OUT
"# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Z
i
/Od"
;
@defines
=
(
qw(WIN32 _DEBUG _WINDOWS _MBCS _USRDLL)
,
(
"\U${project}\E_EXPORTS"
));
@defines
=
(
qw(WIN32 _DEBUG _WINDOWS _MBCS _USRDLL)
,
(
"\U${project}\E_EXPORTS"
));
}
}
}
else
{
}
else
{
...
@@ -654,10 +655,10 @@ sub _generate_dsp {
...
@@ -654,10 +655,10 @@ sub _generate_dsp {
my
@defines2
;
my
@defines2
;
if
(
$debug
)
{
if
(
$debug
)
{
if
(
$lib
)
{
if
(
$lib
)
{
print
OUT
"# ADD CPP /nologo /MTd /W3 /Gm /GX /Z
I
/Od"
;
print
OUT
"# ADD CPP /nologo /MTd /W3 /Gm /GX /Z
i
/Od"
;
@defines2
=
qw(WIN32 _DEBUG _WINDOWS _MBCS _LIB)
;
@defines2
=
qw(WIN32 _DEBUG _WINDOWS _MBCS _LIB)
;
}
else
{
}
else
{
print
OUT
"# ADD CPP /nologo /MTd /W3 /Gm /GX /Z
I
/Od"
;
print
OUT
"# ADD CPP /nologo /MTd /W3 /Gm /GX /Z
i
/Od"
;
@defines2
=
qw(_DEBUG WIN32 _WINDOWS _MBCS _USRDLL)
;
@defines2
=
qw(_DEBUG WIN32 _WINDOWS _MBCS _USRDLL)
;
}
}
}
else
{
}
else
{
...
@@ -675,6 +676,9 @@ sub _generate_dsp {
...
@@ -675,6 +676,9 @@ sub _generate_dsp {
push
@defines2
,
"_\U${project}\E_"
;
push
@defines2
,
"_\U${project}\E_"
;
push
@defines2
,
qw(__WINESRC__)
if
$project
!~
/^(?:wine(?:build|test)|.*?_test)$/
;
push
@defines2
,
qw(__WINESRC__)
if
$project
!~
/^(?:wine(?:build|test)|.*?_test)$/
;
push
@defines2
,
qw(__WINE_USE_MSVCRT)
;
push
@defines2
,
qw(__WINE_USE_MSVCRT)
;
if
(
$msvc_headers
)
{
push
@defines2
,
qw(__WINE_USE_NATIVE_HEADERS)
;
}
my
$output_dir2
=
$output_dir
;
my
$output_dir2
=
$output_dir
;
$output_dir
=~
s/\\/\\\\/g
;
$output_dir
=~
s/\\/\\\\/g
;
push
@defines2
,
"__WINETEST_OUTPUT_DIR=\\\"$output_dir\\\""
;
push
@defines2
,
"__WINETEST_OUTPUT_DIR=\\\"$output_dir\\\""
;
...
@@ -1211,6 +1215,18 @@ sub _generate_runtests_c {
...
@@ -1211,6 +1215,18 @@ sub _generate_runtests_c {
print
OUT
"}\n"
;
print
OUT
"}\n"
;
}
}
if
(
$options
->
winetest
)
{
replace_file
(
"$wine_dir/winetest.c"
,
\&
_generate_winetest_c
);
}
sub
_generate_winetest_c
{
local
*
OUT
=
shift
;
print
OUT
"/* Automatically generated file; DO NOT EDIT!! */\n\n"
;
print
OUT
"/* Force the linker to generate a .lib file */\n"
;
print
OUT
"void __wine_dummy_lib_function()\n{\n}\n\n"
;
}
if
(
$options
->
wine
)
{
if
(
$options
->
wine
)
{
my
$config_h
=
"include/config.h"
;
my
$config_h
=
"include/config.h"
;
...
...
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