CONFIG_NAME=mingw_w64

# This config is for TDM-GCC, which is based on MinGW-w64. This is the MinGW
# compiler used by OCT.

# CMake
SRC_DIR=.
BUILD_DIR=build_$(CONFIG_NAME)
INSTALL_DIR=install_$(CONFIG_NAME)
GENERATOR="MSYS Makefiles"
# These flags should be the same as what OCT is using (-fPIC is removed though
# since it's not applicable on Windows).
FMILIB_CMAKE_CUSTOM_FLAGS=-DCMAKE_C_FLAGS="-m64"             \
                          -DCMAKE_CXX_FLAGS="-m64"           \
                          -DCMAKE_SHARED_LINKER_FLAGS="-m64" \
                          -DCMAKE_EXE_LINKER_FLAGS="-m64"
BUILD_TYPE=Release
TEST_COMMAND=ctest --build-config $(BUILD_TYPE) --parallel $(NPROC) --output-on-failure

# FMILIB_...
GENERATE_DOXYGEN_DOC=0
BUILD_WITH_STATIC_RTLIB=0
BUILD_TESTS=1
TEST_LOCALE=1 # /* Tests are by default run in serial, so should be OK even though not thread-safe */
