commit 8eb8117da30c811c5bca5ae00d0438562248d8d5 Author: Bob Date: Sun Nov 4 21:25:34 2012 +0100 first checkin diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..d5f0854 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,22 @@ +/* + * bitvis + * Copyright (C) Bob 2012 + * + * bitvis is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * bitvis is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +int main (int argc, char *argv[]) +{ +} + diff --git a/waf b/waf new file mode 100755 index 0000000..e1e34d4 Binary files /dev/null and b/waf differ diff --git a/wscript b/wscript new file mode 100644 index 0000000..379b2a4 --- /dev/null +++ b/wscript @@ -0,0 +1,36 @@ +#! /usr/bin/env python +# encoding: utf-8 + +# the following two variables are used by the target "waf dist" +VERSION='0.0.1' +APPNAME='bitvis' + +# these variables are mandatory ('/' are converted automatically) +top = '.' +out = 'build' + +def options(opt): + opt.load('compiler_cxx') + +def configure(conf): + conf.load('compiler_cxx') + + conf.check(header_name='jack/jack.h') + + conf.check(lib='pthread', uselib_store='pthread', mandatory=False) + conf.check(lib='m', uselib_store='m', mandatory=False) + conf.check(lib='jack', uselib_store='jack') + + conf.check(function_name='clock_gettime', header_name='time.h', mandatory=False) + conf.check(function_name='clock_gettime', header_name='time.h', lib='rt', uselib_store='rt', mandatory=False, + msg='Checking for clock_gettime in librt') + + conf.write_config_header('config.h') + +def build(bld): + bld.program(source='src/main.cpp', + use=['m','pthread','rt', 'jack'], + includes='./src', + cxxflags='-Wall -g -DUTILNAMESPACE=BitVisUtil', + target='bitvis') +