From b59c96fa839745efefd808ed76796af493b5b10d Mon Sep 17 00:00:00 2001 From: ocoursiere Date: Tue, 22 Jul 2003 22:35:24 +0000 Subject: [PATCH] Fixes in the build process --- bepascal/Jamfile | 9 +++++++-- bepascal/Jamrules | 7 ++++++- bepascal/source/Jamfile | 3 +++ bepascal/source/bepascal/Jamfile | 5 +++++ 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 bepascal/source/Jamfile create mode 100644 bepascal/source/bepascal/Jamfile diff --git a/bepascal/Jamfile b/bepascal/Jamfile index 8e8f3fb..53d946d 100644 --- a/bepascal/Jamfile +++ b/bepascal/Jamfile @@ -1,10 +1,15 @@ SubDir BEPASCAL_TOP ; -SubInclude BEPASCAL_TOP source bepascal cpp ; -SubInclude BEPASCAL_TOP source bepascal pas ; +# Force creation of target's directories BEFORE the building of libbepascal.so +Depends libbepascal.so : dirs ; +SubInclude BEPASCAL_TOP source ; + +# set the distribution dir DISTRIB_DIR = distrib ; +# make all distribution files. We recursively add all files in those directories except the ones in +# CVS subdirectories MakeZip pas_sources.zip : source/bepascal/pas ; MakeZip cpp_sources.zip : source/bepascal/cpp ; MakeZip bin_bepascal.zip : source/bepascal/pas lib ; diff --git a/bepascal/Jamrules b/bepascal/Jamrules index 0a3c01c..dbb4312 100644 --- a/bepascal/Jamrules +++ b/bepascal/Jamrules @@ -1,3 +1,4 @@ +# handle pascal files in the Object rule rule UserObject { switch $(2) @@ -12,17 +13,21 @@ rule fpc echo $(2) ; Depends $(1) : $(2) ; PPUFILES += $(2)u ; + # try to clean ppu files (don't work yet) Clean clean : $(2)u ; echo $(2)u ; echo $(LOCATE_TARGET) ; echo $(PPUFILES) ; } +# call the FreePascal compiler actions fpc { fpc -g -S2 $(2) } +# Make a zip file named $(1) that include (recursively) all files in the directory list $(2), except the ones +# in the CVS subdirectories rule MakeZip { Depends all : $(1) ; @@ -32,5 +37,5 @@ rule MakeZip actions MakeZip { mkdir $(DISTRIB_DIR) - zip $(DISTRIB_DIR)/$(1) -r $(2) + zip $(DISTRIB_DIR)/$(1) -r $(2) -x \*CVS\* } \ No newline at end of file diff --git a/bepascal/source/Jamfile b/bepascal/source/Jamfile new file mode 100644 index 0000000..79ec8d5 --- /dev/null +++ b/bepascal/source/Jamfile @@ -0,0 +1,3 @@ +SubDir BEPASCAL_TOP source ; + +SubInclude BEPASCAL_TOP source bepascal ; \ No newline at end of file diff --git a/bepascal/source/bepascal/Jamfile b/bepascal/source/bepascal/Jamfile new file mode 100644 index 0000000..fe9ebf6 --- /dev/null +++ b/bepascal/source/bepascal/Jamfile @@ -0,0 +1,5 @@ +SubDir BEPASCAL_TOP source bepascal ; + +SubInclude BEPASCAL_TOP source bepascal cpp ; +SubInclude BEPASCAL_TOP source bepascal pas ; +