forked from sailcut/sailcut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sailcut.pro
30 lines (26 loc) · 1.11 KB
/
sailcut.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
include(sailcut.pri)
TEMPLATE = subdirs
SUBDIRS = src tests
# Package generation
mac {
package.depends = first
package.output = sailcut-$$SAILCUT_VERSION-mac.dmg
package.commands = \
rm -f $$package.output; \
ln -s /Applications $$BUILD_APP_PATH/Applications; \
hdiutil create $$package.output -srcdir $$BUILD_APP_PATH -format UDBZ -volname \"Sailcut CAD $$SAILCUT_VERSION\"; \
rm -f $$BUILD_APP_PATH/Applications
QMAKE_EXTRA_TARGETS = package
} else:win32 {
package.depends = first
package.output = sailcut-$$SAILCUT_VERSION-win32.exe
package.commands = makensis sailcut.nsi
QMAKE_EXTRA_TARGETS = package
NSI_HEADER = "!define PRODUCT_VERSION \"$$SAILCUT_VERSION\""
NSI_HEADER += "!define PRODUCT_LICENSE \"$$system_path($$SAILCUT_SOURCE_TREE/COPYING)\""
NSI_HEADER += "!define PRODUCT_OUTPUT \"$$system_path($$package.output)\""
NSI_BODY = $$cat($$SAILCUT_SOURCE_TREE/sailcut.nsi.in, blob)
write_file($$SAILCUT_BUILD_TREE/sailcut.nsi, NSI_HEADER)
write_file($$SAILCUT_BUILD_TREE/sailcut.nsi, NSI_BODY, append)
QMAKE_CLEAN += sailcut.nsi
}