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
79c85234
Commit
79c85234
authored
Nov 12, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Generate rules for building the libwine import library.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fd88ff95
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
26 deletions
+18
-26
configure
configure
+2
-13
configure.ac
configure.ac
+2
-13
makedep.c
tools/makedep.c
+14
-0
No files found.
configure
View file @
79c85234
...
...
@@ -7986,23 +7986,12 @@ fi
LIBWINE_RULES
=
"
SHAREDLIB = libwine.dll
IMPORTLIB = libwine.a
INSTALL_LIB = libwine.dll
INSTALL_DEV = libwine.a
libwine_LDFLAGS = -shared
\$
(srcdir)/wine.def
EXTRA_TARGETS = libwine.a
all: libwine.a
libwine.a:
\$
(srcdir)/wine.def
\$
(DLLTOOL) -l
\$
@ -d
\$
(srcdir)/wine.def
libwine.dll:
\$
(srcdir)/wine.def
install install-dev:: libwine.a
\$
(INSTALL_DATA) libwine.a
\$
(DESTDIR)
\$
(libdir)/libwine.a
uninstall::
\$
(RM)
\$
(DESTDIR)
\$
(libdir)/libwine.a
"
;;
...
...
configure.ac
View file @
79c85234
...
...
@@ -719,23 +719,12 @@ case $host_os in
AC_SUBST(LIBWINE_RULES,["
SHAREDLIB = libwine.dll
IMPORTLIB = libwine.a
INSTALL_LIB = libwine.dll
INSTALL_DEV = libwine.a
libwine_LDFLAGS = -shared \$(srcdir)/wine.def
EXTRA_TARGETS = libwine.a
all: libwine.a
libwine.a: \$(srcdir)/wine.def
\$(DLLTOOL) -l \$@ -d \$(srcdir)/wine.def
libwine.dll: \$(srcdir)/wine.def
install install-dev:: libwine.a
\$(INSTALL_DATA) libwine.a \$(DESTDIR)\$(libdir)/libwine.a
uninstall::
\$(RM) \$(DESTDIR)\$(libdir)/libwine.a
"])
;;
...
...
tools/makedep.c
View file @
79c85234
...
...
@@ -145,6 +145,7 @@ static const char *fontforge;
static
const
char
*
convert
;
static
const
char
*
rsvg
;
static
const
char
*
icotool
;
static
const
char
*
dlltool
;
struct
makefile
{
...
...
@@ -2612,6 +2613,18 @@ static struct strarray output_sources( const struct makefile *make, struct strar
strarray_addall
(
&
all_targets
,
names
);
}
if
(
make
->
importlib
&&
!
make
->
module
)
/* stand-alone import lib (for libwine) */
{
char
*
def_file
=
replace_extension
(
make
->
importlib
,
".a"
,
".def"
);
if
(
!
strncmp
(
def_file
,
"lib"
,
3
))
def_file
+=
3
;
output
(
"%s: %s
\n
"
,
obj_dir_path
(
make
,
make
->
importlib
),
src_dir_path
(
make
,
def_file
));
output
(
"
\t
%s -l $@ -d %s
\n
"
,
dlltool
,
src_dir_path
(
make
,
def_file
));
add_install_rule
(
make
,
install_rules
,
make
->
importlib
,
make
->
importlib
,
strmake
(
"d$(libdir)/%s"
,
make
->
importlib
));
strarray_add
(
&
all_targets
,
make
->
importlib
);
}
if
(
make
->
testdll
)
{
char
*
testmodule
=
replace_extension
(
make
->
testdll
,
".dll"
,
"_test.exe"
);
...
...
@@ -3252,6 +3265,7 @@ int main( int argc, char *argv[] )
convert
=
get_expanded_make_variable
(
top_makefile
,
"CONVERT"
);
rsvg
=
get_expanded_make_variable
(
top_makefile
,
"RSVG"
);
icotool
=
get_expanded_make_variable
(
top_makefile
,
"ICOTOOL"
);
dlltool
=
get_expanded_make_variable
(
top_makefile
,
"DLLTOOL"
);
if
(
root_src_dir
&&
!
strcmp
(
root_src_dir
,
"."
))
root_src_dir
=
NULL
;
if
(
tools_dir
&&
!
strcmp
(
tools_dir
,
"."
))
tools_dir
=
NULL
;
...
...
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