Loading .DS_Store 0 → 100644 +10 KiB File added.No diff preview for this file type. View file editor/CMakeLists.txt +27 −0 Changes for editor/CMakeLists.txt: 27 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -78,3 +78,30 @@ add_subdirectory(widgets) install(TARGETS blogi-editor DESTINATION bin) install(FILES blogi-editor.desktop DESTINATION share/applications) install(FILES ${CMAKE_SOURCE_DIR}/data/logo_runes.svg DESTINATION share/icons/hicolor/scalable/apps RENAME blogi-editor.svg) if(APPLE) set_target_properties(blogi-editor PROPERTIES MACOSX_BUNDLE TRUE MACOSX_BUNDLE_GUI_IDENTIFIER "de.tuxist.blogi-editor" MACOSX_BUNDLE_BUNDLE_NAME "Blogi Editor" MACOSX_BUNDLE_BUNDLE_VERSION "1.0.0" MACOSX_BUNDLE_SHORT_VERSION_STRING "1.0" ) # Copy widget plugins into the app bundle after build set(_webedit_plugins accordion article button container customhtml grid image list popup section slider surveywidget table textbox video ) set(_webedit_dest "$<TARGET_BUNDLE_DIR:blogi-editor>/Contents/PlugIns/webedit") add_custom_command(TARGET blogi-editor POST_BUILD COMMAND ${CMAKE_COMMAND} -E make_directory "${_webedit_dest}" ) foreach(_wplug ${_webedit_plugins}) add_custom_command(TARGET blogi-editor POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different "$<TARGET_FILE:${_wplug}>" "${_webedit_dest}/" ) endforeach() endif() editor/main.cpp +3 −1 Changes for editor/main.cpp: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -72,7 +72,9 @@ int main(int argc, char *argv[]) { QString pluginDir = parser.value(pluginDirOpt); if (pluginDir.isEmpty()) { #ifdef _WIN32 #ifdef __APPLE__ pluginDir = QCoreApplication::applicationDirPath() + "/../PlugIns/webedit"; #elif defined(_WIN32) pluginDir = QCoreApplication::applicationDirPath() + "/../lib/blogi/plugins/webedit"; #else pluginDir = WEBEDIT_PLUGIN_DIR; Loading Loading
editor/CMakeLists.txt +27 −0 Changes for editor/CMakeLists.txt: 27 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -78,3 +78,30 @@ add_subdirectory(widgets) install(TARGETS blogi-editor DESTINATION bin) install(FILES blogi-editor.desktop DESTINATION share/applications) install(FILES ${CMAKE_SOURCE_DIR}/data/logo_runes.svg DESTINATION share/icons/hicolor/scalable/apps RENAME blogi-editor.svg) if(APPLE) set_target_properties(blogi-editor PROPERTIES MACOSX_BUNDLE TRUE MACOSX_BUNDLE_GUI_IDENTIFIER "de.tuxist.blogi-editor" MACOSX_BUNDLE_BUNDLE_NAME "Blogi Editor" MACOSX_BUNDLE_BUNDLE_VERSION "1.0.0" MACOSX_BUNDLE_SHORT_VERSION_STRING "1.0" ) # Copy widget plugins into the app bundle after build set(_webedit_plugins accordion article button container customhtml grid image list popup section slider surveywidget table textbox video ) set(_webedit_dest "$<TARGET_BUNDLE_DIR:blogi-editor>/Contents/PlugIns/webedit") add_custom_command(TARGET blogi-editor POST_BUILD COMMAND ${CMAKE_COMMAND} -E make_directory "${_webedit_dest}" ) foreach(_wplug ${_webedit_plugins}) add_custom_command(TARGET blogi-editor POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different "$<TARGET_FILE:${_wplug}>" "${_webedit_dest}/" ) endforeach() endif()
editor/main.cpp +3 −1 Changes for editor/main.cpp: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -72,7 +72,9 @@ int main(int argc, char *argv[]) { QString pluginDir = parser.value(pluginDirOpt); if (pluginDir.isEmpty()) { #ifdef _WIN32 #ifdef __APPLE__ pluginDir = QCoreApplication::applicationDirPath() + "/../PlugIns/webedit"; #elif defined(_WIN32) pluginDir = QCoreApplication::applicationDirPath() + "/../lib/blogi/plugins/webedit"; #else pluginDir = WEBEDIT_PLUGIN_DIR; Loading