Tools and OS X

Nymferret

06-05-2010 00:19:17

I've managed to build MyGUI from the svn successfully, but have a few questions about the tools.
I've had a look around but not found a lot of info, i was just wondering are the tools supposed to be command line tools or am i doing something wrong in cmake. And if they are supposed to be command line, is there any plans in the future to make self contained apps?

Btw great job devs nice to see you supporting mac :D

Altren

06-05-2010 20:10:00

Er, we don't have command line tools in MyGUI.
There's only three tools (Layout editor,Font and Image Viewers) and all this tools is self contained applications.

Nymferret

07-05-2010 02:06:39

Right, so i must be doing something wrong because when i build the examples and tools, all i get are 'command line tools'

Calder

09-05-2010 14:25:19

No, I understand what you mean. They're raw executables rather than Mac OS X Application Bundles. I was going to fix this a while back, but my time got kidnapped by real life and I haven't gotten back to it since. I'll take another look, and if it's not too involved I could probably hack it together today.

EDIT: This patch should work:

Index: CMake/Utils/MyGUIConfigTargets.cmake
===================================================================
--- CMake/Utils/MyGUIConfigTargets.cmake (revision 2992)
+++ CMake/Utils/MyGUIConfigTargets.cmake (working copy)
@@ -148,7 +148,7 @@
if (${SOLUTIONFOLDER} STREQUAL "Wrappers")
add_library(${PROJECTNAME} ${MYGUI_LIB_TYPE} ${HEADER_FILES} ${SOURCE_FILES})
else ()
- add_executable(${PROJECTNAME} WIN32 ${HEADER_FILES} ${SOURCE_FILES})
+ add_executable(${PROJECTNAME} ${MYGUI_EXEC_TYPE} ${HEADER_FILES} ${SOURCE_FILES})
endif ()
set_target_properties(${PROJECTNAME} PROPERTIES PROJECT_GROUP ${SOLUTIONFOLDER})

Index: CMake/ConfigureBuild.cmake
===================================================================
--- CMake/ConfigureBuild.cmake (revision 2992)
+++ CMake/ConfigureBuild.cmake (working copy)
@@ -13,13 +13,20 @@

set(MYGUI_STATIC_LIB 0)

-
if (MYGUI_STATIC)
set(MYGUI_STATIC_LIB 1)
add_definitions(-DMYGUI_STATIC)
endif()


+# determine specific executable type
+if (APPLE)
+ set(MYGUI_EXEC_TYPE MACOSX_BUNDLE)
+elseif (WIN32)
+ set(MYGUI_EXEC_TYPE WIN32)
+endif ()
+
+
# Create the pkg-config package files on Unix systems
if (UNIX)
set(MYGUI_LIB_SUFFIX "")

Altren

09-05-2010 19:21:53

Thank you for patch. I applied it.
I'm not sure, but as far as I remember some users was able to run MyGUI Tools and Demos on OS X. Just to let you know.