build.sh 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. set -e
  2. set -u
  3. export OLD_PWD=`pwd`
  4. export CMAKE=/c/software/PCL/cmake-3.0.1-win32-x86/bin/cmake.exe
  5. export MAKE=mingw32-make.exe
  6. export PATH=/c/mingw-w64/i686-4.9.2-posix-dwarf-rt_v3-rev1/mingw32/bin:$PATH
  7. mkdir -p /c/software/protobuf/_build
  8. cd /c/software/protobuf/_build
  9. $CMAKE ../
  10. $MAKE install
  11. mkdir -p /c/software/libArcus/_build
  12. cd /c/software/libArcus/_build
  13. $CMAKE ../
  14. $MAKE install
  15. mkdir -p /c/software/PinkUnicornEngine/_build
  16. cd /c/software/PinkUnicornEngine/_build
  17. $CMAKE ../
  18. $MAKE
  19. cd $OLD_PWD
  20. export PYTHONPATH=`pwd`/../libArcus/python:/c/Software/Uranium/
  21. /c/python34/python setup.py py2exe
  22. cp /c/software/PinkUnicornEngine/_build/CuraEngine.exe dist/
  23. cp /c/software/libArcus/_install/bin/libArcus.dll dist/
  24. cp /c/mingw-w64/i686-4.9.2-posix-dwarf-rt_v3-rev1/mingw32/bin/libgcc_s_dw2-1.dll dist/
  25. cp /c/mingw-w64/i686-4.9.2-posix-dwarf-rt_v3-rev1/mingw32/bin/libwinpthread-1.dll dist/
  26. cp /c/mingw-w64/i686-4.9.2-posix-dwarf-rt_v3-rev1/mingw32/bin/libstdc++-6.dll dist/
  27. /c/program\ files\ \(x86\)/NSIS/makensis.exe installer.nsi