build.sh 782 B

12345678910111213141516
  1. #!/bin/bash
  2. LIBRARY_PATH=../../DFPSR
  3. DEPENDENCIES="${LIBRARY_PATH}/collection/collections.cpp ${LIBRARY_PATH}/api/fileAPI.cpp ${LIBRARY_PATH}/api/bufferAPI.cpp ${LIBRARY_PATH}/api/stringAPI.cpp ${LIBRARY_PATH}/base/SafePointer.cpp Machine.cpp generator.cpp"
  4. # Compile the analyzer
  5. g++ main.cpp -o builder ${DEPENDENCIES} -std=c++14;
  6. # Compile the wizard project to test if the build system works
  7. echo "Generating dfpsr_compile.sh from Wizard.DsrProj"
  8. ./builder ../wizard/Wizard.DsrProj Graphics Sound Linux ScriptPath="/tmp/dfpsr_compile.sh";
  9. echo "Generating dfpsr_win32_test.bat from Wizard.DsrProj"
  10. ./builder ../wizard/Wizard.DsrProj Graphics Sound Windows ScriptPath="/tmp/dfpsr_win32_test.bat";
  11. echo "Running compile.sh"
  12. chmod +x /tmp/dfpsr_compile.sh
  13. /tmp/dfpsr_compile.sh