Commit c26ed62b authored by mathieu _alkama_ m's avatar mathieu _alkama_ m Committed by Gargaj
Browse files

The custom plist is mandatory for mic access

Also remove retina option. It makes no sense since it messes all the scintilla mouse selection and doesnt mirror the resolution selection (by nature).

Fake supporting HiDpi for a better window UI appearance in windowed mode.
parent f9efc7cc
......@@ -26,7 +26,6 @@ endif ()
if (APPLE)
option(BONZOMATIC_TOUCHBAR "Compile with macOS TouchBar support (Xcode 9 or newer required)?" ON)
option(BONZOMATIC_RETINA "Support HiDPI (warning: huge framebuffer, low fps in sight)?" OFF)
endif ()
if (WIN32)
......@@ -463,12 +462,9 @@ if (UNIX AND (NOT APPLE))
set(CMAKE_INSTALL_RPATH "$ORIGIN/../lib")
endif ()
add_executable(${BZC_EXE_NAME} ${BZC_PROJECT_SRCS})
if (APPLE AND BONZOMATIC_RETINA)
# Add special plist to enable Retina display support
set_target_properties(${BZC_EXE_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/data/macosx/MacOSXBundleInfo.plist.in)
endif ()
# Set compiler specific flags
if (APPLE)
set_target_properties(${BZC_EXE_NAME} PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/data/macosx/MacOSXBundleInfo.plist.in)
if (BONZOMATIC_TOUCHBAR)
target_compile_definitions(${BZC_EXE_NAME} PUBLIC -DBONZOMATIC_ENABLE_TOUCHBAR)
endif ()
......
......@@ -26,20 +26,12 @@
<string>????</string>
<key>CFBundleVersion</key>
<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
<key>NSMainNibFile</key>
<string>appnib</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>CSResourcesFileMapped</key>
<true/>
<key>LSRequiresCarbon</key>
<true/>
<key>LSMinimumSystemVersion</key>
<string>10.6.4</string>
<key>NSMicrophoneUsageDescription</key>
<string>Bonzomatic requires microphone access for the FFT textures to work.</string>
</dict>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment