Skip to content

Commit

Permalink
Allows Retina hi res enabled via App or Project.xcconfig (#7971)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitre committed May 18, 2024
1 parent f9e343b commit 7f37e70
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion scripts/templates/osx/Project.xcconfig
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,15 @@ ICON_FILE = $(OF_PATH)/libs/openFrameworksCompiled/project/osx/$(ICON_NAME)
//OF_CORE_LIBS = $(inherited) $(LIB_BOOST_FS) $(LIB_BOOST_SYSTEM)
//OF_CORE_HEADERS = $(inherited) $(HEADER_BOOST)

HIGH_RESOLUTION_CAPABLE = NO

// Optional include to keep any permanent settings as CODE_SIGN_IDENTITY.
#include? "App.xcconfig"

//FOR AV ENGINE SOUND PLAYER UNCOMMENT TWO LINES BELOW
//FOR AV ENGINE SOUND PLAYER UNCOMMENT THREE LINES BELOW
//OF_NO_FMOD=1
//USER_PREPROCESSOR_DEFINITIONS="OF_NO_FMOD=1"
//LIB_FMOD=""
GCC_PREPROCESSOR_DEFINITIONS=$(inherited) $(USER_PREPROCESSOR_DEFINITIONS)

OTHER_CFLAGS = $(OF_CORE_CFLAGS)
Expand Down
16 changes: 8 additions & 8 deletions scripts/templates/osx/openFrameworks-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,30 @@
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<string>${DEVELOPMENT_LANGUAGE}</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFile</key>
<string>$(ICON_NAME)</string>
<string>${ICON_NAME}</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(TARGET_NAME)</string>
<string>${TARGET_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<string>${MARKETING_VERSION}</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<string>${CURRENT_PROJECT_VERSION}</string>
<key>NSCameraUsageDescription</key>
<string>This app needs to access the camera</string>
<key>NSMicrophoneUsageDescription</key>
<string>This app needs to access the microphone</string>
<key>NSHighResolutionCapable</key>
<false/>
<string>${HIGH_RESOLUTION_CAPABLE}</string>
</dict>
</plist>

0 comments on commit 7f37e70

Please sign in to comment.