diff options
author | Tobias Markmann <tm@ayena.de> | 2017-02-24 17:02:28 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2017-02-24 17:02:28 (GMT) |
commit | abd81d4a3cf08ffaa1e5265d204cdd80c8c0583b (patch) | |
tree | 9692a924e7a29c36c3342401c72b12be0e24685a /Swift/QtUI/SConscript | |
parent | ad463f276f11192fcd6ab9a00fffba2b3cca6761 (diff) | |
download | swift-abd81d4a3cf08ffaa1e5265d204cdd80c8c0583b.zip swift-abd81d4a3cf08ffaa1e5265d204cdd80c8c0583b.tar.bz2 |
Add Sparkle license to about dialog COPYING file on demand
If scons detects a Sparkle release in the 3rdParty folder,
it will add the containing LICENSE file at the end of the
dynamically generated COPYING file.
Test-Information:
Tested that the contents of Sparkle’s LICENSE file are at
the end of the text in the license window of the about dialog,
if the Sparkle folder, with a Sparkle release inside, is
present in 3rdParty.
Tested that Swift builds fine, if the Sparkle folder is
missing in 3rdParty.
Change-Id: I89db155b5bb3eef4d632997fd99ff270b4720a16
Diffstat (limited to 'Swift/QtUI/SConscript')
-rw-r--r-- | Swift/QtUI/SConscript | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Swift/QtUI/SConscript b/Swift/QtUI/SConscript index 8a39063..3512120 100644 --- a/Swift/QtUI/SConscript +++ b/Swift/QtUI/SConscript @@ -326,8 +326,14 @@ commonResources = { "": ["#/Swift/resources/sounds"] } + +## COPYING file generation myenv["TEXTFILESUFFIX"] = "" -myenv.MyTextfile(target = "COPYING", source = [myenv.File("../../COPYING.gpl"), myenv.File("../../COPYING.thirdparty"), myenv.File("../../COPYING.dependencies")], LINESEPARATOR = "\n\n========\n\n\n") + +copying_files = [myenv.File("../../COPYING.gpl"), myenv.File("../../COPYING.thirdparty"), myenv.File("../../COPYING.dependencies")] +if env["PLATFORM"] == "darwin" and env["HAVE_SPARKLE"] : + copying_files.append(env["SPARKLE_COPYING"]) +myenv.MyTextfile(target = "COPYING", source = copying_files, LINESEPARATOR = "\n\n========\n\n\n") ################################################################################ # Translation |