Improve WXGTK build on Windows with CMake
This commit is contained in:
@@ -165,6 +165,25 @@ if(wxUSE_GUI)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# WXGTK checks, match include/wx/gtk/chkconf.h
|
||||
if(WXGTK)
|
||||
wx_option_force_value(wxUSE_METAFILE OFF)
|
||||
|
||||
if(WIN32)
|
||||
wx_option_force_value(wxUSE_CAIRO ON)
|
||||
wx_option_force_value(wxUSE_ACCESSIBILITY OFF)
|
||||
wx_option_force_value(wxUSE_OWNER_DRAWN OFF)
|
||||
endif()
|
||||
|
||||
if(NOT UNIX)
|
||||
wx_option_force_value(wxUSE_WEBVIEW OFF)
|
||||
wx_option_force_value(wxUSE_MEDIACTRL OFF)
|
||||
wx_option_force_value(wxUSE_UIACTIONSIMULATOR OFF)
|
||||
wx_option_force_value(wxUSE_OPENGL OFF)
|
||||
set(wxUSE_GLCANVAS OFF)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# extra dependencies
|
||||
if(wxUSE_OPENGL)
|
||||
find_package(OpenGL)
|
||||
@@ -183,6 +202,14 @@ if(wxUSE_GUI)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(wxUSE_PRIVATE_FONTS AND WXGTK)
|
||||
find_package(Fontconfig)
|
||||
if(NOT FONTCONFIG_FOUND)
|
||||
message(WARNING "Fontconfig not found, Private fonts won't be available")
|
||||
wx_option_force_value(wxUSE_PRIVATE_FONTS OFF)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(wxUSE_MEDIACTRL AND UNIX AND NOT APPLE AND NOT WIN32)
|
||||
find_package(GStreamer)
|
||||
if(NOT GSTREAMER_FOUND)
|
||||
|
Reference in New Issue
Block a user