Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Niflib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grant Kim
Niflib
Commits
a02d995c
Commit
a02d995c
authored
18 years ago
by
Amorilia
Browse files
Options
Downloads
Patches
Plain Diff
moved all testing files to new directory
parent
9d8166db
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
SConstruct
+5
-2
5 additions, 2 deletions
SConstruct
swig/SConscript
+1
-5
1 addition, 5 deletions
swig/SConscript
test/niflib_test.py
+0
-0
0 additions, 0 deletions
test/niflib_test.py
test/runtest.py
+10
-0
10 additions, 0 deletions
test/runtest.py
test/test.cpp
+2
-2
2 additions, 2 deletions
test/test.cpp
with
18 additions
and
9 deletions
SConstruct
+
5
−
2
View file @
a02d995c
...
...
@@ -385,11 +385,14 @@ blender/blender_niflib.cpp
# (SCons bug: SharedLibrary should also build .lib file, but this is broken; so for now just build static one)
niflib
=
env
.
StaticLibrary
(
'
niflib
'
,
[
core_objfiles
,
gen_objfiles
,
obj_objfiles
,
NvTriStrip_files
,
TriStripper_files
]
,
LIBPATH
=
'
.
'
,
CPPPATH
=
'
.
'
)
Export
(
'
env python_lib python_libpath python_include niflib
'
)
# build Python wrapper
if
PYWRAP
:
SConscript
(
'
swig/SConscript
'
,
exports
=
[
'
env
'
,
'
python_lib
'
,
'
python_libpath
'
,
'
python_include
'
,
'
niflib
'
,
'
TEST
'
])
niflib_swig
=
SConscript
(
'
swig/SConscript
'
)
Export
(
'
niflib_swig
'
)
# A test program:
if
TEST
:
env
.
Program
(
'
niflib_test
'
,
'
niflib_test.cpp
'
,
LIBS
=
[
niflib
],
LIBPATH
=
[
'
.
'
]
)
SConscript
(
'
test/SConscript
'
)
This diff is collapsed.
Click to expand it.
swig/SConscript
+
1
−
5
View file @
a02d995c
...
...
@@ -2,8 +2,4 @@ Import('*')
niflib_python
=
env
.
SharedLibrary
(
'
_niflib
'
,
'
pyniflib.i
'
,
LIBS
=
[
niflib
]
+
python_lib
,
LIBPATH
=
python_libpath
,
SWIGFLAGS
=
'
-c++ -python
'
,
CPPPATH
=
[
'
.
'
]
+
python_include
,
SHLIBPREFIX
=
''
)
if
TEST
:
import
unittest
import
niflib_test
unittest
.
main
(
niflib_test
)
Return
(
'
niflib_python
'
)
This diff is collapsed.
Click to expand it.
swig
/niflib_test.py
→
test
/niflib_test.py
+
0
−
0
View file @
a02d995c
File moved
This diff is collapsed.
Click to expand it.
test/runtest.py
0 → 100644
+
10
−
0
View file @
a02d995c
import
unittest
import
niflib_test
import
os
# run test.cpp
os
.
system
(
"
test
"
)
# run python tests
unittest
.
main
(
niflib_test
)
This diff is collapsed.
Click to expand it.
niflib_
test.cpp
→
test/
test.cpp
+
2
−
2
View file @
a02d995c
#include
<cassert>
#include
"include/niflib.h"
#include
"include/obj/NiNode.h"
#include
"
../
include/niflib.h"
#include
"
../
include/obj/NiNode.h"
using
namespace
Niflib
;
using
namespace
std
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment