aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtGui
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2010-05-19 14:20:18 -0300
committerRenato Filho <renato.filho@openbossa.org>2010-05-19 17:39:56 -0300
commitb830e6696627e1c740e7f93f7978c604a59ee7ac (patch)
tree7d375d14693b6d5b1530d6de9e4fbbc31ef4526f /PySide/QtGui
parent101a3f0e33a747e0627acb2429c01acac9a88798 (diff)
Implemented SO detection support.
Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>, Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'PySide/QtGui')
-rw-r--r--PySide/QtGui/CMakeLists.txt11
1 files changed, 3 insertions, 8 deletions
diff --git a/PySide/QtGui/CMakeLists.txt b/PySide/QtGui/CMakeLists.txt
index 970785a36..f89e1abdf 100644
--- a/PySide/QtGui/CMakeLists.txt
+++ b/PySide/QtGui/CMakeLists.txt
@@ -33,8 +33,7 @@ macro(CHECK_QT_GUI_MACRO macro_display_name qt_macro module_sources global_sourc
endif()
endmacro(CHECK_QT_GUI_MACRO)
-if(Q_WS_X11)
- set(AUTO_OS "X11")
+if(ENABLE_X11)
set(MODULE_NAME "x11")
set(SPECIFIC_OS_FILES
${CMAKE_CURRENT_BINARY_DIR}/PySide/QtGui/qx11info_wrapper.cpp
@@ -49,16 +48,12 @@ if(Q_WS_X11)
)
endif(Q_WS_MAEMO_5)
-elseif(Q_WS_MAC)
- set(AUTO_OS "MAC")
+elseif(ENABLE_MAC)
set(MODULE_NAME "mac")
set(SPECIFIC_OS_FILES
)
-else()
- message(FATAL_ERROR "OS not supported")
-endif(Q_WS_X11)
+endif(ENABLE_X11)
-message(STATUS "Detected OS: ${AUTO_OS}")
if (${QT_VERSION_MAJOR} EQUAL 4 AND ${QT_VERSION_MINOR} LESS 6)
set (QtGui_46_SRC )