| 123456789101112131415161718192021222324252627282930 |
- #!/bin/bash
- # Assuming that you called build.sh from its own folder, you should already be in the project folder.
- PROJECT_FOLDER=.
- # Placing your executable in the project folder allow using the same relative paths in the final release.
- TARGET_FILE=./generator
- # The root folder is where DFPSR, SDK and tools are located.
- ROOT_PATH=../../Source
- # Select where to place temporary files and the generated executable
- TEMP_DIR=${ROOT_PATH}/../../temporary
- # Select a window manager
- WINDOW_MANAGER=NONE
- # Select safe debug mode or fast release mode
- MODE=-DDEBUG #Debug mode
- #MODE=-DNDEBUG #Release mode
- # Select the version of C++
- CPP_VERSION=-std=c++14
- # Select optimization level
- O_LEVEL=-O2
- # Select external libraries
- LINKER_FLAGS=""
- # Give execution permission
- chmod +x ${ROOT_PATH}/tools/build.sh;
- # Compile everything
- ${ROOT_PATH}/tools/build.sh "${PROJECT_FOLDER}" "${TARGET_FILE}" "${ROOT_PATH}" "${TEMP_DIR}" "${WINDOW_MANAGER}" "${MODE}" "${CPP_VERSION}" "${O_LEVEL}" "${LINKER_FLAGS}";
- # Execute the generation script to see the changes
- chmod +x gen.sh
- ./gen.sh ./Input .. ./Resources/
|