build.ps1 881 B

123456789101112131415161718192021222324252627282930
  1. $LibAbsolutionPath = (Get-Item -Path ".\lib" -Verbose).FullName
  2. Echo "Building FMUs and getting their dlls..."
  3. Push-Location .\fmus
  4. $FMUSources = Get-ChildItem -Filter FMI_*
  5. ForEach ($fmu In $FMUSources){
  6. Push-Location $fmu
  7. & .\build.ps1
  8. $generated_dlls = Get-ChildItem Debug -Filter *.dll
  9. ForEach ($dll In $generated_dlls){
  10. copy "Debug\$dll" "$LibAbsolutionPath"
  11. }
  12. Pop-Location
  13. }
  14. Pop-location
  15. Echo "Building FMUs and getting their dlls... DONE."
  16. Echo "Gettings dlls from third party FMUs..."
  17. Push-Location .\fmus\ThirdParty
  18. $FMUSources = Get-ChildItem -dir -Filter FMI_*
  19. ForEach ($fmu In $FMUSources){
  20. Push-Location $fmu\binaries\win32
  21. copy * "$LibAbsolutionPath"
  22. Pop-Location
  23. }
  24. Pop-location
  25. Echo "Gettings dlls from third party FMUs... DONE."