[DEV] update Build interface

This commit is contained in:
Edouard DUPIN 2015-09-14 21:11:04 +02:00
parent 93c9efa900
commit ccf23086e0
4 changed files with 25 additions and 11 deletions

View File

@ -3,10 +3,6 @@ language:
sudo: false
compiler:
- clang
- gcc
os:
- linux
- osx
@ -26,19 +22,28 @@ 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
- git clone https://github.com/atria-soft/etk.git
- 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-chunkware-test
# - ./out/Linux_x86_64/debug/staging/$BUILDER/audio-algo-chunkware-test/usr/bin/audio-algo-chunkware-test -l6
- lutin -w -j4 -C -P -c $BUILDER $COMPILATOR_OPTION -m $CONF $GCOV -p audio-algo-chunkware-test
# - ./out/Linux_x86_64/$CONF/staging/$BUILDER/audio-algo-chunkware-test/usr/bin/audio-algo-chunkware-test -l6
notifications:
email:

View File

@ -31,7 +31,7 @@
#include <audio/format.h>
#include <audio/algo/chunkware/AttRelEnvelope.h>
#include <audio/algo/chunkware/Gain.h>
#include <etk/chrono.h>
#include <chrono>
#include <vector>
namespace audio {

View File

@ -19,8 +19,17 @@ def create(target):
'audio/algo/chunkware/GateRms.cpp',
'audio/algo/chunkware/Limiter.cpp'
])
myModule.add_header_file([
'audio/algo/chunkware/Compressor.h',
'audio/algo/chunkware/debug.h',
'audio/algo/chunkware/EnvelopeDetector.h',
'audio/algo/chunkware/AttRelEnvelope.h',
'audio/algo/chunkware/Gate.h',
'audio/algo/chunkware/GateRms.h',
'audio/algo/chunkware/Limiter.h'
])
myModule.add_module_depend(['etk', 'audio'])
myModule.add_export_path(tools.get_current_path(__file__))
myModule.add_path(tools.get_current_path(__file__))
# return module
return myModule

View File

@ -10,7 +10,7 @@
#include <audio/algo/chunkware/Limiter.h>
#include <audio/algo/chunkware/Gate.h>
#include <etk/os/FSNode.h>
#include <etk/chrono.h>
#include <chrono>
#include <unistd.h>
#undef __class__