Skip to content
Snippets Groups Projects
Commit d4bc2fb9 authored by Amorilia's avatar Amorilia
Browse files

* added SConstruct file in root, updated other SConscript files

* build will call nifxml_swig.py and nifxml_niflib.py
* removed legacy swig interface generating code from niflib_niflib.py
* removed pyniflib.i_old and obj_common.i since they are no longer used
* set eol-style to native on some files in niflib/src/gen for linux compatibility
* removed svn:externals property on contrib/niflib/pywrap as it is no longer needed
parent 08e161a9
No related branches found
No related tags found
No related merge requests found
Import('*')
# set up environment
env_niflib = env.Copy()
if sys.platform == 'win32':
env_niflib.Append(CCFLAGS = '/D "BUILDING_NIFLIB_DLL"')
else:
env_niflib.Append(CCFLAGS = '-DBUILDING_NIFLIB_DLL')
# generate code
os.system('cd ' + os.path.join('..', 'docsys') + ' && python nifxml_niflib.py -p ' + os.path.join('..' , 'niflib'))
# list source files
src_files = []
for n in nifxml.compound_names:
x = nifxml.compound_types[n]
if n[:3] != 'ns ' and not x.niflibtype and not x.template:
src_files.append('src/gen/' + str(n) + '.cpp')
for n in nifxml.block_names:
src_files.append('src/obj/' + str(n) + '.cpp')
src_files.extend(Split("""
src/ComplexShape.cpp
src/niflib.cpp
src/nif_math.cpp
src/NIF_IO.cpp
src/kfm.cpp
src/Type.cpp
src/gen/obj_factories.cpp
src/gen/enums.cpp
src/gen/obj_impl.cpp
TriStripper/connectivity_graph.cpp
TriStripper/policy.cpp
TriStripper/tri_stripper.cpp
NvTriStrip/NvTriStrip.cpp
NvTriStrip/NvTriStripObjects.cpp
NvTriStrip/VertexCache.cpp
"""))
# build niflib
niflib = env_niflib.SharedLibrary('niflib', src_files)
Export('niflib')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment