Initial commit.
This commit is contained in:
commit
5af1a83262
51 changed files with 1824 additions and 0 deletions
11
skel/src/cppapp/TopHeader.h
Normal file
11
skel/src/cppapp/TopHeader.h
Normal 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;
|
||||
*/
|
||||
11
skel/src/cppapp/TopSource.cpp
Normal file
11
skel/src/cppapp/TopSource.cpp
Normal 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
40
skel/src/cppapp/build.app
Normal 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
|
||||
1
skel/src/cppapp/build.default
Normal file
1
skel/src/cppapp/build.default
Normal file
|
|
@ -0,0 +1 @@
|
|||
source src/cppapp/build.lib
|
||||
1
skel/src/cppapp/build.install
Normal file
1
skel/src/cppapp/build.install
Normal file
|
|
@ -0,0 +1 @@
|
|||
source src/cppapp/build.install-lib
|
||||
9
skel/src/cppapp/build.install-app
Normal file
9
skel/src/cppapp/build.install-app
Normal 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"
|
||||
15
skel/src/cppapp/build.monolithic
Normal file
15
skel/src/cppapp/build.monolithic
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue