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
7c5761ed
Commit
7c5761ed
authored
Nov 11, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: Ignore the target option.
Nothing in resource files depends on the pointer size. Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6ebcc54a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
35 deletions
+4
-35
makedep.c
tools/makedep.c
+0
-1
wrc.c
tools/wrc/wrc.c
+4
-29
wrc.man.in
tools/wrc/wrc.man.in
+0
-5
No files found.
tools/makedep.c
View file @
7c5761ed
...
@@ -2697,7 +2697,6 @@ static void output_source_rc( struct makefile *make, struct incl_file *source, c
...
@@ -2697,7 +2697,6 @@ static void output_source_rc( struct makefile *make, struct incl_file *source, c
output
(
"
\n
"
);
output
(
"
\n
"
);
output
(
"
\t
%s%s -u -o $@"
,
cmd_prefix
(
"WRC"
),
tools_path
(
make
,
"wrc"
)
);
output
(
"
\t
%s%s -u -o $@"
,
cmd_prefix
(
"WRC"
),
tools_path
(
make
,
"wrc"
)
);
if
(
make
->
is_win16
)
output_filename
(
"-m16"
);
if
(
make
->
is_win16
)
output_filename
(
"-m16"
);
else
output_filenames
(
target_flags
);
output_filename
(
"--nostdinc"
);
output_filename
(
"--nostdinc"
);
if
(
po_dir
)
output_filename
(
strmake
(
"--po-dir=%s"
,
po_dir
));
if
(
po_dir
)
output_filename
(
strmake
(
"--po-dir=%s"
,
po_dir
));
output_filenames
(
defines
);
output_filenames
(
defines
);
...
...
tools/wrc/wrc.c
View file @
7c5761ed
...
@@ -50,20 +50,19 @@
...
@@ -50,20 +50,19 @@
static
const
char
usage
[]
=
static
const
char
usage
[]
=
"Usage: wrc [options...] [infile[.rc|.res]]
\n
"
"Usage: wrc [options...] [infile[.rc|.res]]
\n
"
" -b, --target=TARGET Specify target CPU and platform when cross-compiling
\n
"
" -D, --define id[=val] Define preprocessor identifier id=val
\n
"
" -D, --define id[=val] Define preprocessor identifier id=val
\n
"
" --debug=nn Set debug level to 'nn'
\n
"
" --debug=nn Set debug level to 'nn'
\n
"
" -E Preprocess only
\n
"
" -E Preprocess only
\n
"
" --endianness=e Set output byte-order e={n[ative], l[ittle], b[ig]}
\n
"
" --endianness=e Set output byte-order e={n[ative], l[ittle], b[ig]}
\n
"
" (win32 only; default is "
ENDIAN
"-endian)
\n
"
" (win32 only; default is "
ENDIAN
"-endian)
\n
"
" -F TARGET
Synonym for -b
for compatibility with windres
\n
"
" -F TARGET
Ignored,
for compatibility with windres
\n
"
" -fo FILE Synonym for -o for compatibility with windres
\n
"
" -fo FILE Synonym for -o for compatibility with windres
\n
"
" -h, --help Prints this summary
\n
"
" -h, --help Prints this summary
\n
"
" -i, --input=FILE The name of the input file
\n
"
" -i, --input=FILE The name of the input file
\n
"
" -I, --include-dir=PATH Set include search dir to path (multiple -I allowed)
\n
"
" -I, --include-dir=PATH Set include search dir to path (multiple -I allowed)
\n
"
" -J, --input-format=FORMAT The input format (either `rc' or `rc16')
\n
"
" -J, --input-format=FORMAT The input format (either `rc' or `rc16')
\n
"
" -l, --language=LANG Set default language to LANG (default is neutral {0, 0})
\n
"
" -l, --language=LANG Set default language to LANG (default is neutral {0, 0})
\n
"
" -m16
, -m32, -m64 Build for 16-bit, 32-bit resp. 64-bit platforms
\n
"
" -m16
Build a 16-bit resource file
\n
"
" --nls-dir=DIR Directory containing the NLS codepage mappings
\n
"
" --nls-dir=DIR Directory containing the NLS codepage mappings
\n
"
" --no-use-temp-file Ignored for compatibility with windres
\n
"
" --no-use-temp-file Ignored for compatibility with windres
\n
"
" --nostdinc Disables searching the standard include path
\n
"
" --nostdinc Disables searching the standard include path
\n
"
...
@@ -147,8 +146,6 @@ int utf8_input = 0;
...
@@ -147,8 +146,6 @@ int utf8_input = 0;
int
check_utf8
=
1
;
/* whether to check for valid utf8 */
int
check_utf8
=
1
;
/* whether to check for valid utf8 */
static
int
pointer_size
=
sizeof
(
void
*
);
static
int
verify_translations_mode
;
static
int
verify_translations_mode
;
static
char
*
output_name
;
/* The name given by the -o option */
static
char
*
output_name
;
/* The name given by the -o option */
...
@@ -317,22 +314,6 @@ static int load_file( const char *input_name, const char *output_name )
...
@@ -317,22 +314,6 @@ static int load_file( const char *input_name, const char *output_name )
return
ret
;
return
ret
;
}
}
static
void
set_target
(
const
char
*
target
)
{
char
*
p
,
*
cpu
=
xstrdup
(
target
);
/* target specification is in the form CPU-MANUFACTURER-OS or CPU-MANUFACTURER-KERNEL-OS */
if
(
!
(
p
=
strchr
(
cpu
,
'-'
)))
error
(
"Invalid target specification '%s'
\n
"
,
target
);
*
p
=
0
;
if
(
!
strcmp
(
cpu
,
"amd64"
)
||
!
strcmp
(
cpu
,
"x86_64"
)
||
!
strcmp
(
cpu
,
"ia64"
)
||
!
strcmp
(
cpu
,
"aarch64"
)
||
!
strcmp
(
cpu
,
"powerpc64"
)
||
!
strcmp
(
cpu
,
"powerpc64le"
))
pointer_size
=
8
;
else
pointer_size
=
4
;
free
(
cpu
);
}
static
void
init_argv0_dir
(
const
char
*
argv0
)
static
void
init_argv0_dir
(
const
char
*
argv0
)
{
{
#ifndef _WIN32
#ifndef _WIN32
...
@@ -424,7 +405,6 @@ static void option_callback( int optc, char *optarg )
...
@@ -424,7 +405,6 @@ static void option_callback( int optc, char *optarg )
break
;
break
;
case
'b'
:
case
'b'
:
case
'F'
:
case
'F'
:
set_target
(
optarg
);
break
;
break
;
case
'h'
:
case
'h'
:
printf
(
usage
);
printf
(
usage
);
...
@@ -450,8 +430,7 @@ static void option_callback( int optc, char *optarg )
...
@@ -450,8 +430,7 @@ static void option_callback( int optc, char *optarg )
break
;
break
;
case
'm'
:
case
'm'
:
if
(
!
strcmp
(
optarg
,
"16"
))
win32
=
0
;
if
(
!
strcmp
(
optarg
,
"16"
))
win32
=
0
;
else
if
(
!
strcmp
(
optarg
,
"32"
))
{
win32
=
1
;
pointer_size
=
4
;
}
else
win32
=
1
;
else
if
(
!
strcmp
(
optarg
,
"64"
))
{
win32
=
1
;
pointer_size
=
8
;
}
break
;
break
;
case
'f'
:
case
'f'
:
if
(
*
optarg
!=
'o'
)
error
(
"Unknown option: -f%s
\n
"
,
optarg
);
if
(
*
optarg
!=
'o'
)
error
(
"Unknown option: -f%s
\n
"
,
optarg
);
...
@@ -506,11 +485,7 @@ int main(int argc,char *argv[])
...
@@ -506,11 +485,7 @@ int main(int argc,char *argv[])
strarray_addall
(
&
input_files
,
strarray_addall
(
&
input_files
,
parse_options
(
argc
,
argv
,
short_options
,
long_options
,
0
,
option_callback
));
parse_options
(
argc
,
argv
,
short_options
,
long_options
,
0
,
option_callback
));
if
(
win32
)
if
(
win32
)
wpp_add_cmdline_define
(
"_WIN32=1"
);
{
wpp_add_cmdline_define
(
"_WIN32=1"
);
if
(
pointer_size
==
8
)
wpp_add_cmdline_define
(
"_WIN64=1"
);
}
/* If we do need to search standard includes, add them to the path */
/* If we do need to search standard includes, add them to the path */
if
(
stdinc
)
if
(
stdinc
)
...
...
tools/wrc/wrc.man.in
View file @
7c5761ed
...
@@ -21,11 +21,6 @@ specified with \fB-o\fR, then \fBwrc\fR will write the output to
...
@@ -21,11 +21,6 @@ specified with \fB-o\fR, then \fBwrc\fR will write the output to
no inputfile was given.
no inputfile was given.
.SH OPTIONS
.SH OPTIONS
.TP
.TP
.BI \-b,\ --target= cpu-manufacturer\fR[\fI\fB-\fIkernel\fR]\fB-\fIos
Specify the target CPU and platform on which the generated code will
be built. The target specification is in the standard autoconf format
as returned by \fBconfig.sub\fR.
.TP
.I \fB\-D\fR, \fB\-\-define\fR=\fIid\fR[\fB=\fIval\fR]
.I \fB\-D\fR, \fB\-\-define\fR=\fIid\fR[\fB=\fIval\fR]
Define preprocessor identifier \fIid\fR to (optionally) value \fIval\fR.
Define preprocessor identifier \fIid\fR to (optionally) value \fIval\fR.
See also
See also
...
...
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