summaryrefslogtreecommitdiffstats
path: root/src/uscxml
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-06-12 23:44:26 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-06-12 23:44:26 (GMT)
commit7238020a20213fba109b517a77f526e39d5a92f7 (patch)
tree8e8bcc4a057e904e9447902238a1c94eee16511e /src/uscxml
parentbbd892b435c12395a6cf53bc53ed5acf195e4cbd (diff)
downloaduscxml-7238020a20213fba109b517a77f526e39d5a92f7.zip
uscxml-7238020a20213fba109b517a77f526e39d5a92f7.tar.gz
uscxml-7238020a20213fba109b517a77f526e39d5a92f7.tar.bz2
Conditionalized datamodel compilation
Diffstat (limited to 'src/uscxml')
-rw-r--r--src/uscxml/Factory.cpp17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/uscxml/Factory.cpp b/src/uscxml/Factory.cpp
index 84d7632..3032c09 100644
--- a/src/uscxml/Factory.cpp
+++ b/src/uscxml/Factory.cpp
@@ -148,27 +148,34 @@ Factory::Factory() {
}
#endif
-#ifdef V8_FOUND
+#if defined V8_FOUND and defined BUILD_DM_ECMA
{
V8DataModel* dataModel = new V8DataModel();
registerDataModel(dataModel);
}
#endif
-#ifdef JSC_FOUND
+#if defined JSC_FOUND and defined BUILD_DM_ECMA
{
JSCDataModel* dataModel = new JSCDataModel();
registerDataModel(dataModel);
}
#endif
-#ifdef SWI_FOUND
+#if defined SWI_FOUND and defined BUILD_DM_PROLOG
{
SWIDataModel* dataModel = new SWIDataModel();
registerDataModel(dataModel);
}
#endif
+#ifdef BUILD_DM_PROLOG
+ {
+ XPathDataModel* dataModel = new XPathDataModel();
+ registerDataModel(dataModel);
+ }
+#endif
+
#ifdef PROTOBUF_FOUND
{
MMIHTTPIOProcessor* ioProcessor = new MMIHTTPIOProcessor();
@@ -182,10 +189,6 @@ Factory::Factory() {
registerDataModel(dataModel);
}
{
- XPathDataModel* dataModel = new XPathDataModel();
- registerDataModel(dataModel);
- }
- {
USCXMLInvoker* invoker = new USCXMLInvoker();
registerInvoker(invoker);
}