build.sh 962 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. # Assuming that you called build.sh from its own folder, you should already be in the project folder.
  3. PROJECT_FOLDER=.
  4. # Placing your executable in the project folder allow using the same relative paths in the final release.
  5. TARGET_FILE=./application
  6. # The root folder is where DFPSR, SDK and tools are located.
  7. ROOT_PATH=../..
  8. # Select where to place temporary files.
  9. TEMP_DIR=${ROOT_PATH}/../../temporary
  10. # Select a window manager
  11. WINDOW_MANAGER=NONE
  12. # Select safe debug mode or fast release mode
  13. #MODE=-DDEBUG #Debug mode
  14. MODE=-DNDEBUG #Release mode
  15. COMPILER_FLAGS="${MODE} -std=c++17 -O2"
  16. # Select external libraries
  17. LINKER_FLAGS=""
  18. # Give execution permission
  19. chmod +x ${ROOT_PATH}/tools/buildAndRun.sh;
  20. # Compile everything
  21. ${ROOT_PATH}/tools/build.sh "${PROJECT_FOLDER}" "${TARGET_FILE}" "${ROOT_PATH}" "${TEMP_DIR}" "${WINDOW_MANAGER}" "${COMPILER_FLAGS}" "${LINKER_FLAGS}";
  22. # Run the application
  23. ${TARGET_FILE} ./পরীক্ষা;