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
dc4a475f
Commit
dc4a475f
authored
Mar 20, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Add rules for rebuilding icons in maintainer mode.
parent
ef7c4a8b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
115 additions
and
2 deletions
+115
-2
Make.rules.in
Make.rules.in
+10
-1
configure
configure
+97
-1
configure.ac
configure.ac
+8
-0
No files found.
Make.rules.in
View file @
dc4a475f
...
...
@@ -53,6 +53,8 @@ MV = mv
LINT = @LINT@
LINTFLAGS = @LINTFLAGS@
FONTFORGE = @FONTFORGE@
RSVG = @RSVG@
ICOTOOL = @ICOTOOL@
INCLUDES = -I$(SRCDIR) -I. -I$(TOPSRCDIR)/include -I$(TOPOBJDIR)/include $(EXTRAINCL)
EXTRACFLAGS = @EXTRACFLAGS@
ALLCFLAGS = $(INCLUDES) $(DEFS) $(DLLFLAGS) $(EXTRACFLAGS) $(CPPFLAGS) $(CFLAGS) $(MODCFLAGS)
...
...
@@ -125,7 +127,7 @@ LINTS = $(C_SRCS:.c=.ln)
# Implicit rules
.SUFFIXES: .mc .rc .mc.rc .res .res.o .spec .spec.o .idl .tlb .h .y .l .tab.c .tab.h .yy.c .ok .sfd .ttf .man.in .man _c.c _i.c _p.c _s.c
.SUFFIXES: .mc .rc .mc.rc .res .res.o .spec .spec.o .idl .tlb .h .y .l .tab.c .tab.h .yy.c .ok .sfd .ttf .man.in .man _c.c _i.c _p.c _s.c
@MAINTAINER_MODE@ .svg .ico
.c.o:
$(CC) -c $(ALLCFLAGS) -o $@ $<
...
...
@@ -184,6 +186,13 @@ LINTS = $(C_SRCS:.c=.ln)
.man.in.man:
LC_ALL=C sed -e 's,@bindir\@,$(bindir),g' -e 's,@dlldir\@,$(dlldir),g' -e 's,@PACKAGE_STRING\@,@PACKAGE_STRING@,g' $< >$@ || ($(RM) $@ && false)
.svg.ico:
$(RSVG) -w 16 -h 16 -f png $< $*-16.png
$(RSVG) -w 32 -h 32 -f png $< $*-32.png
$(RSVG) -w 48 -h 48 -f png $< $*-48.png
$(ICOTOOL) -c -o $@ $*-16.png $*-32.png $*-48.png
$(RM) $*-16.png $*-32.png $*-48.png
# 'all' target first in case the enclosing Makefile didn't define any target
all:
...
...
configure
View file @
dc4a475f
...
...
@@ -704,6 +704,8 @@ LINT
LINTFLAGS
FONTFORGE
PKG_CONFIG
RSVG
ICOTOOL
PRELINK
LIBPTHREAD
XLIB
...
...
@@ -6352,6 +6354,98 @@ fi
done
test
-n
"
$PKG_CONFIG
"
||
PKG_CONFIG
=
"false"
for
ac_prog
in
rsvg
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set
dummy
$ac_prog
;
ac_word
=
$2
{
echo
"
$as_me
:
$LINENO
: checking for
$ac_word
"
>
&5
echo
$ECHO_N
"checking for
$ac_word
...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_prog_RSVG
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
if
test
-n
"
$RSVG
"
;
then
ac_cv_prog_RSVG
=
"
$RSVG
"
# Let the user override the test.
else
as_save_IFS
=
$IFS
;
IFS
=
$PATH_SEPARATOR
for
as_dir
in
$PATH
do
IFS
=
$as_save_IFS
test
-z
"
$as_dir
"
&&
as_dir
=
.
for
ac_exec_ext
in
''
$ac_executable_extensions
;
do
if
{
test
-f
"
$as_dir
/
$ac_word$ac_exec_ext
"
&&
$as_test_x
"
$as_dir
/
$ac_word$ac_exec_ext
"
;
}
;
then
ac_cv_prog_RSVG
=
"
$ac_prog
"
echo
"
$as_me
:
$LINENO
: found
$as_dir
/
$ac_word$ac_exec_ext
"
>
&5
break
2
fi
done
done
IFS
=
$as_save_IFS
fi
fi
RSVG
=
$ac_cv_prog_RSVG
if
test
-n
"
$RSVG
"
;
then
{
echo
"
$as_me
:
$LINENO
: result:
$RSVG
"
>
&5
echo
"
${
ECHO_T
}
$RSVG
"
>
&6
;
}
else
{
echo
"
$as_me
:
$LINENO
: result: no"
>
&5
echo
"
${
ECHO_T
}
no"
>
&6
;
}
fi
test
-n
"
$RSVG
"
&&
break
done
test
-n
"
$RSVG
"
||
RSVG
=
"false"
for
ac_prog
in
icotool
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set
dummy
$ac_prog
;
ac_word
=
$2
{
echo
"
$as_me
:
$LINENO
: checking for
$ac_word
"
>
&5
echo
$ECHO_N
"checking for
$ac_word
...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_prog_ICOTOOL
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
if
test
-n
"
$ICOTOOL
"
;
then
ac_cv_prog_ICOTOOL
=
"
$ICOTOOL
"
# Let the user override the test.
else
as_save_IFS
=
$IFS
;
IFS
=
$PATH_SEPARATOR
for
as_dir
in
$PATH
do
IFS
=
$as_save_IFS
test
-z
"
$as_dir
"
&&
as_dir
=
.
for
ac_exec_ext
in
''
$ac_executable_extensions
;
do
if
{
test
-f
"
$as_dir
/
$ac_word$ac_exec_ext
"
&&
$as_test_x
"
$as_dir
/
$ac_word$ac_exec_ext
"
;
}
;
then
ac_cv_prog_ICOTOOL
=
"
$ac_prog
"
echo
"
$as_me
:
$LINENO
: found
$as_dir
/
$ac_word$ac_exec_ext
"
>
&5
break
2
fi
done
done
IFS
=
$as_save_IFS
fi
fi
ICOTOOL
=
$ac_cv_prog_ICOTOOL
if
test
-n
"
$ICOTOOL
"
;
then
{
echo
"
$as_me
:
$LINENO
: result:
$ICOTOOL
"
>
&5
echo
"
${
ECHO_T
}
$ICOTOOL
"
>
&6
;
}
else
{
echo
"
$as_me
:
$LINENO
: result: no"
>
&5
echo
"
${
ECHO_T
}
no"
>
&6
;
}
fi
test
-n
"
$ICOTOOL
"
&&
break
done
test
-n
"
$ICOTOOL
"
||
ICOTOOL
=
"false"
if
test
"
${
enable_maintainer_mode
+set
}
"
=
set
then
if
test
"
$RSVG
"
=
"false"
;
then
wine_warnings
=
"
$wine_warnings
|rsvg is missing, icons can't be rebuilt."
;
fi
if
test
"
$ICOTOOL
"
=
"false"
;
then
wine_warnings
=
"
$wine_warnings
|icotool is missing, icons can't be rebuilt."
;
fi
fi
case
$host_cpu
in
*
i[3456789]86
*
)
...
...
@@ -23180,6 +23274,8 @@ LINT!$LINT$ac_delim
LINTFLAGS!
$LINTFLAGS$ac_delim
FONTFORGE!
$FONTFORGE$ac_delim
PKG_CONFIG!
$PKG_CONFIG$ac_delim
RSVG!
$RSVG$ac_delim
ICOTOOL!
$ICOTOOL$ac_delim
PRELINK!
$PRELINK$ac_delim
LIBPTHREAD!
$LIBPTHREAD$ac_delim
XLIB!
$XLIB$ac_delim
...
...
@@ -23249,7 +23345,7 @@ LIBOBJS!$LIBOBJS$ac_delim
LTLIBOBJS!
$LTLIBOBJS$ac_delim
_ACEOF
if
test
`
sed
-n
"s/.*
$ac_delim
\$
/X/p"
conf
$$
subs.sed |
grep
-c
X
`
=
7
4
;
then
if
test
`
sed
-n
"s/.*
$ac_delim
\$
/X/p"
conf
$$
subs.sed |
grep
-c
X
`
=
7
6
;
then
break
elif
$ac_last_try
;
then
{
{
echo
"
$as_me
:
$LINENO
: error: could not make
$CONFIG_STATUS
"
>
&5
...
...
configure.ac
View file @
dc4a475f
...
...
@@ -188,6 +188,14 @@ AC_SUBST(LINTFLAGS)
dnl Check for various programs
AC_CHECK_PROGS(FONTFORGE, fontforge, false)
AC_CHECK_PROGS(PKG_CONFIG, pkg-config, false)
AC_CHECK_PROGS(RSVG, rsvg, false)
AC_CHECK_PROGS(ICOTOOL, icotool, false)
if test "${enable_maintainer_mode+set}" = set
then
if test "$RSVG" = "false"; then WINE_WARNING([rsvg is missing, icons can't be rebuilt.]); fi
if test "$ICOTOOL" = "false"; then WINE_WARNING([icotool is missing, icons can't be rebuilt.]); fi
fi
case $host_cpu in
*i[[3456789]]86*)
...
...
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