moved lazarus package registration unit to a dir of its own

git-svn-id: trunk@4069 -
This commit is contained in:
mattias 2003-04-17 00:00:00 +00:00
parent 3011886348
commit 5cdd11fb3b
8 changed files with 94 additions and 9 deletions

2
.gitattributes vendored
View File

@ -821,7 +821,6 @@ packager/addtopackagedlg.pas svneol=native#text/pascal
packager/basepkgmanager.pas svneol=native#text/pascal
packager/brokendependenciesdlg.pas svneol=native#text/pascal
packager/componentreg.pas svneol=native#text/pascal
packager/lazaruspackageintf.pas svneol=native#text/pascal
packager/openinstalledpkgdlg.pas svneol=native#text/pascal
packager/packagedefs.pas svneol=native#text/pascal
packager/packageeditor.pas svneol=native#text/pascal
@ -832,6 +831,7 @@ packager/pkgmanager.pas svneol=native#text/pascal
packager/pkgoptionsdlg.pas svneol=native#text/pascal
packager/registerfcl.pas svneol=native#text/pascal
packager/registerlcl.pas svneol=native#text/pascal
packager/registration/lazaruspackageintf.pas svneol=native#text/pascal
packager/ucomponentmanmain.lfm svneol=native#text/plain
packager/ucomponentmanmain.lrs svneol=native#text/pascal
packager/ucomponentmanmain.pas svneol=native#text/pascal

View File

