mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:17:35 +00:00
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
This commit is contained in:
parent
2d98f4e28f
commit
5babcac289
12 changed files with 67 additions and 3 deletions
|
@ -36,3 +36,12 @@ $(LIBRARY): $(OBJS)
|
|||
clean:
|
||||
@echo "CLEAN"; rm -f $(LIBRARY) $(OBJS) *.d
|
||||
|
||||
install: $(LIBRARY)
|
||||
mkdir -p ../Root/usr/include/LibCore
|
||||
mkdir -p ../Root/usr/include/AK
|
||||
mkdir -p ../Root/usr/lib
|
||||
# Copy headers
|
||||
rsync -r -a --include '*/' --include '*.h' --exclude '*' . ../Root/usr/include/LibCore
|
||||
rsync -r -a --include '*/' --include '*.h' --exclude '*' ../AK/ ../Root/usr/include/AK
|
||||
# Install the library
|
||||
cp $(LIBRARY) ../Root/usr/lib
|
||||
|
|
5
LibCore/install.sh
Executable file
5
LibCore/install.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir -p ../Root/usr/include/LibCore/
|
||||
cp *.h ../Root/usr/include/LibCore/
|
||||
cp libcore.a ../Root/usr/lib/
|
Loading…
Add table
Add a link
Reference in a new issue