-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MacOS: build libicu and static libc++ using vcpkg.
Also improve non-CI build automation.
- Loading branch information
1 parent
b70fa98
commit b31d37b
Showing
20 changed files
with
210 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,3 @@ | |
# | ||
# All Rights Reserved. | ||
# Contributor(s): ______________________________________. | ||
|
||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,56 @@ | ||
# Building Firebird on MacOSX using brew | ||
# Building Firebird on MacOSX | ||
|
||
## Preparing | ||
|
||
- Install XCode | ||
MacOS build uses `vcpkg` installed as git submodule: | ||
|
||
```bash | ||
git submodule update --init | ||
``` | ||
|
||
Install XCode and dependencies with `homebrew`: | ||
|
||
```bash | ||
brew install automake autoconf-archive cmake libtool ninja | ||
``` | ||
|
||
## Configuring | ||
|
||
Set necessary environment variables: | ||
|
||
```bash | ||
brew install automake libtool icu4c | ||
export CFLAGS=-I/usr/local/opt/icu4c/include | ||
export LDFLAGS=-L/usr/local/opt/icu4c/lib | ||
export CXXFLAGS=-I/usr/local/opt/icu4c/include | ||
export LD_LIBRARY_PATH="/usr/local/opt/icu4c/lib:$LD_LIBRARY_PATH" | ||
export LIBTOOLIZE=glibtoolize | ||
export LIBTOOL=glibtool | ||
``` | ||
|
||
## Configuring | ||
In order to get Release build: | ||
|
||
```bash | ||
./autogen.sh --with-builtin-tommath --with-builtin-tomcrypt | ||
``` | ||
|
||
## Building | ||
In order to get Debug build: | ||
|
||
In order to get Release build | ||
```bash | ||
./autogen.sh --with-builtin-tommath --with-builtin-tomcrypt --enable-developer | ||
``` | ||
|
||
## Building | ||
|
||
```bash | ||
make -j4 | ||
``` | ||
|
||
In order to get Debug build | ||
## Testing | ||
|
||
```bash | ||
make -j4 Debug | ||
``` | ||
make tests -j4 | ||
make run_tests | ||
``` | ||
|
||
## Packaging | ||
|
||
```bash | ||
make -C gen -B -f make.platform.postfix | ||
make -C gen -B -f Makefile.install | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"default-registry": { | ||
"kind": "git", | ||
"repository": "https://github.com/Microsoft/vcpkg", | ||
"baseline": "417119555f155f6044dec7a379cd25466e339873" | ||
}, | ||
"registries": [ | ||
{ | ||
"kind": "filesystem", | ||
"path": "vcpkg-custom/registry", | ||
"baseline": "2023-08-23", | ||
"packages": [ | ||
"libcxx" | ||
] | ||
} | ||
], | ||
"overlay-triplets": [ | ||
"vcpkg-custom/triplets" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
SOURCE_PATH=@SOURCE_PATH@ | ||
INSTALL_PREFIX=@INSTALL_PREFIX@ | ||
|
||
export MACOSX_DEPLOYMENT_TARGET=10.9 | ||
|
||
cmake -G Ninja -S $SOURCE_PATH/llvm \ | ||
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX \ | ||
-DLLVM_ENABLE_PROJECTS="libcxx;libcxxabi" \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DLIBCXX_ENABLE_SHARED=false \ | ||
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=true | ||
|
||
ninja cxx cxxabi | ||
|
||
ninja install-cxx install-cxxabi |
Oops, something went wrong.