- mv cmake, netware, vms and windows build script to root dir

master
pajoye 2007-10-04 11:21:30 +00:00
parent 56e9d052e0
commit 696a436682
25 changed files with 1388 additions and 0 deletions

1108
VMS/CONFIGURE.COM Normal file

File diff suppressed because it is too large Load Diff

71
VMS/README.VMS Normal file
View File

@ -0,0 +1,71 @@
Dear OpenVMS user,
Installation process is identical to one in *nix* world and consist to
four simple steps:
1. Installing required libraries
2. Configuration
3. Compiling
4. Installation.
1. Please install required libraries first:
1. ZLIB 1.2 or newer
2. PNG 1.2.12 or newer
3. FreeType 2
4. JPEG 6B
All may be found at OpenVMS libSDL porting project site
http://fafner.dyndns.org/~alexey/libsdl/required.html
Also, system should have MMS make utility from DEC or
free analogue MMK. And C compiler with runtime, of course. ;)
2. Configuration is doing automatically by a configuration script:
$@[.VMS]CONFIGURE
The script detects hardware,system and required libraries have been installed.
Compilation stage will be prepeared to create shared and static libraries.
Alpha,IA64 or VAX platform are supported. Optional argument "static"
tells to configurator to make static libraries only:
$@[.VMS]CONFIGURE STATIC
CONFIGURE script checks your ZLIB, FREETYPE, JPEG, PNG libraries.
If it detects any troubles, you may get and install good and tested ones
from OpenVMS libSDL porting project site:
http://fafner.dyndns.org/~alexey/libsdl/required.html
When success, it creates a building script named BUILD.COM
3. Compilation:
$@BUILD
It should be error-free.
When success, it creates a setup script named LIBGD$STARTUP.COM
4. Setup OpenVMS environment before using libGD:
$@LIBGD$STARTUP
LIBGD and its utilites are ready to using.
Optionally you may insert this startup file into your LOGIN.COM
to set libGD environment every time you login automatically.
To learn libGD please refer libGD official documentation.
Compiling with library should be:
$CC/INCL=LIBGD PROG
$LINK PROG, LIBGD:LIBGD/OPT
yours,
Alexey Chupahin
Rostov-on-Don, Russia
elvis_75@mail.ru alex@rostov.rs-ultra.ru

9
windows/.cvsignore Normal file
View File

@ -0,0 +1,9 @@
*.exp
*.lib
*.dll
*.pdb
*.obj
*.ilk
*.res
*.manifest
distro

141
windows/Makefile Executable file
View File

