Skip to content

Commit

Permalink
Merge pull request #6397 from spycrab/qt_osx_icon
Browse files Browse the repository at this point in the history
Qt/OSX: Fix icon
  • Loading branch information
Helios747 committed Feb 24, 2018
2 parents 15b2327 + 7f3c1a2 commit 941ddfb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
File renamed without changes.
4 changes: 4 additions & 0 deletions Source/Core/DolphinQt2/CMakeLists.txt
Expand Up @@ -173,6 +173,10 @@ if(APPLE)
target_sources(${DOLPHINQT2_BINARY} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/qt.conf")
set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/qt.conf" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)

# Copy icon into the bundle
target_sources(${DOLPHINQT2_BINARY} PRIVATE "${CMAKE_SOURCE_DIR}/Data/Dolphin.icns")
set_source_files_properties("${CMAKE_SOURCE_DIR}/Data/Dolphin.icns" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)

# Copy Qt plugins into the bundle
get_target_property(qtcocoa_location Qt5::QCocoaIntegrationPlugin LOCATION)
target_sources(${DOLPHINQT2_BINARY} PRIVATE "${qtcocoa_location}")
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DolphinQt2/Info.plist.in
Expand Up @@ -28,7 +28,7 @@
<key>CFBundleExecutable</key>
<string>dolphin-emu-qt2</string>
<key>CFBundleIconFile</key>
<string>Resources/Dolphin.icns</string>
<string>Dolphin.icns</string>
<key>CFBundleIdentifier</key>
<string>org.dolphin-emu.dolphin</string>
<key>CFBundleDevelopmentRegion</key>
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/CMakeLists.txt
Expand Up @@ -93,7 +93,7 @@ set(LIBS

if(APPLE)
# Add resource files to application bundle.
set(RESOURCES resources/Dolphin.icns)
set(RESOURCES "${CMAKE_SOURCE_DIR}/Data/Dolphin.icns")
list(APPEND SRCS ${RESOURCES})
set_source_files_properties(${RESOURCES} PROPERTIES
MACOSX_PACKAGE_LOCATION Resources)
Expand Down

0 comments on commit 941ddfb

Please sign in to comment.