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
845047ee
Commit
845047ee
authored
Oct 23, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: Add some sanity checks in make_makefiles.
parent
3593b659
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
make_makefiles
tools/make_makefiles
+20
-0
No files found.
tools/make_makefiles
View file @
845047ee
...
...
@@ -309,6 +309,10 @@ sub parse_makefile($)
$make
{
$1
}
=
\
@list
;
next
;
}
if
(
/^\s*(TOPSRCDIR|TOPOBJDIR|SRCDIR|VPATH)\s*=\s*(.*)/
)
{
die
"Variable $1 in $file.in is obsolete"
;
}
}
return
%
make
;
}
...
...
@@ -363,6 +367,14 @@ sub update_makefiles(@)
if
(
$rules
eq
$makerules
{
"MAKE_DLL_RULES"
})
{
(
my
$name
=
$file
)
=~
s/^dlls\/(.*)\/Makefile/$1/
;
if
(
$name
=~
/\./
)
{
die
"Invalid MODULE in $file"
unless
$make
{
"MODULE"
}
eq
$name
;
}
else
{
die
"Invalid MODULE in $file"
unless
$make
{
"MODULE"
}
eq
"$name.dll"
;
}
my
$implib
=
$make
{
"IMPORTLIB"
}
||
""
;
my
$implib_srcs
=
defined
(
$make
{
"IMPLIB_SRCS"
})
&&
join
(
" "
,
@
{
$make
{
"IMPLIB_SRCS"
}}
);
$args
.=
","
if
$implib
||
$is_win16
;
...
...
@@ -374,6 +386,14 @@ sub update_makefiles(@)
elsif
(
$rules
eq
$makerules
{
"MAKE_PROG_RULES"
})
{
(
my
$name
=
$file
)
=~
s/^programs\/(.*)\/Makefile/$1/
;
if
(
$name
=~
/\./
)
{
die
"Invalid MODULE in $file"
unless
$make
{
"MODULE"
}
eq
$name
;
}
else
{
die
"Invalid MODULE in $file"
unless
$make
{
"MODULE"
}
eq
"$name.exe"
;
}
my
$install
=
$dont_install
{
$name
}
?
""
:
"install"
;
$install
.=
"bin"
if
$bin_install
{
$name
};
$args
.=
","
if
$is_win16
||
$install
;
...
...
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