]> gerrit.simantics Code Review - simantics/fmil.git/blobdiff - org.simantics.fmil.core/native/windowsbuild.bat
Updates to FMILibrary and its build process
[simantics/fmil.git] / org.simantics.fmil.core / native / windowsbuild.bat
diff --git a/org.simantics.fmil.core/native/windowsbuild.bat b/org.simantics.fmil.core/native/windowsbuild.bat
new file mode 100644 (file)
index 0000000..e644859
--- /dev/null
@@ -0,0 +1,23 @@
+cd FMILibrary-2.0.3\r
+\r
+xcopy /y ..\FMUSimulator\fmi_util.c.txt .\src\Util\src\FMI\fmi_util.c\r
+\r
+mkdir build32\r
+cd build32\r
+cmake .. -G "Visual Studio 15"\r
+msbuild FMILibrary.sln /p:Configuration=Release /p:Platform=Win32\r
+msbuild FMILibrary.sln /p:Configuration=Debug /p:Platform=Win32\r
+\r
+xcopy /y Release\*.dll ..\..\..\..\org.simantics.fmil.win32\libraries\r
+\r
+cd ..\r
+\r
+mkdir build64\r
+cd build64\r
+cmake .. -G "Visual Studio 15 Win64"\r
+msbuild FMILibrary.sln /p:Configuration=Release /p:Platform=x64\r
+msbuild FMILibrary.sln /p:Configuration=Debug /p:Platform=x64\r
+\r
+xcopy /y Release\*.dll ..\..\..\..\org.simantics.fmil.win64\libraries\r
+\r
+cd ..\..\r