• R/O
  • HTTP
  • SSH
  • HTTPS

meshio: Commit

3D model(pmd, mqo...) IO library using C++.


Commit MetaInfo

Revision2a17cee6192f58b3fccef2a9bab6a1214037dcbb (tree)
Time2011-05-04 02:25:29
Authorousttrue <ousttrue@gmai...>
Commiterousttrue

Log Message

vc2008, gcc-4.5

Change Summary

Incremental Difference

--- a/src/text.h
+++ b/src/text.h
@@ -10,7 +10,7 @@
1010 #include <stdlib.h>
1111 #include <cstring>
1212
13-#if defined(_WIN32)
13+#ifdef _MSC_VER
1414 #include <windows.h>
1515 #else
1616 #include <iconv.h>
--- a/swig/python/setup.py
+++ b/swig/python/setup.py
@@ -1,5 +1,5 @@
11 import os
2-import commands
2+import shutil
33 from distutils.core import setup, Extension
44
55 def exec_command(cmd):
@@ -12,16 +12,26 @@ if os.name=='nt':
1212 extra_compile_args=["/EHsc", "/wd4996"]
1313 libraries=[]
1414 include_dirs=['../../src', BOOST_ROOT]
15+ if os.path.exists("meshio/mqo.py"):
16+ os.remove("meshio/mqo.py")
17+ if os.path.exists("meshio/pmd.py"):
18+ os.remove("meshio/pmd.py")
1519 exec_command("swig -c++ -python -o mqo_wrap.cpp -D_MSC_VER ../mqo.i")
1620 exec_command("swig -c++ -python -o pmd_wrap.cpp -D_MSC_VER ../pmd.i")
17- exec_command("mv mqo.py pmd.py meshio")
21+ shutil.move("mqo.py", "meshio")
22+ shutil.move("pmd.py", "meshio")
1823 else:
1924 extra_compile_args=['-std=c++0x']
2025 libraries=["iconv"]
2126 include_dirs=['../../src']
27+ if os.path.exists("meshio/mqo.py"):
28+ os.remove("meshio/mqo.py")
29+ if os.path.exists("meshio/pmd.py"):
30+ os.remove("meshio/pmd.py")
2231 exec_command("swig -c++ -python -o mqo_wrap.cpp ../mqo.i")
2332 exec_command("swig -c++ -python -o pmd_wrap.cpp ../pmd.i")
24- exec_command("mv mqo.py pmd.py meshio")
33+ shutil.move("mqo.py", "meshio")
34+ shutil.move("pmd.py", "meshio")
2535
2636 setup(
2737 name='meshio',
Show on old repository browser