mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 08:49:26 +02:00
* initial versions of rtl-extra and rtl-objpas packages. Not yet active.
git-svn-id: trunk@26393 -
This commit is contained in:
parent
1e98620c2e
commit
521dd9ba32
8
.gitattributes
vendored
8
.gitattributes
vendored
@ -6503,6 +6503,14 @@ packages/rtl-console/src/win/keyboard.pp svneol=native#text/plain
|
||||
packages/rtl-console/src/win/mouse.pp svneol=native#text/plain
|
||||
packages/rtl-console/src/win/video.pp svneol=native#text/plain
|
||||
packages/rtl-console/src/win/winevent.pp svneol=native#text/plain
|
||||
packages/rtl-extra/Makefile svneol=native#text/plain
|
||||
packages/rtl-extra/Makefile.fpc svneol=native#text/plain
|
||||
packages/rtl-extra/Makefile.fpc.fpcmake svneol=native#text/plain
|
||||
packages/rtl-extra/fpmake.pp svneol=native#text/plain
|
||||
packages/rtl-objpas/Makefile svneol=native#text/plain
|
||||
packages/rtl-objpas/Makefile.fpc svneol=native#text/plain
|
||||
packages/rtl-objpas/Makefile.fpc.fpcmake svneol=native#text/plain
|
||||
packages/rtl-objpas/fpmake.pp svneol=native#text/plain
|
||||
packages/sdl/LGPL svneol=native#text/plain
|
||||
packages/sdl/LGPL.addon svneol=native#text/plain
|
||||
packages/sdl/MPL-1.1 svneol=native#text/plain
|
||||
|
2346
packages/rtl-extra/Makefile
Normal file
2346
packages/rtl-extra/Makefile
Normal file
File diff suppressed because it is too large
Load Diff
91
packages/rtl-extra/Makefile.fpc
Normal file
91
packages/rtl-extra/Makefile.fpc
Normal file
@ -0,0 +1,91 @@
|
||||
#
|
||||
# Makefile.fpc for running fpmake
|
||||
#
|
||||
|
||||
[package]
|
||||
name=rtl-extra
|
||||
version=2.7.1
|
||||
|
||||
[require]
|
||||
packages=rtl fpmkunit
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[prerules]
|
||||
FPMAKE_BIN_CLEAN=$(wildcard .$(PATHSEP)fpmake$(SRCEXEEXT))
|
||||
ifdef OS_TARGET
|
||||
FPC_TARGETOPT+=--os=$(OS_TARGET)
|
||||
endif
|
||||
ifdef CPU_TARGET
|
||||
FPC_TARGETOPT+=--cpu=$(CPU_TARGET)
|
||||
endif
|
||||
LOCALFPMAKE=.$(PATHSEP)fpmake$(SRCEXEEXT)
|
||||
|
||||
[rules]
|
||||
# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
|
||||
override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
|
||||
override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
|
||||
# Compose general fpmake-parameters
|
||||
ifdef FPMAKEOPT
|
||||
FPMAKE_OPT+=$(FPMAKEOPT)
|
||||
endif
|
||||
FPMAKE_OPT+=--localunitdir=../..
|
||||
FPMAKE_OPT+=--globalunitdir=..
|
||||
FPMAKE_OPT+=$(FPC_TARGETOPT)
|
||||
FPMAKE_OPT+=$(addprefix -o ,$(FPCOPT))
|
||||
FPMAKE_OPT+=--compiler=$(FPC)
|
||||
FPMAKE_OPT+=-bu
|
||||
.NOTPARALLEL:
|
||||
|
||||
fpmake: fpmake.pp
|
||||
$(FPCFPMAKE) fpmake.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(COMPILER_FPMAKE_UNITDIR)) $(FPCMAKEOPT) $(OPT)
|
||||
all: fpmake
|
||||
$(LOCALFPMAKE) compile $(FPMAKE_OPT)
|
||||
smart: fpmake
|
||||
$(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -XX -o -CX
|
||||
release: fpmake
|
||||
$(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -dRELEASE
|
||||
debug: fpmake
|
||||
$(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -dDEBUG
|
||||
# If no fpmake exists and (dist)clean is called, do not try to build fpmake, it will
|
||||
# most often fail because the dependencies are cleared.
|
||||
# In case of a clean, simply do nothing
|
||||
ifeq ($(FPMAKE_BIN_CLEAN),)
|
||||
clean:
|
||||
else
|
||||
clean:
|
||||
$(FPMAKE_BIN_CLEAN) clean $(FPMAKE_OPT)
|
||||
endif
|
||||
# In case of a distclean, perform an 'old'-style distclean. This to avoid problems
|
||||
# when the package is compiled using fpcmake prior to running this clean using fpmake
|
||||
ifeq ($(FPMAKE_BIN_CLEAN),)
|
||||
distclean: $(addsuffix _distclean,$(TARGET_DIRS)) fpc_cleanall
|
||||
else
|
||||
distclean:
|
||||
ifdef inUnix
|
||||
{ $(FPMAKE_BIN_CLEAN) distclean $(FPMAKE_OPT); if [ $$? != "0" ]; then { echo Something wrong with fpmake exectable. Remove the executable and call make recursively to recover.; $(DEL) $(FPMAKE_BIN_CLEAN); $(MAKE) fpc_cleanall; }; fi; }
|
||||
else
|
||||
$(FPMAKE_BIN_CLEAN) distclean $(FPMAKE_OPT)
|
||||
endif
|
||||
-$(DEL) $(LOCALFPMAKE)
|
||||
endif
|
||||
cleanall: distclean
|
||||
install: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
else
|
||||
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
endif
|
||||
# distinstall also installs the example-sources
|
||||
distinstall: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
else
|
||||
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
endif
|
||||
zipinstall: fpmake
|
||||
$(LOCALFPMAKE) zipinstall $(FPMAKE_OPT)
|
82
packages/rtl-extra/Makefile.fpc.fpcmake
Normal file
82
packages/rtl-extra/Makefile.fpc.fpcmake
Normal file
@ -0,0 +1,82 @@
|
||||
#
|
||||
# Makefile.fpc for Free Vision for Free Pascal
|
||||
#
|
||||
|
||||
[package]
|
||||
name=rtl-extra
|
||||
version=2.7.1
|
||||
|
||||
[target]
|
||||
units_android=matrix ucomplex objects
|
||||
units_aix=matrix ucomplex objects
|
||||
units_linux=matrix ucomplex objects
|
||||
units_solaris=matrix ucomplex objects
|
||||
units_freebsd=matrix ucomplex objects
|
||||
units_netbsd=matrix ucomplex objects
|
||||
units_openbsd=matrix ucomplex objects
|
||||
units_darwin=matrix ucomplex objects
|
||||
units_iphonesim=matrix ucomplex objects
|
||||
units_beos=matrix ucomplex objects
|
||||
units_haiku=matrix ucomplex objects
|
||||
|
||||
units_go32v2=matrix ucomplex objects
|
||||
units_watcom=ucomplex
|
||||
units_wii=matrix ucomplex
|
||||
units_msdos=matrix ucomplex objects
|
||||
units_win32=matrix ucomplex objects
|
||||
units_win64=matrix ucomplex objects
|
||||
units_wince=matrix ucomplex objects
|
||||
units_nativent=matrix ucomplex
|
||||
units_gba=matrix ucomplex objects
|
||||
units_emx=matrix ucomplex objects
|
||||
units_os2=matrix ucomplex objects
|
||||
units_netware=matrix ucomplex objects
|
||||
units_netwlibc=matrix ucomplex objects
|
||||
units_morphos=matrix ucomplex objects
|
||||
|
||||
# since we plan to move more units, we set up more dirs than we now have.
|
||||
[compiler]
|
||||
includedir=src/$(OS_TARGET) src/inc
|
||||
includedir_linux=src/unix
|
||||
includedir_android=src/unix
|
||||
includedir_freebsd=src/unix
|
||||
includedir_openbsd=src/unix
|
||||
includedir_netbsd=src/unix
|
||||
includedir_solaris=src/unix
|
||||
includedir_darwin=src/unix
|
||||
includedir_iphonesim=src/unix
|
||||
includedir_aix=src/unix
|
||||
includedir_beos=src/unix
|
||||
includedir_haiku=src/unix
|
||||
|
||||
includedir_win32=src/win
|
||||
includedir_win64=src/win
|
||||
includedir_os2=src/os2commn
|
||||
includedir_emx=src/os2commn
|
||||
|
||||
sourcedir=src/$(OS_TARGET) src/inc
|
||||
sourcedir_iphonesim=src/darwin
|
||||
sourcedir_win32=src/win
|
||||
sourcedir_win64=src/win
|
||||
sourcedir_os2=src/os2commn
|
||||
sourcedir_emx=src/os2commn
|
||||
sourcedir_linux=src/unix
|
||||
sourcedir_android=src/unix
|
||||
sourcedir_freebsd=src/unix
|
||||
sourcedir_openbsd=src/unix
|
||||
sourcedir_netbsd=src/unix
|
||||
sourcedir_solaris=src/unix
|
||||
sourcedir_darwin=src/unix
|
||||
sourcedir_iphonesim=src/unix
|
||||
sourcedir_aix=src/unix
|
||||
sourcedir_beos=src/unix
|
||||
sourcedir_haiku=src/unix
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[rules]
|
||||
.NOTPARALLEL:
|
69
packages/rtl-extra/fpmake.pp
Normal file
69
packages/rtl-extra/fpmake.pp
Normal file
@ -0,0 +1,69 @@
|
||||
{$ifndef ALLPACKAGES}
|
||||
{$mode objfpc}{$H+}
|
||||
program fpmake;
|
||||
|
||||
uses fpmkunit;
|
||||
{$endif ALLPACKAGES}
|
||||
|
||||
procedure add_rtl_extra(const ADirectory: string);
|
||||
|
||||
Const
|
||||
// All Unices have full set of KVM+Crt in unix/ except QNX which is not
|
||||
// in workable state atm.
|
||||
UnixLikes = AllUnixOSes -[QNX]; // qnx never was active in 2.x afaik
|
||||
|
||||
UComplexOSes = [amiga,emx,gba,go32v2,morphos,msdos,nativent,nds,netware,netwlibc,os2,watcom,wii,wince,win32,win64]+UnixLikes;
|
||||
MatrixOSes = [amiga,emx,gba,go32v2,morphos,msdos,nativent,nds,netware,netwlibc,os2,wii,win32,win64,wince]+UnixLikes;
|
||||
ObjectsOSes = [amiga,emx,gba,go32v2,morphos,msdos,netware,netwlibc,os2,win32,win64,wince]+UnixLikes;
|
||||
AllTargetsextra = ObjectsOSes + UComplexOSes + MatrixOSes;
|
||||
|
||||
Var
|
||||
P : TPackage;
|
||||
T : TTarget;
|
||||
|
||||
begin
|
||||
With Installer do
|
||||
begin
|
||||
P:=AddPackage('rtl-extra');
|
||||
P.Directory:=ADirectory;
|
||||
P.Version:='2.7.1';
|
||||
P.Author := 'FPC core team';
|
||||
P.License := 'LGPL with modification, ';
|
||||
P.HomepageURL := 'www.freepascal.org';
|
||||
P.OSes:=AllTargetsextra;
|
||||
P.Email := '';
|
||||
P.Description := 'Rtl-extra, RTL not needed for bootstrapping';
|
||||
P.NeedLibC:= false;
|
||||
|
||||
P.SourcePath.Add('src/inc');
|
||||
P.SourcePath.Add('src/$(OS)');
|
||||
P.SourcePath.Add('src/darwin',[iphonesim]);
|
||||
P.SourcePath.Add('src/unix',AllUnixOSes);
|
||||
P.SourcePath.Add('src/os2commn',[os2,emx]);
|
||||
P.SourcePath.Add('src/win',[win32,win64]);
|
||||
|
||||
P.IncludePath.Add('src/inc');
|
||||
P.IncludePath.Add('src/unix',AllUnixOSes);
|
||||
P.IncludePath.Add('src/$(OS)');
|
||||
P.IncludePath.Add('src/darwin',[iphonesim]);
|
||||
|
||||
T:=P.Targets.AddUnit('ucomplex.pp',UComplexOSes);
|
||||
|
||||
T:=P.Targets.AddUnit('objects.pp',ObjectsOSes);
|
||||
|
||||
T:=P.Targets.AddUnit('matrix.pp',MatrixOSes);
|
||||
with T.Dependencies do
|
||||
begin
|
||||
AddInclude('mvecimp.inc');
|
||||
AddInclude('mmatimp.inc');
|
||||
end;
|
||||
end
|
||||
end;
|
||||
|
||||
{$ifndef ALLPACKAGES}
|
||||
begin
|
||||
add_rtl_extra('');
|
||||
Installer.Run;
|
||||
end.
|
||||
{$endif ALLPACKAGES}
|
||||
|
2346
packages/rtl-objpas/Makefile
Normal file
2346
packages/rtl-objpas/Makefile
Normal file
File diff suppressed because it is too large
Load Diff
91
packages/rtl-objpas/Makefile.fpc
Normal file
91
packages/rtl-objpas/Makefile.fpc
Normal file
@ -0,0 +1,91 @@
|
||||
#
|
||||
# Makefile.fpc for running fpmake
|
||||
#
|
||||
|
||||
[package]
|
||||
name=rtl-objpas
|
||||
version=2.7.1
|
||||
|
||||
[require]
|
||||
packages=rtl fpmkunit
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[prerules]
|
||||
FPMAKE_BIN_CLEAN=$(wildcard .$(PATHSEP)fpmake$(SRCEXEEXT))
|
||||
ifdef OS_TARGET
|
||||
FPC_TARGETOPT+=--os=$(OS_TARGET)
|
||||
endif
|
||||
ifdef CPU_TARGET
|
||||
FPC_TARGETOPT+=--cpu=$(CPU_TARGET)
|
||||
endif
|
||||
LOCALFPMAKE=.$(PATHSEP)fpmake$(SRCEXEEXT)
|
||||
|
||||
[rules]
|
||||
# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
|
||||
override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
|
||||
override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
|
||||
# Compose general fpmake-parameters
|
||||
ifdef FPMAKEOPT
|
||||
FPMAKE_OPT+=$(FPMAKEOPT)
|
||||
endif
|
||||
FPMAKE_OPT+=--localunitdir=../..
|
||||
FPMAKE_OPT+=--globalunitdir=..
|
||||
FPMAKE_OPT+=$(FPC_TARGETOPT)
|
||||
FPMAKE_OPT+=$(addprefix -o ,$(FPCOPT))
|
||||
FPMAKE_OPT+=--compiler=$(FPC)
|
||||
FPMAKE_OPT+=-bu
|
||||
.NOTPARALLEL:
|
||||
|
||||
fpmake: fpmake.pp
|
||||
$(FPCFPMAKE) fpmake.pp $(FPMAKE_SKIP_CONFIG) $(addprefix -Fu,$(COMPILER_FPMAKE_UNITDIR)) $(FPCMAKEOPT) $(OPT)
|
||||
all: fpmake
|
||||
$(LOCALFPMAKE) compile $(FPMAKE_OPT)
|
||||
smart: fpmake
|
||||
$(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -XX -o -CX
|
||||
release: fpmake
|
||||
$(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -dRELEASE
|
||||
debug: fpmake
|
||||
$(LOCALFPMAKE) compile $(FPMAKE_OPT) -o -dDEBUG
|
||||
# If no fpmake exists and (dist)clean is called, do not try to build fpmake, it will
|
||||
# most often fail because the dependencies are cleared.
|
||||
# In case of a clean, simply do nothing
|
||||
ifeq ($(FPMAKE_BIN_CLEAN),)
|
||||
clean:
|
||||
else
|
||||
clean:
|
||||
$(FPMAKE_BIN_CLEAN) clean $(FPMAKE_OPT)
|
||||
endif
|
||||
# In case of a distclean, perform an 'old'-style distclean. This to avoid problems
|
||||
# when the package is compiled using fpcmake prior to running this clean using fpmake
|
||||
ifeq ($(FPMAKE_BIN_CLEAN),)
|
||||
distclean: $(addsuffix _distclean,$(TARGET_DIRS)) fpc_cleanall
|
||||
else
|
||||
distclean:
|
||||
ifdef inUnix
|
||||
{ $(FPMAKE_BIN_CLEAN) distclean $(FPMAKE_OPT); if [ $$? != "0" ]; then { echo Something wrong with fpmake exectable. Remove the executable and call make recursively to recover.; $(DEL) $(FPMAKE_BIN_CLEAN); $(MAKE) fpc_cleanall; }; fi; }
|
||||
else
|
||||
$(FPMAKE_BIN_CLEAN) distclean $(FPMAKE_OPT)
|
||||
endif
|
||||
-$(DEL) $(LOCALFPMAKE)
|
||||
endif
|
||||
cleanall: distclean
|
||||
install: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
else
|
||||
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR)
|
||||
endif
|
||||
# distinstall also installs the example-sources
|
||||
distinstall: fpmake
|
||||
ifdef UNIXHier
|
||||
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_PREFIX) --baseinstalldir=$(INSTALL_LIBDIR)/fpc/$(FPC_VERSION) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
else
|
||||
$(LOCALFPMAKE) install $(FPMAKE_OPT) --prefix=$(INSTALL_BASEDIR) --unitinstalldir=$(INSTALL_UNITDIR) -ie
|
||||
endif
|
||||
zipinstall: fpmake
|
||||
$(LOCALFPMAKE) zipinstall $(FPMAKE_OPT)
|
84
packages/rtl-objpas/Makefile.fpc.fpcmake
Normal file
84
packages/rtl-objpas/Makefile.fpc.fpcmake
Normal file
@ -0,0 +1,84 @@
|
||||
#
|
||||
# Makefile.fpc for Free Vision for Free Pascal
|
||||
#
|
||||
|
||||
[package]
|
||||
name=rtl-objpas
|
||||
version=2.7.1
|
||||
|
||||
# all Unices support everything except QNX(nothing)
|
||||
[target]
|
||||
units_android=convutils dateutils fmtbcd stdconv variants varutils
|
||||
units_aix=convutils dateutils fmtbcd stdconv variants varutils
|
||||
units_linux=convutils dateutils fmtbcd stdconv variants varutils
|
||||
units_solaris=convutils dateutils fmtbcd stdconv variants varutils
|
||||
units_freebsd=convutils dateutils fmtbcd stdconv variants varutils
|
||||
units_netbsd=convutils dateutils fmtbcd stdconv variants varutils
|
||||
units_openbsd=convutils dateutils fmtbcd stdconv variants varutils
|
||||
units_darwin=convutils dateutils fmtbcd stdconv variants varutils
|
||||
units_iphonesim=convutils dateutils fmtbcd stdconv variants varutils
|
||||
units_beos=dateutils fmtbcd stdconv variants varutils
|
||||
units_haiku=convutils dateutils fmtbcd stdconv variants varutils
|
||||
|
||||
units_amiga=convutils dateutils fmtbcd stdconv variants varutils
|
||||
units_emx=convutil dateutil fmtbcd stdconv variants
|
||||
units_gba= dateutils fmtbcd variants varutils
|
||||
units_go32v2=convutil dateutil fmtbcd stdconv variants varutils
|
||||
units_morphos=convutils dateutils fmtbcd stdconv variants varutils
|
||||
units_msdos=convutil dateutil fmtbcd stdconv variants
|
||||
units_nds=dateutils fmtbcd varutils
|
||||
units_nativent=convutils dateutils fmtbcd variants varutils
|
||||
units_netware=convutils dateutils fmtbcd variants varutils
|
||||
units_netwlibc=convutils dateutils fmtbcd variants varutils
|
||||
units_os2=convutil dateutil fmtbcd stdconv variants varutils
|
||||
units_watcom=variants varutils
|
||||
units_wii=dateuils variants varutils
|
||||
units_win32=convutils dateutils fmtbcd stdconv variants varutils
|
||||
units_win64=convutils dateutils fmtbcd stdconv variants varutils
|
||||
units_wince=convutils dateutils fmtbcd stdconv variants varutils
|
||||
|
||||
[compiler]
|
||||
includedir=src/$(OS_TARGET) src/inc
|
||||
includedir_linux=src/unix
|
||||
includedir_android=src/unix
|
||||
includedir_freebsd=src/unix
|
||||
includedir_openbsd=src/unix
|
||||
includedir_netbsd=src/unix
|
||||
includedir_solaris=src/unix
|
||||
includedir_darwin=src/unix
|
||||
includedir_iphonesim=src/unix
|
||||
includedir_aix=src/unix
|
||||
includedir_beos=src/unix
|
||||
includedir_haiku=src/unix
|
||||
|
||||
includedir_win32=src/win
|
||||
includedir_win64=src/win
|
||||
includedir_os2=src/os2commn
|
||||
includedir_emx=src/os2commn
|
||||
|
||||
sourcedir=src/$(OS_TARGET) src/inc
|
||||
sourcedir_iphonesim=src/darwin
|
||||
sourcedir_win32=src/win
|
||||
sourcedir_win64=src/win
|
||||
sourcedir_os2=src/os2commn
|
||||
sourcedir_emx=src/os2commn
|
||||
sourcedir_linux=src/unix
|
||||
sourcedir_android=src/unix
|
||||
sourcedir_freebsd=src/unix
|
||||
sourcedir_openbsd=src/unix
|
||||
sourcedir_netbsd=src/unix
|
||||
sourcedir_solaris=src/unix
|
||||
sourcedir_darwin=src/unix
|
||||
sourcedir_iphonesim=src/unix
|
||||
sourcedir_aix=src/unix
|
||||
sourcedir_beos=src/unix
|
||||
sourcedir_haiku=src/unix
|
||||
|
||||
[install]
|
||||
fpcpackage=y
|
||||
|
||||
[default]
|
||||
fpcdir=../..
|
||||
|
||||
[rules]
|
||||
.NOTPARALLEL:
|
120
packages/rtl-objpas/fpmake.pp
Normal file
120
packages/rtl-objpas/fpmake.pp
Normal file
@ -0,0 +1,120 @@
|
||||
{$ifndef ALLPACKAGES}
|
||||
{$mode objfpc}{$H+}
|
||||
program fpmake;
|
||||
|
||||
uses fpmkunit;
|
||||
{$endif ALLPACKAGES}
|
||||
|
||||
procedure add_rtl_objpas(const ADirectory: string);
|
||||
|
||||
Const
|
||||
// All Unices have full set of KVM+Crt in unix/ except QNX which is not
|
||||
// in workable state atm.
|
||||
UnixLikes = AllUnixOSes -[QNX]; // qnx never was active in 2.x afaik
|
||||
|
||||
// AllUnixOSes = [Linux,FreeBSD,NetBSD,OpenBSD,Darwin,QNX,BeOS,Solaris,Haiku,iphonesim,aix,Android];
|
||||
// unixlikes-[beos];
|
||||
VarUtilsOSes = [amiga,emx,gba,go32v2,nds,netware,wince,morphos,nativent,os2,netwlibc,watcom,wii,win32,win64]+UnixLikes;
|
||||
ConvUtilsOSes = [nativent,netware,netwlibc,win32,win64,wince]+UnixLikes-[BeOS];
|
||||
ConvUtilOSes = [Go32v2,msdos,os2,emx];
|
||||
DateUtilsOSes = [Amiga,gba,morphos,nativent,nds,netware,netwlibc,wii,win32,win64,wince]+UnixLikes;
|
||||
DateUtilOSes = [Go32v2,msdos,os2,emx];
|
||||
StdConvsOSes = [NativeNT,Win32,win64,os2,msdos,go32v2]+UnixLikes-[BeOS];
|
||||
FmtBCDOSes = [amiga,emx,gba,morphos,msdos,nativent,nds,netware,netwlibc,os2,win32,win64,wince]+UnixLikes;
|
||||
VariantsOSes = [amiga,emx,gba,go32v2,morphos,msdos,nativent,nds,netware,netwlibc,os2,watcom,wii,win32,win64,wince]+UnixLikes;
|
||||
AllTargetsObjPas = DateUtilsOses +DateUtilOSes+
|
||||
VarutilsOses + ConvutilsOSes + ConvutilOSes + StdConvsOSes+
|
||||
FmtBCDOSes;
|
||||
|
||||
Var
|
||||
P : TPackage;
|
||||
T : TTarget;
|
||||
|
||||
begin
|
||||
With Installer do
|
||||
begin
|
||||
P:=AddPackage('rtl-objpas');
|
||||
P.Directory:=ADirectory;
|
||||
P.Version:='2.7.1';
|
||||
P.Author := 'FPC core team';
|
||||
P.License := 'LGPL with modification, ';
|
||||
P.HomepageURL := 'www.freepascal.org';
|
||||
P.OSes:=AllTargetsObjPas;
|
||||
P.Email := '';
|
||||
P.Description := 'Rtl-objpas, aux. Delphi compat units';
|
||||
P.NeedLibC:= false;
|
||||
|
||||
P.SourcePath.Add('src/inc');
|
||||
P.SourcePath.Add('src/$(OS)');
|
||||
P.SourcePath.Add('src/darwin',[iphonesim]);
|
||||
P.SourcePath.Add('src/unix',AllUnixOSes);
|
||||
P.SourcePath.Add('src/os2commn',[os2,emx]);
|
||||
P.SourcePath.Add('src/win',[win32,win64]);
|
||||
|
||||
P.IncludePath.Add('src/inc');
|
||||
P.IncludePath.Add('src/unix',AllUnixOSes);
|
||||
P.IncludePath.Add('src/$(OS)');
|
||||
P.IncludePath.Add('src/darwin',[iphonesim]);
|
||||
|
||||
T:=P.Targets.AddUnit('varutils.pp',VarUtilsOses);
|
||||
with T.Dependencies do
|
||||
begin
|
||||
AddInclude('varutilh.inc');
|
||||
AddInclude('varutils.inc',VarUtilsOSes-[win32,win64]);
|
||||
AddInclude('cvarutil.inc');
|
||||
end;
|
||||
|
||||
// 8.3
|
||||
T:=P.Targets.AddUnit('convutil.pp',ConvutilOSes);
|
||||
with T.Dependencies do
|
||||
begin
|
||||
AddInclude('convutil.inc');
|
||||
end;
|
||||
|
||||
// normal
|
||||
T:=P.Targets.AddUnit('convutils.pp',ConvutilsOSes);
|
||||
with T.Dependencies do
|
||||
begin
|
||||
AddInclude('convutil.inc');
|
||||
end;
|
||||
|
||||
// 8.3
|
||||
T:=P.Targets.AddUnit('dateutil.pp',dateutilOSes);
|
||||
with T.Dependencies do
|
||||
begin
|
||||
AddInclude('dateutil.inc');
|
||||
end;
|
||||
|
||||
// normal
|
||||
T:=P.Targets.AddUnit('dateutils.pp',dateutilsOSes);
|
||||
with T.Dependencies do
|
||||
begin
|
||||
AddInclude('dateutil.inc');
|
||||
end;
|
||||
|
||||
T:=P.Targets.AddUnit('stdconvs.pp',StdConvsOSes);
|
||||
T.ResourceStrings:=true;
|
||||
with T.Dependencies do
|
||||
AddUnit('convutils');
|
||||
|
||||
T:=P.Targets.AddUnit('fmtbcd.pp',FmtBCDOSes);
|
||||
with T.Dependencies do
|
||||
AddUnit('variants');
|
||||
|
||||
T:=P.Targets.AddUnit('variants.pp',VariantsOSes);
|
||||
T.ResourceStrings:=true;
|
||||
with T.Dependencies do
|
||||
begin
|
||||
AddUnit('varutils');
|
||||
// AddUnit('Math');
|
||||
end;
|
||||
end
|
||||
end;
|
||||
|
||||
{$ifndef ALLPACKAGES}
|
||||
begin
|
||||
add_rtl_objpas('');
|
||||
Installer.Run;
|
||||
end.
|
||||
{$endif ALLPACKAGES}
|
||||
|
Loading…
Reference in New Issue
Block a user