-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[winrt] implement winrt target and run app #478
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiles and runs DisplayingABitmap (nme winrt). Uses NME_ANGLE, static_link and ABI=-ZW
It needs to use a Company ID without spaces. Fixes 01-Simple sample run.
Program compiles and runs but shaders do not. Seems to be the same issue for windows -DNME_ANGLE. I also tried setting the values of android and ios in Main.hx
Fixes winrt with HXCPP_M64 (still working with x86)
I'm adding Appx (like Androis's APK) build. I'm thinking on adding a WinrtPlatform.hx and leave WindowsPlatform.hx as it where to be more clear. |
Reverted WindowsPlatform.hx. Make Appx with -Dappx
Based on Android's appPermission. Includes optional namespace parameter
Use context instead of localDefines
also fix previous commit
It's ok adding FreeSerif.ttf to templates? or maybe a lighter font, or copy one from Windows System?
adding the 2005 font files, instead of the one of 2012, just because it is lighter
much lighter than the GNU fonts. Includes LICENCE text
Using DirectDraw to retrieve the font file of the system. Available fonts are listed in https://docs.microsoft.com/en-us/windows/uwp/style/fonts
nme.text.Font.enumerateFonts(true) gets a list of the available fonts in the (winrt) system. Reference: https://msdn.microsoft.com/en-us/library/windows/desktop/dd756583(v=vs.85).aspx
Use the compilation directory (haxeDir) to prepare the Appx, instead of the executable directory (applicationDirectory). Fix including pri file on appx.
When compiling with nme winrt -Dappx , a certificate is created and applied. An auxiliar powershell and bat scripts are used to run script on elevated mode.
instead of calling a batch file
use the certificate tag, for example <certificate path="Export/winrt/NME_Example.pfx" password="nmeexample" /> in addition with -Dappx flag. If the certificate does not exits in the path, a new one is attempted to be created there.
Requires sdl-mixer change: native-toolkit/libsdl-mixer#1
nme winrt -Dxbox sets x64, appx and target device to xbox. packageDependency tag from xml accept "uwp" as an alias for "winrt" nme target (e.g. "nme uwp -Dxbox" )
fixes midi
fixed sound, added -Dxbox flag to create an Xbox Appx (needs testing on an Xbox). |
closed in favor of #487 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Compiles and runs DisplayingABitmap with
nme winrt
. Uses NME_ANGLE,static_link and ABI=-ZW (maybe should be the default ABI for winrt static link in hxcpp)
It may work with other samples since resource pri is created dynamically and the AppxManifest uses nmml variables however font, sound, etc.. needs to be fixed
Used visual studio 2015 update 3.
Needs: recompile tools, git versions of native-toolkit's png, angle, and sdl (with native-toolkit/libsdl#10), 10.0.14393.0 or 10.0.15063.400 Windows SDKs (or modify the templates)