# mingw options

## depends on WINDOWS
##
## select LIBC_SUPPORT_THREADS_NATIVE
## select LIBC_SUPPORT_THREADS_POSIX
## select CC_CORE_NEEDED
## select BINUTILS_FORCE_LD_BFD_DEFAULT
##
## help The de-facto standard for Mingw distributions.

config THREADS
    default "win32"  if THREADS_NATIVE
    default "posix"  if THREADS_POSIX

config MINGW_SECURE_API
    bool "Expose secure API prototypes"
    default y

choice
    bool
    prompt "Default C Runtime to use"
    default MINGW_DEFAULT_MSVCRT_DEFAULT
    help
      See mingw-w64 help for full list of possible values.
      Most commonly one would want to upgrade this to ucrt
      for a more modern C runtime.
      Targeting specific older/newer MSVC versions is possible
      as well though.

config MINGW_DEFAULT_MSVCRT_DEFAULT
    bool
    prompt "Default"
    help
      Don't set a default msvcrt, leave decision to mingw.

config MINGW_DEFAULT_MSVCRT_MSVCRT
    bool
    prompt "msvcrt"

config MINGW_DEFAULT_MSVCRT_UCRT
    bool
    prompt "ucrt"

config MINGW_DEFAULT_MSVCRT_CUSTOM
    bool
    prompt "Custom"

endchoice

config MINGW_DEFAULT_MSVCRT
    string "Custom default C Runtime to use"
    depends on MINGW_DEFAULT_MSVCRT_CUSTOM
    default ""

config MINGW_DIRECTX
    bool "Include DirectX development files"

config MINGW_DDK
    bool "Include DDK development files"

config MINGW_TOOLS
    bool "Include the companion tools"
    default y
    help
      Build the companion tools with mingw such as widl, gendef,
      and genpeimg.

config MINGW_TOOL_LIST_ARRAY
    string "List of mingw-w64 tools to build"
    default "gendef genidl genlib genpeimg widl"
    depends on MINGW_TOOLS
    help
      List of mingw-w64 tools to build.