@ -222,7 +222,7 @@ LCL_PLATFORM=gtk
endif
endif
export LCL_PLATFORM
override TARGET_DIRS+=lcl components designer
override TARGET_DIRS+=lcl components designer packager
override TARGET_PROGRAMS+=lazarus
override TARGET_EXAMPLEDIRS+=examples
override CLEAN_FILES+=$(wildcard ./designer/*$(OEXT)) $(wildcard ./designer/*$(PPUEXT)) $(wildcard ./debugger/*$(OEXT)) $(wildcard ./debugger/*$(PPUEXT)) $(wildcard ./packager/*$(OEXT)) $(wildcard ./packager/*$(PPUEXT))
@ -230,7 +230,7 @@ override INSTALL_BASEDIR=share/lazarus
override DIST_DESTDIR=$(BASEDIR)/dist
override COMPILER_OPTIONS+=-gl
override COMPILER_INCLUDEDIR+=include include/$(OS_TARGET)
override COMPILER_UNITDIR+=lcl/units lcl/units/$(LCL_PLATFORM) components/units components/custom components/mpaslex designer designer/units debugger packager .
override COMPILER_UNITDIR+=lcl/units lcl/units/$(LCL_PLATFORM) components/units components/custom components/mpaslex designer designer/units debugger packager packager/units .
override COMPILER_TARGETDIR+=.
ifdef REQUIRE_UNITSDIR
override UNITSDIR+=$(REQUIRE_UNITSDIR)
@ -1581,6 +1581,7 @@ fpc_makefiles: fpc_makefile fpc_makefile_dirs
TARGET_DIRS_LCL=1
TARGET_DIRS_COMPONENTS=1
TARGET_DIRS_DESIGNER=1
TARGET_DIRS_PACKAGER=1
ifdef TARGET_DIRS_LCL
lcl_all:
$(MAKE) -C lcl all
@ -1710,6 +1711,49 @@ designer:
$(MAKE) -C designer all
.PHONY: designer_all designer_debug designer_smart designer_release designer_examples designer_shared designer_install designer_sourceinstall designer_exampleinstall designer_distinstall designer_zipinstall designer_zipsourceinstall designer_zipexampleinstall designer_zipdistinstall designer_clean designer_distclean designer_cleanall designer_info designer_makefiles designer
endif
ifdef TARGET_DIRS_PACKAGER
packager_all:
$(MAKE) -C packager all
packager_debug:
$(MAKE) -C packager debug
packager_smart:
$(MAKE) -C packager smart
packager_release:
$(MAKE) -C packager release
packager_examples:
$(MAKE) -C packager examples
packager_shared:
$(MAKE) -C packager shared
packager_install:
$(MAKE) -C packager install
packager_sourceinstall:
$(MAKE) -C packager sourceinstall
packager_exampleinstall:
$(MAKE) -C packager exampleinstall
packager_distinstall:
$(MAKE) -C packager distinstall
packager_zipinstall:
$(MAKE) -C packager zipinstall
packager_zipsourceinstall:
$(MAKE) -C packager zipsourceinstall
packager_zipexampleinstall:
$(MAKE) -C packager zipexampleinstall
packager_zipdistinstall:
$(MAKE) -C packager zipdistinstall
packager_clean:
$(MAKE) -C packager clean
packager_distclean:
$(MAKE) -C packager distclean
packager_cleanall:
$(MAKE) -C packager cleanall
packager_info:
$(MAKE) -C packager info
packager_makefiles:
$(MAKE) -C packager makefiles
packager:
$(MAKE) -C packager all
.PHONY: packager_all packager_debug packager_smart packager_release packager_examples packager_shared packager_install packager_sourceinstall packager_exampleinstall packager_distinstall packager_zipinstall packager_zipsourceinstall packager_zipexampleinstall packager_zipdistinstall packager_clean packager_distclean packager_cleanall packager_info packager_makefiles packager
endif
TARGET_EXAMPLEDIRS_EXAMPLES=1
ifdef TARGET_EXAMPLEDIRS_EXAMPLES
examples_all:
@ -1786,7 +1830,7 @@ endif
$(MAKE) --assume-new=lazarus.pp lazarus$(EXEEXT)
tools: lcl components
$(MAKE) -C tools
all: lcl components designer ide
all: lcl components designer packager ide
cleanide:
$(DEL) $(wildcard *$(OEXT))
$(DEL) $(wildcard *$(PPUEXT))

View File

@ -12,14 +12,14 @@ packages=fcl regexpr
[target]
programs=lazarus
dirs=lcl components designer
dirs=lcl components designer packager
exampledirs=examples
[compiler]
options=-gl
unitdir=lcl/units lcl/units/$(LCL_PLATFORM) \
components/units components/custom components/mpaslex \
designer designer/units debugger packager .
designer designer/units debugger packager packager/units .
includedir=include include/$(OS_TARGET)
targetdir=.
@ -62,7 +62,7 @@ endif
tools: lcl components
$(MAKE) -C tools
all: lcl components designer ide
all: lcl components designer packager ide
cleanide:
$(DEL) $(wildcard *$(OEXT))

View File

@ -999,7 +999,8 @@ begin
// create source
e:=EndOfLine;
Src:='{ This is an automatically created source file. Do not edit!'+e
+' This source is only used to compile the package '+APackage.IDAsString+e
+' This source is only used to compile and install'+e
+' the package '+APackage.IDAsString+'.'+e
+'}'+e
+e
+'interface'+e

View File

@ -0,0 +1,36 @@
# $Id$
#
# Makefile.fpc for Lazarus for Free Pascal
#
[package]
name=lazpkgreg
version=0.8a
[compiler]
unitdir=.
unittargetdir=../units
options=-gl
[target]
units=lazaruspackageintf
[clean]
files=$(wildcard *$(OEXT)) $(wildcard *$(PPUEXT)) $(wildcard *$(RSTEXT))
[require]
packages=fcl
[rules]
cleanall: clean
[rules]
.PHONY: cleartarget all
cleartarget:
-$(DEL) $(COMPILER_UNITTARGETDIR)/lazaruspackageintf$(PPUEXT)
all: cleartarget lazaruspackageintf$(PPUEXT)
# end.

View File

@ -0,0 +1,2 @@
This directory contains the sources of the lazarus package registration
interface.

View File

@ -38,7 +38,7 @@ unit LazarusPackageIntf;
interface
uses
Classes, SysUtils;
Classes;
type
TRegisterProc = procedure;

2
packager/units/README Normal file
View File

@ -0,0 +1,2 @@
This directory contains the compiled units of the lazarus package registration.