Skip to content

Commit 7f37e70

Browse files
authored
Allows Retina hi res enabled via App or Project.xcconfig (openframeworks#7971)
1 parent f9e343b commit 7f37e70

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

scripts/templates/osx/Project.xcconfig

+4-1
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,15 @@ ICON_FILE = $(OF_PATH)/libs/openFrameworksCompiled/project/osx/$(ICON_NAME)
6969
//OF_CORE_LIBS = $(inherited) $(LIB_BOOST_FS) $(LIB_BOOST_SYSTEM)
7070
//OF_CORE_HEADERS = $(inherited) $(HEADER_BOOST)
7171

72+
HIGH_RESOLUTION_CAPABLE = NO
73+
7274
// Optional include to keep any permanent settings as CODE_SIGN_IDENTITY.
7375
#include? "App.xcconfig"
7476

75-
//FOR AV ENGINE SOUND PLAYER UNCOMMENT TWO LINES BELOW
77+
//FOR AV ENGINE SOUND PLAYER UNCOMMENT THREE LINES BELOW
7678
//OF_NO_FMOD=1
7779
//USER_PREPROCESSOR_DEFINITIONS="OF_NO_FMOD=1"
80+
//LIB_FMOD=""
7881
GCC_PREPROCESSOR_DEFINITIONS=$(inherited) $(USER_PREPROCESSOR_DEFINITIONS)
7982

8083
OTHER_CFLAGS = $(OF_CORE_CFLAGS)

scripts/templates/osx/openFrameworks-Info.plist

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,30 @@
33
<plist version="1.0">
44
<dict>
55
<key>CFBundleDevelopmentRegion</key>
6-
<string>$(DEVELOPMENT_LANGUAGE)</string>
6+
<string>${DEVELOPMENT_LANGUAGE}</string>
77
<key>CFBundleExecutable</key>
8-
<string>$(EXECUTABLE_NAME)</string>
8+
<string>${EXECUTABLE_NAME}</string>
99
<key>CFBundleIconFile</key>
10-
<string>$(ICON_NAME)</string>
10+
<string>${ICON_NAME}</string>
1111
<key>CFBundleIdentifier</key>
12-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
12+
<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
1414
<string>6.0</string>
1515
<key>CFBundleName</key>
16-
<string>$(TARGET_NAME)</string>
16+
<string>${TARGET_NAME}</string>
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleShortVersionString</key>
22-
<string>$(MARKETING_VERSION)</string>
22+
<string>${MARKETING_VERSION}</string>
2323
<key>CFBundleVersion</key>
24-
<string>$(CURRENT_PROJECT_VERSION)</string>
24+
<string>${CURRENT_PROJECT_VERSION}</string>
2525
<key>NSCameraUsageDescription</key>
2626
<string>This app needs to access the camera</string>
2727
<key>NSMicrophoneUsageDescription</key>
2828
<string>This app needs to access the microphone</string>
2929
<key>NSHighResolutionCapable</key>
30-
<false/>
30+
<string>${HIGH_RESOLUTION_CAPABLE}</string>
3131
</dict>
3232
</plist>

0 commit comments

Comments
 (0)