Skip to content

Commit

Permalink
add TuttleOFX submodule and move qSam from Tuttle to Buttle
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan committed Jul 13, 2012
1 parent 9fc5b98 commit 79b88bd
Show file tree
Hide file tree
Showing 15 changed files with 1,522 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "TuttleOFX"]
path = TuttleOFX
url = git@github.com:tuttleofx/TuttleOFX.git
1 change: 1 addition & 0 deletions TuttleOFX
Submodule TuttleOFX added at 416b65
49 changes: 49 additions & 0 deletions applications/qSam/Jamfile.v2
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import os ;

using qt : /usr/lib64/qt4 ;

###############################################################################
# Global project requirements
###############################################################################
project
: requirements
<include>src/application/GUI/python
<include>src/application
<include>src/common
:
build-dir $(BUILD)
;


exe qSam :
src/application/main.cpp
[ glob src/common/python/*.cpp ]
[ glob src/application/GUI/python/* ]

/boost//python
/python
/qt//QtGui
/qt//QtCore
;

alias qSam-install : qSam-install-libs qSam-install-bins ;

install qSam-install-bins
:
qSam
:
<variant>debug:<location>$(DIST_DEBUG)/bin
<variant>release:<location>$(DIST_RELEASE)/bin
;

install qSam-install-libs
:
/boost//python
/qt//QtGui
/qt//QtCore
:
<variant>debug:<location>$(DIST_DEBUG)/lib
<variant>release:<location>$(DIST_RELEASE)/lib
<install-dependencies>on
<install-type>LIB
;
68 changes: 68 additions & 0 deletions applications/qSam/SConscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
Import( 'project', 'libs' )
import os.path

name = project.getName()

incdirs = ['src/common', 'src/application']
src_common = project.scanFiles( ['src/common'], accept=['*.cpp','*.c'] )
src_application = project.scanFiles( ['src/application'], accept=['*.cpp','*.c'] )
src_ui = project.scanFiles( ['src/application'], accept=['*.ui'] )
src_swig = project.scanFiles( ['src/common'], accept=['*.i'] )

#print 'src_ui:', src_ui

libraries = [
libs.boost,
libs.m,
libs.pthread,
libs.python,
]
librariesGui = [
libs.qt4(modules=['QtCore', 'QtGui', 'QtOpenGL'], uiFiles=src_ui)
]

project.StaticLibrary(
'qSamCommon',
sources = src_common,
libraries = libraries,
shared = True,
)

pythonOutputDir = os.path.join( project.inOutputDir(), 'python' )

swigGlobalFlags={
'CPPPATH': incdirs,
'SWIGFLAGS': ['-python','-c++','-Wall'],
'SWIGPATH': incdirs,
'SWIGOUTDIR': pythonOutputDir,
}
swigReplaceFlags = {
'SHLIBPREFIX': '',
'LIBPREFIX': '',
}

swigWrap = project.SharedLibrary(
target = '_'+name,
sources = src_swig,
globalEnvFlags = swigGlobalFlags,
replaceLocalEnvFlags = swigReplaceFlags,
libraries = [libs.qSamCommon],
installDir = pythonOutputDir,
)

appli = project.Program(
target = name,
sources = src_application,
libraries = [libs.qSamCommon]+librariesGui,
globalEnvFlags = {'CPPPATH':incdirs},
installDir = project.inOutputBin(),
)

Depends( appli, swigWrap )

#Alias( 'all', swigWrap )
#Alias( 'all', appli )
#Alias( name, swigWrap )
Alias( name, appli )


Loading

0 comments on commit 79b88bd

Please sign in to comment.