8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 00:03:02 +01:00
firebird-mirror/doc/README.build.macosx.md
Adriano dos Santos Fernandes b31d37b787 MacOS: build libicu and static libc++ using vcpkg.
Also improve non-CI build automation.
2023-08-23 23:09:49 -03:00

57 lines
800 B
Markdown

# Building Firebird on MacOSX
## Preparing
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
export LIBTOOLIZE=glibtoolize
export LIBTOOL=glibtool
```
In order to get Release build:
```bash
./autogen.sh --with-builtin-tommath --with-builtin-tomcrypt
```
In order to get Debug build:
```bash
./autogen.sh --with-builtin-tommath --with-builtin-tomcrypt --enable-developer
```
## Building
```bash
make -j4
```
## Testing
```bash
make tests -j4
make run_tests
```
## Packaging
```bash
make -C gen -B -f make.platform.postfix
make -C gen -B -f Makefile.install
```