ELSE(WIN32)
MESSAGE ( "===============Manual wx-config 3 EED =======================")
+
+##2018-08-28
+if(APPLE)
SET(wxWidgets_CONFIG_EXECUTABLE /usr/bin/wx-config-3.0 CACHE STRING wxWidgets_CONFIG_EXECUTABLE FORCE)
SET(wxWidgets_wxrc_EXECUTABLE /usr/bin/wxrc-3.0 CACHE STRING wxWidgets_wxrc_EXECUTABLE FORCE)
+elseif(UNIX)
+ SET(wxWidgets_CONFIG_EXECUTABLE /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/3.0/bin/wx-config CACHE STRING wxWidgets_CONFIG_EXECUTABLE FORCE)
+ SET(wxWidgets_wxrc_EXECUTABLE /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxGTK/3.0/bin/wxrc-3.0 CACHE STRING wxWidgets_wxrc_EXECUTABLE FORCE)
+endif()
+
# MESSAGE ( "===============Manual wx-config 2 EED =======================")
# SET(wxWidgets_CONFIG_EXECUTABLE /usr/bin/wx-config-2.0 CACHE STRING wxWidgets_CONFIG_EXECUTABLE FORCE)
SET(WXAUILIBS "aui")
# LG : These options should be set by the user at top level of crea
- FIND_PACKAGE(wxWidgets COMPONENTS base core adv html
+ FIND_PACKAGE(wxWidgets REQUIRED COMPONENTS base core adv html
${WXAUILIBS}
${WXGLCANVASLIBS})
#
ENDIF(NOT wxWidgets_FOUND)
ENDIF(WIN32)
+MESSAGE ( "EEEE")
ENDMACRO(CREA_FIND_WXWIDGETS)
"${wxWidgets_LIB_DIR}/libwxmsw30u_html.a"
"${wxWidgets_LIB_DIR}/libwxmsw30u_adv.a" )
ELSE(WIN32)
+
+
## # GTK2
## INCLUDE_DIRECTORIES(${GTK2_INCLUDE_DIRS})
## LINK_DIRECTORIES(${GTK2_LIBRARY_DIRS})
LINK_LIBRARIES(${GTK3_LIBRARIES} )
# WX
-
# INCLUDE( ${GTK_USE_FILE} )
INCLUDE( ${wxWidgets_USE_FILE} )
MARK_AS_ADVANCED(wxWidgets_CONFIG_EXECUTABLE)
## ${GTK2_LIBRARIES}
${GTK3_LIBRARIES}
#${GTK_LIBRARIES}
-
- ${wxWidgets_LIBRARIES}
+ ${wxWidgets_LIBRARIES}
)
ENDIF(WIN32)
#elif __APPLE__
// ------ Apple
//TODO: implementation for apple
+ static std::string TEXT_EDITOR = "open -e";
#else
static std::string TEXT_EDITOR = "gedit";
#endif
#elif __APPLE__
// ------ Apple
//TODO: implementation for apple
+ static std::string FILE_EXPLORER = "open ";
#else
static std::string FILE_EXPLORER = "nautilus";
#endif
#elif __APPLE__
// ------ Apple
//TODO: implementation for apple
+ static std::string TERMINAL = "open -a Terminal ";
#else
static std::string TERMINAL = "gnome-terminal";
#endif
<< " to " << TypeName(target_type) << std::endl);
void* target_pointer = 0;
-#if __GNUC__ > 3 || \
- (__GNUC__ == 3 && (__GNUC_MINOR__ > 1 || \
- (__GNUC_MINOR__ == 1 && \
- __GNUC_PATCHLEVEL__ > 0)))
-
- const abi::__class_type_info* targetTI =
- (const abi::__class_type_info *)( &(target_type));
+
+
+#if __APPLE__
+//EED2018-08-28 Be careful #include <typeinfo> is not complete (CommandLine mechanisme Xcode)
+printf("EED creaRTTI run_time_up_or_down_cast 2018-08-28 Warnning !!!! Apple cast missing __do_upcast ")
+ return source_pointer;
+#else
+ #if __GNUC__ > 3 || \
+ (__GNUC__ == 3 && (__GNUC_MINOR__ > 1 || \
+ (__GNUC_MINOR__ == 1 && \
+ __GNUC_PATCHLEVEL__ > 0)))
+ const abi::__class_type_info* targetTI = (const abi::__class_type_info *)( &(target_type));
creaDebugMessage("info",7," * source = "<<source_pointer<<std::endl);
-
void* tmp = source_pointer;
if (source_type.__do_upcast(targetTI,&tmp))
- {
- target_pointer = tmp;
- }
- else
- {
- creaDebugMessage("info",7,
- " * upcast failed : trying dynamic down cast"
- <<std::endl);
- const abi::__class_type_info* sourceTI =
- (const abi::__class_type_info *)( &(source_type));
-
-
+ {
+ target_pointer = tmp;
+ } else {
+ creaDebugMessage("info",7, " * upcast failed : trying dynamic down cast" <<std::endl);
+ const abi::__class_type_info* sourceTI = (const abi::__class_type_info *)( &(source_type));
target_pointer = abi::__dynamic_cast(source_pointer,
sourceTI,
targetTI,
-1);
}
-
creaDebugMessage("info",7," * target = "<<target_pointer<<std::endl);
-
-#else
+ #else
creaWarning("run_time_up_or_down_cast not impl. on Win : to do");
// target_pointer = __RTDynamicCast(source_pointer, 0, source_type, target_type, 0);
-#endif
+ #endif
return target_pointer;
+#endif
+
+
}