)
SOURCE_GROUP ("Resource Files" FILES ${TEXT_RESOURCES})
+# default dump approaches (will be set if not initialized)
+SET(PYTHONDUMP_NAMING ON CACHE BOOL "Dump named references to shapes")
+SET(PYTHONDUMP_GEO ON CACHE BOOL "Dump references to shapes by the geometric properties")
+SET(PYTHONDUMP_WEAK OFF CACHE BOOL "Dump weak named references to shapes")
+
ADD_DEFINITIONS(-DEXCHANGEPLUGIN_EXPORTS)
+IF(${PYTHONDUMP_NAMING})
+ ADD_DEFINITIONS(-DEXCHANGEPLUGIN_DUMP_NAMING)
+ENDIF()
+IF(${PYTHONDUMP_GEO})
+ ADD_DEFINITIONS(-DEXCHANGEPLUGIN_DUMP_GEO)
+ENDIF()
+IF(${PYTHONDUMP_WEAK})
+ ADD_DEFINITIONS(-DEXCHANGEPLUGIN_DUMP_WEAK)
+ENDIF()
ADD_LIBRARY(ExchangePlugin MODULE ${PROJECT_SOURCES} ${PROJECT_HEADERS} ${XML_RESOURCES} ${TEXT_RESOURCES})
TARGET_LINK_LIBRARIES(ExchangePlugin ${PROJECT_LIBRARIES})
#include <Config_ModuleReader.h>
+#ifdef EXCHANGEPLUGIN_DUMP_NAMING
+static const bool THE_DUMP_NAMING = true;
+#else
+static const bool THE_DUMP_NAMING = false;
+#endif
+
+#ifdef EXCHANGEPLUGIN_DUMP_GEO
+static const bool THE_DUMP_GEO = true;
+#else
+static const bool THE_DUMP_GEO = false;
+#endif
+
+#ifdef EXCHANGEPLUGIN_DUMP_WEAK
+static const bool THE_DUMP_WEAK = true;
+#else
+static const bool THE_DUMP_WEAK = false;
+#endif
+
ExchangePlugin_Dump::ExchangePlugin_Dump()
{
data()->addAttribute(WEAK_NAMING_DUMP_ID(), ModelAPI_AttributeBoolean::typeId());
// default values
- boolean(TOPOLOGICAL_NAMING_DUMP_ID())->setValue(true);
- boolean(GEOMETRIC_DUMP_ID())->setValue(true);
- boolean(WEAK_NAMING_DUMP_ID())->setValue(false);
+ boolean(TOPOLOGICAL_NAMING_DUMP_ID())->setValue(THE_DUMP_NAMING);
+ boolean(GEOMETRIC_DUMP_ID())->setValue(THE_DUMP_GEO);
+ boolean(WEAK_NAMING_DUMP_ID())->setValue(THE_DUMP_WEAK);
}
void ExchangePlugin_Dump::execute()