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
417b70bf
Commit
417b70bf
authored
Jan 24, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Add rules to update po files from .mc files in maintainer mode.
parent
72921af4
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
54 additions
and
10 deletions
+54
-10
.gitignore
.gitignore
+1
-0
Make.rules.in
Make.rules.in
+8
-4
aclocal.m4
aclocal.m4
+20
-2
configure
configure
+21
-3
configure.ac
configure.ac
+1
-1
make_makefiles
tools/make_makefiles
+3
-0
No files found.
.gitignore
View file @
417b70bf
...
...
@@ -251,6 +251,7 @@ loader/wine-installed
loader/wine-preloader
loader/wine64
loader/wine64-preloader
msg.pot
programs/Makeprog.rules
programs/rpcss/epm.h
programs/rpcss/epm_s.c
...
...
Make.rules.in
View file @
417b70bf
...
...
@@ -26,7 +26,8 @@ IDL_GEN_HEADERS = $(IDL_H_SRCS:.idl=.h) $(IDL_C_SRCS:.idl=.h) $(IDL_I_SRCS:.idl=
CLEAN_FILES = *.o *.a *.so *.ln *.res *.fake *.$(LIBEXT) \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej *.flc core
CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_P_SRCS:%=dlldata.c) \
$(BISON_SRCS:.y=.tab.c) $(BISON_SRCS:.y=.tab.h) $(LEX_SRCS:.l=.yy.c) $(PO_SRCS:%=rsrc.pot)
$(BISON_SRCS:.y=.tab.c) $(BISON_SRCS:.y=.tab.h) $(LEX_SRCS:.l=.yy.c) \
$(PO_SRCS:%=rsrc.pot) $(MC_SRCS:%=msg.pot)
OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o) $(LEX_SRCS:.l=.yy.o) $(IDL_GEN_C_SRCS:.c=.o) \
$(IDL_R_SRCS:.idl=_r.res) $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.res) $(EXTRA_OBJS)
...
...
@@ -59,7 +60,7 @@ filter: dummy
$(FLEX) $(LEXFLAGS) -o$@ $<
.mc.res:
$(LDPATH) $(WMC) -U -O res -o $@ $<
$(LDPATH) $(WMC) -U -O res -
P $(top_srcdir)/po -
o $@ $<
.rc.res:
$(LDPATH) $(WRC) $(RCFLAGS) -o $@ $<
...
...
@@ -176,12 +177,15 @@ install install-lib install-dev uninstall::
# Rules for resources
all: @MAINTAINER_MODE@ $(PO_SRCS:%=rsrc.pot)
all: @MAINTAINER_MODE@ $(PO_SRCS:%=rsrc.pot)
$(MC_SRCS:%=msg.pot)
rsrc.pot: $(WRC)
$(LDPATH) $(WRC) $(RCFLAGS) -O pot -o $@ $(PO_SRCS)
$(MC_SRCS:.mc=.res): $(WMC)
msg.pot: $(WMC)
$(LDPATH) $(WMC) -O pot -o $@ $(MC_SRCS)
$(MC_SRCS:.mc=.res): $(WMC) $(ALL_PO_FILES)
$(RC_SRCS:.rc=.res): $(WRC)
$(PO_SRCS:.rc=.res): $(ALL_PO_FILES)
...
...
aclocal.m4
View file @
417b70bf
...
...
@@ -269,11 +269,20 @@ install-lib:: $ac_dir/Makefile __builddeps__
uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
@cd $ac_dir && \$(MAKE) \$[@]"
if test "x$enable_maintainer_mode" = xyes && wine_fn_has_flag po $ac_flags
if test "x$enable_maintainer_mode" = xyes
then
if wine_fn_has_flag mc $ac_flags
then
wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"$ac_dir/msg.pot: $ac_dir"
fi
if wine_fn_has_flag po $ac_flags
then
wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"$ac_dir/rsrc.pot: $ac_dir"
fi
fi])
if wine_fn_has_flag staticimplib $ac_flags
...
...
@@ -346,12 +355,21 @@ wine_fn_config_program ()
$ac_dir: $ac_dir/Makefile __builddeps__ dummy
@cd $ac_dir && \$(MAKE)"
if test "x$enable_maintainer_mode" = xyes && wine_fn_has_flag po $ac_flags
if test "x$enable_maintainer_mode" = xyes
then
if wine_fn_has_flag mc $ac_flags
then
wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"$ac_dir/msg.pot: $ac_dir"
fi
if wine_fn_has_flag po $ac_flags
then
wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
"$ac_dir/rsrc.pot: $ac_dir"
fi
fi
wine_fn_has_flag install $ac_flags || return
wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
...
...
configure
View file @
417b70bf
...
...
@@ -14529,12 +14529,21 @@ install-lib:: $ac_dir/Makefile __builddeps__
uninstall manpages htmlpages sgmlpages xmlpages::
$ac_dir
/Makefile
@cd
$ac_dir
&&
\$
(MAKE)
\$
@"
if
test
"x
$enable_maintainer_mode
"
=
xyes
&&
wine_fn_has_flag po
$ac_flags
if
test
"x
$enable_maintainer_mode
"
=
xyes
then
if
wine_fn_has_flag mc
$ac_flags
then
wine_fn_append_file ALL_POT_FILES
$ac_dir
/msg.pot
wine_fn_append_rule ALL_MAKEFILE_DEPENDS
\
"
$ac_dir
/msg.pot:
$ac_dir
"
fi
if
wine_fn_has_flag po
$ac_flags
then
wine_fn_append_file ALL_POT_FILES
$ac_dir
/rsrc.pot
wine_fn_append_rule ALL_MAKEFILE_DEPENDS
\
"
$ac_dir
/rsrc.pot:
$ac_dir
"
fi
fi
fi
if
wine_fn_has_flag staticimplib
$ac_flags
...
...
@@ -14610,12 +14619,21 @@ else
$ac_dir
:
$ac_dir
/Makefile __builddeps__ dummy
@cd
$ac_dir
&&
\$
(MAKE)"
if
test
"x
$enable_maintainer_mode
"
=
xyes
&&
wine_fn_has_flag po
$ac_flags
if
test
"x
$enable_maintainer_mode
"
=
xyes
then
if
wine_fn_has_flag mc
$ac_flags
then
wine_fn_append_file ALL_POT_FILES
$ac_dir
/msg.pot
wine_fn_append_rule ALL_MAKEFILE_DEPENDS
\
"
$ac_dir
/msg.pot:
$ac_dir
"
fi
if
wine_fn_has_flag po
$ac_flags
then
wine_fn_append_file ALL_POT_FILES
$ac_dir
/rsrc.pot
wine_fn_append_rule ALL_MAKEFILE_DEPENDS
\
"
$ac_dir
/rsrc.pot:
$ac_dir
"
fi
fi
wine_fn_has_flag
install
$ac_flags
||
return
wine_fn_append_rule ALL_MAKEFILE_DEPENDS
\
...
...
@@ -15004,7 +15022,7 @@ wine_fn_config_dll itss enable_itss
wine_fn_config_test dlls/itss/tests itss_test
wine_fn_config_dll jscript enable_jscript po
wine_fn_config_test dlls/jscript/tests jscript_test
wine_fn_config_dll kernel32 enable_kernel32 implib
wine_fn_config_dll kernel32 enable_kernel32
mc,
implib
wine_fn_config_test dlls/kernel32/tests kernel32_test
wine_fn_config_dll keyboard.drv16 enable_win16
wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
...
...
configure.ac
View file @
417b70bf
...
...
@@ -2533,7 +2533,7 @@ WINE_CONFIG_DLL(itss)
WINE_CONFIG_TEST(dlls/itss/tests)
WINE_CONFIG_DLL(jscript,,[po])
WINE_CONFIG_TEST(dlls/jscript/tests)
WINE_CONFIG_DLL(kernel32,,[implib])
WINE_CONFIG_DLL(kernel32,,[
mc,
implib])
WINE_CONFIG_TEST(dlls/kernel32/tests)
WINE_CONFIG_DLL(keyboard.drv16,enable_win16)
WINE_CONFIG_DLL(krnl386.exe16,enable_win16,[implib],[kernel])
...
...
tools/make_makefiles
View file @
417b70bf
...
...
@@ -96,6 +96,7 @@ my @ignores = (
"*/*/tests/testlist.c"
,
"include/config.h"
,
"include/stamp-h"
,
"msg.pot"
,
"programs/winetest/*_test.exe"
,
"programs/winetest/*_test.rc"
,
"programs/winetest/build.nfo"
,
...
...
@@ -424,6 +425,7 @@ sub update_makefiles(@)
die
"Invalid MODULE in $file"
unless
$make
{
"MODULE"
}
eq
"$name.dll"
;
}
my
$implib
=
$make
{
"IMPORTLIB"
}
||
""
;
push
@flags
,
"mc"
if
defined
$make
{
"MC_SRCS"
};
push
@flags
,
"po"
if
defined
$make
{
"PO_SRCS"
};
push
@flags
,
"implib"
if
$implib
;
push
@flags
,
"staticimplib"
if
defined
(
$make
{
"IMPLIB_SRCS"
});
...
...
@@ -444,6 +446,7 @@ sub update_makefiles(@)
{
die
"Invalid MODULE in $file"
unless
$make
{
"MODULE"
}
eq
"$name.exe"
;
}
push
@flags
,
"mc"
if
defined
$make
{
"MC_SRCS"
};
push
@flags
,
"po"
if
defined
$make
{
"PO_SRCS"
};
push
@flags
,
"install"
unless
$dont_install
{
$name
};
push
@flags
,
"installbin"
if
$bin_install
{
$name
};
...
...
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