Commit 67357259 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Fix build of the quicklook plugin

parent ecb2a3e0
This diff is collapsed.
# Krita-QuickLook
QuickLook Generator plugin for .kra and .ora files.
This generator takes the preview.png image and uses it as the thumbnail image and the mergedimage.png file as the preview image. On files created with older versions of Krita that do not have the mergedimage.png file, QuickLook will simply fall back to using the thumbnail image instead.
# Installing
Place the generator in the `/Library/QuickLook` folder.
If you package Krita 3.0, you can include the generator file in the directory `krita.app/Contents/Library/QuickLook`. Be sure to reset QuickLook with `qlmanage -r` and `qlmanage -r cache`. If the changes don't happen right away, `killall Finder` and ensure that the app you put the generator in is the default app for opening .kra files.
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:kritaquicklook.xcodeproj">
</FileRef>
</Workspace>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>E3E24D36-805E-4EB4-AB6F-CCF8DE1EC9DF</string>
<key>IDESourceControlProjectName</key>
<string>Krita</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>A5B8AD5391A8194BF497FF65F2909CBC9A9EB430</key>
<string>https://github.com/Algorithmus/Krita-QuickLook</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>Krita.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>A5B8AD5391A8194BF497FF65F2909CBC9A9EB430</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/Algorithmus/Krita-QuickLook</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>A5B8AD5391A8194BF497FF65F2909CBC9A9EB430</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>A5B8AD5391A8194BF497FF65F2909CBC9A9EB430</string>
<key>IDESourceControlWCCName</key>
<string>Krita</string>
</dict>
</array>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>28DD4631-F598-46F8-A5D9-6D5A4C867DCB</string>
<key>IDESourceControlProjectName</key>
<string>kritaquicklook</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>A5B8AD5391A8194BF497FF65F2909CBC9A9EB430</key>
<string>https://github.com/algorithmus/krita-quicklook.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>kritaquicklook.xcodeproj</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>A5B8AD5391A8194BF497FF65F2909CBC9A9EB430</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/algorithmus/krita-quicklook.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>111</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>A5B8AD5391A8194BF497FF65F2909CBC9A9EB430</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>A5B8AD5391A8194BF497FF65F2909CBC9A9EB430</string>
<key>IDESourceControlWCCName</key>
<string>krita-quicklook</string>
</dict>
</array>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "1"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "../ZipArchive/ZipArchive.h"
timestampString = "470320688.718299"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "85"
endingLineNumber = "85"
landmarkName = "@interface ZipArchive"
landmarkType = "2">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0620"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E13E64EA1C08579B0062F932"
BuildableName = "kritaquicklook.qlgenerator"
BlueprintName = "kritaquicklook"
ReferencedContainer = "container:kritaquicklook.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E13E64EA1C08579B0062F932"
BuildableName = "kritaquicklook.qlgenerator"
BlueprintName = "kritaquicklook"
ReferencedContainer = "container:kritaquicklook.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E13E64EA1C08579B0062F932"
BuildableName = "kritaquicklook.qlgenerator"
BlueprintName = "kritaquicklook"
ReferencedContainer = "container:kritaquicklook.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>Krita.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>kritaquicklook.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>E13E64EA1C08579B0062F932</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
This diff is collapsed.
# Krita-QuickLook
QuickLook Generator plugin for .kra and .ora files.
This generator takes the preview.png image and uses it as the thumbnail image and the mergedimage.png file as the preview image. On files created with older versions of Krita that do not have the mergedimage.png file, QuickLook will simply fall back to using the thumbnail image instead.
# Installing
Place the generator in the `/Library/QuickLook` folder.
If you package Krita 3.0, you can include the generator file in the directory `krita.app/Contents/Library/QuickLook`. Be sure to reset QuickLook with `qlmanage -r` and `qlmanage -r cache`. If the changes don't happen right away, `killall Finder` and ensure that the app you put the generator in is the default app for opening .kra files.
project(quicklook)
set(kritaquicklook_SRCS
GeneratePreviewForURL.m
GenerateThumbnailForURL.m
main.c
)
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-bundle -headerpad_max_install_names")
add_library(kritaquicklook MODULE ${kritaquicklook_SRCS})
find_library(FOUNDATION_LIBRARY Foundation)
find_library(COREGRAPHICS_LIBRARY CoreGraphics)
find_library(QUICKLOOK_LIBRARY QuickLook)
find_library(COCOA_LIBRARY Cocoa)
target_link_libraries(kritaquicklook
${FOUNDATION_LIBRARY}
${COREGRAPHICS_LIBRARY}
${QUICKLOOK_LIBRARY}
${COCOA_LIBRARY}
)
set_target_properties(kritaquicklook PROPERTIES
FRAMEWORK TRUE
MACOSX_FRAMEWORK_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist"
SUFFIX .qlgenerator
)
install(TARGETS kritaquicklook DESTINATION ${PLUGIN_INSTALL_DIR})
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