Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
28 changed files
with
663 additions
and
220 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,28 @@ | ||
|
||
Import('env') | ||
|
||
libName = 'OpenCOLLADABaseUtils' | ||
|
||
|
||
srcDirs = [ 'src/', 'src/Math/'] | ||
|
||
variantDir = env['objDir'] + env['configurationBaseName'] + '/' | ||
outputDir = env['libDir'] + env['configurationBaseName'] + '/' | ||
targetPath = outputDir + libName | ||
|
||
|
||
incDirs = ['include/', 'include/Math/', '../Externals/UTF/include/'] | ||
|
||
if not env['PCRENATIVE']: | ||
incDirs += ['../Externals/pcre/include'] | ||
|
||
|
||
src = [] | ||
for srcDir in srcDirs: | ||
src += [ variantDir + str(p) for p in Glob(srcDir + '*.cpp')] | ||
VariantDir(variant_dir=variantDir + srcDir, src_dir=srcDir, duplicate=False) | ||
|
||
if env['SHAREDLIB']: | ||
SharedLibrary(target=targetPath, source=src, CPPPATH=incDirs, CCFLAGS=env['CPPFLAGS']) | ||
else: | ||
StaticLibrary(target=targetPath, source=src, CPPPATH=incDirs, CCFLAGS=env['CPPFLAGS']) |
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,26 @@ | ||
|
||
Import('env') | ||
|
||
libName = 'OpenCOLLADAFramework' | ||
|
||
|
||
srcDir = 'src/' | ||
|
||
variantDir = env['objDir'] + env['configurationBaseName'] + '/' | ||
outputDir = env['libDir'] + env['configurationBaseName'] + '/' | ||
targetPath = outputDir + libName | ||
|
||
|
||
incDirs = ['include/', | ||
'../COLLADABaseUtils/include/', | ||
'../Externals/MathMLSolver/include/', | ||
'../Externals/MathMLSolver/include/AST'] | ||
|
||
src = [ variantDir + str(p) for p in Glob(srcDir + '*.cpp')] | ||
VariantDir(variant_dir=variantDir + srcDir, src_dir=srcDir, duplicate=False) | ||
|
||
if env['SHAREDLIB']: | ||
SharedLibrary(target=targetPath, source=src, CPPPATH=incDirs, CCFLAGS=env['CPPFLAGS']) | ||
else: | ||
StaticLibrary(target=targetPath, source=src, CPPPATH=incDirs, CCFLAGS=env['CPPFLAGS']) | ||
|
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,46 @@ | ||
|
||
Import('env') | ||
|
||
libName = 'OpenCOLLADASaxFrameworkLoader' | ||
|
||
|
||
srcDirs = [ 'src/', | ||
'src/generated14/', | ||
'src/generated15/'] | ||
|
||
variantDir = env['objDir'] + env['configurationBaseName'] + env['xmlParserConfName'] + env['validationConfName'] + '/' | ||
outputDir = env['libDir'] + env['configurationBaseName'] + env['xmlParserConfName'] + env['validationConfName'] + '/' | ||
targetPath = outputDir + libName | ||
|
||
|
||
incDirs = [ 'include', | ||
'include/generated14', | ||
'include/generated15', | ||
'../COLLADABaseUtils/include', | ||
'../GeneratedSaxParser/include', | ||
'../COLLADAFramework/include', | ||
'../Externals/LibXML/include', | ||
'../Externals/MathMLSolver/include', | ||
'../Externals/MathMLSolver/include/AST'] | ||
|
||
if not env['PCRENATIVE']: | ||
incDirs += ['../Externals/pcre/include'] | ||
|
||
src = [] | ||
for srcDir in srcDirs: | ||
src += [ variantDir + str(p) for p in Glob(srcDir + '*.cpp')] | ||
VariantDir(variant_dir=variantDir + srcDir, src_dir=srcDir, duplicate=False) | ||
|
||
if (env['XMLPARSER'] == 'expat') or (env['XMLPARSER'] == 'expatnative'): | ||
env['CPPFLAGS'] += ' -DGENERATEDSAXPARSER_XMLPARSER_EXPAT' | ||
else: | ||
env['CPPFLAGS'] += ' -DGENERATEDSAXPARSER_XMLPARSER_LIBXML' | ||
|
||
if not env['NOVALIDATION']: | ||
env['CPPFLAGS'] += ' -DGENERATEDSAXPARSER_VALIDATION' | ||
|
||
|
||
if env['SHAREDLIB']: | ||
SharedLibrary(target=targetPath, source=src, CPPPATH=incDirs, CCFLAGS=env['CPPFLAGS']) | ||
else: | ||
StaticLibrary(target=targetPath, source=src, CPPPATH=incDirs, CCFLAGS=env['CPPFLAGS']) |
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,24 @@ | ||
|
||
Import('env') | ||
|
||
libName = 'OpenCOLLADAStreamWriter' | ||
|
||
|
||
srcDir = 'src/' | ||
|
||
variantDir = env['objDir'] + env['configurationBaseName'] + '/' | ||
outputDir = env['libDir'] + env['configurationBaseName'] + '/' | ||
targetPath = outputDir + libName | ||
|
||
|
||
incDirs = ['include/', | ||
'../COLLADABaseUtils/include/'] | ||
|
||
src = [ variantDir + str(p) for p in Glob(srcDir + '*.cpp')] | ||
VariantDir(variant_dir=variantDir + srcDir, src_dir=srcDir, duplicate=False) | ||
|
||
if env['SHAREDLIB']: | ||
SharedLibrary(target=targetPath, source=src, CPPPATH=incDirs, CCFLAGS=env['CPPFLAGS']) | ||
else: | ||
StaticLibrary(target=targetPath, source=src, CPPPATH=incDirs, CCFLAGS=env['CPPFLAGS']) | ||
|
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 |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
|
||
#include "COLLADASWIBufferFlusher.h" | ||
|
||
#include <string.h> | ||
|
||
namespace COLLADASW | ||
{ | ||
|
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,59 @@ | ||
|
||
Import('env') | ||
|
||
progName = 'OpenCOLLADAValidator' | ||
|
||
|
||
srcDir = 'src/' | ||
|
||
variantDir = env['objDir'] + env['configurationBaseName'] + env['xmlParserConfName'] + env['validationConfName'] + '/' | ||
outputDir = env['binDir'] + env['configurationBaseName'] + env['xmlParserConfName'] + env['validationConfName'] + '/' | ||
targetPath = outputDir + progName | ||
|
||
incDirs = [ 'include', | ||
'../COLLADABaseUtils/include', | ||
'../COLLADAFramework/include', | ||
'../COLLADASaxFrameworkLoader/include', | ||
'../GeneratedSaxParser/include'] | ||
|
||
src = [ variantDir + str(p) for p in Glob(srcDir + '*.cpp')] | ||
VariantDir(variant_dir=variantDir + srcDir, src_dir=srcDir, duplicate=False) | ||
|
||
libs = [ 'OpenCOLLADASaxFrameworkLoader', | ||
'MathMLSolver', | ||
'OpenCOLLADAFramework', | ||
'OpenCOLLADABaseUtils', | ||
'GeneratedSaxParser', | ||
'pcre', | ||
'UTF' ] | ||
|
||
libPath = [ '../COLLADABaseUtils/' + env['libDir'] + env['configurationBaseName'], | ||
'../COLLADAFramework/' + env['libDir'] + env['configurationBaseName'], | ||
'../Externals/MathMLSolver/' + env['libDir'] + env['configurationBaseName'], | ||
'../Externals/UTF/' + env['libDir'] + env['configurationBaseName'], | ||
'../COLLADASaxFrameworkLoader/' + env['libDir'] + env['configurationBaseName'] + env['xmlParserConfName'] + env['validationConfName'], | ||
'../GeneratedSaxParser/' + env['libDir'] + env['configurationBaseName'] + env['xmlParserConfName'] ] | ||
|
||
if not env['PCRENATIVE']: | ||
libPath += '../Externals/pcre/' + env['libDir'] + env['configurationBaseName'], | ||
|
||
if (env['XMLPARSER'] == 'expat') or (env['XMLPARSER'] == 'expatnative'): | ||
env['CPPFLAGS'] += ' -DXMLPARSER_EXPAT' | ||
libs += ['expat'] | ||
if env['XMLPARSER'] == 'expat': | ||
libPath += ['../Externals/expat/' + env['libDir'] + env['configurationBaseName']] | ||
else: | ||
env['CPPFLAGS'] += ' -DXMLPARSER_LIBXML' | ||
if env['XMLPARSER'] == 'libxml': | ||
libPath += ['../Externals/libxml/' + env['libDir'] + env['configurationBaseName']] | ||
libs += ['xml'] | ||
else: | ||
libs += ['xml2'] | ||
|
||
if env['PG']: | ||
linkFlags = ['-pg'] | ||
else: | ||
linkFlags = [] | ||
|
||
Program(target=targetPath, source=src, CPPPATH=incDirs, CCFLAGS=env['CPPFLAGS'], LIBS=libs, LIBPATH=libPath, LINKFLAGS=linkFlags) | ||
|
Oops, something went wrong.