[DEV] update Build interface

This commit is contained in:
Edouard DUPIN 2015-09-14 21:11:04 +02:00
parent 712415e556
commit 55b75c56f5
6 changed files with 22 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,19 +22,28 @@ 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:
- cd .. - 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/generic-library/gtest-lutin.git
- git clone https://github.com/atria-soft/etk.git - git clone https://github.com/atria-soft/etk.git
- git clone https://github.com/musicdsp/audio.git - git clone https://github.com/musicdsp/audio.git
- pwd - pwd
- ls -l - ls -l
- 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-algo-drain-test - lutin -w -j4 -C -P -c $BUILDER $COMPILATOR_OPTION -m $CONF $GCOV -p audio-algo-drain-test
- ./out/Linux_x86_64/debug/staging/$BUILDER/audio-algo-drain-test/usr/bin/audio-algo-drain-test -l6 - ./out/Linux_x86_64/$CONF/staging/$BUILDER/audio-algo-drain-test/usr/bin/audio-algo-drain-test -l6
notifications: notifications:
email: email:

View File

@ -8,7 +8,7 @@
#define __AUDIO_ALGO_DRAIN_ALGO_BIQUAD_H__ #define __AUDIO_ALGO_DRAIN_ALGO_BIQUAD_H__
#include <etk/memory.h> #include <memory>
#include <etk/types.h> #include <etk/types.h>
#include <audio/algo/drain/BiQuadType.h> #include <audio/algo/drain/BiQuadType.h>
#include <cmath> #include <cmath>

View File

@ -7,7 +7,7 @@
#ifndef __AUDIO_ALGO_DRAIN_ALGO_BIQUAD_TYPE_H__ #ifndef __AUDIO_ALGO_DRAIN_ALGO_BIQUAD_TYPE_H__
#define __AUDIO_ALGO_DRAIN_ALGO_BIQUAD_TYPE_H__ #define __AUDIO_ALGO_DRAIN_ALGO_BIQUAD_TYPE_H__
#include <etk/memory.h> #include <memory>
namespace audio { namespace audio {
namespace algo { namespace algo {

View File

@ -8,7 +8,7 @@
#define __AUDIO_ALGO_DRAIN_ALGO_EQUALIZER_H__ #define __AUDIO_ALGO_DRAIN_ALGO_EQUALIZER_H__
#include <etk/types.h> #include <etk/types.h>
#include <etk/memory.h> #include <memory>
#include <vector> #include <vector>
#include <audio/format.h> #include <audio/format.h>
#include <audio/algo/drain/BiQuadType.h> #include <audio/algo/drain/BiQuadType.h>

View File

@ -19,6 +19,11 @@ def create(target):
'audio/algo/drain/BiQuadType.cpp', 'audio/algo/drain/BiQuadType.cpp',
'audio/algo/drain/Equalizer.cpp' 'audio/algo/drain/Equalizer.cpp'
]) ])
myModule.add_header_file([
'audio/algo/drain/BiQuad.h',
'audio/algo/drain/BiQuadType.h',
'audio/algo/drain/Equalizer.h'
])
myModule.add_module_depend(['etk', 'audio']) myModule.add_module_depend(['etk', 'audio'])
myModule.add_export_path(tools.get_current_path(__file__)) myModule.add_export_path(tools.get_current_path(__file__))

View File

@ -8,7 +8,7 @@
#include <etk/etk.h> #include <etk/etk.h>
#include <audio/algo/drain/Equalizer.h> #include <audio/algo/drain/Equalizer.h>
#include <etk/os/FSNode.h> #include <etk/os/FSNode.h>
#include <etk/chrono.h> #include <chrono>
#include <unistd.h> #include <unistd.h>
#undef __class__ #undef __class__