[DEV] update Build interface

This commit is contained in:
Edouard DUPIN 2015-09-14 21:11:04 +02:00
parent 519c730b8c
commit 2ffbcc19c6
5 changed files with 37 additions and 12 deletions

View File

@ -3,10 +3,6 @@ language:
sudo: false sudo: false
compiler:
- clang
- gcc
os: os:
- linux - linux
- osx - osx
@ -26,17 +22,26 @@ addons:
install: install:
- pip install --user lutin - 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: before_script:
- 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
- rm -rf * - rm -rf *
- git clone https://github.com/atria-soft/etk.git - git clone https://github.com/atria-soft/etk.git
- git clone https://github.com/generic-library/gtest-lutin.git --recursive - git clone https://github.com/generic-library/gtest-lutin.git --recursive
- git clone https://github.com/musicdsp/audio.git - git clone https://github.com/musicdsp/audio.git
- if [ "$CXX" == "clang++" ]; then BUILDER=clang; else BUILDER=gcc; fi - if [ "$BUILDER" == "gcc" ]; then COMPILATOR_OPTION="--compilator-version=4.9"; else COMPILATOR_OPTION=""; fi
- if [ "$CXX" == "g++" ]; then COMPILATOR_OPTION="--compilator-version=4.9"; else COMPILATOR_OPTION=""; fi
script: script:
- lutin -C -P -c$BUILDER $COMPILATOR_OPTION -mdebug -p audio-test - lutin -w -j4 -C -P -c $BUILDER $COMPILATOR_OPTION -m $CONF $GCOV -p audio-test
- ./out/Linux_x86_64/debug/staging/$BUILDER/audio-test/usr/bin/audio-test - ./out/Linux_x86_64/$CONF/staging/$BUILDER/audio-test/usr/bin/audio-test
notifications: notifications:
email: email:

View File

@ -8,7 +8,7 @@
#define __AUDIO_DURATION_H__ #define __AUDIO_DURATION_H__
#include <etk/types.h> #include <etk/types.h>
#include <etk/chrono.h> #include <chrono>
namespace audio { namespace audio {
class Duration { class Duration {

View File

@ -9,7 +9,7 @@
#include <string> #include <string>
#include <etk/types.h> #include <etk/types.h>
#include <etk/chrono.h> #include <chrono>
namespace audio { namespace audio {
class Duration; class Duration;

View File

@ -26,7 +26,27 @@ def create(target):
'audio/float_t.cpp', 'audio/float_t.cpp',
'audio/double_t.cpp' 'audio/double_t.cpp'
]) ])
myModule.add_header_file([
'audio/types.h',
'audio/debug.h',
'audio/debugRemove.h',
'audio/channel.h',
'audio/format.h',
'audio/Time.h',
'audio/Duration.h',
'audio/int8_8_t.h',
'audio/int8_16_t.h',
'audio/int16_16_t.h',
'audio/int16_32_t.h',
'audio/int24_24_t.h',
'audio/int24_32_t.h',
'audio/int32_32_t.h',
'audio/int32_64_t.h',
'audio/int64_64_t.h',
'audio/float_t.h',
'audio/double_t.h'
])
myModule.add_module_depend(['etk']) myModule.add_module_depend(['etk'])
myModule.add_export_path(tools.get_current_path(__file__)) myModule.add_path(tools.get_current_path(__file__))
return myModule return myModule

View File

@ -11,7 +11,7 @@
#include <math.h> #include <math.h>
#include <sstream> #include <sstream>
#include <unistd.h> #include <unistd.h>
#include <etk/thread.h> #include <thread>
#include <audio/types.h> #include <audio/types.h>