2023-08-24 04:09:49 +02:00
|
|
|
# Building Firebird on MacOSX
|
2020-12-25 19:04:35 +01:00
|
|
|
|
|
|
|
## Preparing
|
|
|
|
|
2023-08-24 04:09:49 +02:00
|
|
|
MacOS build uses `vcpkg` installed as git submodule:
|
2020-12-25 19:04:35 +01:00
|
|
|
|
2023-08-24 04:09:49 +02:00
|
|
|
```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:
|
2020-12-25 19:04:35 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
export LIBTOOLIZE=glibtoolize
|
|
|
|
export LIBTOOL=glibtool
|
|
|
|
```
|
|
|
|
|
2023-08-24 04:09:49 +02:00
|
|
|
In order to get Release build:
|
2020-12-25 19:04:35 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
./autogen.sh --with-builtin-tommath --with-builtin-tomcrypt
|
|
|
|
```
|
|
|
|
|
2023-08-24 04:09:49 +02:00
|
|
|
In order to get Debug build:
|
2020-12-25 19:04:35 +01:00
|
|
|
|
2023-08-24 04:09:49 +02:00
|
|
|
```bash
|
|
|
|
./autogen.sh --with-builtin-tommath --with-builtin-tomcrypt --enable-developer
|
|
|
|
```
|
|
|
|
|
|
|
|
## Building
|
2020-12-25 19:04:35 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
make -j4
|
|
|
|
```
|
|
|
|
|
2023-08-24 04:09:49 +02:00
|
|
|
## Testing
|
2020-12-25 19:04:35 +01:00
|
|
|
|
|
|
|
```bash
|
2023-08-24 04:09:49 +02:00
|
|
|
make tests -j4
|
|
|
|
make run_tests
|
|
|
|
```
|
|
|
|
|
|
|
|
## Packaging
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make -C gen -B -f make.platform.postfix
|
|
|
|
make -C gen -B -f Makefile.install
|
|
|
|
```
|