Created
March 25, 2021 21:17
-
-
Save posilva/096743c485fa4c7652db72bbf7647c94 to your computer and use it in GitHub Desktop.
Compile protobuf to TVOS
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
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