Skip to content
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
wants to merge 22 commits into from
Closed

[winrt] implement winrt target and run app #478

wants to merge 22 commits into from

Conversation

madrazo
Copy link
Contributor

@madrazo madrazo commented Jun 10, 2017

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)

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)
@madrazo
Copy link
Contributor Author

madrazo commented Jun 20, 2017

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.
EDIT: done

Reverted WindowsPlatform.hx. Make Appx with -Dappx
Based on Android's appPermission. Includes optional namespace parameter
Use context instead of localDefines
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.
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
@madrazo
Copy link
Contributor Author

madrazo commented Jul 19, 2017

fixed sound, added -Dxbox flag to create an Xbox Appx (needs testing on an Xbox).

@madrazo
Copy link
Contributor Author

madrazo commented Jul 20, 2017

closed in favor of #487

@madrazo madrazo closed this Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant