Skip to content

Commit

Permalink
Add GNUstep CoreBase library.
Browse files Browse the repository at this point in the history
  • Loading branch information
triplef committed Mar 23, 2021
1 parent f4f7e2b commit a103f14
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Libraries
The toolchain currently consists of the following libraries:

- [GNUstep Base Library](https://github.com/gnustep/libs-base) (Foundation)
- [GNUstep CoreBase Library](https://github.com/gnustep/libs-corebase) (CoreFoundation)
- [libobjc2](https://github.com/gnustep/libobjc2) (using gnustep-2.0 runtime)
- [libdispatch](https://github.com/apple/swift-corelibs-libdispatch) (official Apple release from the Swift Core Libraries)
- [libffi](https://github.com/libffi/libffi)
Expand Down
38 changes: 38 additions & 0 deletions phases/40-gnustep-corebase.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/sh
set -e

export PROJECT=gnustep-corebase
# FIXME: should be switched to the official repo once this has been merged
export REPO=https://github.com/triplef/libs-corebase.git
export TAG=windows-msvc

`dirname $0`/common.bat prepare_project

cd "$SRCROOT/$PROJECT"

echo
echo "### Loading GNUstep environment"
. "$UNIX_INSTALL_PREFIX/share/GNUstep/Makefiles/GNUstep.sh"

echo
echo "### Running configure"
./configure \
--host=$TARGET \
`# specify environment since it doesn't use gnustep-config to get these` \
CC="`gnustep-config --variable=CC`" \
CPP="`gnustep-config --variable=CPP`" \
CXX="`gnustep-config --variable=CXX`" \
CFLAGS="$CFLAGS -I$UNIX_INSTALL_PREFIX/include" \
CPPFLAGS="$CPPFLAGS -I$UNIX_INSTALL_PREFIX/include" \
LDFLAGS="$LDFLAGS -L$UNIX_INSTALL_PREFIX/lib" \
`# manually specifly flags for ICU because we don't have pkg-config info` \
ICU_CFLAGS="-I$UNIX_INSTALL_PREFIX/include" \
ICU_LIBS="-L$UNIX_INSTALL_PREFIX/lib -licuin -licuuc -licudt" \

echo
echo "### Building"
make #-j`nproc`

echo
echo "### Installing"
make install

0 comments on commit a103f14

Please sign in to comment.