We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2607

Summary: Universal App Solution
Product: SDL Reporter: Mattias Cibien <mattias>
Component: *don't know*Assignee: David Ludwig <dll>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: enhancement    
Priority: P2 CC: dll, icculus
Version: HG 2.1   
Hardware: All   
OS: Windows 8   
Attachments: Universal App DLL Solution

Description Mattias Cibien 2014-06-26 07:16:15 UTC
I have actually created a solution file for a Shared App Library under VS2013 that is currently working (except for a missing reference in the Windows 8.1 project which also happens in the Windows 8.1 non-shared).

File is attached and must be dropped in VisualC-WinRT folder.
Comment 1 Mattias Cibien 2014-06-26 07:25:46 UTC
Created attachment 1712 [details]
Universal App DLL Solution
Comment 2 Sam Lantinga 2014-07-08 07:32:42 UTC
David, can you look at this?

Thanks!
Comment 3 David Ludwig 2014-07-08 17:53:57 UTC
This patch seems to duplicate effort already present -- The existing set of Visual C++ project files do work with Universal App projects, although the documentation for setting these up is, admittedly, in need of improvement.  Universal App projects also require "Update 2" of VS 2013, due to the use of "Shared Projects", whereas SDL's current set of project files don't require this, and can work with earlier versions of VS 2013 (in addition to working with the newer Universal App project system).

If it helps, here's how to set up references to a Universal App project, using SDL/WinRT as-is:

1. add the following .vcxproj files, from SDL, to your Visual Studio Solution:
  - VisualC-WinRT/WinRT81-VS2013/SDL-WinRT81.vcxproj
  - VisualC-WinRT/WinPhone81-VS2013/SDL-WinPhone81.vcxproj

2. make your Universal App's "WindowsPhone" project include a reference to the "SDL-WinPhone81" project

3. make your Universal App's "Windows" project include a reference to the "SDL-WinRT81" project

4. make both of your Universal App projects reference SDL's "include" directory, under their Properties page, in Configuration Properties --> C/C++ --> Additional Include Directories.

If this helps, or if you have any questions/comments/concerns about this, please let me know.  I'd like SDL/WinRT to support Universal App projects, but it already seems to do so.  I'm wondering if this is an issue that might be better served by documentation, perhaps NuGet support as well (which has the potential to help manage references, include paths, etc., to SDL/WinRT), rather than adding a new, somewhat-duplicate set of project files.
Comment 4 Ryan C. Gordon 2015-02-19 02:37:19 UTC
(In reply to David Ludwig from comment #3)
> This patch seems to duplicate effort already present

Should we close this bug, then?

--ryan.
Comment 5 David Ludwig 2015-02-19 03:16:50 UTC
Yup, works for me.

Thanks for the patch, Mattias!