mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-16 10:40:19 +00:00
restructuring
This commit is contained in:
BIN
win32/bitmaps/wizardimage.bmp
Normal file
BIN
win32/bitmaps/wizardimage.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 51 KiB |
BIN
win32/bitmaps/wizardsmallimage.bmp
Normal file
BIN
win32/bitmaps/wizardsmallimage.bmp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.6 KiB |
16
win32/build-spell.bat
Normal file
16
win32/build-spell.bat
Normal file
@@ -0,0 +1,16 @@
|
||||
@echo off
|
||||
set DEPS_ROOT=deps-x86
|
||||
set XCHAT_DEST=tmp-spell
|
||||
rmdir /q /s %XCHAT_DEST%
|
||||
mkdir %XCHAT_DEST%
|
||||
xcopy /q /s /i %DEPS_ROOT%\myspell %XCHAT_DEST%\share\myspell
|
||||
copy ..\COPYING %XCHAT_DEST%
|
||||
echo [Setup] > xchat-wdk-spell.iss
|
||||
echo WizardImageFile=%cd%\bitmaps\wizardimage.bmp >> xchat-wdk-spell.iss
|
||||
echo WizardSmallImageFile=%cd%\bitmaps\wizardsmallimage.bmp >> xchat-wdk-spell.iss
|
||||
cd ..
|
||||
echo SetupIconFile=%cd%\xchat.ico >> build\xchat-wdk-spell.iss
|
||||
type build\xchat-wdk-spell.skel.iss >> build\xchat-wdk-spell.iss
|
||||
set PATH=%PROGRAMFILES(X86)%\Inno Setup 5
|
||||
compil32 /cc build\xchat-wdk-spell.iss
|
||||
pause
|
||||
46
win32/build-x64.bat
Normal file
46
win32/build-x64.bat
Normal file
@@ -0,0 +1,46 @@
|
||||
@echo off
|
||||
set WDK_ROOT=c:\WinDDK\7600.16385.1
|
||||
set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt;%WDK_ROOT%\inc\api\crt\stl70;%WDK_ROOT%\inc\mfc42;%WDK_ROOT%\inc\ddk;%WDK_ROOT%\inc\api\dao360
|
||||
set LIB=%WDK_ROOT%\lib\wnet\amd64;%WDK_ROOT%\lib\Crt\amd64;%WDK_ROOT%\lib\Mfc\amd64;%WDK_ROOT%\lib\ATL\amd64
|
||||
set OPATH=%PATH%
|
||||
set DEV_64=%cd%\deps-x64
|
||||
set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin\amd64;%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v7.0A\Bin\x64;%DEV_64%\bin;c:\mozilla-build\gendef
|
||||
set PERL_512=c:\mozilla-build\perl-5.12-x64\perl
|
||||
set PERL_514=c:\mozilla-build\perl-5.14-x64\perl
|
||||
echo [Setup] > xchat-wdk-x64.iss
|
||||
echo WizardImageFile=%cd%\bitmaps\wizardimage.bmp >> xchat-wdk-x64.iss
|
||||
echo WizardSmallImageFile=%cd%\bitmaps\wizardsmallimage.bmp >> xchat-wdk-x64.iss
|
||||
del version.exe
|
||||
cl /nologo version.c
|
||||
version -a64 >> xchat-wdk-x64.iss
|
||||
version -v >> xchat-wdk-x64.iss
|
||||
version -i >> xchat-wdk-x64.iss
|
||||
version -o64 >> xchat-wdk-x64.iss
|
||||
cd ..
|
||||
win32\version -r > resource.h
|
||||
echo SetupIconFile=%cd%\xchat.ico >> win32\xchat-wdk-x64.iss
|
||||
type win32\xchat-wdk-x64.skel.iss >> win32\xchat-wdk-x64.iss
|
||||
cd src
|
||||
echo DEV = %DEV_64% > makeinc.mak
|
||||
echo X64 = YES >> makeinc.mak
|
||||
type makeinc.skel.mak >> makeinc.mak
|
||||
nmake /nologo /f makefile.mak clean
|
||||
nmake /nologo /f makefile.mak
|
||||
cd ..\plugins
|
||||
nmake /nologo /f makefile.mak clean
|
||||
nmake /nologo /f makefile.mak
|
||||
cd perl
|
||||
set OOPATH=%PATH%
|
||||
set PATH=%OOPATH%;%PERL_512%\bin
|
||||
nmake /nologo /s /f makefile-512.mak clean
|
||||
nmake /nologo /s /f makefile-512.mak
|
||||
set PATH=%OOPATH%;%PERL_514%\bin
|
||||
nmake /nologo /s /f makefile-514.mak clean
|
||||
nmake /nologo /s /f makefile-514.mak
|
||||
cd ..\..\win32
|
||||
call compile-po-files.bat
|
||||
set PATH=%OPATH%
|
||||
call release-x64.bat
|
||||
set PATH=%PROGRAMFILES(X86)%\Inno Setup 5
|
||||
compil32 /cc xchat-wdk-x64.iss
|
||||
pause
|
||||
45
win32/build-x86.bat
Normal file
45
win32/build-x86.bat
Normal file
@@ -0,0 +1,45 @@
|
||||
@echo off
|
||||
set WDK_ROOT=c:\WinDDK\7600.16385.1
|
||||
set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt;%WDK_ROOT%\inc\api\crt\stl70;%WDK_ROOT%\inc\mfc42;%WDK_ROOT%\inc\ddk;%WDK_ROOT%\inc\api\dao360
|
||||
set LIB=%WDK_ROOT%\lib\wxp\i386;%WDK_ROOT%\lib\Crt\i386;%WDK_ROOT%\lib\Mfc\i386;%WDK_ROOT%\lib\ATL\i386
|
||||
set OPATH=%PATH%
|
||||
set DEV_32=%cd%\deps-x86
|
||||
set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin;%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\Common7\IDE;%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v7.0A\Bin;%DEV_32%\bin;c:\mozilla-build\gendef
|
||||
set PERL_512=c:\mozilla-build\perl-5.12-x86\perl
|
||||
set PERL_514=c:\mozilla-build\perl-5.14-x86\perl
|
||||
echo [Setup] > xchat-wdk-x86.iss
|
||||
echo WizardImageFile=%cd%\bitmaps\wizardimage.bmp >> xchat-wdk-x86.iss
|
||||
echo WizardSmallImageFile=%cd%\bitmaps\wizardsmallimage.bmp >> xchat-wdk-x86.iss
|
||||
del version.exe
|
||||
cl /nologo version.c
|
||||
version -a32 >> xchat-wdk-x86.iss
|
||||
version -v >> xchat-wdk-x86.iss
|
||||
version -i >> xchat-wdk-x86.iss
|
||||
version -o32 >> xchat-wdk-x86.iss
|
||||
cd ..
|
||||
win32\version -r > resource.h
|
||||
echo SetupIconFile=%cd%\xchat.ico >> win32\xchat-wdk-x86.iss
|
||||
type win32\xchat-wdk-x86.skel.iss >> win32\xchat-wdk-x86.iss
|
||||
cd src
|
||||
echo DEV = %DEV_32% > makeinc.mak
|
||||
type makeinc.skel.mak >> makeinc.mak
|
||||
nmake /nologo /f makefile.mak clean
|
||||
nmake /nologo /f makefile.mak
|
||||
cd ..\plugins
|
||||
nmake /nologo /f makefile.mak clean
|
||||
nmake /nologo /f makefile.mak
|
||||
cd perl
|
||||
set OOPATH=%PATH%
|
||||
set PATH=%OOPATH%;%PERL_512%\bin
|
||||
nmake /nologo /s /f makefile-512.mak clean
|
||||
nmake /nologo /s /f makefile-512.mak
|
||||
set PATH=%OOPATH%;%PERL_514%\bin
|
||||
nmake /nologo /s /f makefile-514.mak clean
|
||||
nmake /nologo /s /f makefile-514.mak
|
||||
cd ..\..\win32
|
||||
call compile-po-files.bat
|
||||
set PATH=%OPATH%
|
||||
call release-x86.bat
|
||||
set PATH=%PROGRAMFILES(X86)%\Inno Setup 5
|
||||
compil32 /cc xchat-wdk-x86.iss
|
||||
pause
|
||||
10
win32/compile-po-files.bat
Normal file
10
win32/compile-po-files.bat
Normal file
@@ -0,0 +1,10 @@
|
||||
@echo off
|
||||
echo.Compiling translations . . .
|
||||
cd ..\po
|
||||
rmdir /q /s locale
|
||||
mkdir locale
|
||||
for %%A in (*.po) do (
|
||||
mkdir locale\%%~nA\LC_MESSAGES
|
||||
msgfmt -co locale\%%~nA\LC_MESSAGES\xchat.mo %%A
|
||||
)
|
||||
cd ..\win32
|
||||
19
win32/compress.bat
Normal file
19
win32/compress.bat
Normal file
@@ -0,0 +1,19 @@
|
||||
@echo off
|
||||
set OPATH=%PATH%
|
||||
set PATH=c:\mozilla-build\mpress;c:\mozilla-build\upx
|
||||
cd ..\tmp
|
||||
for %%A in (*.dll) do upx -9 -q %%A
|
||||
for %%A in (*.x64) do mpress -q %%A
|
||||
upx xchat.exe
|
||||
cd lib\enchant
|
||||
for %%A in (*.dll) do upx -9 -q %%A
|
||||
for %%A in (*.x64) do mpress -q %%A
|
||||
:: gtk-2.0\2.10.0\engines is already packed, skip it
|
||||
cd ..\gtk-2.0\modules
|
||||
for %%A in (*.dll) do upx -9 -q %%A
|
||||
for %%A in (*.x64) do mpress -q %%A
|
||||
cd ..\..\..\plugins
|
||||
for %%A in (*.dll) do upx -9 -q %%A
|
||||
for %%A in (*.x64) do mpress -q %%A
|
||||
cd ..\..\build
|
||||
set PATH=%OPATH%
|
||||
2
win32/deb-extract.bat
Normal file
2
win32/deb-extract.bat
Normal file
@@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
for %%A in (*.deb) do 7z x %%A && 7z x data.tar && del data.tar
|
||||
25
win32/dep-extract-x64.bat
Normal file
25
win32/dep-extract-x64.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
set PATH=%PATH%;%PROGRAMW6432%\7-Zip;c:\mozilla-build\gendef
|
||||
|
||||
cd deps-x64
|
||||
::obs 7z x -y *.rpm
|
||||
::obs 7z x *.cpio
|
||||
::obs del *.cpio
|
||||
::obs xcopy /q /s /i usr\x86_64-w64-mingw32\sys-root\mingw\* .
|
||||
::obs rmdir /q /s usr
|
||||
::obs set OPATH=%PATH%
|
||||
::obs set PATH=%PATH%;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64
|
||||
::obs cd lib
|
||||
::obs for %%A in (..\bin\*.dll) do (
|
||||
::obs gendef %%A
|
||||
::obs lib /nologo /machine:x64 /def:%%~nA.def
|
||||
::obs )
|
||||
::obs cd ..
|
||||
::obs set PATH=%OPATH%
|
||||
7z x -y *.zip
|
||||
7z x *.7z
|
||||
::obs copy /y ..\build\glibconfig-x64.h lib\glib-2.0\include\glibconfig.h
|
||||
cd share\locale
|
||||
del /q /s gettext-tools.mo
|
||||
del /q /s gettext-runtime.mo
|
||||
pause
|
||||
25
win32/dep-extract-x86.bat
Normal file
25
win32/dep-extract-x86.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
set PATH=%PATH%;%PROGRAMW6432%\7-Zip;c:\mozilla-build\gendef
|
||||
|
||||
cd deps-x86
|
||||
::obs 7z x -y *.rpm
|
||||
::obs 7z x *.cpio
|
||||
::obs del *.cpio
|
||||
::obs xcopy /q /s /i usr\i686-w64-mingw32\sys-root\mingw\* .
|
||||
::obs rmdir /q /s usr
|
||||
::obs set OPATH=%PATH%
|
||||
::obs set PATH=%PATH%;c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE
|
||||
::obs cd lib
|
||||
::obs for %%A in (..\bin\*.dll) do (
|
||||
::obs gendef %%A
|
||||
::obs lib /nologo /machine:x86 /def:%%~nA.def
|
||||
::obs )
|
||||
::obs cd ..
|
||||
::obs set PATH=%OPATH%
|
||||
7z x -y *.zip
|
||||
7z x *.7z
|
||||
::obs copy /y ..\build\glibconfig-x86.h lib\glib-2.0\include\glibconfig.h
|
||||
cd share\locale
|
||||
del /q /s gettext-tools.mo
|
||||
del /q /s gettext-runtime.mo
|
||||
pause
|
||||
21
win32/deps-x64/deps-x64.txt
Normal file
21
win32/deps-x64/deps-x64.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/atk/1.32/atk_1.32.0-1_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/atk/1.32/atk-dev_1.32.0-1_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/cairo_1.10.2-1_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/cairo-dev_1.10.2-1_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/expat_2.0.1-3_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/fontconfig_2.8.0-2_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/freetype_2.4.4-1_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/gettext-runtime_0.18.1.1-2_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/gettext-runtime-dev_0.18.1.1-2_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/gettext-tools-dev_0.18.1.1-2_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/dependencies/libpng_1.4.3-1_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/glib/2.26/glib_2.26.1-1_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/glib/2.26/glib-dev_2.26.1-1_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.16/gtk+_2.16.6-3_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.16/gtk+-dev_2.16.6-3_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/pango/1.28/pango_1.28.3-1_win64.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win64/pango/1.28/pango-dev_1.28.3-1_win64.zip
|
||||
http://xchat-wdk.googlecode.com/files/Enchant-WDK%201.6.0-2%20x64.7z
|
||||
http://xchat-wdk.googlecode.com/files/Lua-WDK%205.1.4-2-2%20x64.7z
|
||||
http://xchat-wdk.googlecode.com/files/OpenSSL-WDK%201.0.0e-2%20x64.7z
|
||||
http://xchat-wdk.googlecode.com/files/LibXML-WDK%202.7.8%20x64.7z
|
||||
21
win32/deps-x86/deps-x86.txt
Normal file
21
win32/deps-x86/deps-x86.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1.32/atk_1.32.0-1_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/atk/1.32/atk-dev_1.32.0-1_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_1.10.2-1_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo-dev_1.10.2-1_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/expat_2.0.1-1_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/fontconfig_2.8.0-2_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/freetype_2.4.4-1_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime_0.18.1.1-2_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime-dev_0.18.1.1-2_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-tools-dev_0.18.1.1-2_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng_1.4.3-1_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.26/glib_2.26.1-1_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/glib/2.26/glib-dev_2.26.1-1_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+_2.16.6-3_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.16/gtk+-dev_2.16.6-3_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.28/pango_1.28.3-1_win32.zip
|
||||
http://ftp.gnome.org/pub/gnome/binaries/win32/pango/1.28/pango-dev_1.28.3-1_win32.zip
|
||||
http://xchat-wdk.googlecode.com/files/Enchant-WDK%201.6.0-2%20x86.7z
|
||||
http://xchat-wdk.googlecode.com/files/Lua-WDK%205.1.4-2-2%20x86.7z
|
||||
http://xchat-wdk.googlecode.com/files/OpenSSL-WDK%201.0.0e-2%20x86.7z
|
||||
http://xchat-wdk.googlecode.com/files/LibXML-WDK%202.7.8%20x86.7z
|
||||
BIN
win32/etc/download.png
Normal file
BIN
win32/etc/download.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 703 B |
71
win32/etc/gtk-2.0/gtkrc
Normal file
71
win32/etc/gtk-2.0/gtkrc
Normal file
@@ -0,0 +1,71 @@
|
||||
gtk-font-name = "sans 8"
|
||||
|
||||
gtk-icon-sizes = "gtk-menu=13,13:gtk-small-toolbar=16,16:gtk-large-toolbar=24,24:gtk-dnd=32,32"
|
||||
gtk-toolbar-icon-size = small-toolbar
|
||||
|
||||
# disable images in buttons. i've only seen ugly delphi apps use this feature.
|
||||
gtk-button-images = 0
|
||||
|
||||
# enable/disable images in menus. most "stock" microsoft apps don't use these, except sparingly.
|
||||
# the office apps use them heavily, though.
|
||||
gtk-menu-images = 1
|
||||
|
||||
# use the win32 button ordering instead of the GNOME HIG one, where applicable
|
||||
gtk-alternative-button-order = 1
|
||||
|
||||
# use the win32 sort indicators direction, as in Explorer
|
||||
gtk-alternative-sort-arrows = 1
|
||||
|
||||
# Windows users don't expect the PC Speaker beeping at them when they backspace in an empty textview and stuff like that
|
||||
gtk-error-bell = 0
|
||||
|
||||
# hide mnemonic underlines until the Alt key is pressed (requires gtk 2.18+)
|
||||
# gtk-auto-mnemonics = 1
|
||||
|
||||
style "msw-default"
|
||||
{
|
||||
GtkWidget::interior-focus = 1
|
||||
GtkOptionMenu::indicator-size = { 9, 5 }
|
||||
GtkOptionMenu::indicator-spacing = { 7, 5, 2, 2 }
|
||||
GtkSpinButton::shadow-type = in
|
||||
|
||||
# Owen and I disagree that these should be themable
|
||||
#GtkUIManager::add-tearoffs = 0
|
||||
#GtkComboBox::add-tearoffs = 0
|
||||
|
||||
GtkComboBox::appears-as-list = 1
|
||||
GtkComboBox::focus-on-click = 0
|
||||
|
||||
GOComboBox::add_tearoffs = 0
|
||||
|
||||
GtkTreeView::allow-rules = 0
|
||||
GtkTreeView::expander-size = 12
|
||||
|
||||
GtkExpander::expander-size = 12
|
||||
|
||||
GtkScrolledWindow::scrollbar_spacing = 1
|
||||
|
||||
GtkSeparatorMenuItem::horizontal-padding = 2
|
||||
|
||||
engine "wimp"
|
||||
{
|
||||
}
|
||||
}
|
||||
class "*" style "msw-default"
|
||||
|
||||
binding "ms-windows-tree-view"
|
||||
{
|
||||
bind "Right" { "expand-collapse-cursor-row" (1,1,0) }
|
||||
bind "Left" { "expand-collapse-cursor-row" (1,0,0) }
|
||||
}
|
||||
|
||||
class "GtkTreeView" binding "ms-windows-tree-view"
|
||||
|
||||
style "msw-combobox-thickness" = "msw-default"
|
||||
{
|
||||
xthickness = 0
|
||||
ythickness = 0
|
||||
}
|
||||
|
||||
widget_class "*TreeView*ComboBox*" style "msw-combobox-thickness"
|
||||
widget_class "*ComboBox*GtkFrame*" style "msw-combobox-thickness"
|
||||
BIN
win32/etc/gtkpref.png
Normal file
BIN
win32/etc/gtkpref.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 323 B |
BIN
win32/etc/music.png
Normal file
BIN
win32/etc/music.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
BIN
win32/etc/system.png
Normal file
BIN
win32/etc/system.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
13
win32/ext/enchant-wdk/src/build-x64.bat
Normal file
13
win32/ext/enchant-wdk/src/build-x64.bat
Normal file
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
set WDK_ROOT=c:\WinDDK\7600.16385.1
|
||||
set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt;%WDK_ROOT%\inc\api\crt\stl70
|
||||
set LIB=%WDK_ROOT%\lib\wnet\amd64;%WDK_ROOT%\lib\Crt\amd64
|
||||
set OPATH=%PATH%
|
||||
set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin\amd64;%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v7.0A\Bin\x64
|
||||
nmake -f makefile.mak clean
|
||||
nmake -f makefile.mak X64=1 DLL=1 MFLAGS=-MD GLIBDIR=..\glib-x64\include\glib-2.0
|
||||
echo.Press return when ready to install!
|
||||
pause
|
||||
set PATH=%OPATH%
|
||||
call release-x64.bat
|
||||
pause
|
||||
13
win32/ext/enchant-wdk/src/build-x86.bat
Normal file
13
win32/ext/enchant-wdk/src/build-x86.bat
Normal file
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
set WDK_ROOT=c:\WinDDK\7600.16385.1
|
||||
set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt;%WDK_ROOT%\inc\api\crt\stl70
|
||||
set LIB=%WDK_ROOT%\lib\wxp\i386;%WDK_ROOT%\lib\Crt\i386
|
||||
set OPATH=%PATH%
|
||||
set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin;%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v7.0A\Bin;%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\Common7\IDE
|
||||
nmake -f makefile.mak clean
|
||||
nmake -f makefile.mak DLL=1 MFLAGS=-MD GLIBDIR=..\glib-x86\include\glib-2.0
|
||||
echo.Press return when ready to install!
|
||||
pause
|
||||
set PATH=%OPATH%
|
||||
call release-x86.bat
|
||||
pause
|
||||
15
win32/ext/enchant-wdk/src/config.h
Normal file
15
win32/ext/enchant-wdk/src/config.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#ifndef SSIZE_T_DEFINED
|
||||
#ifdef ssize_t
|
||||
#undef ssize_t
|
||||
#endif
|
||||
#ifdef _WIN64
|
||||
typedef __int64 ssize_t;
|
||||
#else
|
||||
typedef _W64 int ssize_t;
|
||||
#endif
|
||||
#define SSIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
#define ENCHANT_VERSION_STRING "1.6.0"
|
||||
29
win32/ext/enchant-wdk/src/libenchant.rc
Normal file
29
win32/ext/enchant-wdk/src/libenchant.rc
Normal file
@@ -0,0 +1,29 @@
|
||||
#include <winver.h>
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,6,0,2
|
||||
PRODUCTVERSION 1,6,0,0
|
||||
FILEFLAGSMASK 0
|
||||
FILEFLAGS 0
|
||||
FILEOS VOS__WINDOWS32
|
||||
FILETYPE VFT_DLL
|
||||
FILESUBTYPE VFT2_UNKNOWN
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904B0"
|
||||
BEGIN
|
||||
VALUE "CompanyName", "none"
|
||||
VALUE "FileDescription", "libenchant"
|
||||
VALUE "FileVersion", "1.6.0.2"
|
||||
VALUE "InternalName", "libenchant"
|
||||
VALUE "OriginalFilename", "libenchant.dll"
|
||||
VALUE "ProductName", "libenchant"
|
||||
VALUE "ProductVersion", "1.6.0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
588
win32/ext/enchant-wdk/src/makefile.mak
Normal file
588
win32/ext/enchant-wdk/src/makefile.mak
Normal file
@@ -0,0 +1,588 @@
|
||||
# -*- Makefile -*- for libenchant
|
||||
#
|
||||
# WDK fixes by Berke Viktor, 2010
|
||||
#
|
||||
# This makefile targets the Microsoft Visual C++ platform and is intended to build the enchant library along with its executables and test programs.
|
||||
# It was written by Tolon (alex@tolon.co.uk). He thinks it was originally based on an MSVC makefile from glib, but can't quite remember.
|
||||
# Tolon surrenders all rights regarding this file to the enchant project (http://www.abisource.com/enchant).
|
||||
# Please direct any comments, bug-fixes, etc. to alex@tolon.co.uk.
|
||||
#
|
||||
# Example of my usage of this makefile with MSVC9:
|
||||
# NMAKE -f Makefile.msvc DLL=1 PREFIX=C:\usr-msvc9 GLIBDIR=D:\dev\lib\glib
|
||||
#
|
||||
# Example of my usage of this makefile with MSVC6:
|
||||
# NMAKE -f Makefile.msvc DLL=1 PREFIX=C:\usr-msvc6 GLIBDIR=D:\dev\lib\glib MANIFEST=0
|
||||
#
|
||||
# This makefile expects glib-2.0.lib and gmodule-2.0.lib to be available in the $(PREFIX)\lib folder.
|
||||
|
||||
ENCHANT_MAJOR_VERSION=1
|
||||
ENCHANT_MINOR_VERSION=6
|
||||
ENCHANT_MICRO_VERSION=0
|
||||
BUILDNUMBER=0
|
||||
ENCHANT_VERSION="$(ENCHANT_MAJOR_VERSION).$(ENCHANT_MINOR_VERSION).$(ENCHANT_MICRO_VERSION)"
|
||||
|
||||
#### Start of system configuration section. ####
|
||||
|
||||
# Flags that can be set on the nmake command line:
|
||||
# DLL=1 for compiling a .dll with a stub .lib (default is a static .lib)
|
||||
# Note that this works only with MFLAGS=-MD.
|
||||
# MFLAGS={-ML|-MT|-MD} for defining the compilation model
|
||||
# MFLAGS=-ML (the default) Single-threaded, statically linked - libc.lib
|
||||
# MFLAGS=-MT Multi-threaded, statically linked - libcmt.lib
|
||||
# MFLAGS=-MD Multi-threaded, dynamically linked - msvcrt.lib
|
||||
# DEBUG=1 for compiling with debugging information
|
||||
# PREFIX=Some\Directory Base directory for installation
|
||||
# IIPREFIX=Some\\Directory Same thing with doubled backslashes
|
||||
# GLIBDIR=Some\Directory Path to glib include directory
|
||||
# MANIFEST=0 Disables embedding of manifest
|
||||
!if !defined(DLL)
|
||||
DLL=0
|
||||
!endif
|
||||
!if !defined(DEBUG)
|
||||
DEBUG=0
|
||||
!endif
|
||||
!if !defined(MFLAGS)
|
||||
!if !$(DLL)
|
||||
MFLAGS=
|
||||
!else
|
||||
!if !$(DEBUG)
|
||||
MFLAGS=-MD
|
||||
!else
|
||||
MFLAGS=-MDd
|
||||
!endif
|
||||
!endif
|
||||
!endif
|
||||
!if !defined(PREFIX)
|
||||
PREFIX = c:\usr
|
||||
!endif
|
||||
!if !defined(IIPREFIX)
|
||||
IIPREFIX = c:\\usr
|
||||
!endif
|
||||
|
||||
!if !defined(MANIFEST)
|
||||
MANIFEST=1
|
||||
!endif
|
||||
|
||||
# Directories used by "make":
|
||||
glibdir = $(GLIBDIR)
|
||||
rootdir = .\..
|
||||
topsrcdir = $(rootdir)\src
|
||||
toptestdir = $(rootdir)\tests
|
||||
bindir=$(rootdir)\bin
|
||||
!if $(DEBUG)
|
||||
outdir=$(rootdir)\bin\debug
|
||||
!else
|
||||
outdir=$(rootdir)\bin\release
|
||||
!endif
|
||||
objdir=$(outdir)\obj
|
||||
pdbdir=$(outdir)\pdb
|
||||
libdir=$(outdir)
|
||||
|
||||
# Directories used by "make install":
|
||||
prefix = $(PREFIX)
|
||||
exec_prefix = $(prefix)
|
||||
#bindir = $(exec_prefix)\bin
|
||||
#otherlibdir = $(exec_prefix)\lib
|
||||
otherlibdir = $(GLIBDIR)\..\..\lib
|
||||
includedir = $(prefix)\include
|
||||
#datadir = $(prefix)\share
|
||||
#localedir = $(datadir)\locale
|
||||
#aliaspath =
|
||||
#IIprefix = $(IIPREFIX)
|
||||
#IIexec_prefix = $(IIprefix)
|
||||
#IIbindir = $(IIexec_prefix)\\bin
|
||||
#IIlibdir = $(IIexec_prefix)\\lib
|
||||
#IIincludedir = $(IIprefix)\\include
|
||||
#IIdatadir = $(IIprefix)\\share
|
||||
#IIlocaledir = $(IIdatadir)\\locale
|
||||
#IIaliaspath =
|
||||
|
||||
# Programs used by "make":
|
||||
|
||||
CC = cl
|
||||
LINK = link
|
||||
MT = mt
|
||||
|
||||
# Set to -W3 if you want to see maximum amount of warnings, including stupid
|
||||
# ones. Set to -W1 to avoid warnings about signed/unsigned combinations.
|
||||
WARN_CFLAGS = -W1
|
||||
|
||||
!if $(DEBUG)
|
||||
OPTIMFLAGS = -Od
|
||||
!else
|
||||
# Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
|
||||
OPTIMFLAGS = -DNDEBUG -D_NDEBUG -Ox -MP2
|
||||
!endif
|
||||
|
||||
OUTPUTFLAGS = \
|
||||
-Fo"$(objdir)\\"
|
||||
|
||||
WINFLAGS = \
|
||||
-DWINDOWS \
|
||||
-D_WINDOWS \
|
||||
-DWIN32 \
|
||||
-D_WIN32 \
|
||||
-DUNICODE \
|
||||
-D_UNICODE
|
||||
|
||||
DEBUGFLAGS = -Zi
|
||||
|
||||
EXCEPTIONFLAGS = -EHsc
|
||||
|
||||
CPPFLAGS = -D_STL70_ -D_STATIC_CPPLIB
|
||||
|
||||
CFLAGS = \
|
||||
-FI "$(topsrcdir)\config.h" \
|
||||
$(MFLAGS) \
|
||||
$(WARN_CFLAGS) \
|
||||
$(EXCEPTIONFLAGS) \
|
||||
$(OPTIMFLAGS) \
|
||||
$(CPPFLAGS) \
|
||||
$(WINFLAGS) \
|
||||
$(OUTPUTFLAGS)
|
||||
|
||||
INCLUDES = \
|
||||
-I$(topsrcdir) \
|
||||
-I$(rootdir) \
|
||||
-I$(includedir) \
|
||||
-I$(glibdir) \
|
||||
-I$(glibdir)\glib \
|
||||
-I$(glibdir)\gmodule \
|
||||
-I$(glibdir)\..\..\lib\glib-2.0\include
|
||||
|
||||
!ifdef X64
|
||||
LINKOBJ = msvcrt_win2003.obj
|
||||
MACHINE_FLAG = X64
|
||||
CFLAGS = $(CFLAGS) /favor:AMD64 /D_WIN64
|
||||
!else
|
||||
MACHINE_FLAG = X86
|
||||
LINKOBJ = msvcrt_winxp.obj
|
||||
!endif
|
||||
|
||||
LINKFLAGS = \
|
||||
-INCREMENTAL:NO \
|
||||
-MANIFEST \
|
||||
-MANIFESTUAC:"level='asInvoker' uiAccess='false'" \
|
||||
-PDB:$(pdbdir)\\ \
|
||||
-MACHINE:$(MACHINE_FLAG) \
|
||||
-OPT:REF \
|
||||
-OPT:ICF \
|
||||
-DEBUG \
|
||||
$(LINKOBJ)
|
||||
|
||||
AR = lib
|
||||
AR_FLAGS = /out:
|
||||
|
||||
LN = copy
|
||||
RM = -del
|
||||
|
||||
# Programs used by "make install":
|
||||
INSTALL = copy
|
||||
INSTALL_PROGRAM = copy
|
||||
INSTALL_DATA = copy
|
||||
|
||||
#### End of system configuration section. ####
|
||||
|
||||
SHELL = /bin/sh
|
||||
|
||||
CC_OBJ = $(CC) $(INCLUDES) $(CFLAGS) -c
|
||||
|
||||
CC_LINK = $(LINK) $(LINKFLAGS)
|
||||
LINK_EXE = $(CC_LINK) /SUBSYSTEM:CONSOLE
|
||||
LINK_DLL = $(CC_LINK) /DLL /SUBSYSTEM:WINDOWS
|
||||
|
||||
!if $(MANIFEST)
|
||||
EMBED_MANIFEST = $(MT) /manifest $(outdir)\exe_name.manifest /outputresource:"$(outdir)\exe_name;1"
|
||||
CLEAN_MANIFEST = $(RM) $(outdir)\exe_name.manifest
|
||||
!else
|
||||
EMBED_MANIFEST =
|
||||
CLEAN_MANIFEST =
|
||||
!endif
|
||||
|
||||
# test-enchantxx isn't part of all as it has problems on MSVC6.
|
||||
all: makedirs libenchant libenchant_ispell libenchant_myspell enchant enchant_lsmod test-enchant
|
||||
#all: makedirs libenchant libenchant_ispell enchant enchant_lsmod test-enchant
|
||||
|
||||
makedirs: force
|
||||
-mkdir $(bindir)
|
||||
-mkdir $(outdir)
|
||||
-mkdir $(libdir)
|
||||
-mkdir $(objdir)
|
||||
-mkdir $(pdbdir)
|
||||
|
||||
################################################################################
|
||||
#### ENCHANT ####
|
||||
|
||||
srcdir = $(toptestdir)
|
||||
|
||||
ENCHANT_EXE=$(outdir)\enchant.exe
|
||||
ENCHANT_PDB=$(pdbdir)\enchant.pdb
|
||||
|
||||
ENCHANT_DEFINES = \
|
||||
-D_CONSOLE \
|
||||
-DVERSION=\"$(ENCHANT_VERSION)\"
|
||||
|
||||
ENCHANT_LIBS = \
|
||||
$(otherlibdir)\glib-2.0.lib \
|
||||
$(libdir)\libenchant.lib
|
||||
|
||||
ENCHANT_OBJECTS = \
|
||||
$(objdir)\enchant-ispell.obj
|
||||
|
||||
$(objdir)\enchant-ispell.obj : $(srcdir)\enchant-ispell.c
|
||||
$(CC_OBJ) $** $(ENCHANT_DEFINES)
|
||||
|
||||
enchant: $(ENCHANT_EXE)
|
||||
|
||||
$(ENCHANT_EXE): $(ENCHANT_OBJECTS)
|
||||
$(LINK_EXE) $(ENCHANT_OBJECTS) $(ENCHANT_LIBS) -OUT:$(ENCHANT_EXE)
|
||||
$(EMBED_MANIFEST:exe_name=enchant.exe)
|
||||
$(CLEAN_MANIFEST:exe_name=enchant.exe)
|
||||
|
||||
enchant_clean:
|
||||
$(RM) $(ENCHANT_OBJECTS) $(ENCHANT_EXE) $(ENCHANT_PDB)
|
||||
|
||||
################################################################################
|
||||
#### ENCHANT-LSMOD ####
|
||||
|
||||
srcdir = $(toptestdir)
|
||||
|
||||
ENCHANT_LSMOD_EXE=$(outdir)\enchant-lsmod.exe
|
||||
ENCHANT_LSMOD_PDB=$(pdbdir)\enchant-lsmod.pdb
|
||||
|
||||
ENCHANT_LSMOD_DEFINES = \
|
||||
-D_CONSOLE \
|
||||
-DVERSION=\"$(ENCHANT_VERSION)\"
|
||||
|
||||
ENCHANT_LSMOD_LIBS = \
|
||||
$(otherlibdir)\glib-2.0.lib \
|
||||
$(libdir)\libenchant.lib
|
||||
|
||||
ENCHANT_LSMOD_OBJECTS = \
|
||||
$(objdir)\enchant-lsmod.obj
|
||||
|
||||
$(objdir)\enchant-lsmod.obj : $(srcdir)\enchant-lsmod.c
|
||||
$(CC_OBJ) $** $(ENCHANT_LSMOD_DEFINES)
|
||||
|
||||
enchant_lsmod: $(ENCHANT_LSMOD_EXE)
|
||||
|
||||
$(ENCHANT_LSMOD_EXE): $(ENCHANT_LSMOD_OBJECTS)
|
||||
$(LINK_EXE) $(ENCHANT_LSMOD_OBJECTS) $(ENCHANT_LSMOD_LIBS) -OUT:$(ENCHANT_LSMOD_EXE)
|
||||
$(EMBED_MANIFEST:exe_name=enchant-lsmod.exe)
|
||||
$(CLEAN_MANIFEST:exe_name=enchant-lsmod.exe)
|
||||
|
||||
enchant_lsmod_clean:
|
||||
$(RM) $(ENCHANT_LSMOD_OBJECTS) $(ENCHANT_LSMOD_EXE) $(ENCHANT_LSMOD_PDB)
|
||||
|
||||
################################################################################
|
||||
#### TEST-ENCHANT ####
|
||||
|
||||
srcdir = $(toptestdir)
|
||||
|
||||
TEST_ENCHANT_EXE=$(outdir)\test-enchant.exe
|
||||
TEST_ENCHANT_PDB=$(pdbdir)\test-enchant.pdb
|
||||
|
||||
TEST_ENCHANT_DEFINES = \
|
||||
-D_CONSOLE \
|
||||
-DVERSION=\"$(ENCHANT_VERSION)\"
|
||||
|
||||
TEST_ENCHANT_LIBS = \
|
||||
$(otherlibdir)\glib-2.0.lib \
|
||||
$(libdir)\libenchant.lib
|
||||
|
||||
TEST_ENCHANT_OBJECTS = \
|
||||
$(objdir)\test-enchant.obj
|
||||
|
||||
$(objdir)\test-enchant.obj : $(srcdir)\test-enchant.c
|
||||
$(CC_OBJ) $** $(TEST_ENCHANT_DEFINES)
|
||||
|
||||
test-enchant: $(TEST_ENCHANT_EXE)
|
||||
|
||||
$(TEST_ENCHANT_EXE): $(TEST_ENCHANT_OBJECTS)
|
||||
$(LINK_EXE) $(TEST_ENCHANT_OBJECTS) $(TEST_ENCHANT_LIBS) -OUT:$(TEST_ENCHANT_EXE)
|
||||
$(EMBED_MANIFEST:exe_name=test-enchant.exe)
|
||||
$(CLEAN_MANIFEST:exe_name=test-enchant.exe)
|
||||
|
||||
test-enchant_clean:
|
||||
$(RM) $(TEST_ENCHANT_OBJECTS) $(TEST_ENCHANT_EXE) $(TEST_ENCHANT_PDB)
|
||||
|
||||
################################################################################
|
||||
#### TEST-ENCHANTXX ####
|
||||
|
||||
srcdir = $(toptestdir)
|
||||
|
||||
TEST_ENCHANTXX_EXE=$(outdir)\test-enchantxx.exe
|
||||
TEST_ENCHANTXX_PDB=$(pdbdir)\test-enchantxx.pdb
|
||||
|
||||
TEST_ENCHANTXX_DEFINES = \
|
||||
-D_CONSOLE \
|
||||
-DVERSION=\"$(ENCHANT_VERSION)\"
|
||||
|
||||
TEST_ENCHANTXX_LIBS = \
|
||||
$(otherlibdir)\glib-2.0.lib \
|
||||
$(libdir)\libenchant.lib
|
||||
|
||||
TEST_ENCHANTXX_OBJECTS = \
|
||||
$(objdir)\test-enchantxx.obj
|
||||
|
||||
$(objdir)\test-enchantxx.obj : $(srcdir)\test-enchantxx.cpp
|
||||
$(CC_OBJ) $** $(TEST_ENCHANTXX_DEFINES)
|
||||
|
||||
test-enchantxx: $(TEST_ENCHANTXX_EXE)
|
||||
|
||||
$(TEST_ENCHANTXX_EXE): $(TEST_ENCHANTXX_OBJECTS)
|
||||
$(LINK_EXE) $(TEST_ENCHANTXX_OBJECTS) $(TEST_ENCHANTXX_LIBS) -OUT:$(TEST_ENCHANTXX_EXE)
|
||||
$(EMBED_MANIFEST:exe_name=test-enchantxx.exe)
|
||||
$(CLEAN_MANIFEST:exe_name=test-enchantxx.exe)
|
||||
|
||||
test-enchantxx_clean:
|
||||
$(RM) $(TEST_ENCHANTXX_OBJECTS) $(TEST_ENCHANTXX_EXE) $(TEST_ENCHANTXX_PDB)
|
||||
|
||||
################################################################################
|
||||
#### LIBENCHANT ####
|
||||
|
||||
srcdir = $(topsrcdir)
|
||||
|
||||
LIBENCHANT_DEFINES = \
|
||||
-D_ENCHANT_BUILD=1 \
|
||||
-DWINDLL
|
||||
|
||||
LIBENCHANT_DLL=$(outdir)\libenchant.dll
|
||||
LIBENCHANT_LIB=$(outdir)\libenchant.lib
|
||||
LIBENCHANT_PDB=$(pdbdir)\libenchant.pdb
|
||||
LIBENCHANT_RES=$(srcdir)\libenchant.res
|
||||
LIBENCHANT_RC=$(srcdir)\libenchant.rc
|
||||
|
||||
LIBENCHANT_LIBS = \
|
||||
$(otherlibdir)\glib-2.0.lib \
|
||||
$(otherlibdir)\gmodule-2.0.lib \
|
||||
advapi32.lib
|
||||
|
||||
LIBENCHANT_OBJECTS = \
|
||||
$(objdir)\enchant.obj \
|
||||
$(objdir)\prefix.obj \
|
||||
$(objdir)\pwl.obj
|
||||
|
||||
|
||||
|
||||
$(objdir)\pwl.obj : $(srcdir)\pwl.c
|
||||
$(CC_OBJ) $** $(LIBENCHANT_DEFINES)
|
||||
|
||||
$(objdir)\prefix.obj : $(srcdir)\prefix.c
|
||||
$(CC_OBJ) $** $(LIBENCHANT_DEFINES)
|
||||
|
||||
$(objdir)\enchant.obj : $(srcdir)\enchant.c
|
||||
$(CC_OBJ) $** $(LIBENCHANT_DEFINES)
|
||||
|
||||
$(LIBENCHANT_RES) : $(LIBENCHANT_RC)
|
||||
rc -Fo $(LIBENCHANT_RES) $(LIBENCHANT_RC)
|
||||
|
||||
!if !$(DLL)
|
||||
libenchant: LIBENCHANT_LIB
|
||||
libenchant_clean: libenchant_lib_clean
|
||||
!else
|
||||
libenchant: LIBENCHANT_DLL
|
||||
libenchant_clean: libenchant_dll_clean
|
||||
!endif
|
||||
|
||||
LIBENCHANT_LIB : $(LIBENCHANT_OBJECTS)
|
||||
-$(RM) libenchant.lib
|
||||
$(AR) $(AR_FLAGS)$(LIBENCHANT_LIB) $(LIBENCHANT_OBJECTS)
|
||||
|
||||
# libenchant.dll and libenchant.lib are created together.
|
||||
LIBENCHANT_DLL : $(LIBENCHANT_OBJECTS) $(LIBENCHANT_RES)
|
||||
$(LINK_DLL) $(LIBENCHANT_OBJECTS) $(LIBENCHANT_LIBS) $(LIBENCHANT_RES) -OUT:$(LIBENCHANT_DLL)
|
||||
$(EMBED_MANIFEST:exe_name=libenchant.dll)
|
||||
$(CLEAN_MANIFEST:exe_name=libenchant.dll)
|
||||
|
||||
libenchant_lib_clean:
|
||||
$(RM) $(LIBENCHANT_OBJECTS) $(LIBENCHANT_LIB)
|
||||
|
||||
libenchant_dll_clean:
|
||||
$(RM) $(LIBENCHANT_OBJECTS) $(LIBENCHANT_LIB) $(LIBENCHANT_DLL) $(LIBENCHANT_PDB) $(LIBENCHANT_RES) $(LIBENCHANT_RC)
|
||||
|
||||
################################################################################
|
||||
#### LIBENCHANT_ISPELL ####
|
||||
|
||||
srcdir = $(topsrcdir)\ispell
|
||||
|
||||
LIBENCHANT_ISPELL_DEFINES = \
|
||||
-D "_ENCHANT_BUILD=1" \
|
||||
-D "ISPELL_PROVIDER_EXPORTS" \
|
||||
-D_USRDLL \
|
||||
-D_WINDLL
|
||||
|
||||
LIBENCHANT_ISPELL_DLL=$(outdir)\libenchant_ispell.dll
|
||||
LIBENCHANT_ISPELL_LIB=$(libdir)\libenchant_ispell.lib
|
||||
LIBENCHANT_ISPELL_PDB=$(pdbdir)\libenchant_ispell.pdb
|
||||
|
||||
LIBENCHANT_ISPELL_LIBS = \
|
||||
$(otherlibdir)\glib-2.0.lib \
|
||||
$(otherlibdir)\gmodule-2.0.lib \
|
||||
$(libdir)\libenchant.lib \
|
||||
advapi32.lib ntstc_msvcrt.lib
|
||||
|
||||
LIBENCHANT_ISPELL_OBJECTS = \
|
||||
$(objdir)\correct.obj \
|
||||
$(objdir)\good.obj \
|
||||
$(objdir)\hash.obj \
|
||||
$(objdir)\ispell_checker.obj \
|
||||
$(objdir)\lookup.obj \
|
||||
$(objdir)\makedent.obj \
|
||||
$(objdir)\tgood.obj
|
||||
|
||||
!if !$(DLL)
|
||||
libenchant_ispell: LIBENCHANT_ISPELL_LIB
|
||||
libenchant_ispell_clean: libenchant_ispell_lib_clean
|
||||
!else
|
||||
libenchant_ispell: LIBENCHANT_ISPELL_DLL
|
||||
libenchant_ispell_clean: libenchant_ispell_dll_clean
|
||||
!endif
|
||||
|
||||
$(objdir)\correct.obj : $(srcdir)\correct.cpp
|
||||
$(CC_OBJ) $** $(LIBENCHANT_ISPELL_DEFINES)
|
||||
|
||||
$(objdir)\good.obj : $(srcdir)\good.cpp
|
||||
$(CC_OBJ) $** $(LIBENCHANT_ISPELL_DEFINES)
|
||||
|
||||
$(objdir)\hash.obj : $(srcdir)\hash.cpp
|
||||
$(CC_OBJ) $** $(LIBENCHANT_ISPELL_DEFINES)
|
||||
|
||||
$(objdir)\ispell_checker.obj : $(srcdir)\ispell_checker.cpp
|
||||
$(CC_OBJ) $** $(LIBENCHANT_ISPELL_DEFINES)
|
||||
|
||||
$(objdir)\lookup.obj : $(srcdir)\lookup.cpp
|
||||
$(CC_OBJ) $** $(LIBENCHANT_ISPELL_DEFINES)
|
||||
|
||||
$(objdir)\makedent.obj : $(srcdir)\makedent.cpp
|
||||
$(CC_OBJ) $** $(LIBENCHANT_ISPELL_DEFINES)
|
||||
|
||||
$(objdir)\tgood.obj : $(srcdir)\tgood.cpp
|
||||
$(CC_OBJ) $** $(LIBENCHANT_ISPELL_DEFINES)
|
||||
|
||||
LIBENCHANT_ISPELL_LIB : $(LIBENCHANT_ISPELL_OBJECTS)
|
||||
-$(RM) $(LIBENCHANT_ISPELL_LIB)
|
||||
$(AR) $(AR_FLAGS)$(LIBENCHANT_ISPELL_LIB) $(LIBENCHANT_ISPELL_OBJECTS)
|
||||
|
||||
# libenchant_ispell.dll and libenchant_ispell.lib are created together.
|
||||
LIBENCHANT_ISPELL_DLL : $(LIBENCHANT_ISPELL_OBJECTS)
|
||||
$(LINK_DLL) $(LIBENCHANT_ISPELL_OBJECTS) $(LIBENCHANT_ISPELL_LIBS) -OUT:$(LIBENCHANT_ISPELL_DLL)
|
||||
$(EMBED_MANIFEST:exe_name=libenchant_ispell.dll)
|
||||
$(CLEAN_MANIFEST:exe_name=libenchant_ispell.dll)
|
||||
|
||||
libenchant_ispell_lib_clean:
|
||||
$(RM) $(LIBENCHANT_ISPELL_OBJECTS) $(LIBENCHANT_ISPELL_LIB)
|
||||
|
||||
libenchant_ispell_dll_clean:
|
||||
$(RM) $(LIBENCHANT_ISPELL_OBJECTS) $(LIBENCHANT_ISPELL_LIB) $(LIBENCHANT_ISPELL_DLL) $(LIBENCHANT_ISPELL_PDB)
|
||||
|
||||
################################################################################
|
||||
#### LIBENCHANT_MYSPELL ####
|
||||
|
||||
srcdir = $(topsrcdir)\myspell
|
||||
|
||||
LIBENCHANT_MYSPELL_DEFINES = \
|
||||
-D "HUNSPELL_STATIC" \
|
||||
-D "_ENCHANT_BUILD=1" \
|
||||
-D "_USRDLL" \
|
||||
-D "MYSPELL_PROVIDER_EXPORTS" \
|
||||
-D "_WINDLL"
|
||||
|
||||
LIBENCHANT_MYSPELL_DLL=$(outdir)\libenchant_myspell.dll
|
||||
LIBENCHANT_MYSPELL_LIB=$(libdir)\libenchant_myspell.lib
|
||||
LIBENCHANT_MYSPELL_PDB=$(pdbdir)\libenchant_myspell.pdb
|
||||
|
||||
LIBENCHANT_MYSPELL_LIBS = \
|
||||
$(otherlibdir)\glib-2.0.lib \
|
||||
$(otherlibdir)\gmodule-2.0.lib \
|
||||
$(libdir)\libenchant.lib \
|
||||
advapi32.lib ntstc_msvcrt.lib
|
||||
|
||||
LIBENCHANT_MYSPELL_OBJECTS = \
|
||||
$(objdir)\affentry.obj \
|
||||
$(objdir)\affixmgr.obj \
|
||||
$(objdir)\dictmgr.obj \
|
||||
$(objdir)\csutil.obj \
|
||||
$(objdir)\utf_info.obj \
|
||||
$(objdir)\hashmgr.obj \
|
||||
$(objdir)\suggestmgr.obj \
|
||||
$(objdir)\hunspell.obj \
|
||||
$(objdir)\filemgr.obj \
|
||||
$(objdir)\phonet.obj \
|
||||
$(objdir)\hunzip.obj \
|
||||
$(objdir)\myspell_checker.obj
|
||||
|
||||
!if !$(DLL)
|
||||
libenchant_myspell: LIBENCHANT_MYSPELL_LIB
|
||||
libenchant_myspell_clean: libenchant_myspell_lib_clean
|
||||
!else
|
||||
libenchant_myspell: LIBENCHANT_MYSPELL_DLL
|
||||
libenchant_myspell_clean: libenchant_myspell_dll_clean
|
||||
!endif
|
||||
|
||||
$(objdir)\affentry.obj : $(srcdir)\affentry.cxx
|
||||
$(CC_OBJ) $** $(LIBENCHANT_MYSPELL_DEFINES)
|
||||
|
||||
$(objdir)\affixmgr.obj : $(srcdir)\affixmgr.cxx
|
||||
$(CC_OBJ) $** $(LIBENCHANT_MYSPELL_DEFINES)
|
||||
|
||||
$(objdir)\dictmgr.obj : $(srcdir)\dictmgr.cxx
|
||||
$(CC_OBJ) $** $(LIBENCHANT_MYSPELL_DEFINES)
|
||||
|
||||
$(objdir)\csutil.obj : $(srcdir)\csutil.cxx
|
||||
$(CC_OBJ) $** $(LIBENCHANT_MYSPELL_DEFINES)
|
||||
|
||||
$(objdir)\utf_info.obj : $(srcdir)\utf_info.cxx
|
||||
$(CC_OBJ) $** $(LIBENCHANT_MYSPELL_DEFINES)
|
||||
|
||||
$(objdir)\hashmgr.obj : $(srcdir)\hashmgr.cxx
|
||||
$(CC_OBJ) $** $(LIBENCHANT_MYSPELL_DEFINES)
|
||||
|
||||
$(objdir)\suggestmgr.obj : $(srcdir)\suggestmgr.cxx
|
||||
$(CC_OBJ) $** $(LIBENCHANT_MYSPELL_DEFINES)
|
||||
|
||||
$(objdir)\hunspell.obj : $(srcdir)\hunspell.cxx
|
||||
$(CC_OBJ) $** $(LIBENCHANT_MYSPELL_DEFINES)
|
||||
|
||||
$(objdir)\filemgr.obj : $(srcdir)\filemgr.cxx
|
||||
$(CC_OBJ) $** $(LIBENCHANT_MYSPELL_DEFINES)
|
||||
|
||||
$(objdir)\phonet.obj : $(srcdir)\phonet.cxx
|
||||
$(CC_OBJ) $** $(LIBENCHANT_MYSPELL_DEFINES)
|
||||
|
||||
$(objdir)\hunzip.obj : $(srcdir)\hunzip.cxx
|
||||
$(CC_OBJ) $** $(LIBENCHANT_MYSPELL_DEFINES)
|
||||
|
||||
$(objdir)\myspell_checker.obj : $(srcdir)\myspell_checker.cpp
|
||||
$(CC_OBJ) $** $(LIBENCHANT_MYSPELL_DEFINES)
|
||||
|
||||
LIBENCHANT_MYSPELL_LIB : $(LIBENCHANT_MYSPELL_OBJECTS)
|
||||
-$(RM) $(LIBENCHANT_MYSPELL_LIB)
|
||||
$(AR) $(AR_FLAGS)$(LIBENCHANT_MYSPELL_LIB) $(LIBENCHANT_MYSPELL_OBJECTS)
|
||||
|
||||
# libenchant_myspell.dll and libenchant_myspell.lib are created together.
|
||||
LIBENCHANT_MYSPELL_DLL : $(LIBENCHANT_MYSPELL_OBJECTS)
|
||||
$(LINK_DLL) $(LIBENCHANT_MYSPELL_OBJECTS) $(LIBENCHANT_MYSPELL_LIBS) -OUT:$(LIBENCHANT_MYSPELL_DLL)
|
||||
$(EMBED_MANIFEST:exe_name=libenchant_myspell.dll)
|
||||
$(CLEAN_MANIFEST:exe_name=libenchant_myspell.dll)
|
||||
|
||||
libenchant_myspell_lib_clean:
|
||||
$(RM) $(LIBENCHANT_MYSPELL_OBJECTS) $(LIBENCHANT_MYSPELL_LIB)
|
||||
|
||||
libenchant_myspell_dll_clean:
|
||||
$(RM) $(LIBENCHANT_MYSPELL_OBJECTS) $(LIBENCHANT_MYSPELL_LIB) $(LIBENCHANT_MYSPELL_DLL) $(LIBENCHANT_MYSPELL_PDB)
|
||||
|
||||
################################################################################
|
||||
|
||||
check : all
|
||||
|
||||
mostlyclean : clean
|
||||
|
||||
clean: libenchant_clean libenchant_ispell_clean libenchant_myspell_clean enchant_clean enchant_lsmod_clean test-enchant_clean test-enchantxx_clean
|
||||
|
||||
distclean : clean
|
||||
|
||||
maintainer-clean : distclean
|
||||
|
||||
force :
|
||||
|
||||
20
win32/ext/enchant-wdk/src/release-x64.bat
Normal file
20
win32/ext/enchant-wdk/src/release-x64.bat
Normal file
@@ -0,0 +1,20 @@
|
||||
@echo off
|
||||
set ENCHANT_DEST=..\..\enchant-wdk-1.6.0-x64
|
||||
set RELEASE_DIR=..\bin\release
|
||||
rmdir /q /s %ENCHANT_DEST%
|
||||
mkdir %ENCHANT_DEST%
|
||||
copy ..\COPYING.LIB %ENCHANT_DEST%\LICENSE.ENCHANT
|
||||
xcopy /q /s /i %RELEASE_DIR%\enchant.exe %ENCHANT_DEST%\bin\
|
||||
copy %RELEASE_DIR%\enchant-lsmod.exe %ENCHANT_DEST%\bin
|
||||
copy %RELEASE_DIR%\libenchant.dll %ENCHANT_DEST%\bin
|
||||
xcopy /q /s /i enchant.h %ENCHANT_DEST%\include\enchant\
|
||||
copy "enchant++.h" %ENCHANT_DEST%\include\enchant\
|
||||
copy enchant-provider.h %ENCHANT_DEST%\include\enchant\
|
||||
xcopy /q /s /i %RELEASE_DIR%\libenchant_ispell.dll %ENCHANT_DEST%\lib\enchant\
|
||||
copy %RELEASE_DIR%\libenchant_ispell.exp %ENCHANT_DEST%\lib\enchant\
|
||||
copy %RELEASE_DIR%\libenchant_ispell.lib %ENCHANT_DEST%\lib\enchant\
|
||||
copy %RELEASE_DIR%\libenchant_myspell.dll %ENCHANT_DEST%\lib\enchant\
|
||||
copy %RELEASE_DIR%\libenchant_myspell.exp %ENCHANT_DEST%\lib\enchant\
|
||||
copy %RELEASE_DIR%\libenchant_myspell.lib %ENCHANT_DEST%\lib\enchant\
|
||||
copy %RELEASE_DIR%\libenchant.exp %ENCHANT_DEST%\lib
|
||||
copy %RELEASE_DIR%\libenchant.lib %ENCHANT_DEST%\lib
|
||||
20
win32/ext/enchant-wdk/src/release-x86.bat
Normal file
20
win32/ext/enchant-wdk/src/release-x86.bat
Normal file
@@ -0,0 +1,20 @@
|
||||
@echo off
|
||||
set ENCHANT_DEST=..\..\enchant-wdk-1.6.0-x86
|
||||
set RELEASE_DIR=..\bin\release
|
||||
rmdir /q /s %ENCHANT_DEST%
|
||||
mkdir %ENCHANT_DEST%
|
||||
copy ..\COPYING.LIB %ENCHANT_DEST%\LICENSE.ENCHANT
|
||||
xcopy /q /s /i %RELEASE_DIR%\enchant.exe %ENCHANT_DEST%\bin\
|
||||
copy %RELEASE_DIR%\enchant-lsmod.exe %ENCHANT_DEST%\bin
|
||||
copy %RELEASE_DIR%\libenchant.dll %ENCHANT_DEST%\bin
|
||||
xcopy /q /s /i enchant.h %ENCHANT_DEST%\include\enchant\
|
||||
copy "enchant++.h" %ENCHANT_DEST%\include\enchant\
|
||||
copy enchant-provider.h %ENCHANT_DEST%\include\enchant\
|
||||
xcopy /q /s /i %RELEASE_DIR%\libenchant_ispell.dll %ENCHANT_DEST%\lib\enchant\
|
||||
copy %RELEASE_DIR%\libenchant_ispell.exp %ENCHANT_DEST%\lib\enchant\
|
||||
copy %RELEASE_DIR%\libenchant_ispell.lib %ENCHANT_DEST%\lib\enchant\
|
||||
copy %RELEASE_DIR%\libenchant_myspell.dll %ENCHANT_DEST%\lib\enchant\
|
||||
copy %RELEASE_DIR%\libenchant_myspell.exp %ENCHANT_DEST%\lib\enchant\
|
||||
copy %RELEASE_DIR%\libenchant_myspell.lib %ENCHANT_DEST%\lib\enchant\
|
||||
copy %RELEASE_DIR%\libenchant.exp %ENCHANT_DEST%\lib
|
||||
copy %RELEASE_DIR%\libenchant.lib %ENCHANT_DEST%\lib
|
||||
57
win32/ext/libxml-wdk/libxml-wdk.patch
Normal file
57
win32/ext/libxml-wdk/libxml-wdk.patch
Normal file
@@ -0,0 +1,57 @@
|
||||
diff -ruN --strip-trailing-cr libxml2-2.7.8.orig/libxml.h libxml2-2.7.8/libxml.h
|
||||
--- libxml2-2.7.8.orig/libxml.h 2010-10-12 08:25:32 +0200
|
||||
+++ libxml2-2.7.8/libxml.h 2011-08-07 09:12:07 +0200
|
||||
@@ -94,3 +94,7 @@
|
||||
# define LIBXML_STATIC
|
||||
#endif
|
||||
#endif /* ! __XML_LIBXML_H__ */
|
||||
+
|
||||
+#ifndef vsnprintf
|
||||
+#define vsnprintf _vsnprintf
|
||||
+#endif
|
||||
diff -ruN --strip-trailing-cr libxml2-2.7.8.orig/win32/Makefile.msvc libxml2-2.7.8/win32/Makefile.msvc
|
||||
--- libxml2-2.7.8.orig/win32/Makefile.msvc 2010-11-04 14:58:44 +0100
|
||||
+++ libxml2-2.7.8/win32/Makefile.msvc 2011-08-07 09:23:47 +0200
|
||||
@@ -58,12 +58,20 @@
|
||||
!if "$(WITH_ZLIB)" == "1"
|
||||
CFLAGS = $(CFLAGS) /D "HAVE_ZLIB_H"
|
||||
!endif
|
||||
-CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
|
||||
+CFLAGS = $(CFLAGS)
|
||||
|
||||
# The linker and its options.
|
||||
LD = link.exe
|
||||
LDFLAGS = /nologo /VERSION:$(LIBXML_MAJOR_VERSION).$(LIBXML_MINOR_VERSION)
|
||||
LDFLAGS = $(LDFLAGS) /LIBPATH:$(BINDIR) /LIBPATH:$(LIBPREFIX)
|
||||
+
|
||||
+!ifdef X64
|
||||
+CFLAGS = $(CFLAGS) /favor:AMD64
|
||||
+LDFLAGS = $(LDFLAGS) msvcrt_win2003.obj
|
||||
+!else
|
||||
+LDFLAGS = $(LDFLAGS) msvcrt_winxp.obj
|
||||
+!endif
|
||||
+
|
||||
LIBS =
|
||||
!if "$(WITH_FTP)" == "1" || "$(WITH_HTTP)" == "1"
|
||||
LIBS = $(LIBS) wsock32.lib ws2_32.lib
|
||||
@@ -71,9 +79,9 @@
|
||||
!if "$(WITH_ICONV)" == "1"
|
||||
LIBS = $(LIBS) iconv.lib
|
||||
!endif
|
||||
-+!if "$(WITH_ICU)" == "1"
|
||||
+!if "$(WITH_ICU)" == "1"
|
||||
+LIBS = $(LIBS) icu.lib
|
||||
-+!endif
|
||||
+!endif
|
||||
!if "$(WITH_ZLIB)" == "1"
|
||||
LIBS = $(LIBS) zdll.lib
|
||||
!endif
|
||||
@@ -94,7 +102,7 @@
|
||||
LDFLAGS = $(LDFLAGS) /DEBUG
|
||||
!else
|
||||
CFLAGS = $(CFLAGS) /D "NDEBUG" /O2
|
||||
-LDFLAGS = $(LDFLAGS) /OPT:NOWIN98
|
||||
+LDFLAGS = $(LDFLAGS)
|
||||
!endif
|
||||
|
||||
# Libxml object files.
|
||||
20
win32/ext/libxml-wdk/win32/build-x64.bat
Normal file
20
win32/ext/libxml-wdk/win32/build-x64.bat
Normal file
@@ -0,0 +1,20 @@
|
||||
@echo off
|
||||
set TARGET="LibXML-WDK 2.7.8 x64.7z"
|
||||
set WDK_ROOT=c:\WinDDK\7600.16385.1
|
||||
set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt
|
||||
set LIB=%WDK_ROOT%\lib\wnet\amd64;%WDK_ROOT%\lib\Crt\amd64
|
||||
set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin\amd64;%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v7.0A\Bin\x64;%SystemRoot%\SysWOW64
|
||||
set X64=1
|
||||
cscript configure.js compiler=msvc iconv=no iso8859x=yes
|
||||
nmake /nologo /f Makefile.msvc clean
|
||||
nmake /nologo /f Makefile.msvc
|
||||
rmdir /q /s bin
|
||||
rmdir /q /s include
|
||||
rmdir /q /s lib
|
||||
nmake /nologo /f Makefile.msvc install
|
||||
move lib\libxml2.dll bin
|
||||
copy /y ..\COPYING LICENSE.LIBXML
|
||||
set PATH=%PATH%;%PROGRAMW6432%\7-Zip
|
||||
del %TARGET%
|
||||
7z a %TARGET% bin include lib LICENSE.LIBXML
|
||||
pause
|
||||
19
win32/ext/libxml-wdk/win32/build-x86.bat
Normal file
19
win32/ext/libxml-wdk/win32/build-x86.bat
Normal file
@@ -0,0 +1,19 @@
|
||||
@echo off
|
||||
set TARGET="LibXML-WDK 2.7.8 x86.7z"
|
||||
set WDK_ROOT=c:\WinDDK\7600.16385.1
|
||||
set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt
|
||||
set LIB=%WDK_ROOT%\lib\wxp\i386;%WDK_ROOT%\lib\Crt\i386
|
||||
set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin;%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\Common7\IDE;%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v7.0A\Bin;%SystemRoot%\system32
|
||||
cscript configure.js compiler=msvc iconv=no iso8859x=yes
|
||||
nmake /nologo /f Makefile.msvc clean
|
||||
nmake /nologo /f Makefile.msvc
|
||||
rmdir /q /s bin
|
||||
rmdir /q /s include
|
||||
rmdir /q /s lib
|
||||
nmake /nologo /f Makefile.msvc install
|
||||
move lib\libxml2.dll bin
|
||||
copy /y ..\COPYING LICENSE.LIBXML
|
||||
set PATH=%PATH%;%PROGRAMW6432%\7-Zip
|
||||
del %TARGET%
|
||||
7z a %TARGET% bin include lib LICENSE.LIBXML
|
||||
pause
|
||||
33
win32/ext/lua-wdk/build-x64.bat
Normal file
33
win32/ext/lua-wdk/build-x64.bat
Normal file
@@ -0,0 +1,33 @@
|
||||
@echo off
|
||||
set WDK_ROOT=c:\WinDDK\7600.16385.1
|
||||
set OPATH=%PATH%
|
||||
set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt;%WDK_ROOT%\inc\ddk
|
||||
set LIB=%WDK_ROOT%\lib\wnet\amd64;%WDK_ROOT%\lib\Crt\amd64
|
||||
set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin\amd64
|
||||
set DEST=..\lua-wdk-5.1.4-2-x64
|
||||
call etc\luavs-x64.bat
|
||||
@echo off
|
||||
echo.Press return when ready to install!
|
||||
pause
|
||||
set PATH=%OPATH%
|
||||
rmdir /Q /S %DEST%
|
||||
mkdir %DEST%
|
||||
mkdir %DEST%\bin
|
||||
mkdir %DEST%\lib
|
||||
mkdir %DEST%\include
|
||||
copy COPYRIGHT %DEST%\LICENSE.LUA
|
||||
:: binaries and libraries
|
||||
copy src\lua.exe %DEST%\bin
|
||||
copy src\lua51.dll %DEST%\bin
|
||||
copy src\lua51.exp %DEST%\bin
|
||||
copy src\luac.exe %DEST%\bin
|
||||
:: library
|
||||
copy src\lua51.lib %DEST%\lib
|
||||
:: api
|
||||
copy src\lua.h %DEST%\include
|
||||
copy src\luaconf.h %DEST%\include
|
||||
copy src\lualib.h %DEST%\include
|
||||
copy src\lauxlib.h %DEST%\include
|
||||
copy etc\lua.hpp %DEST%\include
|
||||
echo.Finished!
|
||||
pause
|
||||
33
win32/ext/lua-wdk/build-x86.bat
Normal file
33
win32/ext/lua-wdk/build-x86.bat
Normal file
@@ -0,0 +1,33 @@
|
||||
@echo off
|
||||
set WDK_ROOT=c:\WinDDK\7600.16385.1
|
||||
set OPATH=%PATH%
|
||||
set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt;%WDK_ROOT%\inc\ddk
|
||||
set LIB=%WDK_ROOT%\lib\wxp\i386;%WDK_ROOT%\lib\Crt\i386
|
||||
set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin;%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\Common7\IDE
|
||||
set DEST=..\lua-wdk-5.1.4-2-x86
|
||||
call etc\luavs.bat
|
||||
@echo off
|
||||
echo.Press return when ready to install!
|
||||
pause
|
||||
set PATH=%OPATH%
|
||||
rmdir /Q /S %DEST%
|
||||
mkdir %DEST%
|
||||
mkdir %DEST%\bin
|
||||
mkdir %DEST%\lib
|
||||
mkdir %DEST%\include
|
||||
copy COPYRIGHT %DEST%\LICENSE.LUA
|
||||
:: binaries and libraries
|
||||
copy src\lua.exe %DEST%\bin
|
||||
copy src\lua51.dll %DEST%\bin
|
||||
copy src\lua51.exp %DEST%\bin
|
||||
copy src\luac.exe %DEST%\bin
|
||||
:: library
|
||||
copy src\lua51.lib %DEST%\lib
|
||||
:: api
|
||||
copy src\lua.h %DEST%\include
|
||||
copy src\luaconf.h %DEST%\include
|
||||
copy src\lualib.h %DEST%\include
|
||||
copy src\lauxlib.h %DEST%\include
|
||||
copy etc\lua.hpp %DEST%\include
|
||||
echo.Finished!
|
||||
pause
|
||||
46
win32/ext/lua-wdk/lua-wdk.patch
Normal file
46
win32/ext/lua-wdk/lua-wdk.patch
Normal file
@@ -0,0 +1,46 @@
|
||||
diff -ruN --strip-trailing-cr lua-5.1.4.orig/etc/luavs-x64.bat lua-5.1.4/etc/luavs-x64.bat
|
||||
--- lua-5.1.4.orig/etc/luavs-x64.bat 1970-01-01 01:00:00 +0100
|
||||
+++ lua-5.1.4/etc/luavs-x64.bat 2010-08-16 13:02:08 +0200
|
||||
@@ -0,0 +1,28 @@
|
||||
+@rem Script to build Lua under "Visual Studio .NET Command Prompt".
|
||||
+@rem Do not run from this directory; run it from the toplevel: etc\luavs.bat .
|
||||
+@rem It creates lua51.dll, lua51.lib, lua.exe, and luac.exe in src.
|
||||
+@rem (contributed by David Manura and Mike Pall)
|
||||
+
|
||||
+@setlocal
|
||||
+@set MYCOMPILE=cl /nologo /MD /O2 /W3 /c
|
||||
+@set MYLINK=link /nologo msvcrt_win2003.obj
|
||||
+@set MYMT=mt /nologo
|
||||
+
|
||||
+cd src
|
||||
+%MYCOMPILE% /DLUA_BUILD_AS_DLL l*.c
|
||||
+del lua.obj luac.obj
|
||||
+%MYLINK% /DLL /out:lua51.dll l*.obj
|
||||
+if exist lua51.dll.manifest^
|
||||
+ %MYMT% -manifest lua51.dll.manifest -outputresource:lua51.dll;2
|
||||
+%MYCOMPILE% /DLUA_BUILD_AS_DLL lua.c
|
||||
+%MYLINK% /out:lua.exe lua.obj lua51.lib
|
||||
+if exist lua.exe.manifest^
|
||||
+ %MYMT% -manifest lua.exe.manifest -outputresource:lua.exe
|
||||
+%MYCOMPILE% l*.c print.c
|
||||
+del lua.obj linit.obj lbaselib.obj ldblib.obj liolib.obj lmathlib.obj^
|
||||
+ loslib.obj ltablib.obj lstrlib.obj loadlib.obj
|
||||
+%MYLINK% /out:luac.exe *.obj
|
||||
+if exist luac.exe.manifest^
|
||||
+ %MYMT% -manifest luac.exe.manifest -outputresource:luac.exe
|
||||
+del *.obj *.manifest
|
||||
+cd ..
|
||||
diff -ruN --strip-trailing-cr lua-5.1.4.orig/etc/luavs.bat lua-5.1.4/etc/luavs.bat
|
||||
--- lua-5.1.4.orig/etc/luavs.bat 2008-01-20 17:40:10 +0100
|
||||
+++ lua-5.1.4/etc/luavs.bat 2010-08-16 13:02:18 +0200
|
||||
@@ -4,8 +4,8 @@
|
||||
@rem (contributed by David Manura and Mike Pall)
|
||||
|
||||
@setlocal
|
||||
-@set MYCOMPILE=cl /nologo /MD /O2 /W3 /c /D_CRT_SECURE_NO_DEPRECATE
|
||||
-@set MYLINK=link /nologo
|
||||
+@set MYCOMPILE=cl /nologo /MD /O2 /W3 /c
|
||||
+@set MYLINK=link /nologo msvcrt_winxp.obj
|
||||
@set MYMT=mt /nologo
|
||||
|
||||
cd src
|
||||
13
win32/ext/nss-wdk/build-x64.bat
Normal file
13
win32/ext/nss-wdk/build-x64.bat
Normal file
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
set WDK_ROOT=c:\WinDDK\7600.16385.1
|
||||
set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt;%WDK_ROOT%\inc\ddk
|
||||
set LIB=%WDK_ROOT%\lib\wnet\amd64;%WDK_ROOT%\lib\Crt\amd64
|
||||
set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin\amd64;%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v7.0A\Bin\x64;c:\mozilla-build\msys\bin;c:\mozilla-build\moztools-x64\bin
|
||||
set BUILD_OPT=1
|
||||
set USE_64=1
|
||||
set WINDDK_BUILD=1
|
||||
cd mozilla\security\nss
|
||||
make nss_build_all
|
||||
cd ..\..\..
|
||||
echo.Finished!
|
||||
pause
|
||||
13
win32/ext/nss-wdk/build-x86.bat
Normal file
13
win32/ext/nss-wdk/build-x86.bat
Normal file
@@ -0,0 +1,13 @@
|
||||
@echo off
|
||||
set WDK_ROOT=c:\WinDDK\7600.16385.1
|
||||
set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt
|
||||
set LIB=%WDK_ROOT%\lib\wxp\i386;%WDK_ROOT%\lib\Crt\i386
|
||||
set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin;%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\Common7\IDE;%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v7.0A\Bin;c:\mozilla-build\msys\bin;c:\mozilla-build\moztools\bin
|
||||
set BUILD_OPT=1
|
||||
set USE_64=
|
||||
set WINDDK_BUILD=1
|
||||
cd mozilla\security\nss
|
||||
make nss_build_all
|
||||
cd ..\..\..
|
||||
echo.Finished!
|
||||
pause
|
||||
273
win32/ext/nss-wdk/nss-wdk.patch
Normal file
273
win32/ext/nss-wdk/nss-wdk.patch
Normal file
@@ -0,0 +1,273 @@
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/dbm/include/mcom_db.h nss-3.12.9/mozilla/dbm/include/mcom_db.h
|
||||
--- nss-3.12.9.orig/mozilla/dbm/include/mcom_db.h 2009-06-05 01:18:50 +0200
|
||||
+++ nss-3.12.9/mozilla/dbm/include/mcom_db.h 2011-02-11 00:03:42 +0100
|
||||
@@ -40,6 +40,15 @@
|
||||
#define off_t long
|
||||
#endif
|
||||
|
||||
+#ifdef WINDDK_BUILD
|
||||
+#ifndef stat
|
||||
+#define stat _stat
|
||||
+#endif
|
||||
+#ifndef getpid
|
||||
+#define getpid GetCurrentProcessId
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
#ifndef macintosh
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/dbm/src/mktemp.c nss-3.12.9/mozilla/dbm/src/mktemp.c
|
||||
--- nss-3.12.9.orig/mozilla/dbm/src/mktemp.c 2009-06-05 01:19:32 +0200
|
||||
+++ nss-3.12.9/mozilla/dbm/src/mktemp.c 2011-02-11 00:03:42 +0100
|
||||
@@ -45,13 +45,13 @@
|
||||
#include <ctype.h>
|
||||
#include "mcom_db.h"
|
||||
|
||||
-#ifndef _WINDOWS
|
||||
-#include <unistd.h>
|
||||
-#endif
|
||||
-
|
||||
#ifdef _WINDOWS
|
||||
+#ifndef WINDDK_BUILD
|
||||
#include <process.h>
|
||||
+#endif
|
||||
#include "winfile.h"
|
||||
+#else
|
||||
+#include <unistd.h>
|
||||
#endif
|
||||
|
||||
static int _gettemp(char *path, register int *doopen, int extraFlags);
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/nsprpub/config/config.mk nss-3.12.9/mozilla/nsprpub/config/config.mk
|
||||
--- nss-3.12.9.orig/mozilla/nsprpub/config/config.mk 2010-07-09 04:10:34 +0200
|
||||
+++ nss-3.12.9/mozilla/nsprpub/config/config.mk 2011-02-11 00:03:42 +0100
|
||||
@@ -154,6 +154,15 @@
|
||||
DEFINES += -DMOZ_UNICODE
|
||||
endif
|
||||
|
||||
+ifdef WINDDK_BUILD
|
||||
+OS_CFLAGS += -DWINDDK_BUILD
|
||||
+ifdef USE_64
|
||||
+OS_LIBS += msvcrt_win2003.obj
|
||||
+else
|
||||
+OS_LIBS += msvcrt_winxp.obj
|
||||
+endif
|
||||
+endif
|
||||
+
|
||||
####################################################################
|
||||
#
|
||||
# Configuration for the release process
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/nsprpub/pr/src/Makefile.in nss-3.12.9/mozilla/nsprpub/pr/src/Makefile.in
|
||||
--- nss-3.12.9.orig/mozilla/nsprpub/pr/src/Makefile.in 2010-10-13 02:52:54 +0200
|
||||
+++ nss-3.12.9/mozilla/nsprpub/pr/src/Makefile.in 2011-02-11 00:03:42 +0100
|
||||
@@ -197,9 +197,17 @@
|
||||
ifdef NS_USE_GCC
|
||||
OS_LIBS = -ladvapi32 -lwsock32 -lwinmm
|
||||
else
|
||||
+ifdef WINDDK_BUILD
|
||||
+ifdef USE_64
|
||||
+OS_LIBS = advapi32.lib wsock32.lib winmm.lib msvcrt_win2003.obj
|
||||
+else
|
||||
+OS_LIBS = advapi32.lib wsock32.lib winmm.lib msvcrt_winxp.obj
|
||||
+endif
|
||||
+else
|
||||
OS_LIBS = advapi32.lib wsock32.lib winmm.lib
|
||||
endif
|
||||
endif
|
||||
+endif
|
||||
|
||||
ifeq ($(OS_ARCH),WINCE)
|
||||
OS_LIBS = ws2.lib
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/nsprpub/pr/src/md/windows/ntmisc.c nss-3.12.9/mozilla/nsprpub/pr/src/md/windows/ntmisc.c
|
||||
--- nss-3.12.9.orig/mozilla/nsprpub/pr/src/md/windows/ntmisc.c 2010-08-15 22:59:14 +0200
|
||||
+++ nss-3.12.9/mozilla/nsprpub/pr/src/md/windows/ntmisc.c 2011-02-11 00:03:42 +0100
|
||||
@@ -625,7 +625,11 @@
|
||||
*/
|
||||
hasFdInheritBuffer = (attr && attr->fdInheritBuffer);
|
||||
if ((envp == NULL) && hasFdInheritBuffer) {
|
||||
+#ifdef WINDDK_BUILD
|
||||
+ envp = getenv;
|
||||
+#else
|
||||
envp = environ;
|
||||
+#endif
|
||||
}
|
||||
|
||||
if (envp != NULL) {
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/security/coreconf/WIN32.mk nss-3.12.9/mozilla/security/coreconf/WIN32.mk
|
||||
--- nss-3.12.9.orig/mozilla/security/coreconf/WIN32.mk 2010-08-18 03:28:06 +0200
|
||||
+++ nss-3.12.9/mozilla/security/coreconf/WIN32.mk 2011-02-11 00:03:42 +0100
|
||||
@@ -145,6 +145,14 @@
|
||||
else # !NS_USE_GCC
|
||||
OS_CFLAGS += -W3 -nologo -D_CRT_SECURE_NO_WARNINGS
|
||||
OS_DLLFLAGS += -nologo -DLL -SUBSYSTEM:WINDOWS
|
||||
+ ifdef WINDDK_BUILD
|
||||
+ OS_CFLAGS += -DWINDDK_BUILD
|
||||
+ ifdef USE_64
|
||||
+ OS_LIBS += msvcrt_win2003.obj
|
||||
+ else
|
||||
+ OS_LIBS += msvcrt_winxp.obj
|
||||
+ endif
|
||||
+ endif
|
||||
ifeq ($(_MSC_VER),$(_MSC_VER_6))
|
||||
ifndef MOZ_DEBUG_SYMBOLS
|
||||
OS_DLLFLAGS += -PDB:NONE
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/security/coreconf/arch.mk nss-3.12.9/mozilla/security/coreconf/arch.mk
|
||||
--- nss-3.12.9.orig/mozilla/security/coreconf/arch.mk 2009-06-05 04:14:50 +0200
|
||||
+++ nss-3.12.9/mozilla/security/coreconf/arch.mk 2011-02-11 00:03:42 +0100
|
||||
@@ -268,7 +268,15 @@
|
||||
# the uname.exe in the MSYS toolkit.
|
||||
#
|
||||
ifeq (MINGW32_NT,$(findstring MINGW32_NT,$(OS_ARCH)))
|
||||
- OS_RELEASE := $(patsubst MINGW32_NT-%,%,$(OS_ARCH))
|
||||
+ ifdef WINDDK_BUILD
|
||||
+ ifdef USE_64
|
||||
+ OS_RELEASE := 5.2
|
||||
+ else
|
||||
+ OS_RELEASE := 5.1
|
||||
+ endif
|
||||
+ else
|
||||
+ OS_RELEASE := $(patsubst MINGW32_NT-%,%,$(OS_ARCH))
|
||||
+ endif
|
||||
OS_ARCH = WINNT
|
||||
USE_MSYS = 1
|
||||
ifndef CPU_ARCH
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/security/nss/cmd/platlibs.mk nss-3.12.9/mozilla/security/nss/cmd/platlibs.mk
|
||||
--- nss-3.12.9.orig/mozilla/security/nss/cmd/platlibs.mk 2010-06-12 02:58:34 +0200
|
||||
+++ nss-3.12.9/mozilla/security/nss/cmd/platlibs.mk 2011-02-11 00:03:42 +0100
|
||||
@@ -249,3 +249,11 @@
|
||||
endif
|
||||
|
||||
JAR_LIBS = $(DIST)/lib/$(LIB_PREFIX)jar.$(LIB_SUFFIX)
|
||||
+
|
||||
+ifdef WINDDK_BUILD
|
||||
+ifdef USE_64
|
||||
+OS_LIBS += msvcrt_win2003.obj
|
||||
+else
|
||||
+OS_LIBS += msvcrt_winxp.obj
|
||||
+endif
|
||||
+endif
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/security/nss/cmd/selfserv/selfserv.c nss-3.12.9/mozilla/security/nss/cmd/selfserv/selfserv.c
|
||||
--- nss-3.12.9.orig/mozilla/security/nss/cmd/selfserv/selfserv.c 2010-04-03 20:27:28 +0200
|
||||
+++ nss-3.12.9/mozilla/security/nss/cmd/selfserv/selfserv.c 2011-02-11 00:03:42 +0100
|
||||
@@ -51,8 +51,13 @@
|
||||
#endif
|
||||
|
||||
#if defined(_WINDOWS)
|
||||
+#ifdef WINDDK_BUILD
|
||||
+#include <windows.h>
|
||||
+#define getpid GetCurrentProcessId
|
||||
+#else
|
||||
#include <process.h> /* for getpid() */
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
#include <signal.h>
|
||||
#include <stdlib.h>
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/security/nss/lib/freebl/mpi/mpcpucache.c nss-3.12.9/mozilla/security/nss/lib/freebl/mpi/mpcpucache.c
|
||||
--- nss-3.12.9.orig/mozilla/security/nss/lib/freebl/mpi/mpcpucache.c 2009-03-10 22:18:08 +0100
|
||||
+++ nss-3.12.9/mozilla/security/nss/lib/freebl/mpi/mpcpucache.c 2011-02-11 00:03:42 +0100
|
||||
@@ -80,7 +80,11 @@
|
||||
|
||||
#elif defined(_MSC_VER)
|
||||
|
||||
+#ifdef WINDDK_BUILD
|
||||
+#include <ntddk.h>
|
||||
+#else
|
||||
#include <intrin.h>
|
||||
+#endif
|
||||
|
||||
void freebl_cpuid(unsigned long op, unsigned long *eax,
|
||||
unsigned long *ebx, unsigned long *ecx,
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/security/nss/lib/freebl/win_rand.c nss-3.12.9/mozilla/security/nss/lib/freebl/win_rand.c
|
||||
--- nss-3.12.9.orig/mozilla/security/nss/lib/freebl/win_rand.c 2011-01-06 20:05:58 +0100
|
||||
+++ nss-3.12.9/mozilla/security/nss/lib/freebl/win_rand.c 2011-02-11 00:03:42 +0100
|
||||
@@ -50,6 +50,13 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
+
|
||||
+#ifdef WINDDK_BUILD
|
||||
+#ifndef stat
|
||||
+#define stat _stat
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
#include <stdio.h>
|
||||
#include "prio.h"
|
||||
#include "prerror.h"
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/security/nss/lib/softoken/legacydb/config.mk nss-3.12.9/mozilla/security/nss/lib/softoken/legacydb/config.mk
|
||||
--- nss-3.12.9.orig/mozilla/security/nss/lib/softoken/legacydb/config.mk 2009-06-11 02:55:50 +0200
|
||||
+++ nss-3.12.9/mozilla/security/nss/lib/softoken/legacydb/config.mk 2011-02-11 00:03:42 +0100
|
||||
@@ -96,3 +96,11 @@
|
||||
ifeq ($(OS_TARGET),WINCE)
|
||||
DEFINES += -DDBM_USING_NSPR
|
||||
endif
|
||||
+
|
||||
+ifdef WINDDK_BUILD
|
||||
+ifdef USE_64
|
||||
+OS_LIBS += msvcrt_win2003.obj
|
||||
+else
|
||||
+OS_LIBS += msvcrt_winxp.obj
|
||||
+endif
|
||||
+endif
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/security/nss/lib/sqlite/sqlite3.c nss-3.12.9/mozilla/security/nss/lib/sqlite/sqlite3.c
|
||||
--- nss-3.12.9.orig/mozilla/security/nss/lib/sqlite/sqlite3.c 2010-01-08 06:42:38 +0100
|
||||
+++ nss-3.12.9/mozilla/security/nss/lib/sqlite/sqlite3.c 2011-02-11 00:03:42 +0100
|
||||
@@ -10980,7 +10980,8 @@
|
||||
** localtime_s().
|
||||
*/
|
||||
#if !defined(HAVE_LOCALTIME_R) && !defined(HAVE_LOCALTIME_S) && \
|
||||
- defined(_MSC_VER) && defined(_CRT_INSECURE_DEPRECATE)
|
||||
+ defined(_MSC_VER) && defined(_CRT_INSECURE_DEPRECATE) && \
|
||||
+ !defined(WINDDK_BUILD)
|
||||
#define HAVE_LOCALTIME_S 1
|
||||
#endif
|
||||
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/security/nss/lib/ssl/sslimpl.h nss-3.12.9/mozilla/security/nss/lib/ssl/sslimpl.h
|
||||
--- nss-3.12.9.orig/mozilla/security/nss/lib/ssl/sslimpl.h 2010-07-31 06:33:52 +0200
|
||||
+++ nss-3.12.9/mozilla/security/nss/lib/ssl/sslimpl.h 2011-02-11 00:03:42 +0100
|
||||
@@ -1624,8 +1624,13 @@
|
||||
#elif defined(_WIN32_WCE)
|
||||
#define SSL_GETPID GetCurrentProcessId
|
||||
#elif defined(WIN32)
|
||||
+#ifdef WINDDK_BUILD
|
||||
+#include <windows.h>
|
||||
+#define SSL_GETPID GetCurrentProcessId
|
||||
+#else
|
||||
extern int __cdecl _getpid(void);
|
||||
#define SSL_GETPID _getpid
|
||||
+#endif
|
||||
#else
|
||||
#define SSL_GETPID() 0
|
||||
#endif
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/security/nss/lib/zlib/config.mk nss-3.12.9/mozilla/security/nss/lib/zlib/config.mk
|
||||
--- nss-3.12.9.orig/mozilla/security/nss/lib/zlib/config.mk 2009-11-07 02:13:10 +0100
|
||||
+++ nss-3.12.9/mozilla/security/nss/lib/zlib/config.mk 2011-02-11 00:03:42 +0100
|
||||
@@ -46,3 +46,11 @@
|
||||
PROGRAM =
|
||||
|
||||
EXTRA_LIBS = $(LIBRARY)
|
||||
+
|
||||
+ifdef WINDDK_BUILD
|
||||
+ifdef USE_64
|
||||
+OS_LIBS += msvcrt_win2003.obj
|
||||
+else
|
||||
+OS_LIBS += msvcrt_winxp.obj
|
||||
+endif
|
||||
+endif
|
||||
diff -ruN --strip-trailing-cr nss-3.12.9.orig/mozilla/security/nss/lib/zlib/gzio.c nss-3.12.9/mozilla/security/nss/lib/zlib/gzio.c
|
||||
--- nss-3.12.9.orig/mozilla/security/nss/lib/zlib/gzio.c 2009-11-07 02:13:10 +0100
|
||||
+++ nss-3.12.9/mozilla/security/nss/lib/zlib/gzio.c 2011-02-11 00:03:42 +0100
|
||||
@@ -11,6 +11,12 @@
|
||||
|
||||
#include "zutil.h"
|
||||
|
||||
+#ifdef WINDDK_BUILD
|
||||
+#ifndef vsnprintf
|
||||
+#define vsnprintf _vsnprintf
|
||||
+#endif
|
||||
+#endif
|
||||
+
|
||||
#ifdef NO_DEFLATE /* for compatibility with old definition */
|
||||
# define NO_GZCOMPRESS
|
||||
#endif
|
||||
30
win32/ext/openssl-wdk/build-x64.bat
Normal file
30
win32/ext/openssl-wdk/build-x64.bat
Normal file
@@ -0,0 +1,30 @@
|
||||
@echo off
|
||||
set WDK_ROOT=c:\WinDDK\7600.16385.1
|
||||
set PERL_PATH=c:\mozilla-build\perl-5.12-x64\perl\bin
|
||||
set NASM_PATH=c:\mozilla-build\nasm
|
||||
set OPENSSL_DEST=..\openssl-wdk-1.0.0e-x64
|
||||
set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt;%WDK_ROOT%\inc\ddk;ms;zlib-x64\include
|
||||
set LIB=%WDK_ROOT%\lib\wnet\amd64;%WDK_ROOT%\lib\Crt\amd64;zlib-x64\lib
|
||||
set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin\amd64;%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v7.0A\Bin\x64;%PERL_PATH%;%NASM_PATH%;%SystemRoot%\System32;..\zlib-x64\bin
|
||||
perl Configure VC-WIN64A enable-camellia zlib-dynamic --openssldir=./
|
||||
call ms\do_win64a
|
||||
nmake -f ms\ntdll.mak vclean
|
||||
nmake -f ms\ntdll.mak
|
||||
nmake -f ms\ntdll.mak test
|
||||
perl mk-ca-bundle.pl -n
|
||||
echo.Press return when ready to install!
|
||||
pause
|
||||
move include include-orig
|
||||
nmake -f ms\ntdll.mak install
|
||||
rmdir /q /s %OPENSSL_DEST%
|
||||
mkdir %OPENSSL_DEST%
|
||||
move bin %OPENSSL_DEST%
|
||||
move include %OPENSSL_DEST%
|
||||
move lib %OPENSSL_DEST%
|
||||
mkdir %OPENSSL_DEST%\share
|
||||
move openssl.cnf %OPENSSL_DEST%\share\openssl.cnf.example
|
||||
move include-orig include
|
||||
copy zlib-x64\bin\zlib1.dll %OPENSSL_DEST%\bin
|
||||
move cert.pem %OPENSSL_DEST%\bin
|
||||
echo.Finished!
|
||||
pause
|
||||
31
win32/ext/openssl-wdk/build-x86.bat
Normal file
31
win32/ext/openssl-wdk/build-x86.bat
Normal file
@@ -0,0 +1,31 @@
|
||||
@echo off
|
||||
set WDK_ROOT=c:\WinDDK\7600.16385.1
|
||||
set PERL_PATH=c:\mozilla-build\perl-5.12-x86\perl\bin
|
||||
set NASM_PATH=c:\mozilla-build\nasm
|
||||
set OPENSSL_DEST=..\openssl-wdk-1.0.0e-x86
|
||||
set INCLUDE=%WDK_ROOT%\inc\api;%WDK_ROOT%\inc\crt;%WDK_ROOT%\inc\ddk;ms;zlib-x86\include
|
||||
set LIB=%WDK_ROOT%\lib\wxp\i386;%WDK_ROOT%\lib\Crt\i386;zlib-x86\lib
|
||||
set PATH=%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\VC\bin;%PROGRAMFILES(X86)%\Microsoft Visual Studio 10.0\Common7\IDE;%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v7.0A\Bin;%PERL_PATH%;%NASM_PATH%;%SystemRoot%\System32;..\zlib-x86\bin
|
||||
perl Configure VC-WIN32 enable-camellia zlib-dynamic --openssldir=./
|
||||
call ms\do_nasm
|
||||
@echo off
|
||||
nmake -f ms\ntdll.mak vclean
|
||||
nmake -f ms\ntdll.mak
|
||||
nmake -f ms\ntdll.mak test
|
||||
perl mk-ca-bundle.pl -n
|
||||
echo.Press return when ready to install!
|
||||
pause
|
||||
move include include-orig
|
||||
nmake -f ms\ntdll.mak install
|
||||
rmdir /q /s %OPENSSL_DEST%
|
||||
mkdir %OPENSSL_DEST%
|
||||
move bin %OPENSSL_DEST%
|
||||
move include %OPENSSL_DEST%
|
||||
move lib %OPENSSL_DEST%
|
||||
mkdir %OPENSSL_DEST%\share
|
||||
move openssl.cnf %OPENSSL_DEST%\share\openssl.cnf.example
|
||||
move include-orig include
|
||||
copy zlib-x86\bin\zlib1.dll %OPENSSL_DEST%\bin
|
||||
move cert.pem %OPENSSL_DEST%\bin
|
||||
echo.Finished!
|
||||
pause
|
||||
23582
win32/ext/openssl-wdk/certdata.txt
Normal file
23582
win32/ext/openssl-wdk/certdata.txt
Normal file
File diff suppressed because it is too large
Load Diff
195
win32/ext/openssl-wdk/mk-ca-bundle.pl
Normal file
195
win32/ext/openssl-wdk/mk-ca-bundle.pl
Normal file
@@ -0,0 +1,195 @@
|
||||
#!/usr/bin/perl -w
|
||||
# ***************************************************************************
|
||||
# * _ _ ____ _
|
||||
# * Project ___| | | | _ \| |
|
||||
# * / __| | | | |_) | |
|
||||
# * | (__| |_| | _ <| |___
|
||||
# * \___|\___/|_| \_\_____|
|
||||
# *
|
||||
# * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
# *
|
||||
# * This software is licensed as described in the file COPYING, which
|
||||
# * you should have received as part of this distribution. The terms
|
||||
# * are also available at http://curl.haxx.se/docs/copyright.html.
|
||||
# *
|
||||
# * You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
||||
# * copies of the Software, and permit persons to whom the Software is
|
||||
# * furnished to do so, under the terms of the COPYING file.
|
||||
# *
|
||||
# * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
||||
# * KIND, either express or implied.
|
||||
# *
|
||||
# * $Id: mk-ca-bundle.pl,v 1.10 2008/02/15 00:41:54 gknauf Exp $
|
||||
# ***************************************************************************
|
||||
# This Perl script creates a fresh ca-bundle.crt file for use with libcurl.
|
||||
# It downloads certdata.txt from Mozilla's source tree (see URL below),
|
||||
# then parses certdata.txt and extracts CA Root Certificates into PEM format.
|
||||
# These are then processed with the OpenSSL commandline tool to produce the
|
||||
# final ca-bundle.crt file.
|
||||
# The script is based on the parse-certs script written by Roland Krikava.
|
||||
# This Perl script works on almost any platform since its only external
|
||||
# dependency is the OpenSSL commandline tool for optional text listing.
|
||||
# Hacked by Guenter Knauf.
|
||||
#
|
||||
# Hacked again by Cameron Kaiser to use cURL *instead* of LWP.
|
||||
#
|
||||
use Getopt::Std;
|
||||
use MIME::Base64;
|
||||
#use LWP::UserAgent;
|
||||
use strict;
|
||||
use vars qw($opt_b $opt_h $opt_i $opt_l $opt_n $opt_q $opt_t $opt_u $opt_v);
|
||||
|
||||
# more up-to-date revisions can always be found at http://hg.mozilla.org/mozilla-central/
|
||||
# in the security/nss/lib/ckfw/builtins folder
|
||||
my $url = 'http://mxr.mozilla.org/seamonkey/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1';
|
||||
# If the OpenSSL commandline is not in search path you can configure it here!
|
||||
my $openssl = 'openssl';
|
||||
|
||||
my $version = $1 if ('$Revision: 1.10 $' =~ /\s(\d+\.\d+)\s/);
|
||||
|
||||
getopts('bhilnqtuv');
|
||||
|
||||
if ($opt_i) {
|
||||
print ("=" x 78 . "\n");
|
||||
print "Script Version : $version\n";
|
||||
print "Perl Version : $]\n";
|
||||
print "Operating System Name : $^O\n";
|
||||
print "Getopt::Std.pm Version : ${Getopt::Std::VERSION}\n";
|
||||
print "MIME::Base64.pm Version : ${MIME::Base64::VERSION}\n";
|
||||
# print "LWP::UserAgent.pm Version : ${LWP::UserAgent::VERSION}\n";
|
||||
# print "LWP.pm Version : ${LWP::VERSION}\n";
|
||||
print "This version uses cURL. As it should.\n";
|
||||
print `curl --version`;
|
||||
print ("=" x 78 . "\n");
|
||||
}
|
||||
|
||||
$0 =~ s/\\/\//g;
|
||||
$0 = substr($0, rindex($0, '/') + 1);
|
||||
if ($opt_h) {
|
||||
printf("Usage:\t%s [-b] [-i] [-l] [-n] [-q] [-t] [-u] [-v] [<outputfile>]\n", $0);
|
||||
print "\t-b\tbackup an existing version of ca-bundle.crt\n";
|
||||
print "\t-i\tprint version info about used modules\n";
|
||||
print "\t-l\tprint license info about certdata.txt\n";
|
||||
print "\t-n\tno download of certdata.txt (to use existing)\n";
|
||||
print "\t-q\tbe really quiet (no progress output at all)\n";
|
||||
print "\t-t\tinclude plain text listing of certificates\n";
|
||||
print "\t-u\tunlink (remove) certdata.txt after processing\n";
|
||||
print "\t-v\tbe verbose and print out processed CAs\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
#my $crt = $ARGV[0] || 'ca-bundle.crt';
|
||||
my $crt = $ARGV[0] || 'cert.pem';
|
||||
my $txt = substr($url, rindex($url, '/') + 1);
|
||||
$txt =~ s/\?.*//;
|
||||
|
||||
if (!$opt_n || !-e $txt) {
|
||||
print "Downloading '$txt' ...\n" if (!$opt_q);
|
||||
#my $ua = new LWP::UserAgent(agent => "$0/$version");
|
||||
#my $req = new HTTP::Request('GET', $url);
|
||||
#my $res = $ua->request($req);
|
||||
#if ($res->is_success) {
|
||||
# open(TXT,">$txt") or die "Couldn't open $txt: $!";
|
||||
# print TXT $res->content . "\n";
|
||||
# close(TXT) or die "Couldn't close $txt: $!";
|
||||
#} else {
|
||||
# die $res->status_line;
|
||||
#}
|
||||
system("curl $url > $txt");
|
||||
}
|
||||
|
||||
if ($opt_b && -e $crt) {
|
||||
my $bk = 1;
|
||||
while (-e "$crt.~${bk}~") {
|
||||
$bk++;
|
||||
}
|
||||
rename $crt, "$crt.~${bk}~";
|
||||
}
|
||||
|
||||
my $format = $opt_t ? "plain text and " : "";
|
||||
my $currentdate = scalar gmtime() . " UTC";
|
||||
open(CRT,">$crt") or die "Couldn't open $crt: $!";
|
||||
print CRT <<EOT;
|
||||
##
|
||||
## $crt -- Bundle of CA Root Certificates
|
||||
##
|
||||
## Converted at: ${currentdate}
|
||||
##
|
||||
## This is a bundle of X.509 certificates of public Certificate Authorities
|
||||
## (CA). These were automatically extracted from Mozilla's root certificates
|
||||
## file (certdata.txt). This file can be found in the mozilla source tree:
|
||||
## '/mozilla/security/nss/lib/ckfw/builtins/certdata.txt'
|
||||
##
|
||||
## It contains the certificates in ${format}PEM format and therefore
|
||||
## can be directly used with curl / libcurl / php_curl, or with
|
||||
## an Apache+mod_ssl webserver for SSL client authentication.
|
||||
## Just configure this file as the SSLCACertificateFile.
|
||||
##
|
||||
|
||||
EOT
|
||||
|
||||
close(CRT) or die "Couldn't close $crt: $!";
|
||||
|
||||
print "Processing '$txt' ...\n" if (!$opt_q);
|
||||
my $caname;
|
||||
my $certnum = 0;
|
||||
open(TXT,"$txt") or die "Couldn't open $txt: $!";
|
||||
while (<TXT>) {
|
||||
if (/\*\*\*\*\* BEGIN LICENSE BLOCK \*\*\*\*\*/) {
|
||||
open(CRT, ">>$crt") or die "Couldn't open $crt: $!";
|
||||
print CRT;
|
||||
print if ($opt_l);
|
||||
while (<TXT>) {
|
||||
print CRT;
|
||||
print if ($opt_l);
|
||||
last if (/\*\*\*\*\* END LICENSE BLOCK \*\*\*\*\*/);
|
||||
}
|
||||
close(CRT) or die "Couldn't close $crt: $!";
|
||||
}
|
||||
next if /^#|^\s*$/;
|
||||
chomp;
|
||||
if (/^CVS_ID\s+\"(.*)\"/) {
|
||||
open(CRT, ">>$crt") or die "Couldn't open $crt: $!";
|
||||
print CRT "# $1\n";
|
||||
close(CRT) or die "Couldn't close $crt: $!";
|
||||
}
|
||||
if (/^CKA_LABEL\s+[A-Z0-9]+\s+\"(.*)\"/) {
|
||||
$caname = $1;
|
||||
}
|
||||
if (/^CKA_VALUE MULTILINE_OCTAL/) {
|
||||
my $data;
|
||||
while (<TXT>) {
|
||||
last if (/^END/);
|
||||
chomp;
|
||||
my @octets = split(/\\/);
|
||||
shift @octets;
|
||||
for (@octets) {
|
||||
$data .= chr(oct);
|
||||
}
|
||||
}
|
||||
my $pem = "-----BEGIN CERTIFICATE-----\n"
|
||||
. MIME::Base64::encode($data)
|
||||
. "-----END CERTIFICATE-----\n";
|
||||
open(CRT, ">>$crt") or die "Couldn't open $crt: $!";
|
||||
print CRT "\n$caname\n";
|
||||
print CRT ("=" x length($caname) . "\n");
|
||||
if (!$opt_t) {
|
||||
print CRT $pem;
|
||||
}
|
||||
close(CRT) or die "Couldn't close $crt: $!";
|
||||
if ($opt_t) {
|
||||
open(TMP, "|$openssl x509 -md5 -fingerprint -text -inform PEM >> $crt") or die "Couldn't open openssl pipe: $!";
|
||||
print TMP $pem;
|
||||
close(TMP) or die "Couldn't close openssl pipe: $!";
|
||||
}
|
||||
print "Parsing: $caname\n" if ($opt_v);
|
||||
$certnum ++;
|
||||
}
|
||||
}
|
||||
close(TXT) or die "Couldn't close $txt: $!";
|
||||
unlink $txt if ($opt_u);
|
||||
print "Done ($certnum CA certs processed).\n" if (!$opt_q);
|
||||
|
||||
exit;
|
||||
|
||||
|
||||
64
win32/ext/openssl-wdk/openssl-wdk.patch
Normal file
64
win32/ext/openssl-wdk/openssl-wdk.patch
Normal file
@@ -0,0 +1,64 @@
|
||||
diff -ruN --strip-trailing-cr openssl-1.0.0d.orig/Configure openssl-1.0.0d/Configure
|
||||
--- openssl-1.0.0d.orig/Configure 2010-11-30 22:19:26 +0100
|
||||
+++ openssl-1.0.0d/Configure 2011-03-28 04:16:11 +0200
|
||||
@@ -491,12 +491,12 @@
|
||||
#
|
||||
# Win64 targets, WIN64I denotes IA-64 and WIN64A - AMD64
|
||||
"VC-WIN64I","cl:-W3 -Gs0 -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_DEPRECATE:::WIN64I::SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN:ia64cpuid.o:ia64.o::aes_core.o aes_cbc.o aes-ia64.o::md5-ia64.o:sha1-ia64.o sha256-ia64.o sha512-ia64.o:::::::ias:win32",
|
||||
-"VC-WIN64A","cl:-W3 -Gs0 -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_DEPRECATE:::WIN64A::SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN:x86_64cpuid.o:bn_asm.o x86_64-mont.o::aes-x86_64.o::md5-x86_64.o:sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o::rc4-x86_64.o:::wp-x86_64.o:cmll-x86_64.o cmll_misc.o:auto:win32",
|
||||
+"VC-WIN64A","cl:-W3 -MP -Gs0 -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DUNICODE -D_UNICODE:::WIN64A::SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN:x86_64cpuid.o:bn_asm.o x86_64-mont.o::aes-x86_64.o::md5-x86_64.o:sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o::rc4-x86_64.o:::wp-x86_64.o:cmll-x86_64.o cmll_misc.o:auto:win32",
|
||||
"debug-VC-WIN64I","cl:-W3 -Gs0 -Gy -Zi -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_DEPRECATE:::WIN64I::SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN:ia64cpuid.o:ia64.o::aes_core.o aes_cbc.o aes-ia64.o::md5-ia64.o:sha1-ia64.o sha256-ia64.o sha512-ia64.o:::::::ias:win32",
|
||||
"debug-VC-WIN64A","cl:-W3 -Gs0 -Gy -Zi -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_DEPRECATE:::WIN64A::SIXTY_FOUR_BIT RC4_CHUNK_LL DES_INT EXPORT_VAR_AS_FN:x86_64cpuid.o:bn_asm.o x86_64-mont.o::aes-x86_64.o::md5-x86_64.o:sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o::rc4-x86_64.o:::wp-x86_64.o:cmll-x86_64.o cmll_misc.o:auto:win32",
|
||||
# x86 Win32 target defaults to ANSI API, if you want UNICODE, complement
|
||||
# 'perl Configure VC-WIN32' with '-DUNICODE -D_UNICODE'
|
||||
-"VC-WIN32","cl:-W3 -WX -Gs0 -GF -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE:::WIN32::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}:${x86_asm}:win32n:win32",
|
||||
+"VC-WIN32","cl:-W3 -WX -MP -Gs0 -GF -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN:::WIN32::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}:${x86_asm}:win32n:win32",
|
||||
# Unified CE target
|
||||
"debug-VC-WIN32","cl:-W3 -WX -Gs0 -GF -Gy -Zi -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE:::WIN32::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}:${x86_asm}:win32n:win32",
|
||||
"VC-CE","cl::::WINCE::BN_LLONG RC4_INDEX EXPORT_VAR_AS_FN ${x86_gcc_opts}:${no_asm}:win32",
|
||||
diff -ruN --strip-trailing-cr openssl-1.0.0d.orig/engines/e_aep.c openssl-1.0.0d/engines/e_aep.c
|
||||
--- openssl-1.0.0d.orig/engines/e_aep.c 2010-11-18 22:59:42 +0100
|
||||
+++ openssl-1.0.0d/engines/e_aep.c 2011-03-28 05:48:11 +0200
|
||||
@@ -61,7 +61,12 @@
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#else
|
||||
+#ifdef _MSC_VER
|
||||
+#include <windows.h>
|
||||
+#define _getpid GetCurrentProcessId
|
||||
+#else
|
||||
#include <process.h>
|
||||
+#endif
|
||||
typedef int pid_t;
|
||||
#endif
|
||||
|
||||
diff -ruN --strip-trailing-cr openssl-1.0.0d.orig/util/pl/VC-32.pl openssl-1.0.0d/util/pl/VC-32.pl
|
||||
--- openssl-1.0.0d.orig/util/pl/VC-32.pl 2010-09-13 18:28:34 +0200
|
||||
+++ openssl-1.0.0d/util/pl/VC-32.pl 2011-03-28 04:53:44 +0200
|
||||
@@ -37,7 +38,7 @@
|
||||
$lib_cflag='/Zl' if (!$shlib); # remove /DEFAULTLIBs from static lib
|
||||
$opt_cflags=$f.' /Ox';
|
||||
$dbg_cflags=$f.'d /Od -DDEBUG -D_DEBUG';
|
||||
- $lflags="/nologo /subsystem:console /opt:ref";
|
||||
+ $lflags="/nologo /subsystem:console /opt:ref msvcrt_win2003.obj";
|
||||
|
||||
*::perlasm_compile_target = sub {
|
||||
my ($target,$source,$bname)=@_;
|
||||
@@ -118,7 +119,7 @@
|
||||
$lib_cflag='/Zl' if (!$shlib); # remove /DEFAULTLIBs from static lib
|
||||
$opt_cflags=$f.' /Ox /O2 /Ob2';
|
||||
$dbg_cflags=$f.'d /Od -DDEBUG -D_DEBUG';
|
||||
- $lflags="/nologo /subsystem:console /opt:ref";
|
||||
+ $lflags="/nologo /subsystem:console /opt:ref msvcrt_winxp.obj";
|
||||
}
|
||||
$mlflags='';
|
||||
|
||||
@@ -179,7 +180,7 @@
|
||||
$lfile='/out:';
|
||||
|
||||
$shlib_ex_obj="";
|
||||
-$app_ex_obj="setargv.obj" if ($FLAVOR !~ /CE/);
|
||||
+$app_ex_obj="" if ($FLAVOR !~ /CE/);
|
||||
if ($FLAVOR =~ /WIN64A/) {
|
||||
if (`nasm -v 2>NUL` =~ /NASM version ([0-9]+\.[0-9]+)/ && $1 >= 2.0) {
|
||||
$asm='nasm -f win64 -DNEAR -Ox -g';
|
||||
29
win32/ext/zlib-wdk/LICENSE.ZLIB
Normal file
29
win32/ext/zlib-wdk/LICENSE.ZLIB
Normal file
@@ -0,0 +1,29 @@
|
||||
/* zlib.h -- interface of the 'zlib' general purpose compression library
|
||||
version 1.2.3, July 18th, 2005
|
||||
|
||||
Copyright (C) 1995-2005 Jean-loup Gailly and Mark Adler
|
||||
|
||||
This software is provided 'as-is', without any express or implied
|
||||
warranty. In no event will the authors be held liable for any damages
|
||||
arising from the use of this software.
|
||||
|
||||
Permission is granted to anyone to use this software for any purpose,
|
||||
including commercial applications, and to alter it and redistribute it
|
||||
freely, subject to the following restrictions:
|
||||
|
||||
1. The origin of this software must not be misrepresented; you must not
|
||||
claim that you wrote the original software. If you use this software
|
||||
in a product, an acknowledgment in the product documentation would be
|
||||
appreciated but is not required.
|
||||
2. Altered source versions must be plainly marked as such, and must not be
|
||||
misrepresented as being the original software.
|
||||
3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
Jean-loup Gailly Mark Adler
|
||||
jloup@gzip.org madler@alumni.caltech.edu
|
||||
|
||||
|
||||
The data format used by the zlib library is described by RFCs (Request for
|
||||
Comments) 1950 to 1952 in the files http://www.ietf.org/rfc/rfc1950.txt
|
||||
(zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format).
|
||||
*/
|
||||
55
win32/ext/zlib-wdk/install.props
Normal file
55
win32/ext/zlib-wdk/install.props
Normal file
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ImportGroup Label="PropertySheets" />
|
||||
<PropertyGroup Label="UserMacros">
|
||||
<ZlibDoInstall32>
|
||||
mkdir $(SolutionDir)x86\dist
|
||||
mkdir $(SolutionDir)x86\dist\bin
|
||||
copy $(SolutionDir)x86\MiniUnzipRelease\miniunz.exe $(SolutionDir)x86\dist\bin
|
||||
copy $(SolutionDir)x86\MiniZipRelease\minizip.exe $(SolutionDir)x86\dist\bin
|
||||
copy $(SolutionDir)x86\TestZlibDllRelease\testzlibdll.exe $(SolutionDir)x86\dist\bin
|
||||
copy $(SolutionDir)x86\TestZlibRelease\testzlib.exe $(SolutionDir)x86\dist\bin
|
||||
copy $(SolutionDir)x86\ZlibDllRelease\zlibwapi.dll $(SolutionDir)x86\dist\bin
|
||||
mkdir $(SolutionDir)x86\dist\include
|
||||
copy ..\..\..\zconf.h $(SolutionDir)x86\dist\include
|
||||
copy ..\..\..\zlib.h $(SolutionDir)x86\dist\include
|
||||
mkdir $(SolutionDir)x86\dist\lib
|
||||
copy $(SolutionDir)x86\ZlibDllRelease\zlibwapi.exp $(SolutionDir)x86\dist\lib
|
||||
copy $(SolutionDir)x86\ZlibDllRelease\zlibwapi.lib $(SolutionDir)x86\dist\lib
|
||||
copy $(SolutionDir)x86\ZlibStatRelease\zlibstat.lib $(SolutionDir)x86\dist\lib
|
||||
copy $(SolutionDir)zlibvc.def $(SolutionDir)x86\dist\lib
|
||||
copy $(SolutionDir)LICENSE.ZLIB $(SolutionDir)x86\dist
|
||||
</ZlibDoInstall32>
|
||||
<ZlibDoInstall64>
|
||||
mkdir $(SolutionDir)x64\dist
|
||||
mkdir $(SolutionDir)x64\dist\bin
|
||||
copy $(SolutionDir)x64\MiniUnzipRelease\miniunz.exe $(SolutionDir)x64\dist\bin
|
||||
copy $(SolutionDir)x64\MiniZipRelease\minizip.exe $(SolutionDir)x64\dist\bin
|
||||
copy $(SolutionDir)x64\TestZlibDllRelease\testzlibdll.exe $(SolutionDir)x64\dist\bin
|
||||
copy $(SolutionDir)x64\TestZlibRelease\testzlib.exe $(SolutionDir)x64\dist\bin
|
||||
copy $(SolutionDir)x64\ZlibDllRelease\zlibwapi.dll $(SolutionDir)x64\dist\bin
|
||||
mkdir $(SolutionDir)x64\dist\include
|
||||
copy ..\..\..\zconf.h $(SolutionDir)x64\dist\include
|
||||
copy ..\..\..\zlib.h $(SolutionDir)x64\dist\include
|
||||
mkdir $(SolutionDir)x64\dist\lib
|
||||
copy $(SolutionDir)x64\ZlibDllRelease\zlibwapi.exp $(SolutionDir)x64\dist\lib
|
||||
copy $(SolutionDir)x64\ZlibDllRelease\zlibwapi.lib $(SolutionDir)x64\dist\lib
|
||||
copy $(SolutionDir)x64\ZlibStatRelease\zlibstat.lib $(SolutionDir)x64\dist\lib
|
||||
copy $(SolutionDir)zlibvc.def $(SolutionDir)x64\dist\lib
|
||||
copy $(SolutionDir)LICENSE.ZLIB $(SolutionDir)x64\dist
|
||||
</ZlibDoInstall64>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup>
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>c:\WinDDK\7600.16385.1\inc\api;c:\WinDDK\7600.16385.1\inc\crt</AdditionalIncludeDirectories>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<WDK32Dependencies>msvcrt_winxp.obj</WDK32Dependencies>
|
||||
<WDK64Dependencies>msvcrt_win2003.obj</WDK64Dependencies>
|
||||
<WDK32LibraryDirectories>c:\WinDDK\7600.16385.1\lib\Crt\i386;c:\WinDDK\7600.16385.1\lib\wxp\i386</WDK32LibraryDirectories>
|
||||
<WDK64LibraryDirectories>c:\WinDDK\7600.16385.1\lib\Crt\amd64;c:\WinDDK\7600.16385.1\lib\wnet\amd64</WDK64LibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
94
win32/ext/zlib-wdk/install.vcxproj
Normal file
94
win32/ext/zlib-wdk/install.vcxproj
Normal file
@@ -0,0 +1,94 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="install.props">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{6064E3A9-3939-4937-A387-C09299FC2952}</ProjectGuid>
|
||||
<RootNamespace>install</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<OutDir>x86\Install$(Configuration)\</OutDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<IntDir>x86\Install$(Configuration)\Tmp\</IntDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<OutDir>x64\Install$(Configuration)\</OutDir>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<IntDir>x64\Install$(Configuration)\Tmp\</IntDir>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
<PreBuildEvent>
|
||||
<Command>$(ZlibDoInstall32)</Command>
|
||||
</PreBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
</Link>
|
||||
<PreBuildEvent>
|
||||
<Command>$(ZlibDoInstall64)</Command>
|
||||
</PreBuildEvent>
|
||||
</ItemDefinitionGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
14
win32/ext/zlib-wdk/install.vcxproj.filters
Normal file
14
win32/ext/zlib-wdk/install.vcxproj.filters
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="install.props">
|
||||
<Filter>Resource Files</Filter>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
3
win32/ext/zlib-wdk/install.vcxproj.user
Normal file
3
win32/ext/zlib-wdk/install.vcxproj.user
Normal file
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
||||
130
win32/ext/zlib-wdk/miniunz.vcxproj
Normal file
130
win32/ext/zlib-wdk/miniunz.vcxproj
Normal file
@@ -0,0 +1,130 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{C52F9E7B-498A-42BE-8DB4-85A15694382A}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30128.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">x86\MiniUnzip$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">x86\MiniUnzip$(Configuration)\Tmp\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</GenerateManifest>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x64\MiniUnzip$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x64\MiniUnzip$(Configuration)\Tmp\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</GenerateManifest>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<AdditionalIncludeDirectories>..\..\..;..\..\minizip;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;ZLIB_WINAPI;NDEBUG;_CONSOLE;NO_MSCVER_FILE64_FUNC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>x86\ZlibDllRelease\zlibwapi.lib;%(WDK32Dependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)miniunz.exe</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<AdditionalLibraryDirectories>%(WDK32LibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<AdditionalIncludeDirectories>..\..\..;..\..\minizip;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>ZLIB_WINAPI;NDEBUG;_CONSOLE;WIN64;NO_MSCVER_FILE64_FUNC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>x64\ZlibDllRelease\zlibwapi.lib;%(WDK64Dependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)miniunz.exe</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<AdditionalLibraryDirectories>%(WDK64LibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\minizip\miniunz.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="zlibvc.vcxproj">
|
||||
<Project>{8fd826f8-3739-44e6-8cc8-997122e53b8d}</Project>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
22
win32/ext/zlib-wdk/miniunz.vcxproj.filters
Normal file
22
win32/ext/zlib-wdk/miniunz.vcxproj.filters
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{048af943-022b-4db6-beeb-a54c34774ee2}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{c1d600d2-888f-4aea-b73e-8b0dd9befa0c}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{0844199a-966b-4f19-81db-1e0125e141b9}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\minizip\miniunz.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
3
win32/ext/zlib-wdk/miniunz.vcxproj.user
Normal file
3
win32/ext/zlib-wdk/miniunz.vcxproj.user
Normal file
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
||||
128
win32/ext/zlib-wdk/minizip.vcxproj
Normal file
128
win32/ext/zlib-wdk/minizip.vcxproj
Normal file
@@ -0,0 +1,128 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{48CDD9DC-E09F-4135-9C0C-4FE50C3C654B}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30128.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">x86\MiniZip$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">x86\MiniZip$(Configuration)\Tmp\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x64\MiniZip$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x64\MiniZip$(Configuration)\Tmp\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<AdditionalIncludeDirectories>..\..\..;..\..\minizip;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;ZLIB_WINAPI;NDEBUG;_CONSOLE;NO_MSCVER_FILE64_FUNC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>x86\ZlibDllRelease\zlibwapi.lib;%(WDK32Dependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)minizip.exe</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<AdditionalLibraryDirectories>%(WDK32LibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<AdditionalIncludeDirectories>..\..\..;..\..\minizip;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>ZLIB_WINAPI;NDEBUG;_CONSOLE;WIN64;NO_MSCVER_FILE64_FUNC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>x64\ZlibDllRelease\zlibwapi.lib;%(WDK64Dependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)minizip.exe</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<AdditionalLibraryDirectories>%(WDK64LibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\minizip\minizip.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="zlibvc.vcxproj">
|
||||
<Project>{8fd826f8-3739-44e6-8cc8-997122e53b8d}</Project>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
22
win32/ext/zlib-wdk/minizip.vcxproj.filters
Normal file
22
win32/ext/zlib-wdk/minizip.vcxproj.filters
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{c0419b40-bf50-40da-b153-ff74215b79de}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{bb87b070-735b-478e-92ce-7383abb2f36c}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{f46ab6a6-548f-43cb-ae96-681abb5bd5db}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\minizip\minizip.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
3
win32/ext/zlib-wdk/minizip.vcxproj.user
Normal file
3
win32/ext/zlib-wdk/minizip.vcxproj.user
Normal file
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
||||
123
win32/ext/zlib-wdk/testzlib.vcxproj
Normal file
123
win32/ext/zlib-wdk/testzlib.vcxproj
Normal file
@@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{AA6666AA-E09F-4135-9C0C-4FE50C3C654B}</ProjectGuid>
|
||||
<RootNamespace>testzlib</RootNamespace>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30128.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">x86\TestZlib$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">x86\TestZlib$(Configuration)\Tmp\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</GenerateManifest>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x64\TestZlib$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x64\TestZlib$(Configuration)\Tmp\</IntDir>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</GenerateManifest>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<AdditionalIncludeDirectories>..\..\..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;ZLIB_WINAPI;NDEBUG;_CONSOLE;_CRT_NONSTDC_NO_WARNINGS;NO_MSCVER_FILE64_FUNC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<OutputFile>$(OutDir)testzlib.exe</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<AdditionalDependencies>%(WDK32Dependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>%(WDK32LibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<AdditionalIncludeDirectories>..\..\..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;ZLIB_WINAPI;NDEBUG;_CONSOLE;_CRT_NONSTDC_NO_WARNINGS;WIN64;NO_MSCVER_FILE64_FUNC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>%(WDK64Dependencies)</AdditionalDependencies>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalLibraryDirectories>%(WDK64LibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\adler32.c" />
|
||||
<ClCompile Include="..\..\..\compress.c" />
|
||||
<ClCompile Include="..\..\..\crc32.c" />
|
||||
<ClCompile Include="..\..\..\deflate.c" />
|
||||
<ClCompile Include="..\..\..\infback.c" />
|
||||
<ClCompile Include="..\..\masmx64\inffas8664.c">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\inffast.c" />
|
||||
<ClCompile Include="..\..\..\inflate.c" />
|
||||
<ClCompile Include="..\..\..\inftrees.c" />
|
||||
<ClCompile Include="..\..\testzlib\testzlib.c" />
|
||||
<ClCompile Include="..\..\..\trees.c" />
|
||||
<ClCompile Include="..\..\..\uncompr.c" />
|
||||
<ClCompile Include="..\..\..\zutil.c" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
58
win32/ext/zlib-wdk/testzlib.vcxproj.filters
Normal file
58
win32/ext/zlib-wdk/testzlib.vcxproj.filters
Normal file
@@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{c1f6a2e3-5da5-4955-8653-310d3efe05a9}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{c2aaffdc-2c95-4d6f-8466-4bec5890af2c}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{c274fe07-05f2-461c-964b-f6341e4e7eb5}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\adler32.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\compress.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\crc32.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\deflate.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\infback.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\masmx64\inffas8664.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\inffast.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\inflate.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\inftrees.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\testzlib\testzlib.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\trees.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\uncompr.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\zutil.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
3
win32/ext/zlib-wdk/testzlib.vcxproj.user
Normal file
3
win32/ext/zlib-wdk/testzlib.vcxproj.user
Normal file
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
||||
130
win32/ext/zlib-wdk/testzlibdll.vcxproj
Normal file
130
win32/ext/zlib-wdk/testzlibdll.vcxproj
Normal file
@@ -0,0 +1,130 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{C52F9E7B-498A-42BE-8DB4-85A15694366A}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30128.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">x86\TestZlibDll$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">x86\TestZlibDll$(Configuration)\Tmp\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</GenerateManifest>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x64\TestZlibDll$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x64\TestZlibDll$(Configuration)\Tmp\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</GenerateManifest>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<AdditionalIncludeDirectories>..\..\..;..\..\minizip;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;ZLIB_WINAPI;NDEBUG;_CONSOLE;NO_MSCVER_FILE64_FUNC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>x86\ZlibDllRelease\zlibwapi.lib;%(WDK32Dependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)testzlibdll.exe</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
<AdditionalLibraryDirectories>%(WDK32LibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<Optimization>MaxSpeed</Optimization>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<OmitFramePointers>true</OmitFramePointers>
|
||||
<AdditionalIncludeDirectories>..\..\..;..\..\minizip;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>ZLIB_WINAPI;NDEBUG;_CONSOLE;WIN64;NO_MSCVER_FILE64_FUNC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<BasicRuntimeChecks>Default</BasicRuntimeChecks>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeader>
|
||||
</PrecompiledHeader>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>x64\ZlibDllRelease\zlibwapi.lib;%(WDK64Dependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<OutputFile>$(OutDir)testzlibdll.exe</OutputFile>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<AdditionalLibraryDirectories>%(WDK64LibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\testzlib\testzlib.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="zlibvc.vcxproj">
|
||||
<Project>{8fd826f8-3739-44e6-8cc8-997122e53b8d}</Project>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
22
win32/ext/zlib-wdk/testzlibdll.vcxproj.filters
Normal file
22
win32/ext/zlib-wdk/testzlibdll.vcxproj.filters
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{fa61a89f-93fc-4c89-b29e-36224b7592f4}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cxx;def;odl;idl;hpj;bat;asm</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{d4b85da0-2ba2-4934-b57f-e2584e3848ee}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;inc</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{e573e075-00bd-4a7d-bd67-a8cc9bfc5aca}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\testzlib\testzlib.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
3
win32/ext/zlib-wdk/testzlibdll.vcxproj.user
Normal file
3
win32/ext/zlib-wdk/testzlibdll.vcxproj.user
Normal file
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
||||
32
win32/ext/zlib-wdk/zlib.rc
Normal file
32
win32/ext/zlib-wdk/zlib.rc
Normal file
@@ -0,0 +1,32 @@
|
||||
#include <windows.h>
|
||||
|
||||
#define IDR_VERSION1 1
|
||||
IDR_VERSION1 VERSIONINFO MOVEABLE IMPURE LOADONCALL DISCARDABLE
|
||||
FILEVERSION 1,2,5,0
|
||||
PRODUCTVERSION 1,2,5,0
|
||||
FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
|
||||
FILEFLAGS 0
|
||||
FILEOS VOS_DOS_WINDOWS32
|
||||
FILETYPE VFT_DLL
|
||||
FILESUBTYPE 0 // not used
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904E4"
|
||||
//language ID = U.S. English, char set = Windows, Multilingual
|
||||
|
||||
BEGIN
|
||||
VALUE "FileDescription", "zlib data compression and ZIP file I/O library\0"
|
||||
VALUE "FileVersion", "1.2.5\0"
|
||||
VALUE "InternalName", "zlib\0"
|
||||
VALUE "OriginalFilename", "zlib.dll\0"
|
||||
VALUE "ProductName", "ZLib.DLL\0"
|
||||
VALUE "Comments","DLL support by Alessandro Iacopetti & Gilles Vollant\0"
|
||||
VALUE "LegalCopyright", "(C) 1995-2010 Jean-loup Gailly & Mark Adler\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x0409, 1252
|
||||
END
|
||||
END
|
||||
139
win32/ext/zlib-wdk/zlibstat.vcxproj
Normal file
139
win32/ext/zlib-wdk/zlibstat.vcxproj
Normal file
@@ -0,0 +1,139 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{745DEC58-EBB3-47A9-A9B8-4C6627C01BF8}</ProjectGuid>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>StaticLibrary</ConfigurationType>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30128.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">x86\ZlibStat$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">x86\ZlibStat$(Configuration)\Tmp\</IntDir>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x64\ZlibStat$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x64\ZlibStat$(Configuration)\Tmp\</IntDir>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<AdditionalIncludeDirectories>..\..\..;..\..\masmx86;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;ZLIB_WINAPI;_CRT_NONSTDC_NO_WARNINGS;NO_MSCVER_FILE64_FUNC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<ExceptionHandling>
|
||||
</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeaderOutputFile>$(IntDir)zlibstat.pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<Culture>0x040c</Culture>
|
||||
</ResourceCompile>
|
||||
<Lib>
|
||||
<AdditionalOptions>/MACHINE:X86 /NODEFAULTLIB %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)zlibstat.lib</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Midl>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<AdditionalIncludeDirectories>..\..\..;..\..\masmx86;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>ZLIB_WINAPI;_CRT_NONSTDC_NO_WARNINGS;WIN64;NO_MSCVER_FILE64_FUNC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<ExceptionHandling>
|
||||
</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeaderOutputFile>$(IntDir)zlibstat.pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)</ProgramDataBaseFileName>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<Culture>0x040c</Culture>
|
||||
</ResourceCompile>
|
||||
<Lib>
|
||||
<AdditionalOptions>/MACHINE:AMD64 /NODEFAULTLIB %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)zlibstat.lib</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
</Lib>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\adler32.c" />
|
||||
<ClCompile Include="..\..\..\compress.c" />
|
||||
<ClCompile Include="..\..\..\crc32.c" />
|
||||
<ClCompile Include="..\..\..\deflate.c" />
|
||||
<ClCompile Include="..\..\..\gzclose.c" />
|
||||
<ClCompile Include="..\..\..\gzlib.c" />
|
||||
<ClCompile Include="..\..\..\gzread.c" />
|
||||
<ClCompile Include="..\..\..\gzwrite.c" />
|
||||
<ClCompile Include="..\..\..\infback.c" />
|
||||
<ClCompile Include="..\..\masmx64\inffas8664.c">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\inffast.c" />
|
||||
<ClCompile Include="..\..\..\inflate.c" />
|
||||
<ClCompile Include="..\..\..\inftrees.c" />
|
||||
<ClCompile Include="..\..\minizip\ioapi.c" />
|
||||
<ClCompile Include="..\..\..\trees.c" />
|
||||
<ClCompile Include="..\..\..\uncompr.c" />
|
||||
<ClCompile Include="..\..\minizip\unzip.c" />
|
||||
<ClCompile Include="..\..\minizip\zip.c" />
|
||||
<ClCompile Include="..\..\..\zutil.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="zlib.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="zlibvc.def" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
77
win32/ext/zlib-wdk/zlibstat.vcxproj.filters
Normal file
77
win32/ext/zlib-wdk/zlibstat.vcxproj.filters
Normal file
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{174213f6-7f66-4ae8-a3a8-a1e0a1e6ffdd}</UniqueIdentifier>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\adler32.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\compress.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\crc32.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\deflate.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\gzclose.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\gzlib.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\gzread.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\gzwrite.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\infback.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\masmx64\inffas8664.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\inffast.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\inflate.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\inftrees.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\minizip\ioapi.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\trees.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\uncompr.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\minizip\unzip.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\minizip\zip.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\zutil.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="zlib.rc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="zlibvc.def">
|
||||
<Filter>Source Files</Filter>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
3
win32/ext/zlib-wdk/zlibstat.vcxproj.user
Normal file
3
win32/ext/zlib-wdk/zlibstat.vcxproj.user
Normal file
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
||||
130
win32/ext/zlib-wdk/zlibvc.def
Normal file
130
win32/ext/zlib-wdk/zlibvc.def
Normal file
@@ -0,0 +1,130 @@
|
||||
LIBRARY
|
||||
; zlib data compression and ZIP file I/O library
|
||||
|
||||
VERSION 1.24
|
||||
|
||||
EXPORTS
|
||||
adler32 @1
|
||||
compress @2
|
||||
crc32 @3
|
||||
deflate @4
|
||||
deflateCopy @5
|
||||
deflateEnd @6
|
||||
deflateInit2_ @7
|
||||
deflateInit_ @8
|
||||
deflateParams @9
|
||||
deflateReset @10
|
||||
deflateSetDictionary @11
|
||||
gzclose @12
|
||||
gzdopen @13
|
||||
gzerror @14
|
||||
gzflush @15
|
||||
gzopen @16
|
||||
gzread @17
|
||||
gzwrite @18
|
||||
inflate @19
|
||||
inflateEnd @20
|
||||
inflateInit2_ @21
|
||||
inflateInit_ @22
|
||||
inflateReset @23
|
||||
inflateSetDictionary @24
|
||||
inflateSync @25
|
||||
uncompress @26
|
||||
zlibVersion @27
|
||||
gzprintf @28
|
||||
gzputc @29
|
||||
gzgetc @30
|
||||
gzseek @31
|
||||
gzrewind @32
|
||||
gztell @33
|
||||
gzeof @34
|
||||
gzsetparams @35
|
||||
zError @36
|
||||
inflateSyncPoint @37
|
||||
get_crc_table @38
|
||||
compress2 @39
|
||||
gzputs @40
|
||||
gzgets @41
|
||||
inflateCopy @42
|
||||
inflateBackInit_ @43
|
||||
inflateBack @44
|
||||
inflateBackEnd @45
|
||||
compressBound @46
|
||||
deflateBound @47
|
||||
gzclearerr @48
|
||||
gzungetc @49
|
||||
zlibCompileFlags @50
|
||||
deflatePrime @51
|
||||
|
||||
unzOpen @61
|
||||
unzClose @62
|
||||
unzGetGlobalInfo @63
|
||||
unzGetCurrentFileInfo @64
|
||||
unzGoToFirstFile @65
|
||||
unzGoToNextFile @66
|
||||
unzOpenCurrentFile @67
|
||||
unzReadCurrentFile @68
|
||||
unzOpenCurrentFile3 @69
|
||||
unztell @70
|
||||
unzeof @71
|
||||
unzCloseCurrentFile @72
|
||||
unzGetGlobalComment @73
|
||||
unzStringFileNameCompare @74
|
||||
unzLocateFile @75
|
||||
unzGetLocalExtrafield @76
|
||||
unzOpen2 @77
|
||||
unzOpenCurrentFile2 @78
|
||||
unzOpenCurrentFilePassword @79
|
||||
|
||||
zipOpen @80
|
||||
zipOpenNewFileInZip @81
|
||||
zipWriteInFileInZip @82
|
||||
zipCloseFileInZip @83
|
||||
zipClose @84
|
||||
zipOpenNewFileInZip2 @86
|
||||
zipCloseFileInZipRaw @87
|
||||
zipOpen2 @88
|
||||
zipOpenNewFileInZip3 @89
|
||||
|
||||
unzGetFilePos @100
|
||||
unzGoToFilePos @101
|
||||
|
||||
fill_win32_filefunc @110
|
||||
|
||||
; zlibwapi v1.2.4 added:
|
||||
fill_win32_filefunc64 @111
|
||||
fill_win32_filefunc64A @112
|
||||
fill_win32_filefunc64W @113
|
||||
|
||||
unzOpen64 @120
|
||||
unzOpen2_64 @121
|
||||
unzGetGlobalInfo64 @122
|
||||
unzGetCurrentFileInfo64 @124
|
||||
unzGetCurrentFileZStreamPos64 @125
|
||||
unztell64 @126
|
||||
unzGetFilePos64 @127
|
||||
unzGoToFilePos64 @128
|
||||
|
||||
zipOpen64 @130
|
||||
zipOpen2_64 @131
|
||||
zipOpenNewFileInZip64 @132
|
||||
zipOpenNewFileInZip2_64 @133
|
||||
zipOpenNewFileInZip3_64 @134
|
||||
zipOpenNewFileInZip4_64 @135
|
||||
zipCloseFileInZipRaw64 @136
|
||||
|
||||
; zlib1 v1.2.4 added:
|
||||
adler32_combine @140
|
||||
crc32_combine @142
|
||||
deflateSetHeader @144
|
||||
deflateTune @145
|
||||
gzbuffer @146
|
||||
gzclose_r @147
|
||||
gzclose_w @148
|
||||
gzdirect @149
|
||||
gzoffset @150
|
||||
inflateGetHeader @156
|
||||
inflateMark @157
|
||||
inflatePrime @158
|
||||
inflateReset2 @159
|
||||
inflateUndermine @160
|
||||
62
win32/ext/zlib-wdk/zlibvc.sln
Normal file
62
win32/ext/zlib-wdk/zlibvc.sln
Normal file
@@ -0,0 +1,62 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zlibvc", "zlibvc.vcxproj", "{8FD826F8-3739-44E6-8CC8-997122E53B8D}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "zlibstat", "zlibstat.vcxproj", "{745DEC58-EBB3-47A9-A9B8-4C6627C01BF8}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testzlib", "testzlib.vcxproj", "{AA6666AA-E09F-4135-9C0C-4FE50C3C654B}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "testzlibdll", "testzlibdll.vcxproj", "{C52F9E7B-498A-42BE-8DB4-85A15694366A}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "minizip", "minizip.vcxproj", "{48CDD9DC-E09F-4135-9C0C-4FE50C3C654B}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "miniunz", "miniunz.vcxproj", "{C52F9E7B-498A-42BE-8DB4-85A15694382A}"
|
||||
EndProject
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "install", "install.vcxproj", "{6064E3A9-3939-4937-A387-C09299FC2952}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{745DEC58-EBB3-47A9-A9B8-4C6627C01BF8} = {745DEC58-EBB3-47A9-A9B8-4C6627C01BF8}
|
||||
{C52F9E7B-498A-42BE-8DB4-85A15694366A} = {C52F9E7B-498A-42BE-8DB4-85A15694366A}
|
||||
{C52F9E7B-498A-42BE-8DB4-85A15694382A} = {C52F9E7B-498A-42BE-8DB4-85A15694382A}
|
||||
{AA6666AA-E09F-4135-9C0C-4FE50C3C654B} = {AA6666AA-E09F-4135-9C0C-4FE50C3C654B}
|
||||
{48CDD9DC-E09F-4135-9C0C-4FE50C3C654B} = {48CDD9DC-E09F-4135-9C0C-4FE50C3C654B}
|
||||
{8FD826F8-3739-44E6-8CC8-997122E53B8D} = {8FD826F8-3739-44E6-8CC8-997122E53B8D}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Release|Win32 = Release|Win32
|
||||
Release|x64 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{8FD826F8-3739-44E6-8CC8-997122E53B8D}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{8FD826F8-3739-44E6-8CC8-997122E53B8D}.Release|Win32.Build.0 = Release|Win32
|
||||
{8FD826F8-3739-44E6-8CC8-997122E53B8D}.Release|x64.ActiveCfg = Release|x64
|
||||
{8FD826F8-3739-44E6-8CC8-997122E53B8D}.Release|x64.Build.0 = Release|x64
|
||||
{745DEC58-EBB3-47A9-A9B8-4C6627C01BF8}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{745DEC58-EBB3-47A9-A9B8-4C6627C01BF8}.Release|Win32.Build.0 = Release|Win32
|
||||
{745DEC58-EBB3-47A9-A9B8-4C6627C01BF8}.Release|x64.ActiveCfg = Release|x64
|
||||
{745DEC58-EBB3-47A9-A9B8-4C6627C01BF8}.Release|x64.Build.0 = Release|x64
|
||||
{AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{AA6666AA-E09F-4135-9C0C-4FE50C3C654B}.Release|x64.ActiveCfg = Release|x64
|
||||
{C52F9E7B-498A-42BE-8DB4-85A15694366A}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{C52F9E7B-498A-42BE-8DB4-85A15694366A}.Release|Win32.Build.0 = Release|Win32
|
||||
{C52F9E7B-498A-42BE-8DB4-85A15694366A}.Release|x64.ActiveCfg = Release|x64
|
||||
{C52F9E7B-498A-42BE-8DB4-85A15694366A}.Release|x64.Build.0 = Release|x64
|
||||
{48CDD9DC-E09F-4135-9C0C-4FE50C3C654B}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{48CDD9DC-E09F-4135-9C0C-4FE50C3C654B}.Release|Win32.Build.0 = Release|Win32
|
||||
{48CDD9DC-E09F-4135-9C0C-4FE50C3C654B}.Release|x64.ActiveCfg = Release|x64
|
||||
{48CDD9DC-E09F-4135-9C0C-4FE50C3C654B}.Release|x64.Build.0 = Release|x64
|
||||
{C52F9E7B-498A-42BE-8DB4-85A15694382A}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{C52F9E7B-498A-42BE-8DB4-85A15694382A}.Release|Win32.Build.0 = Release|Win32
|
||||
{C52F9E7B-498A-42BE-8DB4-85A15694382A}.Release|x64.ActiveCfg = Release|x64
|
||||
{C52F9E7B-498A-42BE-8DB4-85A15694382A}.Release|x64.Build.0 = Release|x64
|
||||
{6064E3A9-3939-4937-A387-C09299FC2952}.Release|Win32.ActiveCfg = Release|Win32
|
||||
{6064E3A9-3939-4937-A387-C09299FC2952}.Release|Win32.Build.0 = Release|Win32
|
||||
{6064E3A9-3939-4937-A387-C09299FC2952}.Release|x64.ActiveCfg = Release|x64
|
||||
{6064E3A9-3939-4937-A387-C09299FC2952}.Release|x64.Build.0 = Release|x64
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
199
win32/ext/zlib-wdk/zlibvc.vcxproj
Normal file
199
win32/ext/zlib-wdk/zlibvc.vcxproj
Normal file
@@ -0,0 +1,199 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{8FD826F8-3739-44E6-8CC8-997122E53B8D}</ProjectGuid>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseOfMfc>false</UseOfMfc>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="install.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup>
|
||||
<_ProjectFileVersion>10.0.30128.1</_ProjectFileVersion>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">x86\ZlibDll$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">x86\ZlibDll$(Configuration)\Tmp\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</GenerateManifest>
|
||||
<OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x64\ZlibDll$(Configuration)\</OutDir>
|
||||
<IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">x64\ZlibDll$(Configuration)\Tmp\</IntDir>
|
||||
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</LinkIncremental>
|
||||
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Release|x64'">false</GenerateManifest>
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|x64'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|x64'" />
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MkTypLibCompatible>true</MkTypLibCompatible>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TargetEnvironment>Win32</TargetEnvironment>
|
||||
<TypeLibraryName>$(OutDir)zlibvc.tlb</TypeLibraryName>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<AdditionalIncludeDirectories>..\..\..;..\..\masmx86;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_CRT_NONSTDC_NO_WARNINGS;ZLIB_WINAPI;NO_MSCVER_FILE64_FUNC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<ExceptionHandling>
|
||||
</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeaderOutputFile>$(IntDir)zlibvc.pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerOutput>All</AssemblerOutput>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)</ProgramDataBaseFileName>
|
||||
<BrowseInformation>
|
||||
</BrowseInformation>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x040c</Culture>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<AdditionalOptions>/MACHINE:I386 %(AdditionalOptions)</AdditionalOptions>
|
||||
<OutputFile>$(OutDir)zlibwapi.dll</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||
<ModuleDefinitionFile>.\zlibvc.def</ModuleDefinitionFile>
|
||||
<ProgramDatabaseFile>$(OutDir)zlibwapi.pdb</ProgramDatabaseFile>
|
||||
<GenerateMapFile>true</GenerateMapFile>
|
||||
<MapFileName>$(OutDir)zlibwapi.map</MapFileName>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<RandomizedBaseAddress>false</RandomizedBaseAddress>
|
||||
<DataExecutionPrevention>
|
||||
</DataExecutionPrevention>
|
||||
<ImportLibrary>$(OutDir)zlibwapi.lib</ImportLibrary>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>%(WDK32Dependencies);%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>%(WDK32LibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Midl>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<MkTypLibCompatible>true</MkTypLibCompatible>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<TargetEnvironment>X64</TargetEnvironment>
|
||||
<TypeLibraryName>$(OutDir)zlibvc.tlb</TypeLibraryName>
|
||||
</Midl>
|
||||
<ClCompile>
|
||||
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
|
||||
<AdditionalIncludeDirectories>..\..\..;..\..\masmx86;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
||||
<PreprocessorDefinitions>WIN32;_CRT_NONSTDC_NO_WARNINGS;ZLIB_WINAPI;WIN64;NO_MSCVER_FILE64_FUNC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<StringPooling>true</StringPooling>
|
||||
<ExceptionHandling>
|
||||
</ExceptionHandling>
|
||||
<RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
|
||||
<BufferSecurityCheck>false</BufferSecurityCheck>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<PrecompiledHeaderOutputFile>$(IntDir)zlibvc.pch</PrecompiledHeaderOutputFile>
|
||||
<AssemblerOutput>All</AssemblerOutput>
|
||||
<AssemblerListingLocation>$(IntDir)</AssemblerListingLocation>
|
||||
<ObjectFileName>$(IntDir)</ObjectFileName>
|
||||
<ProgramDataBaseFileName>$(OutDir)</ProgramDataBaseFileName>
|
||||
<BrowseInformation>
|
||||
</BrowseInformation>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<Culture>0x040c</Culture>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<OutputFile>$(OutDir)zlibwapi.dll</OutputFile>
|
||||
<SuppressStartupBanner>true</SuppressStartupBanner>
|
||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||
<ModuleDefinitionFile>.\zlibvc.def</ModuleDefinitionFile>
|
||||
<ProgramDatabaseFile>$(OutDir)zlibwapi.pdb</ProgramDatabaseFile>
|
||||
<GenerateMapFile>true</GenerateMapFile>
|
||||
<MapFileName>$(OutDir)zlibwapi.map</MapFileName>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
<ImportLibrary>$(OutDir)zlibwapi.lib</ImportLibrary>
|
||||
<TargetMachine>MachineX64</TargetMachine>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<AdditionalDependencies>%(WDK64Dependencies)</AdditionalDependencies>
|
||||
<AdditionalLibraryDirectories>%(WDK64LibraryDirectories)</AdditionalLibraryDirectories>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\adler32.c" />
|
||||
<ClCompile Include="..\..\..\compress.c" />
|
||||
<ClCompile Include="..\..\..\crc32.c" />
|
||||
<ClCompile Include="..\..\..\deflate.c" />
|
||||
<ClCompile Include="..\..\..\gzclose.c" />
|
||||
<ClCompile Include="..\..\..\gzlib.c" />
|
||||
<ClCompile Include="..\..\..\gzread.c" />
|
||||
<ClCompile Include="..\..\..\gzwrite.c" />
|
||||
<ClCompile Include="..\..\..\infback.c" />
|
||||
<ClCompile Include="..\..\masmx64\inffas8664.c">
|
||||
<ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\inffast.c" />
|
||||
<ClCompile Include="..\..\..\inflate.c" />
|
||||
<ClCompile Include="..\..\..\inftrees.c" />
|
||||
<ClCompile Include="..\..\minizip\ioapi.c" />
|
||||
<ClCompile Include="..\..\minizip\iowin32.c" />
|
||||
<ClCompile Include="..\..\..\trees.c" />
|
||||
<ClCompile Include="..\..\..\uncompr.c" />
|
||||
<ClCompile Include="..\..\minizip\unzip.c" />
|
||||
<ClCompile Include="..\..\minizip\zip.c" />
|
||||
<ClCompile Include="..\..\..\zutil.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="zlib.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="zlibvc.def" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\deflate.h" />
|
||||
<ClInclude Include="..\..\..\infblock.h" />
|
||||
<ClInclude Include="..\..\..\infcodes.h" />
|
||||
<ClInclude Include="..\..\..\inffast.h" />
|
||||
<ClInclude Include="..\..\..\inftrees.h" />
|
||||
<ClInclude Include="..\..\..\infutil.h" />
|
||||
<ClInclude Include="..\..\..\zconf.h" />
|
||||
<ClInclude Include="..\..\..\zlib.h" />
|
||||
<ClInclude Include="..\..\..\zutil.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
118
win32/ext/zlib-wdk/zlibvc.vcxproj.filters
Normal file
118
win32/ext/zlib-wdk/zlibvc.vcxproj.filters
Normal file
@@ -0,0 +1,118 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{07934a85-8b61-443d-a0ee-b2eedb74f3cd}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cxx;rc;def;r;odl;hpj;bat;for;f90</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{1d99675b-433d-4a21-9e50-ed4ab8b19762}</UniqueIdentifier>
|
||||
<Extensions>h;hpp;hxx;hm;inl;fi;fd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{431c0958-fa71-44d0-9084-2d19d100c0cc}</UniqueIdentifier>
|
||||
<Extensions>ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\..\adler32.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\compress.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\crc32.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\deflate.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\gzclose.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\gzlib.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\gzread.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\gzwrite.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\infback.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\masmx64\inffas8664.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\inffast.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\inflate.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\inftrees.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\minizip\ioapi.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\minizip\iowin32.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\trees.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\uncompr.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\minizip\unzip.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\minizip\zip.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\..\zutil.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="zlib.rc">
|
||||
<Filter>Source Files</Filter>
|
||||
</ResourceCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="zlibvc.def">
|
||||
<Filter>Source Files</Filter>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\..\deflate.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\infblock.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\infcodes.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\inffast.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\inftrees.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\infutil.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\zconf.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\zlib.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\..\zutil.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
3
win32/ext/zlib-wdk/zlibvc.vcxproj.user
Normal file
3
win32/ext/zlib-wdk/zlibvc.vcxproj.user
Normal file
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
</Project>
|
||||
225
win32/glibconfig-x64.h
Normal file
225
win32/glibconfig-x64.h
Normal file
@@ -0,0 +1,225 @@
|
||||
/* glibconfig.h
|
||||
*
|
||||
* This is a generated file. Please modify 'configure.ac'
|
||||
*/
|
||||
|
||||
#ifndef __G_LIBCONFIG_H__
|
||||
#define __G_LIBCONFIG_H__
|
||||
|
||||
#include <glib/gmacros.h>
|
||||
|
||||
#include <limits.h>
|
||||
#include <float.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define G_MINFLOAT FLT_MIN
|
||||
#define G_MAXFLOAT FLT_MAX
|
||||
#define G_MINDOUBLE DBL_MIN
|
||||
#define G_MAXDOUBLE DBL_MAX
|
||||
#define G_MINSHORT SHRT_MIN
|
||||
#define G_MAXSHORT SHRT_MAX
|
||||
#define G_MAXUSHORT USHRT_MAX
|
||||
#define G_MININT INT_MIN
|
||||
#define G_MAXINT INT_MAX
|
||||
#define G_MAXUINT UINT_MAX
|
||||
#define G_MINLONG LONG_MIN
|
||||
#define G_MAXLONG LONG_MAX
|
||||
#define G_MAXULONG ULONG_MAX
|
||||
|
||||
typedef signed char gint8;
|
||||
typedef unsigned char guint8;
|
||||
typedef signed short gint16;
|
||||
typedef unsigned short guint16;
|
||||
#define G_GINT16_MODIFIER "h"
|
||||
#define G_GINT16_FORMAT "hi"
|
||||
#define G_GUINT16_FORMAT "hu"
|
||||
typedef signed int gint32;
|
||||
typedef unsigned int guint32;
|
||||
#define G_GINT32_MODIFIER ""
|
||||
#define G_GINT32_FORMAT "i"
|
||||
#define G_GUINT32_FORMAT "u"
|
||||
#define G_HAVE_GINT64 1 /* deprecated, always true */
|
||||
|
||||
G_GNUC_EXTENSION typedef signed long long gint64;
|
||||
G_GNUC_EXTENSION typedef unsigned long long guint64;
|
||||
|
||||
#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
|
||||
#define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
|
||||
#define G_GINT64_MODIFIER "I64"
|
||||
#define G_GINT64_FORMAT "I64i"
|
||||
#define G_GUINT64_FORMAT "I64u"
|
||||
|
||||
#define GLIB_SIZEOF_VOID_P 8
|
||||
#define GLIB_SIZEOF_LONG 4
|
||||
#define GLIB_SIZEOF_SIZE_T 8
|
||||
|
||||
typedef signed long long gssize;
|
||||
typedef unsigned long long gsize;
|
||||
#define G_GSIZE_MODIFIER "I64"
|
||||
#define G_GSSIZE_FORMAT "I64i"
|
||||
#define G_GSIZE_FORMAT "I64u"
|
||||
|
||||
#define G_MAXSIZE G_MAXUINT64
|
||||
#define G_MINSSIZE G_MININT64
|
||||
#define G_MAXSSIZE G_MAXINT64
|
||||
|
||||
typedef gint64 goffset;
|
||||
#define G_MINOFFSET G_MININT64
|
||||
#define G_MAXOFFSET G_MAXINT64
|
||||
|
||||
#define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
|
||||
#define G_GOFFSET_FORMAT G_GINT64_FORMAT
|
||||
#define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
|
||||
|
||||
|
||||
#define GPOINTER_TO_INT(p) ((gint) (gint64) (p))
|
||||
#define GPOINTER_TO_UINT(p) ((guint) (guint64) (p))
|
||||
|
||||
#define GINT_TO_POINTER(i) ((gpointer) (gint64) (i))
|
||||
#define GUINT_TO_POINTER(u) ((gpointer) (guint64) (u))
|
||||
|
||||
typedef signed long long gintptr;
|
||||
typedef unsigned long long guintptr;
|
||||
|
||||
#define G_GINTPTR_MODIFIER "I64"
|
||||
#define G_GINTPTR_FORMAT "I64i"
|
||||
#define G_GUINTPTR_FORMAT "I64u"
|
||||
|
||||
#ifdef NeXT /* @#%@! NeXTStep */
|
||||
# define g_ATEXIT(proc) (!atexit (proc))
|
||||
#else
|
||||
# define g_ATEXIT(proc) (atexit (proc))
|
||||
#endif
|
||||
|
||||
#define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
|
||||
|
||||
#define GLIB_MAJOR_VERSION 2
|
||||
#define GLIB_MINOR_VERSION 30
|
||||
#define GLIB_MICRO_VERSION 2
|
||||
|
||||
#define G_OS_WIN32
|
||||
#define G_PLATFORM_WIN32
|
||||
|
||||
|
||||
#define G_VA_COPY va_copy
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define G_HAVE_INLINE 1
|
||||
#else /* !__cplusplus */
|
||||
#ifndef _MSC_VER
|
||||
#define G_HAVE_INLINE 1
|
||||
#endif /* _MSC_VER */
|
||||
#define G_HAVE___INLINE 1
|
||||
#if !defined(_MSC_VER) && !defined(__DMC__)
|
||||
#define G_HAVE___INLINE__ 1
|
||||
#endif /* !_MSC_VER and !__DMC__ */
|
||||
#endif /* !__cplusplus */
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define G_CAN_INLINE 1
|
||||
#else /* !__cplusplus */
|
||||
#define G_CAN_INLINE 1
|
||||
#endif
|
||||
|
||||
#ifndef __cplusplus
|
||||
# define G_HAVE_ISO_VARARGS 1
|
||||
#endif
|
||||
|
||||
/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
|
||||
* is passed ISO vararg support is turned off, and there is no work
|
||||
* around to turn it on, so we unconditionally turn it off.
|
||||
*/
|
||||
#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
|
||||
# undef G_HAVE_ISO_VARARGS
|
||||
#endif
|
||||
|
||||
#define G_HAVE_GNUC_VARARGS 1
|
||||
#define G_HAVE_GROWING_STACK 0
|
||||
|
||||
#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
|
||||
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
|
||||
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
|
||||
#define G_GNUC_INTERNAL __hidden
|
||||
#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
|
||||
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
|
||||
#else
|
||||
#define G_GNUC_INTERNAL
|
||||
#endif
|
||||
|
||||
#define G_THREADS_ENABLED
|
||||
#define G_THREADS_IMPL_WIN32
|
||||
typedef struct _GMutex* GStaticMutex;
|
||||
#define G_STATIC_MUTEX_INIT NULL
|
||||
#define g_static_mutex_get_mutex(mutex) \
|
||||
(g_static_mutex_get_mutex_impl_shortcut (mutex))
|
||||
/* This represents a system thread as used by the implementation. An
|
||||
* alien implementaion, as loaded by g_thread_init can only count on
|
||||
* "sizeof (gpointer)" bytes to store their info. We however need more
|
||||
* for some of our native implementations. */
|
||||
typedef union _GSystemThread GSystemThread;
|
||||
union _GSystemThread
|
||||
{
|
||||
char data[8];
|
||||
double dummy_double;
|
||||
void *dummy_pointer;
|
||||
long dummy_long;
|
||||
};
|
||||
|
||||
#define G_ATOMIC_OP_USE_GCC_BUILTINS 1
|
||||
|
||||
#define GINT16_TO_LE(val) ((gint16) (val))
|
||||
#define GUINT16_TO_LE(val) ((guint16) (val))
|
||||
#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
|
||||
#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
|
||||
#define GINT32_TO_LE(val) ((gint32) (val))
|
||||
#define GUINT32_TO_LE(val) ((guint32) (val))
|
||||
#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
|
||||
#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
|
||||
#define GINT64_TO_LE(val) ((gint64) (val))
|
||||
#define GUINT64_TO_LE(val) ((guint64) (val))
|
||||
#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
|
||||
#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
|
||||
#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
|
||||
#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
|
||||
#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
|
||||
#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
|
||||
#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
|
||||
#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
|
||||
#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
|
||||
#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
|
||||
#define GSIZE_TO_LE(val) ((gsize) GUINT64_TO_LE (val))
|
||||
#define GSSIZE_TO_LE(val) ((gssize) GINT64_TO_LE (val))
|
||||
#define GSIZE_TO_BE(val) ((gsize) GUINT64_TO_BE (val))
|
||||
#define GSSIZE_TO_BE(val) ((gssize) GINT64_TO_BE (val))
|
||||
#define G_BYTE_ORDER G_LITTLE_ENDIAN
|
||||
|
||||
#define GLIB_SYSDEF_POLLIN =1
|
||||
#define GLIB_SYSDEF_POLLOUT =4
|
||||
#define GLIB_SYSDEF_POLLPRI =2
|
||||
#define GLIB_SYSDEF_POLLHUP =16
|
||||
#define GLIB_SYSDEF_POLLERR =8
|
||||
#define GLIB_SYSDEF_POLLNVAL =32
|
||||
|
||||
#define G_MODULE_SUFFIX "dll"
|
||||
|
||||
/* A GPid is an abstraction for a process "handle". It is *not* an
|
||||
* abstraction for a process identifier in general. GPid is used in
|
||||
* GLib only for descendant processes spawned with the g_spawn*
|
||||
* functions. On POSIX there is no "process handle" concept as such,
|
||||
* but on Windows a GPid is a handle to a process, a kind of pointer,
|
||||
* not a process identifier.
|
||||
*/
|
||||
typedef void * GPid;
|
||||
|
||||
#define GLIB_SYSDEF_AF_UNIX 1
|
||||
#define GLIB_SYSDEF_AF_INET 2
|
||||
#define GLIB_SYSDEF_AF_INET6 23
|
||||
|
||||
#define GLIB_SYSDEF_MSG_OOB 1
|
||||
#define GLIB_SYSDEF_MSG_PEEK 2
|
||||
#define GLIB_SYSDEF_MSG_DONTROUTE 4
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* GLIBCONFIG_H */
|
||||
225
win32/glibconfig-x86.h
Normal file
225
win32/glibconfig-x86.h
Normal file
@@ -0,0 +1,225 @@
|
||||
/* glibconfig.h
|
||||
*
|
||||
* This is a generated file. Please modify 'configure.ac'
|
||||
*/
|
||||
|
||||
#ifndef __G_LIBCONFIG_H__
|
||||
#define __G_LIBCONFIG_H__
|
||||
|
||||
#include <glib/gmacros.h>
|
||||
|
||||
#include <limits.h>
|
||||
#include <float.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
#define G_MINFLOAT FLT_MIN
|
||||
#define G_MAXFLOAT FLT_MAX
|
||||
#define G_MINDOUBLE DBL_MIN
|
||||
#define G_MAXDOUBLE DBL_MAX
|
||||
#define G_MINSHORT SHRT_MIN
|
||||
#define G_MAXSHORT SHRT_MAX
|
||||
#define G_MAXUSHORT USHRT_MAX
|
||||
#define G_MININT INT_MIN
|
||||
#define G_MAXINT INT_MAX
|
||||
#define G_MAXUINT UINT_MAX
|
||||
#define G_MINLONG LONG_MIN
|
||||
#define G_MAXLONG LONG_MAX
|
||||
#define G_MAXULONG ULONG_MAX
|
||||
|
||||
typedef signed char gint8;
|
||||
typedef unsigned char guint8;
|
||||
typedef signed short gint16;
|
||||
typedef unsigned short guint16;
|
||||
#define G_GINT16_MODIFIER "h"
|
||||
#define G_GINT16_FORMAT "hi"
|
||||
#define G_GUINT16_FORMAT "hu"
|
||||
typedef signed int gint32;
|
||||
typedef unsigned int guint32;
|
||||
#define G_GINT32_MODIFIER ""
|
||||
#define G_GINT32_FORMAT "i"
|
||||
#define G_GUINT32_FORMAT "u"
|
||||
#define G_HAVE_GINT64 1 /* deprecated, always true */
|
||||
|
||||
G_GNUC_EXTENSION typedef signed long long gint64;
|
||||
G_GNUC_EXTENSION typedef unsigned long long guint64;
|
||||
|
||||
#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
|
||||
#define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
|
||||
#define G_GINT64_MODIFIER "I64"
|
||||
#define G_GINT64_FORMAT "I64i"
|
||||
#define G_GUINT64_FORMAT "I64u"
|
||||
|
||||
#define GLIB_SIZEOF_VOID_P 4
|
||||
#define GLIB_SIZEOF_LONG 4
|
||||
#define GLIB_SIZEOF_SIZE_T 4
|
||||
|
||||
typedef signed int gssize;
|
||||
typedef unsigned int gsize;
|
||||
#define G_GSIZE_MODIFIER ""
|
||||
#define G_GSSIZE_FORMAT "i"
|
||||
#define G_GSIZE_FORMAT "u"
|
||||
|
||||
#define G_MAXSIZE G_MAXUINT
|
||||
#define G_MINSSIZE G_MININT
|
||||
#define G_MAXSSIZE G_MAXINT
|
||||
|
||||
typedef gint64 goffset;
|
||||
#define G_MINOFFSET G_MININT64
|
||||
#define G_MAXOFFSET G_MAXINT64
|
||||
|
||||
#define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
|
||||
#define G_GOFFSET_FORMAT G_GINT64_FORMAT
|
||||
#define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
|
||||
|
||||
|
||||
#define GPOINTER_TO_INT(p) ((gint) (p))
|
||||
#define GPOINTER_TO_UINT(p) ((guint) (p))
|
||||
|
||||
#define GINT_TO_POINTER(i) ((gpointer) (i))
|
||||
#define GUINT_TO_POINTER(u) ((gpointer) (u))
|
||||
|
||||
typedef signed int gintptr;
|
||||
typedef unsigned int guintptr;
|
||||
|
||||
#define G_GINTPTR_MODIFIER ""
|
||||
#define G_GINTPTR_FORMAT "i"
|
||||
#define G_GUINTPTR_FORMAT "u"
|
||||
|
||||
#ifdef NeXT /* @#%@! NeXTStep */
|
||||
# define g_ATEXIT(proc) (!atexit (proc))
|
||||
#else
|
||||
# define g_ATEXIT(proc) (atexit (proc))
|
||||
#endif
|
||||
|
||||
#define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END
|
||||
|
||||
#define GLIB_MAJOR_VERSION 2
|
||||
#define GLIB_MINOR_VERSION 30
|
||||
#define GLIB_MICRO_VERSION 2
|
||||
|
||||
#define G_OS_WIN32
|
||||
#define G_PLATFORM_WIN32
|
||||
|
||||
|
||||
#define G_VA_COPY va_copy
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define G_HAVE_INLINE 1
|
||||
#else /* !__cplusplus */
|
||||
#ifndef _MSC_VER
|
||||
#define G_HAVE_INLINE 1
|
||||
#endif /* _MSC_VER */
|
||||
#define G_HAVE___INLINE 1
|
||||
#if !defined(_MSC_VER) && !defined(__DMC__)
|
||||
#define G_HAVE___INLINE__ 1
|
||||
#endif /* !_MSC_VER and !__DMC__ */
|
||||
#endif /* !__cplusplus */
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define G_CAN_INLINE 1
|
||||
#else /* !__cplusplus */
|
||||
#define G_CAN_INLINE 1
|
||||
#endif
|
||||
|
||||
#ifndef __cplusplus
|
||||
# define G_HAVE_ISO_VARARGS 1
|
||||
#endif
|
||||
|
||||
/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
|
||||
* is passed ISO vararg support is turned off, and there is no work
|
||||
* around to turn it on, so we unconditionally turn it off.
|
||||
*/
|
||||
#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
|
||||
# undef G_HAVE_ISO_VARARGS
|
||||
#endif
|
||||
|
||||
#define G_HAVE_GNUC_VARARGS 1
|
||||
#define G_HAVE_GROWING_STACK 0
|
||||
|
||||
#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
|
||||
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
|
||||
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
|
||||
#define G_GNUC_INTERNAL __hidden
|
||||
#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
|
||||
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
|
||||
#else
|
||||
#define G_GNUC_INTERNAL
|
||||
#endif
|
||||
|
||||
#define G_THREADS_ENABLED
|
||||
#define G_THREADS_IMPL_WIN32
|
||||
typedef struct _GMutex* GStaticMutex;
|
||||
#define G_STATIC_MUTEX_INIT NULL
|
||||
#define g_static_mutex_get_mutex(mutex) \
|
||||
(g_static_mutex_get_mutex_impl_shortcut (mutex))
|
||||
/* This represents a system thread as used by the implementation. An
|
||||
* alien implementaion, as loaded by g_thread_init can only count on
|
||||
* "sizeof (gpointer)" bytes to store their info. We however need more
|
||||
* for some of our native implementations. */
|
||||
typedef union _GSystemThread GSystemThread;
|
||||
union _GSystemThread
|
||||
{
|
||||
char data[4];
|
||||
double dummy_double;
|
||||
void *dummy_pointer;
|
||||
long dummy_long;
|
||||
};
|
||||
|
||||
#define G_ATOMIC_OP_USE_GCC_BUILTINS 1
|
||||
|
||||
#define GINT16_TO_LE(val) ((gint16) (val))
|
||||
#define GUINT16_TO_LE(val) ((guint16) (val))
|
||||
#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
|
||||
#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
|
||||
#define GINT32_TO_LE(val) ((gint32) (val))
|
||||
#define GUINT32_TO_LE(val) ((guint32) (val))
|
||||
#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
|
||||
#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
|
||||
#define GINT64_TO_LE(val) ((gint64) (val))
|
||||
#define GUINT64_TO_LE(val) ((guint64) (val))
|
||||
#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
|
||||
#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
|
||||
#define GLONG_TO_LE(val) ((glong) GINT32_TO_LE (val))
|
||||
#define GULONG_TO_LE(val) ((gulong) GUINT32_TO_LE (val))
|
||||
#define GLONG_TO_BE(val) ((glong) GINT32_TO_BE (val))
|
||||
#define GULONG_TO_BE(val) ((gulong) GUINT32_TO_BE (val))
|
||||
#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
|
||||
#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
|
||||
#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
|
||||
#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
|
||||
#define GSIZE_TO_LE(val) ((gsize) GUINT32_TO_LE (val))
|
||||
#define GSSIZE_TO_LE(val) ((gssize) GINT32_TO_LE (val))
|
||||
#define GSIZE_TO_BE(val) ((gsize) GUINT32_TO_BE (val))
|
||||
#define GSSIZE_TO_BE(val) ((gssize) GINT32_TO_BE (val))
|
||||
#define G_BYTE_ORDER G_LITTLE_ENDIAN
|
||||
|
||||
#define GLIB_SYSDEF_POLLIN =1
|
||||
#define GLIB_SYSDEF_POLLOUT =4
|
||||
#define GLIB_SYSDEF_POLLPRI =2
|
||||
#define GLIB_SYSDEF_POLLHUP =16
|
||||
#define GLIB_SYSDEF_POLLERR =8
|
||||
#define GLIB_SYSDEF_POLLNVAL =32
|
||||
|
||||
#define G_MODULE_SUFFIX "dll"
|
||||
|
||||
/* A GPid is an abstraction for a process "handle". It is *not* an
|
||||
* abstraction for a process identifier in general. GPid is used in
|
||||
* GLib only for descendant processes spawned with the g_spawn*
|
||||
* functions. On POSIX there is no "process handle" concept as such,
|
||||
* but on Windows a GPid is a handle to a process, a kind of pointer,
|
||||
* not a process identifier.
|
||||
*/
|
||||
typedef void * GPid;
|
||||
|
||||
#define GLIB_SYSDEF_AF_UNIX 1
|
||||
#define GLIB_SYSDEF_AF_INET 2
|
||||
#define GLIB_SYSDEF_AF_INET6 23
|
||||
|
||||
#define GLIB_SYSDEF_MSG_OOB 1
|
||||
#define GLIB_SYSDEF_MSG_PEEK 2
|
||||
#define GLIB_SYSDEF_MSG_DONTROUTE 4
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* GLIBCONFIG_H */
|
||||
BIN
win32/isskin/watercolorlite-blue.cjstyles
Normal file
BIN
win32/isskin/watercolorlite-blue.cjstyles
Normal file
Binary file not shown.
BIN
win32/isskin/watercolorlite-green.cjstyles
Normal file
BIN
win32/isskin/watercolorlite-green.cjstyles
Normal file
Binary file not shown.
7
win32/release-src.bat
Normal file
7
win32/release-src.bat
Normal file
@@ -0,0 +1,7 @@
|
||||
@echo off
|
||||
set PATH=%PATH%;%PROGRAMW6432%\7-Zip;%PROGRAMFILES(X86)%\Git\bin
|
||||
git clone --branch wdk https://xchat-wdk.googlecode.com/git/ xchat-wdk
|
||||
rmdir /q /s xchat-wdk\.git
|
||||
7z a xchat-wdk-head.7z xchat-wdk
|
||||
rmdir /q /s xchat-wdk
|
||||
pause
|
||||
78
win32/release-x64.bat
Normal file
78
win32/release-x64.bat
Normal file
@@ -0,0 +1,78 @@
|
||||
@echo off
|
||||
set DEPS_ROOT=deps-x64
|
||||
set XCHAT_DEST=dist-x64
|
||||
rmdir /q /s %XCHAT_DEST%
|
||||
mkdir %XCHAT_DEST%
|
||||
echo 2> portable-mode
|
||||
move portable-mode %XCHAT_DEST%
|
||||
copy ..\src\fe-gtk\xchat.exe %XCHAT_DEST%
|
||||
copy ..\src\fe-text\xchat-text.exe %XCHAT_DEST%
|
||||
::obs copy ..\src\gtk2-prefs\gtk2-prefs.exe %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libatk-1.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libcairo-2.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libexpat-1.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libffi-5.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libfontconfig-1.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libfreetype-6.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgdk_pixbuf-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgdk-win32-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgio-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libglib-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgmodule-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgobject-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgthread-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgtk-win32-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libintl-8.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libjasper-1.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libjpeg-8.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libpango-1.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libpangocairo-1.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libpangoft2-1.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libpangowin32-1.0-0.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libpixman-1-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libpng14-14.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libpng15-15.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libtiff-3.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libxml2.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libxml2-2.dll %XCHAT_DEST%
|
||||
xcopy /q /s /i %DEPS_ROOT%\lib\gtk-2.0\2.10.0\engines %XCHAT_DEST%\lib\gtk-2.0\2.10.0\engines
|
||||
xcopy /q /s /i %DEPS_ROOT%\lib\gtk-2.0\modules\libgail.dll %XCHAT_DEST%\lib\gtk-2.0\modules\
|
||||
xcopy /q /s /i etc %XCHAT_DEST%\etc
|
||||
xcopy /q /s /i share %XCHAT_DEST%\share
|
||||
::obs xcopy /q /s /i %DEPS_ROOT%\share\themes %XCHAT_DEST%\share\themes
|
||||
copy ..\COPYING %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\LICENSE.OPENSSL %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\LICENSE.ZLIB %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\share\gettext\intl\COPYING.LIB-2.0 %XCHAT_DEST%\LICENSE.GTK
|
||||
copy %DEPS_ROOT%\share\gettext\intl\COPYING.LIB-2.1 %XCHAT_DEST%\LICENSE.CAIRO
|
||||
copy %DEPS_ROOT%\LICENSE.LUA %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\LICENSE.ENCHANT %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\LICENSE.LIBXML %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\share\doc\libxml2-2.7.8\Copyright %XCHAT_DEST%\LICENSE.LIBXML
|
||||
copy %DEPS_ROOT%\bin\libeay32.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\ssleay32.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\zlib1.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\cert.pem %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libenchant.dll %XCHAT_DEST%
|
||||
xcopy /q /s /i %DEPS_ROOT%\lib\enchant\libenchant_myspell.dll %XCHAT_DEST%\lib\enchant\
|
||||
xcopy /q /s /i ..\plugins\checksum\xcchecksum.dll %XCHAT_DEST%\plugins\
|
||||
copy ..\plugins\doat\xcdoat.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\exec\xcexec.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\fishlim\xcfishlim.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\lua\xclua.dll %XCHAT_DEST%\plugins
|
||||
::obs copy ..\plugins\gtkpref\xcgtkpref.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\mpcinfo\xcmpcinfo.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\perl\xcperl-512.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\perl\xcperl-514.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\python\xcpython.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\tcl\xctcl.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\upd\xcupd.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\xtray\xtray.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\winamp\xcwinamp.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\winsys\xcwinsys.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\wmpa\xcwmpa.dll %XCHAT_DEST%\plugins
|
||||
copy %DEPS_ROOT%\bin\lua51.dll %XCHAT_DEST%
|
||||
xcopy /q /s /i ..\po\locale %XCHAT_DEST%\locale
|
||||
xcopy /q /s /i %DEPS_ROOT%\share\locale %XCHAT_DEST%\share\locale
|
||||
copy "%PROGRAMFILES(X86)%\Codejock Software\ISSkin\ISSkinU.dll" %XCHAT_DEST%
|
||||
copy isskin\watercolorlite-blue.cjstyles %XCHAT_DEST%
|
||||
80
win32/release-x86.bat
Normal file
80
win32/release-x86.bat
Normal file
@@ -0,0 +1,80 @@
|
||||
@echo off
|
||||
set DEPS_ROOT=deps-x86
|
||||
set XCHAT_DEST=dist-x86
|
||||
rmdir /q /s %XCHAT_DEST%
|
||||
mkdir %XCHAT_DEST%
|
||||
echo 2> portable-mode
|
||||
move portable-mode %XCHAT_DEST%
|
||||
copy ..\src\fe-gtk\xchat.exe %XCHAT_DEST%
|
||||
copy ..\src\fe-text\xchat-text.exe %XCHAT_DEST%
|
||||
::obs copy ..\src\gtk2-prefs\gtk2-prefs.exe %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libatk-1.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libcairo-2.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libexpat-1.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libffi-5.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libfontconfig-1.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\freetype6.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libfreetype-6.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgdk_pixbuf-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgdk-win32-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgio-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libglib-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgmodule-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgobject-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgthread-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libgtk-win32-2.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\intl.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libintl-8.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libjasper-1.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libjpeg-8.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libpango-1.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libpangocairo-1.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libpangoft2-1.0-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libpangowin32-1.0-0.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libpixman-1-0.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libpng14-14.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libpng15-15.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libtiff-3.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libxml2.dll %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\bin\libxml2-2.dll %XCHAT_DEST%
|
||||
xcopy /q /s /i %DEPS_ROOT%\lib\gtk-2.0\2.10.0\engines %XCHAT_DEST%\lib\gtk-2.0\2.10.0\engines
|
||||
xcopy /q /s /i %DEPS_ROOT%\lib\gtk-2.0\modules\libgail.dll %XCHAT_DEST%\lib\gtk-2.0\modules\
|
||||
xcopy /q /s /i etc %XCHAT_DEST%\etc
|
||||
xcopy /q /s /i share %XCHAT_DEST%\share
|
||||
::obs xcopy /q /s /i %DEPS_ROOT%\share\themes %XCHAT_DEST%\share\themes
|
||||
copy ..\COPYING %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\LICENSE.OPENSSL %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\LICENSE.ZLIB %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\share\gettext\intl\COPYING.LIB-2.0 %XCHAT_DEST%\LICENSE.GTK
|
||||
copy %DEPS_ROOT%\share\gettext\intl\COPYING.LIB-2.1 %XCHAT_DEST%\LICENSE.CAIRO
|
||||
copy %DEPS_ROOT%\LICENSE.LUA %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\LICENSE.ENCHANT %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\LICENSE.LIBXML %XCHAT_DEST%
|
||||
::obs copy %DEPS_ROOT%\share\doc\libxml2-2.7.8\Copyright %XCHAT_DEST%\LICENSE.LIBXML
|
||||
copy %DEPS_ROOT%\bin\libeay32.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\ssleay32.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\zlib1.dll %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\cert.pem %XCHAT_DEST%
|
||||
copy %DEPS_ROOT%\bin\libenchant.dll %XCHAT_DEST%
|
||||
xcopy /q /s /i %DEPS_ROOT%\lib\enchant\libenchant_myspell.dll %XCHAT_DEST%\lib\enchant\
|
||||
xcopy /q /s /i ..\plugins\checksum\xcchecksum.dll %XCHAT_DEST%\plugins\
|
||||
copy ..\plugins\doat\xcdoat.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\exec\xcexec.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\fishlim\xcfishlim.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\lua\xclua.dll %XCHAT_DEST%\plugins
|
||||
::obs copy ..\plugins\gtkpref\xcgtkpref.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\mpcinfo\xcmpcinfo.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\perl\xcperl-512.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\perl\xcperl-514.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\python\xcpython.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\tcl\xctcl.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\upd\xcupd.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\xtray\xtray.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\winamp\xcwinamp.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\winsys\xcwinsys.dll %XCHAT_DEST%\plugins
|
||||
copy ..\plugins\wmpa\xcwmpa.dll %XCHAT_DEST%\plugins
|
||||
copy %DEPS_ROOT%\bin\lua51.dll %XCHAT_DEST%
|
||||
xcopy /q /s /i ..\po\locale %XCHAT_DEST%\locale
|
||||
xcopy /q /s /i %DEPS_ROOT%\share\locale %XCHAT_DEST%\share\locale
|
||||
copy "%PROGRAMFILES(X86)%\Codejock Software\ISSkin\ISSkinU.dll" %XCHAT_DEST%
|
||||
copy isskin\watercolorlite-green.cjstyles %XCHAT_DEST%
|
||||
7
win32/share/themes/Murrine/gtk-2.0/gtkrc
Normal file
7
win32/share/themes/Murrine/gtk-2.0/gtkrc
Normal file
@@ -0,0 +1,7 @@
|
||||
style "default"
|
||||
{
|
||||
engine "murrine"
|
||||
{
|
||||
}
|
||||
}
|
||||
class "*" style "default"
|
||||
1703
win32/share/xml/iso-codes/iso_3166.xml
Normal file
1703
win32/share/xml/iso-codes/iso_3166.xml
Normal file
File diff suppressed because it is too large
Load Diff
2169
win32/share/xml/iso-codes/iso_639.xml
Normal file
2169
win32/share/xml/iso-codes/iso_639.xml
Normal file
File diff suppressed because it is too large
Load Diff
143
win32/version.c
Normal file
143
win32/version.c
Normal file
@@ -0,0 +1,143 @@
|
||||
/* XChat-WDK
|
||||
* Copyright (c) 2011 Berke Viktor.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. The name of the author may not be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <malloc.h>
|
||||
#include "../config.h"
|
||||
|
||||
char *
|
||||
comma ()
|
||||
{
|
||||
int major, minor;
|
||||
char *version_string; /* nnnn,n,n,n format */
|
||||
|
||||
version_string = (char*) malloc (11);
|
||||
|
||||
if (sscanf (PACKAGE_VERSION, "%d-%d", &major, &minor) > 1)
|
||||
{
|
||||
sprintf (version_string, "%d,%d,0,0", major, minor);
|
||||
} else
|
||||
{
|
||||
sprintf (version_string, "%d,0,0,0", major);
|
||||
}
|
||||
|
||||
return version_string;
|
||||
}
|
||||
|
||||
char *
|
||||
point ()
|
||||
{
|
||||
int major1, major2, major3, major4, minor;
|
||||
char *version_string; /* nn.nn.nn.nn format */
|
||||
|
||||
version_string = (char*) malloc (12);
|
||||
|
||||
if (sscanf (PACKAGE_VERSION, "%c%c%c%c-%d", &major1, &major2, &major3, &major4, &minor) > 4)
|
||||
{
|
||||
sprintf (version_string, "%c%c.%c%c.%d.0", major1, major2, major3, major4, minor);
|
||||
} else
|
||||
{
|
||||
sprintf (version_string, "%c%c.%c%c.0.0", major1, major2, major3, major4);
|
||||
}
|
||||
|
||||
return version_string;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
if (argc > 1)
|
||||
{
|
||||
if (!strcmp (argv[1], "-r")) /* xchat.rc/FILEVERSION, PRODUCTVERSION */
|
||||
{
|
||||
printf ("#define COMMA_VERSION %s\n", comma ());
|
||||
}
|
||||
else if (!strcmp (argv[1], "-a32")) /* xchat-wdk.iss/AppVerName */
|
||||
{
|
||||
printf ("AppVerName=XChat-WDK %s (x86)\n", PACKAGE_VERSION);
|
||||
}
|
||||
else if (!strcmp (argv[1], "-a64")) /* xchat-wdk.iss/AppVerName */
|
||||
{
|
||||
printf ("AppVerName=XChat-WDK %s (x64)\n", PACKAGE_VERSION);
|
||||
}
|
||||
else if (!strcmp (argv[1], "-v")) /* xchat-wdk.iss/AppVersion */
|
||||
{
|
||||
printf ("AppVersion=%s\n", point ());
|
||||
}
|
||||
else if (!strcmp (argv[1], "-i")) /* xchat-wdk.iss/VersionInfoVersion */
|
||||
{
|
||||
printf ("VersionInfoVersion=%s\n", point ());
|
||||
}
|
||||
else if (!strcmp (argv[1], "-o32")) /* xchat-wdk.iss/OutputBaseFilename */
|
||||
{
|
||||
printf ("OutputBaseFilename=XChat-WDK %s x86\n", PACKAGE_VERSION);
|
||||
}
|
||||
else if (!strcmp (argv[1], "-o64")) /* xchat-wdk.iss/OutputBaseFilename */
|
||||
{
|
||||
printf ("OutputBaseFilename=XChat-WDK %s x64\n", PACKAGE_VERSION);
|
||||
}
|
||||
else if (!strcmp (argv[1], "-v")) /* version.txt */
|
||||
{
|
||||
printf ("%s", PACKAGE_VERSION);
|
||||
} else
|
||||
{
|
||||
printf ("usage:\n\t-a\txchat-wdk.iss/AppVerName\n\t-i\txchat-wdk.iss/VersionInfoVersion\n\t-o\txchat-wdk.iss/OutputBaseFilename\n\t-r\txchat.rc/FILEVERSION, PRODUCTVERSION\n\t-v\txchat-wdk.iss/AppVersion\n");
|
||||
}
|
||||
} else
|
||||
{
|
||||
printf ("usage:\n\t-a\txchat-wdk.iss/AppVerName\n\t-i\txchat-wdk.iss/VersionInfoVersion\n\t-o\txchat-wdk.iss/OutputBaseFilename\n\t-r\txchat.rc/FILEVERSION, PRODUCTVERSION\n\t-v\txchat-wdk.iss/AppVersion\n");
|
||||
}
|
||||
|
||||
#if 0 /* ugly hack */
|
||||
switch ((int) argv[1][0])
|
||||
{
|
||||
case 'r': /* xchat.rc/FILEVERSION, PRODUCTVERSION*/
|
||||
printf ("#define COMMA_VERSION \"%s\"\n", comma ());
|
||||
break;
|
||||
case 'a': /* xchat-wdk.iss/AppVerName */
|
||||
printf ("AppVerName=XChat-WDK %s\n", PACKAGE_VERSION);
|
||||
break;
|
||||
case 'v': /* xchat-wdk.iss/AppVersion */
|
||||
printf ("AppVersion=%s\n", point ());
|
||||
break;
|
||||
case 'i': /* xchat-wdk.iss/VersionInfoVersion */
|
||||
printf ("VersionInfoVersion=%s\n", point ());
|
||||
break;
|
||||
case 'o': /* xchat-wdk.iss/OutputBaseFilename */
|
||||
printf ("OutputBaseFilename=XChat-WDK %s\n", PACKAGE_VERSION);
|
||||
break;
|
||||
case 'u': /* version.txt */
|
||||
printf ("%s", PACKAGE_VERSION);
|
||||
break;
|
||||
default:
|
||||
printf ("use a, i, o, r or v.\n");
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
39
win32/xchat-wdk-spell.skel.iss
Normal file
39
win32/xchat-wdk-spell.skel.iss
Normal file
@@ -0,0 +1,39 @@
|
||||
AppName=XChat-WDK Spelling Dictionaries
|
||||
AppVerName=XChat-WDK Spelling Dictionaries r1
|
||||
AppVersion=1.0
|
||||
VersionInfoVersion=1.0
|
||||
OutputBaseFilename=XChat-WDK Spelling Dictionaries r1
|
||||
AppPublisher=XChat-WDK
|
||||
AppPublisherURL=http://code.google.com/p/xchat-wdk/
|
||||
AppCopyright=Copyright (C) 1998-2010 Peter Zelezny
|
||||
AppSupportURL=http://code.google.com/p/xchat-wdk/issues/list
|
||||
AppUpdatesURL=http://code.google.com/p/xchat-wdk/wiki/InfoXChat
|
||||
LicenseFile=COPYING
|
||||
UninstallDisplayIcon={app}\xchat.exe
|
||||
UninstallDisplayName=XChat-WDK Spelling Dictionaries
|
||||
DefaultDirName={pf}\XChat-WDK
|
||||
DefaultGroupName=XChat-WDK
|
||||
DisableProgramGroupPage=yes
|
||||
SolidCompression=yes
|
||||
SourceDir=..\tmp-spell
|
||||
OutputDir=..\build
|
||||
FlatComponentsList=no
|
||||
PrivilegesRequired=none
|
||||
ShowComponentSizes=no
|
||||
CreateUninstallRegKey=not IsTaskSelected('portable')
|
||||
Uninstallable=not IsTaskSelected('portable')
|
||||
DirExistsWarning=no
|
||||
ArchitecturesAllowed=x86 x64
|
||||
ArchitecturesInstallIn64BitMode=x64
|
||||
|
||||
[Tasks]
|
||||
Name: portable; Description: "Yes"; GroupDescription: "Portable Install (no Registry entries, no Start Menu icons, no uninstaller):"; Flags: unchecked
|
||||
|
||||
[Files]
|
||||
Source: "share\myspell\*"; DestDir: "{app}\share\myspell"; Flags: createallsubdirs recursesubdirs
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\Uninstall Spelling Dictionaries"; Filename: "{uninstallexe}"; Tasks: not portable
|
||||
|
||||
[Messages]
|
||||
BeveledLabel= XChat-WDK
|
||||
273
win32/xchat-wdk-x64.skel.iss
Normal file
273
win32/xchat-wdk-x64.skel.iss
Normal file
@@ -0,0 +1,273 @@
|
||||
AppName=XChat-WDK (x64)
|
||||
AppPublisher=XChat-WDK
|
||||
AppPublisherURL=http://www.xchat-wdk.org/
|
||||
AppCopyright=Copyright (C) 1998-2010 Peter Zelezny
|
||||
AppSupportURL=http://code.google.com/p/xchat-wdk/issues/list
|
||||
AppUpdatesURL=http://www.xchat-wdk.org/home/downloads
|
||||
LicenseFile=COPYING
|
||||
UninstallDisplayIcon={app}\xchat.exe
|
||||
UninstallDisplayName=XChat-WDK (x64)
|
||||
DefaultDirName={pf}\XChat-WDK
|
||||
DefaultGroupName=XChat-WDK
|
||||
DisableProgramGroupPage=yes
|
||||
SolidCompression=yes
|
||||
SourceDir=dist-x64
|
||||
OutputDir=..\
|
||||
FlatComponentsList=no
|
||||
PrivilegesRequired=none
|
||||
ShowComponentSizes=no
|
||||
CreateUninstallRegKey=not IsTaskSelected('portable')
|
||||
Uninstallable=not IsTaskSelected('portable')
|
||||
ArchitecturesAllowed=x64
|
||||
ArchitecturesInstallIn64BitMode=x64
|
||||
|
||||
[Types]
|
||||
Name: "normal"; Description: "Normal Installation"
|
||||
Name: "full"; Description: "Full Installation"
|
||||
Name: "minimal"; Description: "Minimal Installation"
|
||||
Name: "custom"; Description: "Custom Installation"; Flags: iscustom
|
||||
|
||||
[Components]
|
||||
Name: "libs"; Description: "XChat-WDK"; Types: normal full minimal custom; Flags: fixed
|
||||
Name: "xctext"; Description: "XChat-Text"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "translations"; Description: "Translations"; Types: normal full custom; Flags: disablenouninstallwarning
|
||||
;obs Name: "gtkengines"; Description: "GTK+ Engines"; Types: full custom; Flags: disablenouninstallwarning
|
||||
;Name: "spelling"; Description: "Spelling Dictionaries"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins"; Description: "Plugins"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\checksum"; Description: "Checksum"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\doat"; Description: "Do At"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\exec"; Description: "Exec"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\fishlim"; Description: "FiSHLiM"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\mpcinfo"; Description: "mpcInfo"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\upd"; Description: "Update Checker"; Types: normal full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\winamp"; Description: "Winamp"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\winsys"; Description: "WinSys"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\wmpa"; Description: "Windows Media Player Announcer"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\xtray"; Description: "X-Tray"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "langs"; Description: "Language Interfaces"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "langs\lua"; Description: "Lua"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "langs\lua\luawdk"; Description: "Lua-WDK"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "langs\perl"; Description: "Perl"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "langs\python"; Description: "Python"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "langs\tcl"; Description: "Tcl"; Types: full custom; Flags: disablenouninstallwarning
|
||||
|
||||
[Tasks]
|
||||
Name: portable; Description: "Yes"; GroupDescription: "Portable Install (no Registry entries, no Start Menu icons, no uninstaller):"; Flags: unchecked
|
||||
|
||||
Name: perl512; Description: "5.12"; GroupDescription: "Perl version:"; Flags: exclusive; Components: langs\perl
|
||||
Name: perl514; Description: "5.14"; GroupDescription: "Perl version:"; Flags: exclusive unchecked; Components: langs\perl
|
||||
|
||||
[Registry]
|
||||
Root: HKCR; Subkey: "irc"; ValueType: none; ValueName: ""; ValueData: ""; Flags: deletekey uninsdeletekey; Tasks: not portable
|
||||
Root: HKCR; Subkey: "irc"; ValueType: string; ValueName: ""; ValueData: "URL:IRC Protocol"; Flags: uninsdeletevalue; Tasks: not portable
|
||||
Root: HKCR; Subkey: "irc"; ValueType: string; ValueName: "URL Protocol"; ValueData: ""; Flags: uninsdeletevalue; Tasks: not portable
|
||||
Root: HKCR; Subkey: "irc\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\xchat.exe,0"; Flags: uninsdeletevalue; Tasks: not portable
|
||||
Root: HKCR; Subkey: "irc\shell"; ValueType: string; ValueName: ""; ValueData: "open"; Flags: uninsdeletevalue; Tasks: not portable
|
||||
Root: HKCR; Subkey: "irc\shell\open\command"; ValueType: string; ValueName: ""; ValueData: "{app}\xchat.exe --url=""%1"""; Flags: uninsdeletevalue; Tasks: not portable
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\xchat.exe"; Description: "Run XChat-WDK after closing the Wizard"; Flags: nowait postinstall skipifsilent
|
||||
|
||||
[Files]
|
||||
; Add the ISSkin DLL used for skinning Inno Setup installations.
|
||||
Source: ISSkinU.dll; DestDir: {app}; Flags: dontcopy
|
||||
|
||||
; Add the Visual Style resource contains resources used for skinning,
|
||||
; you can also use Microsoft Visual Styles (*.msstyles) resources.
|
||||
Source: watercolorlite-blue.cjstyles; DestDir: {tmp}; Flags: dontcopy
|
||||
|
||||
Source: "portable-mode"; DestDir: "{app}"; Tasks: portable
|
||||
|
||||
Source: "cert.pem"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "COPYING"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.OPENSSL"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.ZLIB"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.GTK"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.CAIRO"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.LUA"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.ENCHANT"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.LIBXML"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "etc\gtk-2.0\gtkrc"; DestDir: "{app}\etc\gtk-2.0"; Flags: ignoreversion; Components: libs
|
||||
;Source: "etc\gtk-2.0\gtkrc"; DestDir: "{app}\etc\gtk-2.0"; Flags: ignoreversion; Components: libs and not gtkengines
|
||||
Source: "share\xml\*"; DestDir: "{app}\share\xml"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: libs
|
||||
Source: "locale\*"; DestDir: "{app}\locale"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: translations
|
||||
Source: "share\locale\*"; DestDir: "{app}\share\locale"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: translations
|
||||
;Source: "share\myspell\*"; DestDir: "{app}\share\myspell"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: spelling
|
||||
|
||||
Source: "libatk-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libcairo-2.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libeay32.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libexpat-1.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libffi-5.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libfreetype-6.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libfontconfig-1.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgdk_pixbuf-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgdk-win32-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgio-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libglib-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgmodule-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgobject-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgthread-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgtk-win32-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libintl-8.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libjasper-1.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libjpeg-8.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libpango-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libpangocairo-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libpangoft2-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libpangowin32-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libpixman-1-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libtiff-3.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libpng14-14.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libpng15-15.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "lua51.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "ssleay32.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "zlib1.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libxml2.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libxml2-2.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libenchant.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
|
||||
Source: "lib\enchant\libenchant_myspell.dll"; DestDir: "{app}\lib\enchant"; Flags: ignoreversion; Components: libs
|
||||
|
||||
Source: "lib\gtk-2.0\2.10.0\engines\libpixmap.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: libs
|
||||
Source: "lib\gtk-2.0\2.10.0\engines\libwimp.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: libs
|
||||
Source: "lib\gtk-2.0\modules\libgail.dll"; DestDir: "{app}\lib\gtk-2.0\modules"; Flags: ignoreversion; Components: libs
|
||||
|
||||
;obs Source: "etc\gtkpref.png"; DestDir: "{app}\etc"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libclearlooks.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libcrux-engine.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libglide.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libhcengine.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libindustrial.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libmist.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libmurrine.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libredmond95.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libthinice.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "plugins\xcgtkpref.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "share\themes\*"; DestDir: "{app}\share\themes"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: gtkengines
|
||||
;obs Source: "gtk2-prefs.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: gtkengines
|
||||
|
||||
Source: "plugins\xcchecksum.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\checksum
|
||||
Source: "plugins\xcdoat.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\doat
|
||||
Source: "plugins\xcexec.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\exec
|
||||
Source: "plugins\xcfishlim.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\fishlim
|
||||
Source: "etc\music.png"; DestDir: "{app}\etc"; Flags: ignoreversion; Components: plugins\winamp or plugins\mpcinfo
|
||||
Source: "plugins\xcmpcinfo.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\mpcinfo
|
||||
Source: "etc\download.png"; DestDir: "{app}\etc"; Flags: ignoreversion; Components: plugins\upd
|
||||
Source: "plugins\xcupd.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\upd
|
||||
Source: "plugins\xcwinamp.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\winamp
|
||||
Source: "etc\system.png"; DestDir: "{app}\etc"; Flags: ignoreversion; Components: plugins\winsys
|
||||
Source: "plugins\xcwinsys.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\winsys
|
||||
Source: "plugins\xtray.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\xtray
|
||||
Source: "plugins\xcwmpa.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\wmpa
|
||||
|
||||
Source: "plugins\xclua.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\lua
|
||||
Source: "plugins\xcpython.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\python
|
||||
Source: "plugins\xctcl.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\tcl
|
||||
|
||||
Source: "plugins\xcperl-512.dll"; DestDir: "{app}\plugins"; DestName: "xcperl.dll"; Flags: ignoreversion; Components: langs\perl; Tasks: perl512
|
||||
Source: "plugins\xcperl-514.dll"; DestDir: "{app}\plugins"; DestName: "xcperl.dll"; Flags: ignoreversion; Components: langs\perl; Tasks: perl514
|
||||
|
||||
Source: "xchat.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "xchat-text.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: xctext
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\XChat-WDK (x64)"; Filename: "{app}\xchat.exe"; Tasks: not portable
|
||||
Name: "{group}\XChat-Text (x64)"; Filename: "{app}\xchat-text.exe"; Components: xctext; Tasks: not portable
|
||||
Name: "{group}\Uninstall XChat-WDK (x64)"; Filename: "{uninstallexe}"; Tasks: not portable
|
||||
|
||||
[Messages]
|
||||
BeveledLabel= XChat-WDK
|
||||
|
||||
[Code]
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
// these are required for x86->x64 or reverse upgrades
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
function GetUninstallString(): String;
|
||||
var
|
||||
sUnInstPath: String;
|
||||
sUnInstallString: String;
|
||||
begin
|
||||
sUnInstPath := ExpandConstant('Software\Microsoft\Windows\CurrentVersion\Uninstall\XChat-WDK (x64)_is1');
|
||||
sUnInstallString := '';
|
||||
if not RegQueryStringValue(HKLM, sUnInstPath, 'UninstallString', sUnInstallString) then
|
||||
RegQueryStringValue(HKCU, sUnInstPath, 'UninstallString', sUnInstallString);
|
||||
Result := sUnInstallString;
|
||||
end;
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
function IsUpgrade(): Boolean;
|
||||
begin
|
||||
Result := (GetUninstallString() <> '');
|
||||
end;
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
function UnInstallOldVersion(): Integer;
|
||||
var
|
||||
sUnInstallString: String;
|
||||
iResultCode: Integer;
|
||||
begin
|
||||
// Return Values:
|
||||
// 1 - uninstall string is empty
|
||||
// 2 - error executing the UnInstallString
|
||||
// 3 - successfully executed the UnInstallString
|
||||
|
||||
// default return value
|
||||
Result := 0;
|
||||
|
||||
// get the uninstall string of the old app
|
||||
sUnInstallString := GetUninstallString();
|
||||
if sUnInstallString <> '' then begin
|
||||
sUnInstallString := RemoveQuotes(sUnInstallString);
|
||||
if Exec(sUnInstallString, '/SILENT /NORESTART /SUPPRESSMSGBOXES','', SW_HIDE, ewWaitUntilTerminated, iResultCode) then
|
||||
Result := 3
|
||||
else
|
||||
Result := 2;
|
||||
end else
|
||||
Result := 1;
|
||||
end;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
procedure CurStepChanged(CurStep: TSetupStep);
|
||||
begin
|
||||
if not (IsTaskSelected('portable')) then
|
||||
begin
|
||||
if (CurStep=ssInstall) then
|
||||
begin
|
||||
if (IsUpgrade()) then
|
||||
begin
|
||||
UnInstallOldVersion();
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
// Importing LoadSkin API from ISSkin.DLL
|
||||
procedure LoadSkin(lpszPath: String; lpszIniFileName: String);
|
||||
external 'LoadSkin@files:isskinu.dll stdcall';
|
||||
|
||||
// Importing UnloadSkin API from ISSkin.DLL
|
||||
procedure UnloadSkin();
|
||||
external 'UnloadSkin@files:isskinu.dll stdcall';
|
||||
|
||||
// Importing ShowWindow Windows API from User32.DLL
|
||||
function ShowWindow(hWnd: Integer; uType: Integer): Integer;
|
||||
external 'ShowWindow@user32.dll stdcall';
|
||||
|
||||
function InitializeSetup(): Boolean;
|
||||
begin
|
||||
ExtractTemporaryFile('watercolorlite-blue.cjstyles');
|
||||
LoadSkin(ExpandConstant('{tmp}\watercolorlite-blue.cjstyles'), '');
|
||||
Result := True;
|
||||
end;
|
||||
|
||||
procedure DeinitializeSetup();
|
||||
begin
|
||||
// Hide Window before unloading skin so user does not get
|
||||
// a glimpse of an unskinned window before it is closed.
|
||||
ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}')), 0);
|
||||
UnloadSkin();
|
||||
end;
|
||||
274
win32/xchat-wdk-x86.skel.iss
Normal file
274
win32/xchat-wdk-x86.skel.iss
Normal file
@@ -0,0 +1,274 @@
|
||||
AppName=XChat-WDK (x86)
|
||||
AppPublisher=XChat-WDK
|
||||
AppPublisherURL=http://www.xchat-wdk.org/
|
||||
AppCopyright=Copyright (C) 1998-2010 Peter Zelezny
|
||||
AppSupportURL=http://code.google.com/p/xchat-wdk/issues/list
|
||||
AppUpdatesURL=http://www.xchat-wdk.org/home/downloads
|
||||
LicenseFile=COPYING
|
||||
UninstallDisplayIcon={app}\xchat.exe
|
||||
UninstallDisplayName=XChat-WDK (x86)
|
||||
DefaultDirName={pf}\XChat-WDK
|
||||
DefaultGroupName=XChat-WDK
|
||||
DisableProgramGroupPage=yes
|
||||
SolidCompression=yes
|
||||
SourceDir=dist-x86
|
||||
OutputDir=..\
|
||||
FlatComponentsList=no
|
||||
PrivilegesRequired=none
|
||||
ShowComponentSizes=no
|
||||
CreateUninstallRegKey=not IsTaskSelected('portable')
|
||||
Uninstallable=not IsTaskSelected('portable')
|
||||
ArchitecturesAllowed=x86 x64
|
||||
|
||||
[Types]
|
||||
Name: "normal"; Description: "Normal Installation"
|
||||
Name: "full"; Description: "Full Installation"
|
||||
Name: "minimal"; Description: "Minimal Installation"
|
||||
Name: "custom"; Description: "Custom Installation"; Flags: iscustom
|
||||
|
||||
[Components]
|
||||
Name: "libs"; Description: "XChat-WDK"; Types: normal full minimal custom; Flags: fixed
|
||||
Name: "xctext"; Description: "XChat-Text"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "translations"; Description: "Translations"; Types: normal full custom; Flags: disablenouninstallwarning
|
||||
;obs Name: "gtkengines"; Description: "GTK+ Engines"; Types: full custom; Flags: disablenouninstallwarning
|
||||
;Name: "spelling"; Description: "Spelling Dictionaries"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins"; Description: "Plugins"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\checksum"; Description: "Checksum"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\doat"; Description: "Do At"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\exec"; Description: "Exec"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\fishlim"; Description: "FiSHLiM"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\mpcinfo"; Description: "mpcInfo"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\upd"; Description: "Update Checker"; Types: normal full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\winamp"; Description: "Winamp"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\winsys"; Description: "WinSys"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\wmpa"; Description: "Windows Media Player Announcer"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "plugins\xtray"; Description: "X-Tray"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "langs"; Description: "Language Interfaces"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "langs\lua"; Description: "Lua"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "langs\lua\luawdk"; Description: "Lua-WDK"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "langs\perl"; Description: "Perl"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "langs\python"; Description: "Python"; Types: full custom; Flags: disablenouninstallwarning
|
||||
Name: "langs\tcl"; Description: "Tcl"; Types: full custom; Flags: disablenouninstallwarning
|
||||
|
||||
[Tasks]
|
||||
Name: portable; Description: "Yes"; GroupDescription: "Portable Install (no Registry entries, no Start Menu icons, no uninstaller):"; Flags: unchecked
|
||||
|
||||
Name: perl512; Description: "5.12"; GroupDescription: "Perl version:"; Flags: exclusive; Components: langs\perl
|
||||
Name: perl514; Description: "5.14"; GroupDescription: "Perl version:"; Flags: exclusive unchecked; Components: langs\perl
|
||||
|
||||
[Registry]
|
||||
Root: HKCR; Subkey: "irc"; ValueType: none; ValueName: ""; ValueData: ""; Flags: deletekey uninsdeletekey; Tasks: not portable
|
||||
Root: HKCR; Subkey: "irc"; ValueType: string; ValueName: ""; ValueData: "URL:IRC Protocol"; Flags: uninsdeletevalue; Tasks: not portable
|
||||
Root: HKCR; Subkey: "irc"; ValueType: string; ValueName: "URL Protocol"; ValueData: ""; Flags: uninsdeletevalue; Tasks: not portable
|
||||
Root: HKCR; Subkey: "irc\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\xchat.exe,0"; Flags: uninsdeletevalue; Tasks: not portable
|
||||
Root: HKCR; Subkey: "irc\shell"; ValueType: string; ValueName: ""; ValueData: "open"; Flags: uninsdeletevalue; Tasks: not portable
|
||||
Root: HKCR; Subkey: "irc\shell\open\command"; ValueType: string; ValueName: ""; ValueData: "{app}\xchat.exe --url=""%1"""; Flags: uninsdeletevalue; Tasks: not portable
|
||||
|
||||
[Run]
|
||||
Filename: "{app}\xchat.exe"; Description: "Run XChat-WDK after closing the Wizard"; Flags: nowait postinstall skipifsilent
|
||||
|
||||
[Files]
|
||||
; Add the ISSkin DLL used for skinning Inno Setup installations.
|
||||
Source: ISSkinU.dll; DestDir: {app}; Flags: dontcopy
|
||||
|
||||
; Add the Visual Style resource contains resources used for skinning,
|
||||
; you can also use Microsoft Visual Styles (*.msstyles) resources.
|
||||
Source: watercolorlite-green.cjstyles; DestDir: {tmp}; Flags: dontcopy
|
||||
|
||||
Source: "portable-mode"; DestDir: "{app}"; Tasks: portable
|
||||
|
||||
Source: "cert.pem"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "COPYING"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.OPENSSL"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.ZLIB"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.GTK"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.CAIRO"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.LUA"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.ENCHANT"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "LICENSE.LIBXML"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "etc\gtk-2.0\gtkrc"; DestDir: "{app}\etc\gtk-2.0"; Flags: ignoreversion; Components: libs
|
||||
;Source: "etc\gtk-2.0\gtkrc"; DestDir: "{app}\etc\gtk-2.0"; Flags: ignoreversion; Components: libs and not gtkengines
|
||||
Source: "share\xml\*"; DestDir: "{app}\share\xml"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: libs
|
||||
Source: "locale\*"; DestDir: "{app}\locale"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: translations
|
||||
Source: "share\locale\*"; DestDir: "{app}\share\locale"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: translations
|
||||
;Source: "share\myspell\*"; DestDir: "{app}\share\myspell"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: spelling
|
||||
|
||||
Source: "libatk-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libcairo-2.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libeay32.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libexpat-1.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libffi-5.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "freetype6.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libfreetype-6.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libfontconfig-1.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgdk_pixbuf-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgdk-win32-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgio-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libglib-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgmodule-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgobject-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgthread-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libgtk-win32-2.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "intl.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libintl-8.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libjasper-1.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libjpeg-8.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libpango-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libpangocairo-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libpangoft2-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libpangowin32-1.0-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libpixman-1-0.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libtiff-3.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libpng14-14.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libpng15-15.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "lua51.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "ssleay32.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "zlib1.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libxml2.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
;obs Source: "libxml2-2.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "libenchant.dll"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
|
||||
Source: "lib\enchant\libenchant_myspell.dll"; DestDir: "{app}\lib\enchant"; Flags: ignoreversion; Components: libs
|
||||
|
||||
Source: "lib\gtk-2.0\2.10.0\engines\libpixmap.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: libs
|
||||
Source: "lib\gtk-2.0\2.10.0\engines\libwimp.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: libs
|
||||
Source: "lib\gtk-2.0\modules\libgail.dll"; DestDir: "{app}\lib\gtk-2.0\modules"; Flags: ignoreversion; Components: libs
|
||||
|
||||
;obs Source: "etc\gtkpref.png"; DestDir: "{app}\etc"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libclearlooks.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libcrux-engine.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libglide.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libhcengine.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libindustrial.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libmist.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libmurrine.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libredmond95.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "lib\gtk-2.0\2.10.0\engines\libthinice.dll"; DestDir: "{app}\lib\gtk-2.0\2.10.0\engines"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "plugins\xcgtkpref.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: gtkengines
|
||||
;obs Source: "share\themes\*"; DestDir: "{app}\share\themes"; Flags: ignoreversion createallsubdirs recursesubdirs; Components: gtkengines
|
||||
;obs Source: "gtk2-prefs.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: gtkengines
|
||||
|
||||
Source: "plugins\xcchecksum.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\checksum
|
||||
Source: "plugins\xcdoat.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\doat
|
||||
Source: "plugins\xcexec.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\exec
|
||||
Source: "plugins\xcfishlim.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\fishlim
|
||||
Source: "etc\music.png"; DestDir: "{app}\etc"; Flags: ignoreversion; Components: plugins\winamp or plugins\mpcinfo
|
||||
Source: "plugins\xcmpcinfo.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\mpcinfo
|
||||
Source: "etc\download.png"; DestDir: "{app}\etc"; Flags: ignoreversion; Components: plugins\upd
|
||||
Source: "plugins\xcupd.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\upd
|
||||
Source: "plugins\xcwinamp.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\winamp
|
||||
Source: "etc\system.png"; DestDir: "{app}\etc"; Flags: ignoreversion; Components: plugins\winsys
|
||||
Source: "plugins\xcwinsys.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\winsys
|
||||
Source: "plugins\xtray.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\xtray
|
||||
Source: "plugins\xcwmpa.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: plugins\wmpa
|
||||
|
||||
Source: "plugins\xclua.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\lua
|
||||
Source: "plugins\xcpython.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\python
|
||||
Source: "plugins\xctcl.dll"; DestDir: "{app}\plugins"; Flags: ignoreversion; Components: langs\tcl
|
||||
|
||||
Source: "plugins\xcperl-512.dll"; DestDir: "{app}\plugins"; DestName: "xcperl.dll"; Flags: ignoreversion; Components: langs\perl; Tasks: perl512
|
||||
Source: "plugins\xcperl-514.dll"; DestDir: "{app}\plugins"; DestName: "xcperl.dll"; Flags: ignoreversion; Components: langs\perl; Tasks: perl514
|
||||
|
||||
Source: "xchat.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: libs
|
||||
Source: "xchat-text.exe"; DestDir: "{app}"; Flags: ignoreversion; Components: xctext
|
||||
|
||||
[Icons]
|
||||
Name: "{group}\XChat-WDK (x86)"; Filename: "{app}\xchat.exe"; Tasks: not portable
|
||||
Name: "{group}\XChat-Text (x86)"; Filename: "{app}\xchat-text.exe"; Components: xctext; Tasks: not portable
|
||||
Name: "{group}\Uninstall XChat-WDK (x86)"; Filename: "{uninstallexe}"; Tasks: not portable
|
||||
|
||||
[Messages]
|
||||
BeveledLabel= XChat-WDK
|
||||
|
||||
[Code]
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
// these are required for x86->x64 or reverse upgrades
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
function GetUninstallString(): String;
|
||||
var
|
||||
sUnInstPath: String;
|
||||
sUnInstallString: String;
|
||||
begin
|
||||
sUnInstPath := ExpandConstant('Software\Microsoft\Windows\CurrentVersion\Uninstall\XChat-WDK (x86)_is1');
|
||||
sUnInstallString := '';
|
||||
if not RegQueryStringValue(HKLM, sUnInstPath, 'UninstallString', sUnInstallString) then
|
||||
RegQueryStringValue(HKCU, sUnInstPath, 'UninstallString', sUnInstallString);
|
||||
Result := sUnInstallString;
|
||||
end;
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
function IsUpgrade(): Boolean;
|
||||
begin
|
||||
Result := (GetUninstallString() <> '');
|
||||
end;
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
function UnInstallOldVersion(): Integer;
|
||||
var
|
||||
sUnInstallString: String;
|
||||
iResultCode: Integer;
|
||||
begin
|
||||
// Return Values:
|
||||
// 1 - uninstall string is empty
|
||||
// 2 - error executing the UnInstallString
|
||||
// 3 - successfully executed the UnInstallString
|
||||
|
||||
// default return value
|
||||
Result := 0;
|
||||
|
||||
// get the uninstall string of the old app
|
||||
sUnInstallString := GetUninstallString();
|
||||
if sUnInstallString <> '' then begin
|
||||
sUnInstallString := RemoveQuotes(sUnInstallString);
|
||||
if Exec(sUnInstallString, '/SILENT /NORESTART /SUPPRESSMSGBOXES','', SW_HIDE, ewWaitUntilTerminated, iResultCode) then
|
||||
Result := 3
|
||||
else
|
||||
Result := 2;
|
||||
end else
|
||||
Result := 1;
|
||||
end;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
procedure CurStepChanged(CurStep: TSetupStep);
|
||||
begin
|
||||
if not (IsTaskSelected('portable')) then
|
||||
begin
|
||||
if (CurStep=ssInstall) then
|
||||
begin
|
||||
if (IsUpgrade()) then
|
||||
begin
|
||||
UnInstallOldVersion();
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
// Importing LoadSkin API from ISSkin.DLL
|
||||
procedure LoadSkin(lpszPath: String; lpszIniFileName: String);
|
||||
external 'LoadSkin@files:isskinu.dll stdcall';
|
||||
|
||||
// Importing UnloadSkin API from ISSkin.DLL
|
||||
procedure UnloadSkin();
|
||||
external 'UnloadSkin@files:isskinu.dll stdcall';
|
||||
|
||||
// Importing ShowWindow Windows API from User32.DLL
|
||||
function ShowWindow(hWnd: Integer; uType: Integer): Integer;
|
||||
external 'ShowWindow@user32.dll stdcall';
|
||||
|
||||
function InitializeSetup(): Boolean;
|
||||
begin
|
||||
ExtractTemporaryFile('watercolorlite-green.cjstyles');
|
||||
LoadSkin(ExpandConstant('{tmp}\watercolorlite-green.cjstyles'), '');
|
||||
Result := True;
|
||||
end;
|
||||
|
||||
procedure DeinitializeSetup();
|
||||
begin
|
||||
// Hide Window before unloading skin so user does not get
|
||||
// a glimpse of an unskinned window before it is closed.
|
||||
ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}')), 0);
|
||||
UnloadSkin();
|
||||
end;
|
||||
Reference in New Issue
Block a user