diff options
author | Robin Burchell <robin+git@viroteck.net> | 2019-05-17 20:40:38 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-05-17 21:59:48 +0200 |
commit | 5babcac289d04a3c2f627dbbbd3e62718d3f98f3 (patch) | |
tree | 01b0b33edf0a1dcd4cbf239d3b70b74d0a5b5436 /LibGUI | |
parent | 2d98f4e28f7e86feea595ef5e4ff8b32037b64e9 (diff) | |
download | serenity-5babcac289d04a3c2f627dbbbd3e62718d3f98f3.zip |
Build: Install most headers to Root (and libcore.a/libgui.a)
This makes out-of-tree linking possible. And at the same time, add a
CMakeToolchain.txt file that can be used to build arbitrary cmake-using
applications on Serenity by pointing to the CMAKE_TOOLCHAIN_FILE when
running cmake:
-DCMAKE_TOOLCHAIN_FILE=~/code/serenity/Toolchain/CMakeToolchain.txt
Diffstat (limited to 'LibGUI')
-rw-r--r-- | LibGUI/Makefile | 6 | ||||
-rwxr-xr-x | LibGUI/install.sh | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/LibGUI/Makefile b/LibGUI/Makefile index 766cc49db9..1039ff00a0 100644 --- a/LibGUI/Makefile +++ b/LibGUI/Makefile @@ -77,3 +77,9 @@ $(LIBRARY): $(OBJS) clean: @echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d +install: $(LIBRARY) + mkdir -p ../Root/usr/include/LibGUI + # Copy headers + rsync -r -a --include '*/' --include '*.h' --exclude '*' . ../Root/usr/include/LibGUI + # Install the library + cp $(LIBRARY) ../Root/usr/lib diff --git a/LibGUI/install.sh b/LibGUI/install.sh new file mode 100755 index 0000000000..e3cf91fcd7 --- /dev/null +++ b/LibGUI/install.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +mkdir -p ../Root/usr/include/LibGUI/ +cp *.h ../Root/usr/include/LibGUI/ +cp libgui.a ../Root/usr/lib/ |