This library provides abstractions for threading functions, mutex, and semaphores.
- cmake >= 3.25
- gcc >= 4.8.5 / clang toolchain (For x86-64 and aarch64 Linux builds)
- Visual Studio (For Windows builds)
- Create a buildtree
libThreadPath=<Path to libfgs repo>
buildTree=<Name of buildTree folder>
installPath=<Path to install folder>
cd ${libThreadPath}
cmake . -B ${buildTree}\
-DCMAKE_INSTALL_LIBDIR:STRING=${installPath}\
-DCMAKE_INSTALL_INCLUDEDIR:STRING=${installPath}
- Build using buildtree
cmake --build ${buildTree}
- Install (Installs to 'lib' folder)
cmake --install ${buildTree}
- Create a buildtree
toolchainPath=<Path to aarch64 toolchain>
libThreadPath=<Path to libfgs repo>
buildTree=<Name of buildTree folder>
installPath=<Path to install folder>
cd ${libThreadPath}
PATH=${toolchainPath}:${PATH} cmake . -B ${buildTree}\
-DCMAKE_TOOLCHAIN_FILE=./cmake/toolchains/aarch64_toolchain.cmake\
-DCMAKE_INSTALL_LIBDIR:STRING=${installPath}\
-DCMAKE_INSTALL_INCLUDEDIR:STRING=${installPath}
- Build using buildtree
cmake --build ${buildTree}
- Install (Installs to 'lib' folder)
cmake --install ${buildTree}
- Create a buildtree
toolchainPath=<Path to aarch32 toolchain>
libThreadPath=<Path to libfgs repo>
buildTree=<Name of buildTree folder>
installPath=<Path to install folder>
cd ${libThreadPath}
PATH=${toolchainPath}:${PATH} cmake . -B ${buildTree}\
-DCMAKE_TOOLCHAIN_FILE=./cmake/toolchains/aarch32_toolchain.cmake\
-DCMAKE_INSTALL_LIBDIR:STRING=${installPath}\
-DCMAKE_INSTALL_INCLUDEDIR:STRING=${installPath}
- Build using buildtree
cmake --build ${buildTree}
- Install (Installs to 'lib' folder)
cmake --install ${buildTree}
- Open git bash
- Create a buildtree
libThreadPath=<Path to libfgs repo>
buildTree=<Name of buildTree folder>
installPath=<Path to install folder>
cd ${libThreadPath}
cmake . -B ${buildTree} -A x64
- Build using buildtree
cmake --build ${buildTree}\
-DCMAKE_INSTALL_LIBDIR:STRING=${installPath}\
-DCMAKE_INSTALL_INCLUDEDIR:STRING=${installPath}\
-- -p:Configuration="Release"
- Install (Installs to 'lib' folder)
cmake --install ${buildTree}
A BSD 3-Clause-Clear license is applicable. Refer to the LICENSE file together with the LICENSE2 file.