makefiles: Move l_intl.nls to a new nls directory.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
aa76bec241
commit
42a30a693a
@ -28,6 +28,7 @@ datadir = @datadir@
|
|||||||
mandir = @mandir@
|
mandir = @mandir@
|
||||||
includedir = @includedir@
|
includedir = @includedir@
|
||||||
fontdir = ${datadir}/wine/fonts
|
fontdir = ${datadir}/wine/fonts
|
||||||
|
nlsdir = ${datadir}/wine/nls
|
||||||
dlldir = ${libdir}/wine
|
dlldir = ${libdir}/wine
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
|
4
configure
vendored
4
configure
vendored
@ -1714,6 +1714,7 @@ enable_port
|
|||||||
enable_wine
|
enable_wine
|
||||||
enable_wpp
|
enable_wpp
|
||||||
enable_loader
|
enable_loader
|
||||||
|
enable_nls
|
||||||
enable_po
|
enable_po
|
||||||
enable_arp
|
enable_arp
|
||||||
enable_aspnet_regiis
|
enable_aspnet_regiis
|
||||||
@ -21064,6 +21065,7 @@ wine_fn_config_makefile libs/port enable_port
|
|||||||
wine_fn_config_makefile libs/wine enable_wine
|
wine_fn_config_makefile libs/wine enable_wine
|
||||||
wine_fn_config_makefile libs/wpp enable_wpp
|
wine_fn_config_makefile libs/wpp enable_wpp
|
||||||
wine_fn_config_makefile loader enable_loader
|
wine_fn_config_makefile loader enable_loader
|
||||||
|
wine_fn_config_makefile nls enable_nls
|
||||||
wine_fn_config_makefile po enable_po
|
wine_fn_config_makefile po enable_po
|
||||||
wine_fn_config_makefile programs/arp enable_arp
|
wine_fn_config_makefile programs/arp enable_arp
|
||||||
wine_fn_config_makefile programs/aspnet_regiis enable_aspnet_regiis
|
wine_fn_config_makefile programs/aspnet_regiis enable_aspnet_regiis
|
||||||
@ -21250,10 +21252,10 @@ else
|
|||||||
TOP_INSTALL_DEV="$TOP_INSTALL_DEV include"
|
TOP_INSTALL_DEV="$TOP_INSTALL_DEV include"
|
||||||
TOP_INSTALL_LIB="$TOP_INSTALL_LIB \
|
TOP_INSTALL_LIB="$TOP_INSTALL_LIB \
|
||||||
fonts \
|
fonts \
|
||||||
loader/l_intl.nls \
|
|
||||||
loader/wine.inf \
|
loader/wine.inf \
|
||||||
loader/winebus.inf \
|
loader/winebus.inf \
|
||||||
loader/winehid.inf \
|
loader/winehid.inf \
|
||||||
|
nls \
|
||||||
programs/msidb/msidb \
|
programs/msidb/msidb \
|
||||||
programs/msiexec/msiexec \
|
programs/msiexec/msiexec \
|
||||||
programs/notepad/notepad \
|
programs/notepad/notepad \
|
||||||
|
@ -3871,6 +3871,7 @@ WINE_CONFIG_MAKEFILE(libs/port)
|
|||||||
WINE_CONFIG_MAKEFILE(libs/wine)
|
WINE_CONFIG_MAKEFILE(libs/wine)
|
||||||
WINE_CONFIG_MAKEFILE(libs/wpp)
|
WINE_CONFIG_MAKEFILE(libs/wpp)
|
||||||
WINE_CONFIG_MAKEFILE(loader)
|
WINE_CONFIG_MAKEFILE(loader)
|
||||||
|
WINE_CONFIG_MAKEFILE(nls)
|
||||||
WINE_CONFIG_MAKEFILE(po)
|
WINE_CONFIG_MAKEFILE(po)
|
||||||
WINE_CONFIG_MAKEFILE(programs/arp)
|
WINE_CONFIG_MAKEFILE(programs/arp)
|
||||||
WINE_CONFIG_MAKEFILE(programs/aspnet_regiis)
|
WINE_CONFIG_MAKEFILE(programs/aspnet_regiis)
|
||||||
@ -4074,10 +4075,10 @@ else
|
|||||||
TOP_INSTALL_DEV="$TOP_INSTALL_DEV include"
|
TOP_INSTALL_DEV="$TOP_INSTALL_DEV include"
|
||||||
TOP_INSTALL_LIB="$TOP_INSTALL_LIB \
|
TOP_INSTALL_LIB="$TOP_INSTALL_LIB \
|
||||||
fonts \
|
fonts \
|
||||||
loader/l_intl.nls \
|
|
||||||
loader/wine.inf \
|
loader/wine.inf \
|
||||||
loader/winebus.inf \
|
loader/winebus.inf \
|
||||||
loader/winehid.inf \
|
loader/winehid.inf \
|
||||||
|
nls \
|
||||||
programs/msidb/msidb \
|
programs/msidb/msidb \
|
||||||
programs/msiexec/msiexec \
|
programs/msiexec/msiexec \
|
||||||
programs/notepad/notepad \
|
programs/notepad/notepad \
|
||||||
|
@ -316,8 +316,7 @@ static NTSTATUS open_nls_data_file( ULONG type, ULONG id, HANDLE *file )
|
|||||||
static const WCHAR langfmtW[] = {'%','0','4','x',0};
|
static const WCHAR langfmtW[] = {'%','0','4','x',0};
|
||||||
static const WCHAR winedatadirW[] = {'W','I','N','E','D','A','T','A','D','I','R',0};
|
static const WCHAR winedatadirW[] = {'W','I','N','E','D','A','T','A','D','I','R',0};
|
||||||
static const WCHAR winebuilddirW[] = {'W','I','N','E','B','U','I','L','D','D','I','R',0};
|
static const WCHAR winebuilddirW[] = {'W','I','N','E','B','U','I','L','D','D','I','R',0};
|
||||||
static const WCHAR dataprefixW[] = {'\\',0};
|
static const WCHAR dataprefixW[] = {'\\','n','l','s','\\',0};
|
||||||
static const WCHAR buildprefixW[] = {'\\','l','o','a','d','e','r','\\',0};
|
|
||||||
static const WCHAR cpdefaultW[] = {'c','_','%','0','3','d','.','n','l','s',0};
|
static const WCHAR cpdefaultW[] = {'c','_','%','0','3','d','.','n','l','s',0};
|
||||||
static const WCHAR intlW[] = {'l','_','i','n','t','l','.','n','l','s',0};
|
static const WCHAR intlW[] = {'l','_','i','n','t','l','.','n','l','s',0};
|
||||||
static const WCHAR normnfcW[] = {'n','o','r','m','n','f','c','.','n','l','s',0};
|
static const WCHAR normnfcW[] = {'n','o','r','m','n','f','c','.','n','l','s',0};
|
||||||
@ -332,7 +331,7 @@ static NTSTATUS open_nls_data_file( ULONG type, ULONG id, HANDLE *file )
|
|||||||
OBJECT_ATTRIBUTES attr;
|
OBJECT_ATTRIBUTES attr;
|
||||||
UNICODE_STRING nameW, valueW;
|
UNICODE_STRING nameW, valueW;
|
||||||
WCHAR buffer[MAX_PATH], value[10];
|
WCHAR buffer[MAX_PATH], value[10];
|
||||||
const WCHAR *name = NULL, *prefix = buildprefixW;
|
const WCHAR *name = NULL;
|
||||||
KEY_VALUE_PARTIAL_INFORMATION *info;
|
KEY_VALUE_PARTIAL_INFORMATION *info;
|
||||||
|
|
||||||
/* get filename from registry */
|
/* get filename from registry */
|
||||||
@ -413,16 +412,15 @@ static NTSTATUS open_nls_data_file( ULONG type, ULONG id, HANDLE *file )
|
|||||||
if (RtlQueryEnvironmentVariable_U( NULL, &nameW, &valueW ) != STATUS_BUFFER_TOO_SMALL)
|
if (RtlQueryEnvironmentVariable_U( NULL, &nameW, &valueW ) != STATUS_BUFFER_TOO_SMALL)
|
||||||
{
|
{
|
||||||
RtlInitUnicodeString( &nameW, winedatadirW );
|
RtlInitUnicodeString( &nameW, winedatadirW );
|
||||||
prefix = dataprefixW;
|
|
||||||
if (RtlQueryEnvironmentVariable_U( NULL, &nameW, &valueW ) != STATUS_BUFFER_TOO_SMALL)
|
if (RtlQueryEnvironmentVariable_U( NULL, &nameW, &valueW ) != STATUS_BUFFER_TOO_SMALL)
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
valueW.MaximumLength = valueW.Length + sizeof(buildprefixW) + strlenW(name) * sizeof(WCHAR);
|
valueW.MaximumLength = valueW.Length + sizeof(dataprefixW) + strlenW(name) * sizeof(WCHAR);
|
||||||
if (!(valueW.Buffer = RtlAllocateHeap( GetProcessHeap(), 0, valueW.MaximumLength )))
|
if (!(valueW.Buffer = RtlAllocateHeap( GetProcessHeap(), 0, valueW.MaximumLength )))
|
||||||
return STATUS_NO_MEMORY;
|
return STATUS_NO_MEMORY;
|
||||||
if (!RtlQueryEnvironmentVariable_U( NULL, &nameW, &valueW ))
|
if (!RtlQueryEnvironmentVariable_U( NULL, &nameW, &valueW ))
|
||||||
{
|
{
|
||||||
strcatW( valueW.Buffer, prefix );
|
strcatW( valueW.Buffer, dataprefixW );
|
||||||
strcatW( valueW.Buffer, name );
|
strcatW( valueW.Buffer, name );
|
||||||
valueW.Length = strlenW(valueW.Buffer) * sizeof(WCHAR);
|
valueW.Length = strlenW(valueW.Buffer) * sizeof(WCHAR);
|
||||||
InitializeObjectAttributes( &attr, &valueW, 0, 0, NULL );
|
InitializeObjectAttributes( &attr, &valueW, 0, 0, NULL );
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
SOURCES = \
|
SOURCES = \
|
||||||
l_intl.nls \
|
|
||||||
main.c \
|
main.c \
|
||||||
preloader.c \
|
preloader.c \
|
||||||
preloader_mac.c \
|
preloader_mac.c \
|
||||||
|
@ -30,7 +30,7 @@ signature="$CHICAGO$"
|
|||||||
RegisterDlls=RegisterDllsSection
|
RegisterDlls=RegisterDllsSection
|
||||||
WineFakeDlls=FakeDllsWin32,FakeDlls
|
WineFakeDlls=FakeDllsWin32,FakeDlls
|
||||||
UpdateInis=SystemIni
|
UpdateInis=SystemIni
|
||||||
CopyFiles=l_intl_section, inf_section
|
CopyFiles=InfFiles,NlsFiles
|
||||||
AddReg=\
|
AddReg=\
|
||||||
Classes,\
|
Classes,\
|
||||||
ContentIndex,\
|
ContentIndex,\
|
||||||
@ -54,7 +54,7 @@ AddReg=\
|
|||||||
RegisterDlls=RegisterDllsSection
|
RegisterDlls=RegisterDllsSection
|
||||||
WineFakeDlls=FakeDllsWin32,FakeDlls
|
WineFakeDlls=FakeDllsWin32,FakeDlls
|
||||||
UpdateInis=SystemIni
|
UpdateInis=SystemIni
|
||||||
CopyFiles=l_intl_section, inf_section
|
CopyFiles=InfFiles,NlsFiles
|
||||||
AddReg=\
|
AddReg=\
|
||||||
Classes,\
|
Classes,\
|
||||||
ContentIndex,\
|
ContentIndex,\
|
||||||
@ -80,7 +80,7 @@ RegisterDlls=RegisterDllsSection
|
|||||||
WineFakeDlls=FakeDllsWin64,FakeDlls
|
WineFakeDlls=FakeDllsWin64,FakeDlls
|
||||||
WinePreInstall=Wow64
|
WinePreInstall=Wow64
|
||||||
UpdateInis=SystemIni
|
UpdateInis=SystemIni
|
||||||
CopyFiles=l_intl_section, inf_section
|
CopyFiles=InfFiles,NlsFiles
|
||||||
AddReg=\
|
AddReg=\
|
||||||
Classes,\
|
Classes,\
|
||||||
ContentIndex,\
|
ContentIndex,\
|
||||||
@ -107,7 +107,7 @@ RegisterDlls=RegisterDllsSection
|
|||||||
WineFakeDlls=FakeDllsWin64,FakeDlls
|
WineFakeDlls=FakeDllsWin64,FakeDlls
|
||||||
WinePreInstall=Wow64
|
WinePreInstall=Wow64
|
||||||
UpdateInis=SystemIni
|
UpdateInis=SystemIni
|
||||||
CopyFiles=l_intl_section, inf_section
|
CopyFiles=InfFiles,NlsFiles
|
||||||
AddReg=\
|
AddReg=\
|
||||||
Classes,\
|
Classes,\
|
||||||
ContentIndex,\
|
ContentIndex,\
|
||||||
@ -132,7 +132,7 @@ AddReg=\
|
|||||||
[Wow64Install]
|
[Wow64Install]
|
||||||
RegisterDlls=RegisterDllsSection
|
RegisterDlls=RegisterDllsSection
|
||||||
WineFakeDlls=FakeDllsWin32,FakeDllsWow64
|
WineFakeDlls=FakeDllsWin32,FakeDllsWow64
|
||||||
CopyFiles=l_intl_section
|
CopyFiles=NlsFiles
|
||||||
AddReg=\
|
AddReg=\
|
||||||
CurrentVersion,\
|
CurrentVersion,\
|
||||||
CurrentVersionWow64,\
|
CurrentVersionWow64,\
|
||||||
@ -3849,13 +3849,16 @@ HKLM,Software\Wine\LicenseInformation,"Shell-InBoxGames-Solitaire-EnableGame",0x
|
|||||||
HKLM,Software\Wine\LicenseInformation,"Shell-InBoxGames-SpiderSolitaire-EnableGame",0x10001,0x00000001
|
HKLM,Software\Wine\LicenseInformation,"Shell-InBoxGames-SpiderSolitaire-EnableGame",0x10001,0x00000001
|
||||||
HKLM,Software\Wine\LicenseInformation,"Shell-PremiumInBoxGames-Chess-EnableGame",0x10001,0x00000001
|
HKLM,Software\Wine\LicenseInformation,"Shell-PremiumInBoxGames-Chess-EnableGame",0x10001,0x00000001
|
||||||
|
|
||||||
[DestinationDirs]
|
[InfFiles]
|
||||||
l_intl_section = 11
|
|
||||||
inf_section = 17
|
|
||||||
|
|
||||||
[l_intl_section]
|
|
||||||
l_intl.nls
|
|
||||||
|
|
||||||
[inf_section]
|
|
||||||
winebus.inf
|
winebus.inf
|
||||||
winehid.inf
|
winehid.inf
|
||||||
|
|
||||||
|
[NlsFiles]
|
||||||
|
l_intl.nls
|
||||||
|
|
||||||
|
[WineSourceDirs]
|
||||||
|
NlsFiles=nls
|
||||||
|
|
||||||
|
[DestinationDirs]
|
||||||
|
InfFiles = 17
|
||||||
|
NlsFiles = 11
|
||||||
|
2
nls/Makefile.in
Normal file
2
nls/Makefile.in
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
SOURCES = \
|
||||||
|
l_intl.nls
|
@ -74,6 +74,7 @@ my @source_vars = (
|
|||||||
);
|
);
|
||||||
|
|
||||||
my (@makefiles, %makefiles);
|
my (@makefiles, %makefiles);
|
||||||
|
my @nls_files;
|
||||||
|
|
||||||
sub dirname($)
|
sub dirname($)
|
||||||
{
|
{
|
||||||
@ -389,6 +390,10 @@ sub assign_sources_to_makefiles(@)
|
|||||||
{
|
{
|
||||||
next unless defined ${$make}{"TESTDLL"};
|
next unless defined ${$make}{"TESTDLL"};
|
||||||
}
|
}
|
||||||
|
elsif ($name =~ /\.nls$/)
|
||||||
|
{
|
||||||
|
push @nls_files, $name if $dir eq "nls";
|
||||||
|
}
|
||||||
elsif ($dir ne "loader") # loader dir contains misc files
|
elsif ($dir ne "loader") # loader dir contains misc files
|
||||||
{
|
{
|
||||||
next;
|
next;
|
||||||
@ -480,6 +485,13 @@ sub update_makefiles(@)
|
|||||||
replace_in_file( "configure.ac", '^WINE_CONFIG_MAKEFILE', '^dnl End of auto-generated output commands\n$', @lines);
|
replace_in_file( "configure.ac", '^WINE_CONFIG_MAKEFILE', '^dnl End of auto-generated output commands\n$', @lines);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub update_wine_inf()
|
||||||
|
{
|
||||||
|
my @lines;
|
||||||
|
|
||||||
|
push @lines, "[NlsFiles]", @nls_files, "\n";
|
||||||
|
replace_in_file "loader/wine.inf.in", '^\[NlsFiles\]', '^$', join( "\n", @lines );
|
||||||
|
}
|
||||||
|
|
||||||
my $git_dir = $ENV{GIT_DIR} || ".git";
|
my $git_dir = $ENV{GIT_DIR} || ".git";
|
||||||
die "needs to be run from a git checkout" unless -d $git_dir;
|
die "needs to be run from a git checkout" unless -d $git_dir;
|
||||||
@ -496,3 +508,4 @@ foreach my $file (sort @makefiles)
|
|||||||
|
|
||||||
assign_sources_to_makefiles( @all_files );
|
assign_sources_to_makefiles( @all_files );
|
||||||
update_makefiles( @makefiles );
|
update_makefiles( @makefiles );
|
||||||
|
update_wine_inf();
|
||||||
|
@ -2560,10 +2560,10 @@ dump_linebreak( "dlls/usp10/linebreak.c" );
|
|||||||
dump_linebreak( "dlls/dwrite/linebreak.c" );
|
dump_linebreak( "dlls/dwrite/linebreak.c" );
|
||||||
dump_scripts( "dlls/dwrite/scripts" );
|
dump_scripts( "dlls/dwrite/scripts" );
|
||||||
dump_indic( "dlls/usp10/indicsyllable.c" );
|
dump_indic( "dlls/usp10/indicsyllable.c" );
|
||||||
dump_intl_nls("loader/l_intl.nls");
|
|
||||||
dump_vertical( "dlls/gdi32/vertical.c" );
|
dump_vertical( "dlls/gdi32/vertical.c" );
|
||||||
dump_vertical( "dlls/wineps.drv/vertical.c" );
|
dump_vertical( "dlls/wineps.drv/vertical.c" );
|
||||||
dump_nameprep( "dlls/kernel32/nameprep.c" );
|
dump_nameprep( "dlls/kernel32/nameprep.c" );
|
||||||
|
dump_intl_nls("nls/l_intl.nls");
|
||||||
|
|
||||||
foreach my $file (@allfiles) { handle_codepage_file( @{$file} ); }
|
foreach my $file (@allfiles) { handle_codepage_file( @{$file} ); }
|
||||||
|
|
||||||
|
@ -2921,7 +2921,7 @@ static void output_source_svg( struct makefile *make, struct incl_file *source,
|
|||||||
static void output_source_nls( struct makefile *make, struct incl_file *source, const char *obj )
|
static void output_source_nls( struct makefile *make, struct incl_file *source, const char *obj )
|
||||||
{
|
{
|
||||||
add_install_rule( make, source->name, source->name,
|
add_install_rule( make, source->name, source->name,
|
||||||
strmake( "D$(datadir)/wine/%s", source->name ));
|
strmake( "D$(nlsdir)/%s", source->name ));
|
||||||
output_srcdir_symlink( make, strmake( "%s.nls", obj ));
|
output_srcdir_symlink( make, strmake( "%s.nls", obj ));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user