added: bitvlc build target
This commit is contained in:
parent
7f27734b7a
commit
fefbff6979
4 changed files with 118 additions and 0 deletions
40
src/bitvlc/bitvlc.cpp
Normal file
40
src/bitvlc/bitvlc.cpp
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
/*
|
||||||
|
* bitvlc
|
||||||
|
* Copyright (C) Bob 2013
|
||||||
|
*
|
||||||
|
* bitvlc is free software: you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU General Public License as published by the
|
||||||
|
* Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* bitvlc is distributed in the hope that it will be useful, but
|
||||||
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
* See the GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along
|
||||||
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "bitvlc.h"
|
||||||
|
|
||||||
|
CBitVlc::CBitVlc(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
CBitVlc::~CBitVlc()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void CBitVlc::Setup()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void CBitVlc::Process()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void CBitVlc::Cleanup()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
33
src/bitvlc/bitvlc.h
Normal file
33
src/bitvlc/bitvlc.h
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
/*
|
||||||
|
* bitvlc
|
||||||
|
* Copyright (C) Bob 2013
|
||||||
|
*
|
||||||
|
* bitvlc is free software: you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU General Public License as published by the
|
||||||
|
* Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* bitvlc is distributed in the hope that it will be useful, but
|
||||||
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
* See the GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along
|
||||||
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef BITVLC_H
|
||||||
|
#define BITVLC_H
|
||||||
|
|
||||||
|
class CBitVlc
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CBitVlc(int argc, char *argv[]);
|
||||||
|
~CBitVlc();
|
||||||
|
|
||||||
|
void Setup();
|
||||||
|
void Process();
|
||||||
|
void Cleanup();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif //BITVLC_H
|
31
src/bitvlc/main.cpp
Normal file
31
src/bitvlc/main.cpp
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
/*
|
||||||
|
* bitvlc
|
||||||
|
* Copyright (C) Bob 2012
|
||||||
|
*
|
||||||
|
* bitvlc is free software: you can redistribute it and/or modify it
|
||||||
|
* under the terms of the GNU General Public License as published by the
|
||||||
|
* Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* bitvlc is distributed in the hope that it will be useful, but
|
||||||
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
* See the GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License along
|
||||||
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "bitvlc.h"
|
||||||
|
|
||||||
|
int main (int argc, char *argv[])
|
||||||
|
{
|
||||||
|
CBitVlc bitvlc(argc, argv);
|
||||||
|
|
||||||
|
bitvlc.Setup();
|
||||||
|
bitvlc.Process();
|
||||||
|
bitvlc.Cleanup();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
14
wscript
14
wscript
|
@ -20,6 +20,7 @@ def configure(conf):
|
||||||
conf.check(header_name='samplerate.h')
|
conf.check(header_name='samplerate.h')
|
||||||
conf.check(header_name='sys/ipc.h')
|
conf.check(header_name='sys/ipc.h')
|
||||||
conf.check(header_name='sys/shm.h')
|
conf.check(header_name='sys/shm.h')
|
||||||
|
conf.check(header_name='vlc/vlc.h')
|
||||||
|
|
||||||
conf.check(header_name='X11/Xlib.h', auto_add_header_name=True)
|
conf.check(header_name='X11/Xlib.h', auto_add_header_name=True)
|
||||||
conf.check(header_name='X11/extensions/Xrender.h')
|
conf.check(header_name='X11/extensions/Xrender.h')
|
||||||
|
@ -32,6 +33,7 @@ def configure(conf):
|
||||||
conf.check(lib='X11', uselib_store='X11')
|
conf.check(lib='X11', uselib_store='X11')
|
||||||
conf.check(lib='Xext', uselib_store='Xext')
|
conf.check(lib='Xext', uselib_store='Xext')
|
||||||
conf.check(lib='Xrender', uselib_store='Xrender')
|
conf.check(lib='Xrender', uselib_store='Xrender')
|
||||||
|
conf.check(lib='vlc', uselib_store='vlc')
|
||||||
conf.check(lib='m', uselib_store='m', mandatory=False)
|
conf.check(lib='m', uselib_store='m', mandatory=False)
|
||||||
conf.check(lib='pthread', uselib_store='pthread', mandatory=False)
|
conf.check(lib='pthread', uselib_store='pthread', mandatory=False)
|
||||||
|
|
||||||
|
@ -74,3 +76,15 @@ def build(bld):
|
||||||
cxxflags='-Wall -g -DUTILNAMESPACE=BitX11Util',
|
cxxflags='-Wall -g -DUTILNAMESPACE=BitX11Util',
|
||||||
target='bitx11')
|
target='bitx11')
|
||||||
|
|
||||||
|
bld.program(source='src/bitvlc/main.cpp\
|
||||||
|
src/bitvlc/bitvlc.cpp\
|
||||||
|
src/util/log.cpp\
|
||||||
|
src/util/misc.cpp\
|
||||||
|
src/util/mutex.cpp\
|
||||||
|
src/util/timeutils.cpp\
|
||||||
|
src/util/tcpsocket.cpp',
|
||||||
|
use=['m', 'rt', 'X11', 'Xrender', 'Xext', 'vlc'],
|
||||||
|
includes='./src',
|
||||||
|
cxxflags='-Wall -g -DUTILNAMESPACE=BitVlcUtil',
|
||||||
|
target='bitvlc')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue