lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since 58ef532 was 7749646, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 7 years ago |
|
Add tools/export.sh to replace make export
|
-
Property mode
set to
100755
|
|
File size:
757 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 |
|
|---|
| 3 | if [ "$#" -ne 1 ]; then
|
|---|
| 4 | echo "Must define export directory."
|
|---|
| 5 | exit 1
|
|---|
| 6 | fi
|
|---|
| 7 |
|
|---|
| 8 | EXPORT_DIR="$1"
|
|---|
| 9 |
|
|---|
| 10 | # Only (re)build files we actually want to export.
|
|---|
| 11 |
|
|---|
| 12 | EXPORT_LIBS=" \
|
|---|
| 13 | uspace/lib/libmath.a \
|
|---|
| 14 | uspace/lib/libclui.a \
|
|---|
| 15 | uspace/lib/libgui.a \
|
|---|
| 16 | uspace/lib/libdraw.a \
|
|---|
| 17 | uspace/lib/libsoftrend.a \
|
|---|
| 18 | uspace/lib/libhound.a \
|
|---|
| 19 | uspace/lib/libpcm.a \
|
|---|
| 20 | uspace/lib/libcpp.a \
|
|---|
| 21 | uspace/lib/libc.a \
|
|---|
| 22 | uspace/lib/c/libstartfiles.a \
|
|---|
| 23 | uspace/lib/libposix.a \
|
|---|
| 24 | "
|
|---|
| 25 |
|
|---|
| 26 | EXPORT_CONFIGS=" \
|
|---|
| 27 | meson/part/exports/config.mk \
|
|---|
| 28 | meson/part/exports/config.sh \
|
|---|
| 29 | "
|
|---|
| 30 |
|
|---|
| 31 | ninja $EXPORT_LIBS $EXPORT_CONFIGS
|
|---|
| 32 | ninja devel-headers
|
|---|
| 33 |
|
|---|
| 34 | mkdir -p "$EXPORT_DIR/lib"
|
|---|
| 35 | cp -t "$EXPORT_DIR/lib" $EXPORT_LIBS
|
|---|
| 36 | rm -rf "$EXPORT_DIR/include"
|
|---|
| 37 | cp -R dist/include "$EXPORT_DIR/include"
|
|---|
| 38 | cp -t "$EXPORT_DIR" $EXPORT_CONFIGS
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.