Squashed 'third_party/glog/' content from commit 9ef754a3023
git-subtree-dir: third_party/glog git-subtree-split: 9ef754a3023e6fd10f20fe53dfca96dd898182e3
This commit is contained in:
commit
afe04691ac
133 changed files with 23455 additions and 0 deletions
2
toolchains/.gitignore
vendored
Normal file
2
toolchains/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# allow toolchain files to be tracked by git
|
||||
!*.cmake
|
||||
13
toolchains/clang-cxx17.cmake
Normal file
13
toolchains/clang-cxx17.cmake
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Sample toolchain file for building with gcc compiler
|
||||
#
|
||||
# Typical usage:
|
||||
# *) cmake -H. -B_build -DCMAKE_TOOLCHAIN_FILE="${PWD}/toolchains/gcc.cmake"
|
||||
|
||||
# set compiler
|
||||
set(CMAKE_C_COMPILER clang)
|
||||
set(CMAKE_CXX_COMPILER clang++)
|
||||
|
||||
# set c++ standard
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
13
toolchains/gcc-cxx11.cmake
Normal file
13
toolchains/gcc-cxx11.cmake
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Sample toolchain file for building with gcc compiler
|
||||
#
|
||||
# Typical usage:
|
||||
# *) cmake -H. -B_build -DCMAKE_TOOLCHAIN_FILE="${PWD}/toolchains/gcc.cmake"
|
||||
|
||||
# set compiler
|
||||
set(CMAKE_C_COMPILER gcc)
|
||||
set(CMAKE_CXX_COMPILER g++)
|
||||
|
||||
# set c++ standard
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
13
toolchains/gcc-cxx17.cmake
Normal file
13
toolchains/gcc-cxx17.cmake
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Sample toolchain file for building with gcc compiler
|
||||
#
|
||||
# Typical usage:
|
||||
# *) cmake -H. -B_build -DCMAKE_TOOLCHAIN_FILE="${PWD}/toolchains/gcc.cmake"
|
||||
|
||||
# set compiler
|
||||
set(CMAKE_C_COMPILER gcc)
|
||||
set(CMAKE_CXX_COMPILER g++)
|
||||
|
||||
# set c++ standard
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
13
toolchains/gcc-cxx98.cmake
Normal file
13
toolchains/gcc-cxx98.cmake
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Sample toolchain file for building with gcc compiler
|
||||
#
|
||||
# Typical usage:
|
||||
# *) cmake -H. -B_build -DCMAKE_TOOLCHAIN_FILE="${PWD}/toolchains/gcc.cmake"
|
||||
|
||||
# set compiler
|
||||
set(CMAKE_C_COMPILER gcc)
|
||||
set(CMAKE_CXX_COMPILER g++)
|
||||
|
||||
# set c++ standard
|
||||
set(CMAKE_CXX_STANDARD 98)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
13
toolchains/gcc-gnuxx11.cmake
Normal file
13
toolchains/gcc-gnuxx11.cmake
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Sample toolchain file for building with gcc compiler
|
||||
#
|
||||
# Typical usage:
|
||||
# *) cmake -H. -B_build -DCMAKE_TOOLCHAIN_FILE="${PWD}/toolchains/gcc.cmake"
|
||||
|
||||
# set compiler
|
||||
set(CMAKE_C_COMPILER gcc)
|
||||
set(CMAKE_CXX_COMPILER g++)
|
||||
|
||||
# set c++ standard
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS ON)
|
||||
33
toolchains/linux-mingw-w64-cxx11.cmake
Normal file
33
toolchains/linux-mingw-w64-cxx11.cmake
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Sample toolchain file for building for Windows from an Ubuntu Linux system.
|
||||
#
|
||||
# Typical usage:
|
||||
# *) install cross compiler: `sudo apt-get install mingw-w64`
|
||||
# *) cmake -H. -B_build_mingw -DCMAKE_TOOLCHAIN_FILE="${PWD}/toolchains/linux-mingw-w64.cmake"
|
||||
|
||||
set(CMAKE_SYSTEM_NAME Windows)
|
||||
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
|
||||
|
||||
# set compiler
|
||||
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
|
||||
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
|
||||
set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
|
||||
|
||||
# target environment on the build host system
|
||||
# set 1st to dir with the cross compiler's C/C++ headers/libs
|
||||
set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
|
||||
|
||||
# modify default behavior of FIND_XXX() commands to
|
||||
# search for headers/libs in the target environment and
|
||||
# search for programs in the build host environment
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
|
||||
# use emulator for `try_run` calls
|
||||
set(CMAKE_CROSSCOMPILING_EMULATOR wine64)
|
||||
|
||||
# set c++ standard
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
33
toolchains/linux-mingw-w64-cxx17.cmake
Normal file
33
toolchains/linux-mingw-w64-cxx17.cmake
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Sample toolchain file for building for Windows from an Ubuntu Linux system.
|
||||
#
|
||||
# Typical usage:
|
||||
# *) install cross compiler: `sudo apt-get install mingw-w64`
|
||||
# *) cmake -H. -B_build_mingw -DCMAKE_TOOLCHAIN_FILE="${PWD}/toolchains/linux-mingw-w64.cmake"
|
||||
|
||||
set(CMAKE_SYSTEM_NAME Windows)
|
||||
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
|
||||
|
||||
# set compiler
|
||||
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
|
||||
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
|
||||
set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
|
||||
|
||||
# target environment on the build host system
|
||||
# set 1st to dir with the cross compiler's C/C++ headers/libs
|
||||
set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
|
||||
|
||||
# modify default behavior of FIND_XXX() commands to
|
||||
# search for headers/libs in the target environment and
|
||||
# search for programs in the build host environment
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
|
||||
# use emulator for `try_run` calls
|
||||
set(CMAKE_CROSSCOMPILING_EMULATOR wine64)
|
||||
|
||||
# set c++ standard
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
33
toolchains/linux-mingw-w64-gnuxx11.cmake
Normal file
33
toolchains/linux-mingw-w64-gnuxx11.cmake
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Sample toolchain file for building for Windows from an Ubuntu Linux system.
|
||||
#
|
||||
# Typical usage:
|
||||
# *) install cross compiler: `sudo apt-get install mingw-w64`
|
||||
# *) cmake -H. -B_build_mingw -DCMAKE_TOOLCHAIN_FILE="${PWD}/toolchains/linux-mingw-w64.cmake"
|
||||
|
||||
set(CMAKE_SYSTEM_NAME Windows)
|
||||
set(CMAKE_SYSTEM_PROCESSOR x86_64)
|
||||
set(TOOLCHAIN_PREFIX x86_64-w64-mingw32)
|
||||
|
||||
# set compiler
|
||||
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
|
||||
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
|
||||
set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
|
||||
|
||||
# target environment on the build host system
|
||||
# set 1st to dir with the cross compiler's C/C++ headers/libs
|
||||
set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
|
||||
|
||||
# modify default behavior of FIND_XXX() commands to
|
||||
# search for headers/libs in the target environment and
|
||||
# search for programs in the build host environment
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
|
||||
# use emulator for `try_run` calls
|
||||
set(CMAKE_CROSSCOMPILING_EMULATOR wine64)
|
||||
|
||||
# set c++ standard
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS ON)
|
||||
13
toolchains/mingw-cxx11.cmake
Normal file
13
toolchains/mingw-cxx11.cmake
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Sample toolchain file for building with gcc compiler
|
||||
#
|
||||
# Typical usage:
|
||||
# *) cmake -H. -B_build -DCMAKE_TOOLCHAIN_FILE="%cd%\toolchains\mingw.cmake"
|
||||
|
||||
# set compiler
|
||||
set(CMAKE_C_COMPILER gcc)
|
||||
set(CMAKE_CXX_COMPILER g++)
|
||||
|
||||
# set c++ standard
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
13
toolchains/mingw-cxx17.cmake
Normal file
13
toolchains/mingw-cxx17.cmake
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Sample toolchain file for building with gcc compiler
|
||||
#
|
||||
# Typical usage:
|
||||
# *) cmake -H. -B_build -DCMAKE_TOOLCHAIN_FILE="%cd%\toolchains\mingw.cmake"
|
||||
|
||||
# set compiler
|
||||
set(CMAKE_C_COMPILER gcc)
|
||||
set(CMAKE_CXX_COMPILER g++)
|
||||
|
||||
# set c++ standard
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
13
toolchains/mingw-gnuxx11.cmake
Normal file
13
toolchains/mingw-gnuxx11.cmake
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# Sample toolchain file for building with gcc compiler
|
||||
#
|
||||
# Typical usage:
|
||||
# *) cmake -H. -B_build -DCMAKE_TOOLCHAIN_FILE="%cd%\toolchains\mingw.cmake"
|
||||
|
||||
# set compiler
|
||||
set(CMAKE_C_COMPILER gcc)
|
||||
set(CMAKE_CXX_COMPILER g++)
|
||||
|
||||
# set c++ standard
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS YES)
|
||||
2
toolchains/vs-14-2015-sdk-8-1.cmake
Normal file
2
toolchains/vs-14-2015-sdk-8-1.cmake
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# set c++ standard
|
||||
set(CMAKE_SYSTEM_VERSION 8.1)
|
||||
1
toolchains/vs-14-2015-win64.cmake
Normal file
1
toolchains/vs-14-2015-win64.cmake
Normal file
|
|
@ -0,0 +1 @@
|
|||
# dummy, nothing extra to set
|
||||
2
toolchains/vs-15-2017-win64-cxx17.cmake
Normal file
2
toolchains/vs-15-2017-win64-cxx17.cmake
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
# set c++ standard
|
||||
set(CMAKE_CXX_FLAGS_INIT "${CMAKE_CXX_FLAGS_INIT} /std:c++17")
|
||||
1
toolchains/vs-15-2017-win64.cmake
Normal file
1
toolchains/vs-15-2017-win64.cmake
Normal file
|
|
@ -0,0 +1 @@
|
|||
# dummy, nothing extra to set
|
||||
Loading…
Add table
Add a link
Reference in a new issue