Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finalization of new build system setup
Split the project into subprojects: - base - creates a static library libbase.a; supplies serialization protocol definitions parsing - dumper - a dumper that dumps the traffic into a file or sends it over network to a client - analyzer - GUI analyzer of captured traffic
- Loading branch information
Tomek Obrebski
committed
Mar 18, 2015
1 parent
9eb2217
commit 4d46fc3
Showing
7 changed files
with
58 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#! /usr/bin/env python | ||
|
||
def options(opt): | ||
opt.recurse('base') | ||
opt.recurse('dumper') | ||
opt.recurse('analyzer') | ||
|
||
|
||
def configure(ctx): | ||
ctx.recurse('base') | ||
ctx.recurse('dumper') | ||
if ctx.options.analyzer: | ||
ctx.recurse('analyzer') | ||
|
||
|
||
def build(bld): | ||
bld.recurse('base') | ||
bld.recurse('dumper') | ||
if bld.options.analyzer: | ||
bld.recurse('analyzer') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,31 @@ | ||
#! /usr/bin/env python | ||
|
||
APPNAME = 'wlanalyzer' | ||
VERSION = '0.3' | ||
|
||
top = '.' | ||
out = 'build' | ||
DUMPER = 'wldump' | ||
ANALYZER = 'wlanalyzer' | ||
VERSION = '0.1' | ||
|
||
def options(ctx): | ||
ctx.load('compiler_cxx') | ||
ctx.add_option('-d', '--debug', action='store_true', default=False, help='Compile with debug symbols') | ||
ctx.add_option('--analyzer', action='store_true', default=False, help='Build the protocol analyzer. It is required to have qt5 libs installed on the system') | ||
ctx.recurse('src') | ||
|
||
|
||
def configure(ctx): | ||
ctx.load('compiler_cxx') | ||
if ctx.options.analyzer: | ||
ctx.load('qt5') | ||
ctx.env.CXXFLAGS += ['-Wall', '-fPIC'] | ||
if ctx.options.debug: | ||
ctx.env.CXXFLAGS += ['-g', '-O0', '-DDEBUG_BUILD'] | ||
# Check for libev | ||
#ctx.check_cxx(header_name='ev++.h') | ||
#ctx.check_cxx(lib='ev', uselib_store='EV') | ||
# Check for pugixml | ||
#ctx.check_cxx(lib='pugixml', uselib_store='PUGI') | ||
|
||
ctx.recurse('src') | ||
ctx.recurse('src') | ||
|
||
if ctx.env.LIB_QT5QUICK and ctx.env.INCLUDES_QT5QUICK: | ||
ctx.env.BUILD_WLANALYZER = True | ||
print("Building a GUI analyzer") | ||
|
||
|
||
def build(bld): | ||
bld.recurse('src') | ||
#source_files = bld.path.ant_glob('^src/**/*.cpp$', excl=['^src/**/wldump.cpp', '^src/**/wlanalyzer.cpp']) | ||
#wldumper = [bld.path.make_node('/src/wldump.cpp')] | ||
#wlanalyzer = [bld.path.make_node('/src/wlanalyzer.cpp')] | ||
#bld.program(source=source_files + wldumper, target=DUMPER, use=['EV', 'PUGI']) | ||
|
||
#usage = [ 'EV', 'PUGI' ] | ||
#feature_set = 'cxx cxxprogram' | ||
|
||
#if bld.env.BUILD_WLANALYZER: | ||
# usage += [ 'QT5QUICK', 'QT5CORE', 'QT5WIDGETS' ] | ||
# feature_set += 'qt5' | ||
|
||
#if bld.env.BUILD_WLANALYZER: | ||
# bld.program(source=source_files + wlanalyzer, target=ANALYZER, use=usage, features=feature_set) | ||
bld.recurse('src/base') | ||
bld.recurse('src/dumper') | ||
bld.recurse('src/analyzer') |