[CMake] Generate Xcode projects on a Windows environment
We need to generate Xcode projects but from a Windows environment. CMake does the job well on a MAC OS environment. However, it can't do it on a Windows environment. I wonder if there are some technical reasons to it or if it is just a choice made by the CMake development team since this use case is outside the scope of CMake use. I quickly looked at the source code of CMake and saw that, for the "Mac" version, the version.plist file of Xcode is read to know the installed version. Then, this is used to generate the good version of the project. Is it the only technical reason why Xcode projects must be generated on a Mac ? Thanks. J Hertout -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Generate Xcode projects on a Windows environment
2012/1/4 Hertout Julien : > We need to generate Xcode projects but from a Windows environment. Is it possible to know why you need that? CMake generated project files are not meant to be relocatable and they depend on CMake as well So generating a project file on a host that is not the one you'll be working on has good chance to fail at some point. So what is your use case for that? -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Generate Xcode projects on a Windows environment
Le 04/01/12 12:54, Eric Noulard a écrit : 2012/1/4 Hertout Julien: We need to generate Xcode projects but from a Windows environment. Is it possible to know why you need that? CMake generated project files are not meant to be relocatable and they depend on CMake as well So generating a project file on a host that is not the one you'll be working on has good chance to fail at some point. So what is your use case for that? Thanks for your response. Is it possible to know why you need that? Of course. We develop software to help to develop applications for mobile phones. From a source code written in Java with our APIs we generate projects for JavaME, Android, Blackberry, WP7 and (almost) for iPhone. For JavaME, Android and Blackberry we generate Java project for Eclipse and for WP7 a Visual Studio for Windows Phone project. We want to generate a Xcode project for iPhone. Actually all the source code are generated by our tool but not the Xcode project. It is where CMake can help. Except for iPhone, all the projects can be generated from any OS (even if the project for WP7 cannot be open from a Mac). It is a feature we propose : user just have to push a button to have all its projects. Then, to build or modify the projects, each project can be copied or sent to another computer. CMake can be a way to quickly generate the project from the sources we generate for iPhone (moreover, it is quite difficult to manualy generate a XCode project). However if you say that the generated project files are not meant to be relocable, we might think to do it in an other way or to adapt our product. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Generate Xcode projects on a Windows environment
2012/1/4 Hertout Julien : > > Is it possible to know why you need that? > > Of course. > We develop software to help to develop applications for mobile phones. From > a source code written in Java with our APIs we generate projects for JavaME, > Android, Blackberry, WP7 and (almost) for iPhone. For JavaME, Android and > Blackberry we generate Java project for Eclipse and for WP7 a Visual Studio > for Windows Phone project. We want to generate a Xcode project for iPhone. > Actually all the source code are generated by our tool but not the Xcode > project. It is where CMake can help. Except for iPhone, all the projects can > be generated from any OS (even if the project for WP7 cannot be open from a > Mac). It is a feature we propose : user just have to push a button to have > all its projects. Then, to build or modify the projects, each project can be > copied or sent to another computer. Ok I see. > CMake can be a way to quickly generate the project from the sources we > generate for iPhone (moreover, it is quite difficult to manualy generate a > XCode project). However if you say that the generated project files are not > meant to be relocable, we might think to do it in an other way or to adapt > our product. I let people with more experience than me with XCode, iphone & Co. comment on that. However, a general rule with CMake is to consider that cmake itself becomes a requirement of your build system. With CMake (at least currently) the developer/user cannot work without CMake if the project (makefiles, IDE project files (Visual Studio, XCode, Eclipse) has been generated with it. see e.g. http://www.cmake.org/Wiki/CMake_FAQ#Why_does_CMake_use_full_paths.2C_or_can_I_copy_my_build_tree.3F or http://www.cmake.org/Bug/view.php?id=11095 -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] Generate Xcode projects on a Windows environment
Le 04/01/12 16:16, Eric Noulard a écrit : However, a general rule with CMake is to consider that cmake itself becomes a requirement of your build system. With CMake (at least currently) the developer/user cannot work without CMake if the project (makefiles, IDE project files (Visual Studio, XCode, Eclipse) has been generated with it. see e.g. http://www.cmake.org/Wiki/CMake_FAQ#Why_does_CMake_use_full_paths.2C_or_can_I_copy_my_build_tree.3F or http://www.cmake.org/Bug/view.php?id=11095 Ok, thanks for your response and the links. It shows me another limitation using CMake the way I wanted to. It is clearer for me now. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake