mirror of
https://github.com/textmate/textmate.git
synced 2026-01-15 01:38:02 -05:00
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.
13 lines
439 B
Plaintext
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
|