Files
textmate/Applications/QuickLookGenerator/target
Nyx0uf 3f716c27ad QuickLook: Handle thumbnail generation
Read at most 1 KiB or 50 lines of a file and render the attributed string in a bitmap context.

The theme is set to Mac Classic to ensure a white background for best look when the previews are used as icons in Finder.

The user’s default fixed width font in size 4 is used. With this font size only around 7 lines are shown, so we need to make it smaller, but we probably want to scale down the result to allow fractional line heights.

A lot of code is copy/pasted from the QuickLook preview generator.
2014-07-22 23:07:58 +02:00

13 lines
439 B
Plaintext

TARGET_NAME = TextMateQL
SOURCES = src/*.{c,mm}
CP_Resources = resources/*
FRAMEWORKS = CoreFoundation QuickLook AppKit
LINK += layout buffer bundles file cf ns OakAppKit OakFoundation
LN_FLAGS -= -Wl,-dead_strip_dylibs
LN_FLAGS += -bundle
BUNDLE_EXTENSION = qlgenerator
# Load frameworks from the TextMate bundle
LN_FLAGS += -rpath @loader_path/../../../../../Frameworks