Przeglądaj źródła

Generate StatemachineInterface.h into library target folder (#1406) (#1407)

Thomas Kutz 8 lat temu
rodzic
commit
3c039fb709

+ 1 - 1
plugins/org.yakindu.sct.generator.cpp/src/org/yakindu/sct/generator/cpp/CppGenerator.xtend

@@ -54,7 +54,7 @@ class CppGenerator implements IExecutionFlowGenerator {
 	
 	def initGenerationArtifacts(ExecutionFlow flow, GeneratorEntry entry, IGenArtifactConfigurations locations) {
 		locations.configure(flow.typesModule.h, entry.libraryOutput, typesContent)
-		locations.configure(statemachineInterface.h, entry.headerOutput, statemachineInterfaceContent)
+		locations.configure(statemachineInterface.h, entry.libraryOutput, statemachineInterfaceContent)
 		
 		if (flow.timed) {
 				locations.configure(timedStatemachineInterface.h, entry.libraryOutput, timedStatemachineInterfaceContent)

+ 1 - 1
plugins/org.yakindu.sct.generator.cpp/src/org/yakindu/sct/generator/cpp/StatemachineHeader.xtend

@@ -88,7 +88,7 @@ class StatemachineHeader extends org.yakindu.sct.generator.c.StatemachineHeader
 	
 	override includes(ExecutionFlow it, extension IGenArtifactConfigurations artifactConfigs) '''
 		#include "«(typesModule.h).relativeTo(module.h)»"
-		#include "«statemachineInterface.h»"
+		#include "«(statemachineInterface.h).relativeTo(module.h)»"
 		«IF timed»
 			#include "«(timedStatemachineInterface.h).relativeTo(module.h)»"
 		«ENDIF»