@ -0,0 +1,141 @@
# Makefile form Microsoft C++ nmake.exe
# $Id$
CC=cl.exe
LD=link.exe
BUILD=Release
LIBGDCFLAGS= \
/D PATHSEPARATOR="\";\"" \
/D DEFAULT_FONTPATH="\"C:\\WINDOWS\\FONTS;C:\\WINNT\\FONTS\"" \
/D HAVE_FT2BUILD_H \
/D HAVE_LIBZ \
/D HAVE_GD_BUNDLED=1 \
/D HAVE_GD_GIF_READ=1 \
/D HAVE_GD_GIF_CREATE=1 \
/D HAVE_GD_IMAGESETBRUSH=1 \
/D HAVE_GD_IMAGESETTILE=1 \
/D HAVE_GD_JPG \
/D HAVE_GD_PNG \
/D HAVE_GD_STRINGFTEX=1 \
/D HAVE_GD_STRINGTTF=1 \
/D HAVE_GD_XBM \
/D HAVE_LIBFREETYPE=1 \
/D HAVE_LIBJPEG \
/D HAVE_LIBPNG \
/D USE_GD_IMGSTRTTF
CFLAGS=-I. -I.. -nologo -DWIN32 -D_WIN32 -DMSWIN32 -DBGDWIN32 $(LIBGDCFLAGS)
LIBS=libjpeg.lib freetype2.lib libpng.lib zlib.lib kernel32.lib user32.lib advapi32.lib
!if "$(BUILD)" == "Debug"
CFLAGS=$(CFLAGS) /Od /Zi /MDd /D_DEBUG /LDd
LDFLAGS=/DEBUG $(LDFLAGS) /nodefaultlib:msvcrt.lib
LIBS=$(LIBS) msvcrtd.lib
!else
CFLAGS=$(CFLAGS) /Og /Oi /O2 /Oy /GF /MD /DNDEBUG /LD
LDFLAGS=/nodefaultlib:msvcrtd.lib
LIBS=$(LIBS) msvcrt.lib
!endif
CPPFLAGS=$(CFLAGS)
!if "$(DLLNAME)" == ""
DLLNAME=bgd.dll
!endif
DYNAMICLIB=$(DLLNAME:.dll=.lib)
!if "$(STATICLIB)" == ""
STATICLIB=bgd_a.lib
!endif
OBJS= \
gd.obj \
gdcache.obj \
gdfontg.obj \
gdfontl.obj \
gdfontmb.obj \
gdfonts.obj \
gdfontt.obj \
gdft.obj \
gdfx.obj \
gd_gd2.obj \
gd_gd.obj \
gd_gif_in.obj \
gd_gif_out.obj \
gdhelpers.obj \
gd_io.obj \
gd_io_dp.obj \
gd_io_file.obj \
gd_io_ss.obj \
gd_jpeg.obj \
gd_security.obj \
gdkanji.obj \
gd_png.obj \
gd_ss.obj \
gdtables.obj \
gd_topal.obj \
gd_wbmp.obj \
gdxpm.obj \
wbmp.obj
EXE_OBJS= \
annotate.obj \
circletexttest.obj \
fontconfigtest.obj \
fontsizetest.obj \
fontwheeltest.obj \
gd2copypal.obj \
gd2togif.obj \
gd2topng.obj \
gdcmpgif.obj \
gdparttopng.obj \
gdtopng.obj \
giftogd2.obj \
gdtest.obj \
gdtestft.obj \
gifanimtest.obj \
pngtogd.obj \
pngtogd2.obj \
testac.obj \
testtr.obj \
webpng.obj
all: $(DLLNAME) $(STATICLIB) tests
$(EXE_OBJS:.obj=.exe): $*.obj $(DLLNAME)
link /out:$*.exe $*.obj $(DYNAMICLIB)
tests: $(EXE_OBJS:.obj=.exe)
libgd.dll.res: libgd.rc
$(RC) /fo libgd.dll.res libgd.rc
{..}.c.obj:
$(CC) $(CFLAGS) -c $<
$(STATICLIB): $(OBJS)
$(LD) /lib /out:$(STATICLIB) $(OBJS)
$(DLLNAME): $(OBJS) libgd.dll.res
$(LD) /dll /out:$(DLLNAME) \
$(LDFLAGS) \
$(OBJS) \
libgd.dll.res \
$(LIBS)
dist: all
-rmdir /s /q distro
mkdir distro
mkdir distro\bin
copy *.exe distro\bin
copy *.dll distro\bin
mkdir distro\include
copy ..\*.h distro\include
mkdir distro\lib
copy *.lib distro\lib
copy ..\COPYING distro\COPYING.TXT
clean:
-del /q *.obj *.dll *.lib *.ilk *.pdb *.exp *.exe *.png
-rmdir /s /q distro

59
windows/libgd.rc Executable file
View File

@ -0,0 +1,59 @@
/* This is a template RC file.
* $Id$
* Do not edit with MSVC */
#ifdef APSTUDIO_INVOKED
# error dont edit with MSVC
#endif
#include "winres.h"
#include "../gd.h"
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#ifdef WANT_LOGO
0 ICON gdlib.ico
#endif
//Version
VS_VERSION_INFO VERSIONINFO
FILEVERSION GD_MAJOR_VERSION,GD_MINOR_VERSION,GD_RELEASE_VERSION,0
PRODUCTVERSION GD_MAJOR_VERSION,GD_MINOR_VERSION,GD_RELEASE_VERSION,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS VS_FF_DEBUG
#else
FILEFLAGS 0x0L
#endif
FILEOS VOS__WINDOWS32
FILETYPE VFT_DLL
FILESUBTYPE VFT2_UNKNOWN
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "Comments", "Thaks to Tom Boutell" "\0"
VALUE "CompanyName", "LIBGD Development Team\0"
VALUE "FileDescription", "LIBGD" "\0"
VALUE "FileVersion", GD_VERSION_STRING "\0"
VALUE "InternalName", "bgd.dll" "\0"
VALUE "LegalCopyright", "Copyright © 1997-2006 Thomas Boutell and contributors, see COPYING\0"
VALUE "LegalTrademarks", "Thomas Boutell and contributors\0"
VALUE "OriginalFilename", "bgd.dll" "\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "LIBGD dynamic link library" "\0"
VALUE "SpecialBuild", "win32" "\0"
VALUE "URL", "http://www.libgd.org/"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
#ifdef MC_INCLUDE
#include MC_INCLUDE
#endif