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
a58f4abc
Commit
a58f4abc
authored
Apr 24, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Allow using EXTRADLLFLAGS instead of APPMODE.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7118bfed
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
9 deletions
+19
-9
Makefile.in
programs/notepad/Makefile.in
+2
-1
Makefile.in
programs/reg/Makefile.in
+2
-1
Makefile.in
programs/regedit/Makefile.in
+2
-1
Makefile.in
programs/taskmgr/Makefile.in
+2
-1
Makefile.in
programs/wordpad/Makefile.in
+2
-1
Makefile.in
programs/xcopy/Makefile.in
+2
-1
make_makefiles
tools/make_makefiles
+7
-3
No files found.
programs/notepad/Makefile.in
View file @
a58f4abc
MODULE
=
notepad.exe
APPMODE
=
-mwindows
-mno-cygwin
IMPORTS
=
comdlg32 shell32 shlwapi user32 gdi32 advapi32
EXTRADLLFLAGS
=
-mwindows
-mno-cygwin
C_SRCS
=
\
dialog.c
\
main.c
...
...
programs/reg/Makefile.in
View file @
a58f4abc
MODULE
=
reg.exe
APPMODE
=
-mconsole
-municode
-mno-cygwin
IMPORTS
=
advapi32
DELAYIMPORTS
=
user32
EXTRADLLFLAGS
=
-mconsole
-municode
-mno-cygwin
C_SRCS
=
\
export.c
\
import.c
\
...
...
programs/regedit/Makefile.in
View file @
a58f4abc
MODULE
=
regedit.exe
APPMODE
=
-mwindows
-municode
-mno-cygwin
IMPORTS
=
advapi32
DELAYIMPORTS
=
shlwapi shell32 comdlg32 comctl32 user32 gdi32
EXTRADLLFLAGS
=
-mwindows
-municode
-mno-cygwin
C_SRCS
=
\
about.c
\
childwnd.c
\
...
...
programs/taskmgr/Makefile.in
View file @
a58f4abc
MODULE
=
taskmgr.exe
APPMODE
=
-mwindows
-mno-cygwin
IMPORTS
=
shell32 shlwapi comctl32 user32 gdi32 advapi32
EXTRADLLFLAGS
=
-mwindows
-mno-cygwin
C_SRCS
=
\
about.c
\
affinity.c
\
...
...
programs/wordpad/Makefile.in
View file @
a58f4abc
MODULE
=
wordpad.exe
APPMODE
=
-mwindows
-mno-cygwin
IMPORTS
=
comdlg32 uuid ole32 shell32 user32 gdi32 advapi32 comctl32
EXTRADLLFLAGS
=
-mwindows
-mno-cygwin
C_SRCS
=
\
olecallback.c
\
print.c
\
...
...
programs/xcopy/Makefile.in
View file @
a58f4abc
MODULE
=
xcopy.exe
APPMODE
=
-mconsole
-municode
-mno-cygwin
IMPORTS
=
shell32 user32
EXTRADLLFLAGS
=
-mconsole
-municode
-mno-cygwin
C_SRCS
=
\
xcopy.c
...
...
tools/make_makefiles
View file @
a58f4abc
...
...
@@ -229,7 +229,7 @@ sub parse_makefile($)
{
die
"Configure substitution is not allowed in $file"
unless
$file
eq
"Makefile"
;
}
if
(
/^\s*(MODULE|IMPORTLIB|TESTDLL|PARENTSRC|APPMODE)\s*=\s*(.*)/
)
if
(
/^\s*(MODULE|IMPORTLIB|TESTDLL|PARENTSRC|APPMODE
|EXTRADLLFLAGS
)\s*=\s*(.*)/
)
{
my
$var
=
$1
;
$make
{
$var
}
=
$2
;
...
...
@@ -438,18 +438,21 @@ sub update_makefiles(@)
elsif
(
defined
(
$make
{
"MODULE"
}))
# dll or program
{
(
my
$name
=
$file
)
=~
s/^(dlls|programs)\/(.*)\/Makefile/$2/
;
my
$dllflags
=
$make
{
"EXTRADLLFLAGS"
}
||
""
;
if
(
defined
$make
{
"APPMODE"
})
{
$dllflags
.=
" "
.
$make
{
"APPMODE"
};
}
die
"MODULE should not be defined in $file"
unless
$file
=~
/^(dlls|programs)\//
;
die
"STATICLIB should not be defined in $file"
if
defined
$make
{
"STATICLIB"
};
die
"Invalid MODULE in $file"
if
$name
=~
/\./
&&
$make
{
"MODULE"
}
ne
$name
;
if
(
$file
=~
/^programs\//
)
{
die
"
APPMODE should be defined in $file"
unless
defined
$make
{
"APPMODE"
}
;
die
"
APPMODE should contain -mconsole or -mwindows in $file"
unless
$make
{
"APPMODE"
}
=~
/-m(console|windows)/
;
die
"
EXTRADLLFLAGS should be defined in $file"
unless
$dllflags
;
die
"
EXTRADLLFLAGS should contain -mconsole or -mwindows in $file"
unless
$dllflags
=~
/-m(console|windows)/
;
die
"Invalid MODULE in $file"
unless
$name
=~
/\./
||
$make
{
"MODULE"
}
eq
"$name.exe"
;
}
else
{
die
"APPMODE should not be defined in $file"
if
defined
$make
{
"APPMODE"
}
;
die
"EXTRADLLFLAGS should not contain -mconsole or -mwindows in $file"
if
$dllflags
=~
/-m(console|windows)/
;
die
"Invalid MODULE in $file"
unless
$name
=~
/\./
||
$make
{
"MODULE"
}
eq
"$name.dll"
;
}
if
(
defined
$make
{
"IMPORTLIB"
})
...
...
@@ -462,6 +465,7 @@ sub update_makefiles(@)
elsif
(
$file
=~
/^tools.*\/Makefile$/
)
{
die
"APPMODE should not be defined in $file"
if
defined
$make
{
"APPMODE"
};
die
"EXTRADLLFLAGS should not be defined in $file"
if
defined
$make
{
"EXTRADLLFLAGS"
};
die
"STATICLIB should not be defined in $file"
if
defined
$make
{
"STATICLIB"
};
$args
=
",,[test \"x\$enable_tools\" = xno]"
;
}
...
...
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