Skip to content

Instantly share code, notes, and snippets.

@posilva
Created March 25, 2021 21:17
Show Gist options
  • Save posilva/096743c485fa4c7652db72bbf7647c94 to your computer and use it in GitHub Desktop.
Save posilva/096743c485fa4c7652db72bbf7647c94 to your computer and use it in GitHub Desktop.
Compile protobuf to TVOS
mkdir build_protobuf
cd build_protobuf
git clone git@github.com:leetal/ios-cmake.git
git clone --recurse-submodules -j8 -b v3.15.6 https://github.com/protocolbuffers/protobuf.git
cd protobuf
mkdir -p cmake/build/release
cd cmake/build/release
cmake -Dprotobuf_BUILD_TESTS=OFF -Dprotobuf_BUILD_PROTOC_BINARIES=OFF -DCMAKE_TOOLCHAIN_FILE=../../../../ios-cmake/ios.toolchain.cmake -DPLATFORM=TVOS ../..
mkdir install
make -j18
make DESTDIR=`pwd`/install install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment