Skip to content

Building Runtime Libraries on Mac OS X

mogemimi edited this page Jan 26, 2018 · 8 revisions

Build requirements

  • Mac OS X 10.11
  • Python 2.7+
  • Xcode 9.2+ (Apple LLVM version 9.0.0)

Get the sources

First, acquire the source code and all dependencies by cloning the git repository.

git clone https://github.com/mogemimi/pomdog.git
cd pomdog
git submodule update --init

Please see Download Build Dependencies for more information.

Generating the Xcode project

Second, you need to generate the Xcode project file (.xcodeproj) using GYP wrapper script:

python tools/gyp.py build/pomdog.gyp -f xcode

Compiling source code with Xcode

xcodebuild -project build.xcodefiles/build/pomdog.xcodeproj

To build in release mode, use -configuration option:

xcodebuild -project build.xcodefiles/build/pomdog.xcodeproj -configuration Release

After a complete build, you will find the "libpomdog.a" and "Pomdog.framework" file in build/Release (also build/Debug) directory.