Page 1 of 1

[Announcement] CMake build platforms (WinRT/WP8/iOS/NACL)

Posted: Thu Feb 07, 2013 9:35 pm
by Wolfmanfx
I refactored the find_package for directX and seperated it for DX9/DX11.
After that i also removed the following options from cmake
  • OGRE_BUILD_PLATFORM_NACL
    OGRE_BUILD_PLATFORM_WINRT
    OGRE_BUILD_PLATFORM_WINDOWS_PHONE
so its more streamlined with the iOS build where you also have to specify the build platform manually.
You have to specify that value BEFORE you configure cmake (when using cmake gui) or pass it via the command line
  • Command line:
    -DOGRE_BUILD_PLATFORM_WINRT=TRUE

    CMake-GUI:
    cmake_build_platform.jpg
    cmake_build_platform.jpg (29.04 KiB) Viewed 8940 times
---
Atm the following platforms needs to be specified manually:
  • OGRE_BUILD_PLATFORM_APPLE_IOS
    OGRE_BUILD_PLATFORM_NACL
    OGRE_BUILD_PLATFORM_WINRT
    OGRE_BUILD_PLATFORM_WINDOWS_PHONE
---
Regarding DX11 we use the installable SDK as default for WinRT/WP8 you have specify the build platform as described before. DX9 always use the installable SDK.

Re: [Announcement] CMake build platforms (WinRT/WP8/iOS/NACL

Posted: Thu Mar 14, 2013 6:32 pm
by simedj
Is this in effect for 1.8 branch as well, or 1.9 only? If 1.8, what Ogre version is it... I have 1.8.2 for iOS already but that predates your post.

When you say do it BEFORE configuring, when I am doing a brand new build what order is it? The first "configure" asks me which compiler to use, do I add the option before or after that?

Re: [Announcement] CMake build platforms (WinRT/WP8/iOS/NACL

Posted: Thu Mar 14, 2013 6:41 pm
by masterfalcon
Support for OGRE_BUILD_PLATFORM_APPLE_IOS already exists in 1.8. You need to add that option before you configure with CMake.

Re: [Announcement] CMake build platforms (WinRT/WP8/iOS/NACL

Posted: Thu Mar 14, 2013 6:49 pm
by simedj
Hmm, there was a checkbox for it when I last built (1.8.2) so I guess it's newer than that. I'll have to watch out next time I update on the Mac.

It's not 100% clear to me how changing things to require manually hacking the CMake setup is slicker than a nice set of options I turn on/off ;)

Re: [Announcement] CMake build platforms (WinRT/WP8/iOS/NACL

Posted: Wed Apr 03, 2013 10:09 am
by jacmoe
@Simedj: those options needs to be set before the configuration stage, so it can't be a 'nice set of options'. No big deal: add the option before hitting 'configure' for the first time.
CMake works in mysterious ways sometimes.