[DEV] update Build interface
This commit is contained in:
parent
37bc02c936
commit
aff9cba5f0
21
.travis.yml
21
.travis.yml
@ -3,10 +3,6 @@ language:
|
||||
|
||||
sudo: false
|
||||
|
||||
compiler:
|
||||
- clang
|
||||
- gcc
|
||||
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
@ -26,8 +22,18 @@ addons:
|
||||
install:
|
||||
- pip install --user lutin
|
||||
|
||||
env:
|
||||
- CONF=debug BOARD=Linux BUILDER=clang GCOV=
|
||||
- CONF=release BOARD=Linux BUILDER=clang GCOV=
|
||||
- CONF=debug BOARD=Linux BUILDER=gcc GCOV=
|
||||
- CONF=release BOARD=Linux BUILDER=gcc GCOV=
|
||||
- CONF=debug BOARD=Linux BUILDER=gcc GCOV=--gcov
|
||||
|
||||
before_script:
|
||||
- cd ..
|
||||
- wget http://atria-soft.com/ci/coverage_send.py
|
||||
- wget http://atria-soft.com/ci/test_send.py
|
||||
- wget http://atria-soft.com/ci/warning_send.py
|
||||
- git clone https://github.com/generic-library/gtest-lutin.git --recursive
|
||||
- git clone https://github.com/generic-library/z-lutin.git --recursive
|
||||
- git clone https://github.com/generic-library/speex-dsp-lutin.git --recursive
|
||||
@ -35,12 +41,11 @@ before_script:
|
||||
- git clone https://github.com/musicdsp/audio.git
|
||||
- pwd
|
||||
- ls -l
|
||||
- if [ "$CXX" == "clang++" ]; then BUILDER=clang; else BUILDER=gcc; fi
|
||||
- if [ "$CXX" == "g++" ]; then COMPILATOR_OPTION="--compilator-version=4.9"; else COMPILATOR_OPTION=""; fi
|
||||
- if [ "$BUILDER" == "gcc" ]; then COMPILATOR_OPTION="--compilator-version=4.9"; else COMPILATOR_OPTION=""; fi
|
||||
|
||||
script:
|
||||
- lutin -C -P -c$BUILDER $COMPILATOR_OPTION -mdebug -p audio-algo-speex-test
|
||||
# - ./out/Linux_x86_64/debug/staging/$BUILDER/audio-algo-speex-test/usr/bin/audio-algo-speex-test -l6
|
||||
- lutin -w -j4 -C -P -c $BUILDER $COMPILATOR_OPTION -m $CONF $GCOV -p audio-algo-speex-test
|
||||
# - ./out/Linux_x86_64/$CONF/staging/$BUILDER/audio-algo-speex-test/usr/bin/audio-algo-speex-test -l6
|
||||
|
||||
notifications:
|
||||
email:
|
||||
|
@ -10,8 +10,8 @@
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <audio/format.h>
|
||||
#include <etk/chrono.h>
|
||||
#include <etk/memory.h>
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace audio {
|
||||
|
@ -12,11 +12,16 @@ def create(target):
|
||||
'audio/algo/speex/debug.cpp',
|
||||
'audio/algo/speex/Resampler.cpp'
|
||||
])
|
||||
|
||||
myModule.add_header_file([
|
||||
'audio/algo/speex/Resampler.h'
|
||||
])
|
||||
|
||||
myModule.add_module_depend(['etk', 'audio'])
|
||||
|
||||
myModule.add_optionnal_module_depend('speex-dsp', ["c++", "-DHAVE_SPEEX_DSP"])
|
||||
|
||||
myModule.add_export_path(tools.get_current_path(__file__))
|
||||
myModule.add_path(tools.get_current_path(__file__))
|
||||
# return module
|
||||
return myModule
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include <etk/etk.h>
|
||||
#include <audio/algo/speex/Resampler.h>
|
||||
#include <etk/os/FSNode.h>
|
||||
#include <etk/chrono.h>
|
||||
#include <chrono>
|
||||
|
||||
#include <unistd.h>
|
||||
#undef __class__
|
||||
|
Loading…
Reference in New Issue
Block a user