From 183ba1cb4cf62e6c4b94f575831e301ef63d480a Mon Sep 17 00:00:00 2001 From: Tobias Taschner Date: Fri, 23 Feb 2018 15:33:22 +0100 Subject: [PATCH] Set NSPrincipalClass to wxNSApplcation for CMake builds too This setting is important for some functionality provided by wxNSApplcation and most importantly without the setting all samples where only shown scaled on high DPI displays. Notice that it was already present in src/osx/carbon/Info.plist.in which is used for the samples in autoconf build. Closes https://github.com/wxWidgets/wxWidgets/pull/743 --- build/cmake/functions.cmake | 1 + samples/Info.plist.in | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 samples/Info.plist.in diff --git a/build/cmake/functions.cmake b/build/cmake/functions.cmake index d3df40bb2b..f0edeac4c3 100644 --- a/build/cmake/functions.cmake +++ b/build/cmake/functions.cmake @@ -636,6 +636,7 @@ function(wx_add_sample name) elseif(APPLE) if(NOT IPHONE) set_target_properties(${target_name} PROPERTIES + MACOSX_BUNDLE_INFO_PLIST "${wxSOURCE_DIR}/samples/Info.plist.in" RESOURCE "${wxSOURCE_DIR}/src/osx/carbon/wxmac.icns") endif() set_target_properties(${target_name} PROPERTIES diff --git a/samples/Info.plist.in b/samples/Info.plist.in new file mode 100644 index 0000000000..69e9c73bd1 --- /dev/null +++ b/samples/Info.plist.in @@ -0,0 +1,36 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + ${MACOSX_BUNDLE_EXECUTABLE_NAME} + CFBundleGetInfoString + ${MACOSX_BUNDLE_INFO_STRING} + CFBundleIconFile + ${MACOSX_BUNDLE_ICON_FILE} + CFBundleIdentifier + ${MACOSX_BUNDLE_GUI_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleLongVersionString + ${MACOSX_BUNDLE_LONG_VERSION_STRING} + CFBundleName + ${MACOSX_BUNDLE_BUNDLE_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + ${MACOSX_BUNDLE_SHORT_VERSION_STRING} + CFBundleSignature + ???? + CFBundleVersion + ${MACOSX_BUNDLE_BUNDLE_VERSION} + CSResourcesFileMapped + + NSHumanReadableCopyright + ${MACOSX_BUNDLE_COPYRIGHT} + NSPrincipalClass + wxNSApplication + +