-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add TuttleOFX submodule and move qSam from Tuttle to Buttle
- Loading branch information
1 parent
9fc5b98
commit 79b88bd
Showing
15 changed files
with
1,522 additions
and
0 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
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 |
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,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 | ||
; |
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,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 ) | ||
|
||
|
Oops, something went wrong.