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
1c2e3fc6
Commit
1c2e3fc6
authored
Feb 16, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makedep: Add support for winebuild --data-only option.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1662af11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
19 deletions
+31
-19
makedep.c
tools/makedep.c
+31
-19
No files found.
tools/makedep.c
View file @
1c2e3fc6
...
...
@@ -197,6 +197,7 @@ struct makefile
int
native_unix_lib
;
int
disabled
;
int
use_msvcrt
;
int
data_only
;
int
is_cross
;
int
is_win16
;
int
is_exe
;
...
...
@@ -3139,35 +3140,45 @@ static void output_module( struct makefile *make )
struct
strarray
all_libs
=
empty_strarray
;
struct
strarray
dep_libs
=
empty_strarray
;
struct
strarray
imports
=
make
->
imports
;
c
har
*
module_name
=
strmake
(
"%s%s"
,
make
->
module
,
make
->
is_cross
?
""
:
dll_ext
)
;
c
onst
char
*
module_name
=
make
->
module
;
const
char
*
debug_file
;
const
char
*
delay_load
=
delay_load_flag
;
char
*
spec_file
=
NULL
;
unsigned
int
i
;
if
(
!
make
->
is_exe
)
spec_file
=
src_dir_path
(
make
,
replace_extension
(
make
->
module
,
".dll"
,
".spec"
));
if
(
!
strarray_exists
(
&
make
->
extradllflags
,
"-nodefaultlibs"
))
imports
=
add_default_imports
(
make
,
imports
);
strarray_addall
(
&
all_libs
,
add_import_libs
(
make
,
&
dep_libs
,
make
->
delayimports
,
1
,
make
->
is_cross
));
strarray_addall
(
&
all_libs
,
add_import_libs
(
make
,
&
dep_libs
,
imports
,
0
,
make
->
is_cross
));
if
(
!
make
->
use_msvcrt
)
if
(
!
make
->
data_only
)
{
strarray_addall
(
&
all_libs
,
get_expanded_make_var_array
(
make
,
"EXTRALIBS"
));
strarray_addall
(
&
all_libs
,
libs
);
}
if
(
*
dll_ext
&&
!
make
->
is_cross
&&
!
make
->
data_only
)
module_name
=
strmake
(
"%s%s"
,
make
->
module
,
dll_ext
);
if
(
!
make
->
is_cross
&&
*
dll_ext
)
delay_load
=
"-Wl,-delayload,"
;
if
(
delay_load
)
{
for
(
i
=
0
;
i
<
make
->
delayimports
.
count
;
i
++
)
strarray_add
(
&
all_libs
,
strmake
(
"%s%s%s"
,
delay_load
,
make
->
delayimports
.
str
[
i
],
strchr
(
make
->
delayimports
.
str
[
i
],
'.'
)
?
""
:
".dll"
));
if
(
!
strarray_exists
(
&
make
->
extradllflags
,
"-nodefaultlibs"
))
imports
=
add_default_imports
(
make
,
imports
);
strarray_addall
(
&
all_libs
,
add_import_libs
(
make
,
&
dep_libs
,
make
->
delayimports
,
1
,
make
->
is_cross
));
strarray_addall
(
&
all_libs
,
add_import_libs
(
make
,
&
dep_libs
,
imports
,
0
,
make
->
is_cross
));
if
(
!
make
->
use_msvcrt
)
{
strarray_addall
(
&
all_libs
,
get_expanded_make_var_array
(
make
,
"EXTRALIBS"
));
strarray_addall
(
&
all_libs
,
libs
);
}
if
(
!
make
->
is_cross
&&
*
dll_ext
)
delay_load
=
"-Wl,-delayload,"
;
if
(
delay_load
)
{
for
(
i
=
0
;
i
<
make
->
delayimports
.
count
;
i
++
)
strarray_add
(
&
all_libs
,
strmake
(
"%s%s%s"
,
delay_load
,
make
->
delayimports
.
str
[
i
],
strchr
(
make
->
delayimports
.
str
[
i
],
'.'
)
?
""
:
".dll"
));
}
}
strarray_add
(
&
make
->
all_targets
,
module_name
);
if
(
make
->
is_cross
)
if
(
make
->
data_only
)
add_install_rule
(
make
,
make
->
module
,
module_name
,
strmake
(
"d%s/%s"
,
*
dll_ext
?
pe_dir
:
"$(dlldir)"
,
module_name
));
else
if
(
make
->
is_cross
)
add_install_rule
(
make
,
make
->
module
,
module_name
,
strmake
(
"c%s/%s"
,
pe_dir
,
module_name
));
else
if
(
*
dll_ext
)
add_install_rule
(
make
,
make
->
module
,
module_name
,
strmake
(
"p%s/%s"
,
so_dir
,
module_name
));
...
...
@@ -3524,7 +3535,7 @@ static void output_programs( struct makefile *make )
output_filenames_obj_dir
(
make
,
objs
);
output_filenames
(
deps
);
output
(
"
\n
"
);
output
(
"
\t
%s$(CC) -o $@"
,
cmd_prefix
(
"CC"
));
output
(
"
\t
%s$(CC) -o $@"
,
cmd_prefix
(
"CC
LD
"
));
output_filenames_obj_dir
(
make
,
objs
);
output_filenames
(
all_libs
);
output_filename
(
"$(LDFLAGS)"
);
...
...
@@ -3713,7 +3724,7 @@ static void output_sources( struct makefile *make )
else
if
(
make
->
module
)
{
output_module
(
make
);
if
(
*
dll_ext
&&
!
make
->
is_cross
)
output_fake_module
(
make
);
if
(
*
dll_ext
&&
!
make
->
is_cross
&&
!
make
->
data_only
)
output_fake_module
(
make
);
if
(
make
->
unixlib
)
output_unix_lib
(
make
);
if
(
make
->
importlib
)
output_import_lib
(
make
);
}
...
...
@@ -4141,6 +4152,7 @@ static void load_sources( struct makefile *make )
make
->
disabled
=
make
->
obj_dir
&&
strarray_exists
(
&
disabled_dirs
,
make
->
obj_dir
);
make
->
is_win16
=
strarray_exists
(
&
make
->
extradllflags
,
"-m16"
);
make
->
data_only
=
strarray_exists
(
&
make
->
extradllflags
,
"-Wb,--data-only"
);
make
->
use_msvcrt
=
(
make
->
module
||
make
->
testdll
||
make
->
is_win16
)
&&
!
strarray_exists
(
&
make
->
extradllflags
,
"-mcygwin"
);
make
->
is_exe
=
strarray_exists
(
&
make
->
extradllflags
,
"-mconsole"
)
||
...
...
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