aboutsummaryrefslogtreecommitdiff
path: root/Buildscr
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-04-06 00:00:07 +0100
committerBen Harris <bjh21@bjh21.me.uk>2023-04-06 00:21:43 +0100
commit7a66855947c043e502d00fa41cd7b7c06127adf9 (patch)
tree3b2f2ed9bbf2f0ddd479ddd6bf5021a14314ef45 /Buildscr
parent2e48ce132e011e83517a9fc4905edcc8f9a5ef58 (diff)
downloadpuzzles-7a66855947c043e502d00fa41cd7b7c06127adf9.zip
puzzles-7a66855947c043e502d00fa41cd7b7c06127adf9.tar.gz
puzzles-7a66855947c043e502d00fa41cd7b7c06127adf9.tar.bz2
puzzles-7a66855947c043e502d00fa41cd7b7c06127adf9.tar.xz
KaiOS: include extra copyright notices in manual
The KaiOS build includes compiled versions of various Emscripten library files. These are generally under the MIT licence like Puzzles itself. The MIT licence requires that the licence, and the copyright notice, be "included in all copies or substantial portions of the Software." Since each KaiOS package includes the full manual, which already contains the licence for Puzzles itself, adding the copyright notices there seems like the best approach. I've done this by providing an additional input file that contains the licences for source files used by a current Emscripten build. More automation might be nice, but the set of copyright notices is unlikely to change very much. There are basically one for Emscripten, one for musl, and a few for odd bits of third-party code embedded in musl.
Diffstat (limited to 'Buildscr')
-rw-r--r--Buildscr6
1 files changed, 3 insertions, 3 deletions
diff --git a/Buildscr b/Buildscr
index 68bdf27..f6eb4c1 100644
--- a/Buildscr
+++ b/Buildscr
@@ -146,10 +146,10 @@ endif
# have the right dependencies installed for Emscripten, I do this by a
# delegation.
ifneq "$(NOJS)" yes then
- # The Emscripten delegate doesn't have Halibut, so provide the HTML
- # docs for the KaiOS apps to use.
+ # The Emscripten delegate doesn't have Halibut, so build a set of
+ # HTML docs for the KaiOS apps to use.
in puzzles do mkdir -p build-kaios/help/en
- in puzzles do cp -Rv doc/* build-kaios/help/en
+ in puzzles/build-kaios/help/en do halibut --html -Chtml-template-fragment:%k ../../../puzzles.but ../../../emcccopy.but
delegate emscripten
in puzzles do emcmake cmake -B build-emscripten $(web_unfinished_option) .
in puzzles/build-emscripten do make -j$(nproc) VERBOSE=1