Initial commit.

This commit is contained in:
Laurence Withers 2006-07-24 14:24:06 +01:00
commit 5af1a83262
51 changed files with 1824 additions and 0 deletions

View file

@ -0,0 +1,11 @@
/* @P@/src/cppapp/TopHeader.h
*
* (c)2006, Laurence Withers. Released under the GNU GPL. See file
* COPYING for more information / terms of license.
*/
// standard includes, or includes needed for type declarations
/* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4;
*/

View file

@ -0,0 +1,11 @@
/* @P@/src/cppapp/TopSource.cpp
*
* (c)2006, Laurence Withers. Released under the GNU GPL. See file
* COPYING for more information / terms of license.
*/
// Below are all the includes used throughout the library.
/* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4;
*/

40
skel/src/cppapp/build.app Normal file
View file

@ -0,0 +1,40 @@
# These are external variables, and shouldn't clash with anything else
# APPCPP
# APPCPP_BUILT
#
if [ -z ${APPCPP_BUILT} ]
then
APP="obj/@P@"
LIBS=""
echo "Building application ${APP}..."
source src/cppapp/build.monolithic
MODIFIED=0
for test in ${MONOLITHIC_TESTS} ${HDR} ${SRC}
do
if [ ${test} -nt ${LIB} ]
then
MODIFIED=1
break
fi
done
if [ ${MODIFIED} -ne 0 ]
then
echo " Compiling"
do_cmd ${CXX} ${CFLAGS} -o "${APP}" \
${SRC} ${LIBS} || return 1
print_success "Application built"
else
print_success "Application up to date"
fi
APPCPP=${APP}
APPCPP_BUILT=1
fi

View file

@ -0,0 +1 @@
source src/cppapp/build.lib

View file

@ -0,0 +1 @@
source src/cppapp/build.install-lib

View file

@ -0,0 +1,9 @@
build_target app
# make paths (this is for Gentoo in particular)
build_dir_tree "${BINDIR}" || return 1
# install binary
echo "Installing binaries into '${BINDIR}'"
install_file "${APPCPP}" "${BINDIR}" 0755 || return 1
print_success "Done"

View file

@ -0,0 +1,15 @@
# These are external variables, and shouldn't clash with anything else
# APPCPP_MONOLITHIC
#
if [ -z "${APPCPP_MONOLITHIC}" ]
then
SRC="obj/app.cpp"
MONOLITHIC_TESTS="src/cppapp/build.app src/cppapp/build.monolithic"
MONOLITHIC_SOURCE="$(echo src/lib/TopHeader.h) $(echo src/lib/TopSource.cpp)"
make_monolithic ${SRC} C || return 1
APPCPP_MONOLITHIC=1
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${SRC}"
fi