Text archives Help
- From: "James Bigler" <bigler@cs.utah.edu>
- To: manta@sci.utah.edu
- Subject: [Manta] r2078 - trunk/SwigInterface
- Date: Fri, 15 Feb 2008 13:57:12 -0700 (MST)
Author: bigler
Date: Fri Feb 15 13:57:12 2008
New Revision: 2078
Modified:
trunk/SwigInterface/CMakeLists.txt
trunk/SwigInterface/mantainterface.i
Log:
SwigInterface/CMakeLists.txt
I was adding flags to SWIG_FLAG wrong. They aren't cumulative, they
replace when you to it over again. Place the MANTA_ENABLE_X11 flag
with the MANTA_SWIG_FLAGS.
Also disable warning 312 (nested classes/structs). We don't care
about it.
SwigInterface/mantainterface.i
Don't need these warning off pragmas as they should be coming in
from the arguments.
Modified: trunk/SwigInterface/CMakeLists.txt
==============================================================================
--- trunk/SwigInterface/CMakeLists.txt (original)
+++ trunk/SwigInterface/CMakeLists.txt Fri Feb 15 13:57:12 2008
@@ -47,9 +47,17 @@
# SWIG_ADD_MODULE(example python example.i example.cc)
# SWIG_LINK_LIBRARIES(example ${PYTHON_LIBRARIES})
+# X11 flag
+IF(MANTA_ENABLE_X11)
+ SET(X11_FLAG "-DMANTA_ENABLE_X11=1")
+ELSE(MANTA_ENABLE_X11)
+ SET(X11_FLAG "-DMANTA_ENABLE_X11=0")
+ENDIF(MANTA_ENABLE_X11)
+
# -Wall : Turn on all the warnings.
# -w512 : Turn off warning 512. Overloaded declaration const ignored.
Non-const method at file:line used.
-SET(MANTA_SWIG_FLAGS ${warning_extra} -w512) # Don't put quotes around it.
It needs to be a list.
+# -w312 : Turn off nested class warning.
+SET(MANTA_SWIG_FLAGS ${warning_extra} -w512 -w312 ${X11_FLAG}) # Don't put
quotes around it. It needs to be a list.
############################################################
# Manta Interface.
@@ -74,13 +82,6 @@
# Manta Runtime.
SET_SOURCE_FILES_PROPERTIES(manta.i PROPERTIES CPLUSPLUS ON)
SET_SOURCE_FILES_PROPERTIES(manta.i PROPERTIES SWIG_FLAGS
"${MANTA_SWIG_FLAGS}")
-
-IF(MANTA_ENABLE_X11)
- SET(FLAG "-DMANTA_ENABLE_X11=1")
-ELSE(MANTA_ENABLE_X11)
- SET(FLAG "-DMANTA_ENABLE_X11=0")
-ENDIF(MANTA_ENABLE_X11)
-SET_SOURCE_FILES_PROPERTIES(manta.i PROPERTIES SWIG_FLAGS ${FLAG})
SWIG_ADD_MODULE(manta python manta.i manta.cc manta.h)
Modified: trunk/SwigInterface/mantainterface.i
==============================================================================
--- trunk/SwigInterface/mantainterface.i (original)
+++ trunk/SwigInterface/mantainterface.i Fri Feb 15 13:57:12 2008
@@ -233,9 +233,7 @@
%ignore Manta::Scene::getBackground() const;
%ignore Manta::Scene::getLights() const;
%ignore Manta::Scene::getRenderParameters() const;
-#pragma SWIG nowarn=SWIGWARN_PARSE_NESTED_CLASS
%include <Interface/Scene.h>
-#pragma SWIG nowarn=+SWIGWARN_PARSE_NESTED_CLASS
%include <Core/Util/CallbackHelpers.h>
%include <Core/Util/Callback.h>
- [Manta] r2078 - trunk/SwigInterface, James Bigler, 02/15/2008
Archive powered by MHonArc 2.6.16.