[DEV] update Build interface
This commit is contained in:
parent
13ec66de8e
commit
6e125d4a62
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 --recurse-submodules
|
||||
- git clone https://github.com/generic-library/speex-dsp-lutin.git --recurse-submodules
|
||||
- git clone https://github.com/generic-library/z-lutin.git --recurse-submodules
|
||||
@ -37,12 +43,11 @@ before_script:
|
||||
- git clone https://github.com/musicdsp/audio-algo-drain.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-drain-test
|
||||
- ./out/Linux_x86_64/debug/staging/$BUILDER/audio-drain-test/usr/bin/audio-drain-test -l6
|
||||
- lutin -w -j4 -C -P -c $BUILDER $COMPILATOR_OPTION -m $CONF $GCOV -p audio-drain-test
|
||||
- ./out/Linux_x86_64/$CONF/staging/$BUILDER/audio-drain-test/usr/bin/audio-drain-test -l6
|
||||
|
||||
notifications:
|
||||
email:
|
||||
|
@ -13,9 +13,9 @@
|
||||
#include <stdint.h>
|
||||
#include <audio/format.h>
|
||||
#include <audio/channel.h>
|
||||
#include <etk/chrono.h>
|
||||
#include <etk/functional.h>
|
||||
#include <etk/memory.h>
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include "AutoLogInOut.h"
|
||||
#include "IOFormatInterface.h"
|
||||
#include <audio/Time.h>
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#include <etk/types.h>
|
||||
#include <vector>
|
||||
#include <etk/chrono.h>
|
||||
#include <chrono>
|
||||
#include <audio/Time.h>
|
||||
#include <audio/Duration.h>
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
#define __AUDIO_DRAIN_ALGO_END_POINT_CALLBACK_H__
|
||||
|
||||
#include <audio/drain/EndPoint.h>
|
||||
#include <etk/functional.h>
|
||||
#include <functional>
|
||||
|
||||
namespace audio {
|
||||
namespace drain {
|
||||
|
@ -8,8 +8,8 @@
|
||||
#define __AUDIO_DRAIN_ALGO_ALGO_END_POINT_WRITE_H__
|
||||
|
||||
#include <audio/drain/EndPoint.h>
|
||||
#include <etk/functional.h>
|
||||
#include <etk/mutex.h>
|
||||
#include <functional>
|
||||
#include <mutex>
|
||||
#include <audio/drain/CircularBuffer.h>
|
||||
|
||||
namespace audio {
|
||||
|
@ -8,7 +8,7 @@
|
||||
#define __AUDIO_DRAIN_ALGO_EQUALIZER_H__
|
||||
|
||||
#include <audio/drain/Algo.h>
|
||||
#include <etk/memory.h>
|
||||
#include <memory>
|
||||
#include <ejson/Object.h>
|
||||
#include <audio/algo/drain/Equalizer.h>
|
||||
|
||||
|
@ -13,9 +13,9 @@
|
||||
#include <stdint.h>
|
||||
#include <audio/format.h>
|
||||
#include <audio/channel.h>
|
||||
#include <etk/chrono.h>
|
||||
#include <etk/functional.h>
|
||||
#include <etk/memory.h>
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
#include "AutoLogInOut.h"
|
||||
#include "debug.h"
|
||||
|
||||
|
@ -14,8 +14,8 @@
|
||||
#include <audio/format.h>
|
||||
#include <audio/channel.h>
|
||||
#include <audio/drain/Algo.h>
|
||||
#include <etk/chrono.h>
|
||||
#include <etk/memory.h>
|
||||
#include <chrono>
|
||||
#include <memory>
|
||||
#include <etk/os/FSNode.h>
|
||||
|
||||
namespace audio {
|
||||
|
@ -11,7 +11,7 @@
|
||||
#ifdef HAVE_SPEEX_DSP_RESAMPLE
|
||||
#include <speex/speex_resampler.h>
|
||||
#endif
|
||||
#include <etk/memory.h>
|
||||
#include <memory>
|
||||
|
||||
namespace audio {
|
||||
namespace drain {
|
||||
|
@ -11,7 +11,7 @@
|
||||
#ifdef HAVE_SPEEX_DSP_RESAMPLE
|
||||
#include <speex/speex_resampler.h>
|
||||
#endif
|
||||
#include <etk/memory.h>
|
||||
#include <memory>
|
||||
|
||||
namespace audio {
|
||||
namespace drain {
|
||||
|
@ -10,7 +10,7 @@
|
||||
#include <string>
|
||||
#include <audio/format.h>
|
||||
#include <audio/drain/channel.h>
|
||||
#include <etk/chrono.h>
|
||||
#include <chrono>
|
||||
|
||||
namespace audio {
|
||||
namespace drain {
|
||||
|
@ -29,10 +29,30 @@ def create(target):
|
||||
'audio/drain/Equalizer.cpp'
|
||||
])
|
||||
|
||||
myModule.add_header_file([
|
||||
'audio/drain/debug.h',
|
||||
'audio/drain/debugRemove.h',
|
||||
'audio/drain/airtalgo.h',
|
||||
'audio/drain/Algo.h',
|
||||
'audio/drain/ChannelReorder.h',
|
||||
'audio/drain/CircularBuffer.h',
|
||||
'audio/drain/EndPointCallback.h',
|
||||
'audio/drain/EndPoint.h',
|
||||
'audio/drain/EndPointRead.h',
|
||||
'audio/drain/EndPointWrite.h',
|
||||
'audio/drain/FormatUpdate.h',
|
||||
'audio/drain/Process.h',
|
||||
'audio/drain/Resampler.h',
|
||||
'audio/drain/Volume.h',
|
||||
'audio/drain/IOFormatInterface.h',
|
||||
'audio/drain/AutoLogInOut.h',
|
||||
'audio/drain/Equalizer.h'
|
||||
])
|
||||
|
||||
# TODO: myModule.add_optional_module_depend('speexdsp', "HAVE_SPEEX_DSP_RESAMPLE")
|
||||
myModule.compile_flags('c++', "-DHAVE_SPEEX_DSP_RESAMPLE")
|
||||
myModule.add_module_depend(['etk', 'audio', 'ejson', 'speex-dsp', 'audio-algo-drain'])
|
||||
myModule.add_export_path(tools.get_current_path(__file__))
|
||||
myModule.add_path(tools.get_current_path(__file__))
|
||||
|
||||
# add the currrent module at the
|
||||
return myModule
|
||||
|
Loading…
Reference in New Issue
Block a user