Visual Studio 2017with
UWP development toolsand
"C++ Universal Windows Platform development tools"package installed
x86_64 MSYS2installation with configured
pacmanpackager. Latest MinGW-w64 compiler build obtained with
pacmanpackager by running following command in MSYS2 terminal:
pacman -S mingw-w64-x86_64-toolchain
winstorecompatlibrary to redefine some forbidden API calls for UWP platform.
winstorecompatlibrary is available in latest builds of MinGW-w64 and can be obtained along with x86_64-toolchain MSYS2 MinGW toolchain as described above.
build.shscript to build MinGW dll. In background script does following things:
gccspecfile to link
winstorecompatlibrary before linking to system libraries. Replaces linking with
msvcrt(Desktop Microsoft C runtime) with linking to
msvcr120_app(Visual Studio 2013 UWP platform C runtime).
msvcr120_appis bundled along with installation of MinGW-w64 compiler.
gccto build shared
PureMinGWDLL.dlllibrary with custom flag
-Wl,--dynamicbaseto pass Windows 10 Store Certification Kit security checks.
appcontainer.plscript to modify
PureMinGWDLL.dllbinary. It sets
appcontainerbit flag to be compatible with Windows 10 Store binary requriements.
InvokeMinGWDllUWPdirectory contains Visual Studio 2017 UWP project to PInvoke
PureMinGWDLL.dllshared library and display obtained values on screen. To build just launch
InvokeMinGWDllUWP.slnwith Visual Studio 2017 and run the Build. UWP solution references
Microsoft Visual C++ 2013 Runtime Package for Windows Universalto be bundled into appx package.