Started on common and core packages.

This commit is contained in:
2016-03-26 15:49:05 -05:00
parent 2434a43cec
commit 807d0397a1
39 changed files with 1849 additions and 0 deletions

1
scripts/check Executable file
View File

@ -0,0 +1 @@
clang-check `find . | grep "\.cpp" | grep -v CMakeFiles | grep -v editormodels\.cpp`

8
scripts/cibuild Executable file
View File

@ -0,0 +1,8 @@
BRANCH=$1
./scripts/setup_build
make -j4 -C build/sdl clean wombat
rm -rf wombat wombat-*-*.tar.gz
mkdir wombat
git rev-parse HEAD > wombat/revision.txt
cp -pr wombat_path build/sdl/src/wombat/wombat wombat
tar -cvzf wombat-${BRANCH}-`date "+%y%m%d%H%M"`.tar.gz wombat

16
scripts/newcpp Executable file
View File

@ -0,0 +1,16 @@
#! /usr/bin/env python
import sys
if len(sys.argv) < 3:
sys.exit(1)
pkg = sys.argv[1]
name = sys.argv[2]
ifdef = "WOMBAT_%s_%s_HPP" % (pkg.upper(), name.upper())
namespace = "namespace wombat {\nnamespace %s {\n\n}\n}" % pkg
hpp = "#ifndef %s\n#define %s\n\n%s\n\n#endif" % (ifdef, ifdef, namespace)
cpp = "#include \"%s.hpp\"\n\n%s" % (name, namespace)
open("src/%s/%s.hpp" % (pkg, name), "w").write(hpp)
open("src/%s/%s.cpp" % (pkg, name), "w").write(cpp)

8
scripts/setup_build Executable file
View File

@ -0,0 +1,8 @@
#! /usr/bin/env bash
project=`pwd`/
buildDir="build/sdl"
mkdir -p $buildDir
pushd $buildDir
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Release $project
popd

8
scripts/setup_build_debug Executable file
View File

@ -0,0 +1,8 @@
#! /usr/bin/env bash
project=`pwd`
buildDir="build/sdl_debug"
mkdir -p $buildDir
pushd $buildDir
cmake -DUSE_ASAN=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug $project
popd

8
scripts/setup_build_gba Executable file
View File

@ -0,0 +1,8 @@
#! /usr/bin/env bash
project=`pwd`
buildDir="build/gba"
mkdir -p $buildDir
pushd $buildDir
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_TOOLCHAIN_FILE=cmake/Modules/GBA.cmake -DWOMBAT_BUILD_TYPE=GBA $project
popd