From a049de890eb96ce29b8f002984c2c9aeaf9fd79d Mon Sep 17 00:00:00 2001 From: Kartatz <105828205+Kartatz@users.noreply.github.com> Date: Thu, 5 Sep 2024 22:16:16 -0300 Subject: [PATCH] Initial commit --- .github/workflows/build.yml | 502 ++++++++++++++++++ .../aarch64-apple-darwin.cmake | 21 + .../aarch64-linux-android.cmake | 12 + .../cmake_toolchains/aarch64-linux-gnu.cmake | 19 + .../aarch64-tizeniot-linux-gnu.cmake | 19 + .../aarch64-unknown-freebsd.cmake | 19 + .../aarch64-unknown-linux-gnu.cmake | 20 + .../aarch64-unknown-linux-gnu2.19.cmake | 21 + .../aarch64-unknown-linux-gnu2.24.cmake | 21 + .../aarch64-unknown-linux-gnu2.28.cmake | 21 + .../aarch64-unknown-linux-gnu2.31.cmake | 21 + .../aarch64-unknown-linux-musl.cmake | 20 + .../aarch64-unknown-openbsd.cmake | 22 + .../aarch64-unknown-serenity.cmake | 20 + .../aarch64-w64-mingw32.cmake | 20 + .../cmake_toolchains/alpha-linux-gnu.cmake | 19 + .../alpha-unknown-linux-gnu.cmake | 20 + .../alpha-unknown-linux-gnu2.7.cmake | 21 + .../alpha-unknown-netbsd.cmake | 20 + .../alpha-unknown-openbsd.cmake | 22 + .../arm-bookeen-linux-gnueabi.cmake | 19 + .../arm-cervantes-linux-gnueabi.cmake | 19 + .../arm-kindle-linux-gnueabi.cmake | 19 + .../arm-kindle5-linux-gnueabi.cmake | 19 + .../arm-kindlepw2-linux-gnueabi.cmake | 19 + .../arm-kobo-linux-gnueabihf.cmake | 19 + .../cmake_toolchains/arm-linux-gnueabi.cmake | 19 + .../arm-linux-gnueabihf.cmake | 19 + .../arm-obreey-linux-gnueabi.cmake | 19 + .../arm-remarkable-linux-gnueabihf.cmake | 19 + .../arm-tizeniot-linux-gnueabi.cmake | 19 + .../arm-tizeniotheadless-linux-gnueabi.cmake | 19 + .../arm-tizenmobile-linux-gnueabi.cmake | 19 + .../arm-tizenwearable-linux-gnueabi.cmake | 19 + .../arm-unknown-linux-gnueabi.cmake | 20 + .../arm-unknown-linux-gnueabi2.11.cmake | 21 + .../arm-unknown-linux-gnueabi2.13.cmake | 21 + .../arm-unknown-linux-gnueabi2.19.cmake | 21 + .../arm-unknown-linux-gnueabi2.24.cmake | 21 + .../arm-unknown-linux-gnueabi2.7.cmake | 21 + .../arm-unknown-linux-gnueabihf.cmake | 20 + .../arm-unknown-linux-gnueabihf2.13.cmake | 21 + .../arm-unknown-linux-gnueabihf2.19.cmake | 21 + .../arm-unknown-linux-gnueabihf2.24.cmake | 21 + .../arm-unknown-linux-gnueabihf2.28.cmake | 21 + .../arm-unknown-linux-gnueabihf2.31.cmake | 21 + .../arm-unknown-linux-musleabihf.cmake | 20 + .../arm-unknown-openbsd.cmake | 22 + .../cmake_toolchains/armv7-w64-mingw32.cmake | 18 + .../armv7a-linux-androideabi.cmake | 12 + .../armv7l-unknown-linux-musleabihf.cmake | 20 + .../cmake_toolchains/hppa-linux-gnu.cmake | 19 + .../hppa-unknown-linux-gnu.cmake | 20 + .../hppa-unknown-linux-gnu2.7.cmake | 21 + .../hppa-unknown-netbsd.cmake | 20 + .../hppa-unknown-openbsd.cmake | 22 + .../i386-tizenmobile-linux-gnueabi.cmake | 19 + .../i386-tizenwearable-linux-gnueabi.cmake | 19 + .../i386-unknown-freebsd.cmake | 20 + .../i386-unknown-linux-gnu.cmake | 20 + .../i386-unknown-linux-gnu2.11.cmake | 21 + .../i386-unknown-linux-gnu2.19.cmake | 21 + .../i386-unknown-linux-gnu2.24.cmake | 21 + .../i386-unknown-linux-gnu2.28.cmake | 21 + .../i386-unknown-linux-gnu2.31.cmake | 21 + .../i386-unknown-linux-gnu2.7.cmake | 21 + .../i386-unknown-linux-musl.cmake | 20 + .../i386-unknown-netbsdelf.cmake | 20 + .../i386-unknown-openbsd.cmake | 22 + .../cmake_toolchains/i586-unknown-haiku.cmake | 20 + .../cmake_toolchains/i686-linux-android.cmake | 12 + .../cmake_toolchains/i686-linux-gnu.cmake | 19 + .../cmake_toolchains/i686-w64-mingw32.cmake | 20 + .../ia64-unknown-linux-gnu.cmake | 20 + .../ia64-unknown-linux-gnu2.11.cmake | 21 + .../ia64-unknown-linux-gnu2.13.cmake | 21 + .../ia64-unknown-linux-gnu2.7.cmake | 21 + .../cmake_toolchains/m68k-linux-gnu.cmake | 19 + .../cmake_toolchains/mips-linux-gnu.cmake | 19 + .../mips-unknown-linux-gnu.cmake | 20 + .../mips-unknown-linux-gnu2.11.cmake | 21 + .../mips-unknown-linux-gnu2.13.cmake | 21 + .../mips-unknown-linux-gnu2.19.cmake | 21 + .../mips-unknown-linux-gnu2.24.cmake | 21 + .../mips-unknown-linux-gnu2.28.cmake | 21 + .../mips-unknown-linux-gnu2.7.cmake | 21 + .../mips-unknown-netbsd.cmake | 20 + .../mips64-linux-gnuabi64.cmake | 19 + .../mips64-unknown-linux-musl.cmake | 20 + .../mips64-unknown-openbsd.cmake | 22 + .../mips64el-linux-gnuabi64.cmake | 19 + .../mips64el-unknown-linux-gnuabi64.cmake | 20 + .../mips64el-unknown-linux-gnuabi642.24.cmake | 21 + .../mips64el-unknown-linux-gnuabi642.28.cmake | 21 + .../mips64el-unknown-linux-gnuabi642.31.cmake | 21 + .../mips64el-unknown-openbsd.cmake | 22 + .../cmake_toolchains/mipsel-linux-gnu.cmake | 19 + .../mipsel-unknown-linux-gnu.cmake | 20 + .../mipsel-unknown-linux-gnu2.11.cmake | 21 + .../mipsel-unknown-linux-gnu2.13.cmake | 21 + .../mipsel-unknown-linux-gnu2.19.cmake | 21 + .../mipsel-unknown-linux-gnu2.24.cmake | 21 + .../mipsel-unknown-linux-gnu2.28.cmake | 21 + .../mipsel-unknown-linux-gnu2.31.cmake | 21 + .../mipsel-unknown-linux-gnu2.7.cmake | 21 + .../mipsisa32r6-linux-gnu.cmake | 19 + .../mipsisa32r6el-linux-gnu.cmake | 19 + .../mipsisa64r6-linux-gnuabi64.cmake | 19 + .../mipsisa64r6el-linux-gnuabi64.cmake | 19 + .../cmake_toolchains/powerpc-linux-gnu.cmake | 19 + .../powerpc-unknown-freebsd.cmake | 18 + .../powerpc-unknown-linux-gnu.cmake | 20 + .../powerpc-unknown-linux-gnu2.11.cmake | 21 + .../powerpc-unknown-linux-gnu2.13.cmake | 21 + .../powerpc-unknown-linux-gnu2.19.cmake | 21 + .../powerpc-unknown-linux-gnu2.7.cmake | 21 + .../powerpc-unknown-netbsd.cmake | 20 + .../powerpc-unknown-openbsd.cmake | 22 + .../powerpc64-linux-gnu.cmake | 19 + .../powerpc64-unknown-freebsd.cmake | 18 + .../powerpc64-unknown-freebsd_elfv2.cmake | 18 + .../powerpc64-unknown-openbsd.cmake | 22 + .../powerpc64le-linux-gnu.cmake | 19 + .../powerpc64le-unknown-linux-gnu.cmake | 20 + .../powerpc64le-unknown-linux-gnu2.19.cmake | 21 + .../powerpc64le-unknown-linux-gnu2.24.cmake | 21 + .../powerpc64le-unknown-linux-gnu2.28.cmake | 21 + .../powerpc64le-unknown-linux-gnu2.31.cmake | 21 + .../powerpc64le-unknown-linux-musl.cmake | 20 + .../cmake_toolchains/riscv64-linux-gnu.cmake | 19 + .../riscv64-unknown-freebsd.cmake | 18 + .../riscv64-unknown-linux-musl.cmake | 20 + .../riscv64-unknown-openbsd.cmake | 22 + .../s390-unknown-linux-gnu.cmake | 20 + .../s390-unknown-linux-gnu2.11.cmake | 21 + .../s390-unknown-linux-gnu2.13.cmake | 21 + .../s390-unknown-linux-gnu2.7.cmake | 21 + .../cmake_toolchains/s390x-linux-gnu.cmake | 19 + .../s390x-unknown-linux-gnu.cmake | 20 + .../s390x-unknown-linux-gnu2.13.cmake | 21 + .../s390x-unknown-linux-gnu2.19.cmake | 21 + .../s390x-unknown-linux-gnu2.24.cmake | 21 + .../s390x-unknown-linux-gnu2.28.cmake | 21 + .../s390x-unknown-linux-gnu2.31.cmake | 21 + .../s390x-unknown-linux-musl.cmake | 20 + .../cmake_toolchains/sh4-linux-gnu.cmake | 19 + .../shle-unknown-netbsdelf.cmake | 20 + .../sparc-unknown-linux-gnu.cmake | 20 + .../sparc-unknown-linux-gnu2.11.cmake | 21 + .../sparc-unknown-linux-gnu2.13.cmake | 21 + .../sparc-unknown-linux-gnu2.7.cmake | 21 + .../sparc-unknown-netbsdelf.cmake | 20 + .../cmake_toolchains/sparc64-linux-gnu.cmake | 19 + .../sparc64-unknown-freebsd.cmake | 18 + .../sparc64-unknown-netbsd.cmake | 20 + .../sparc64-unknown-openbsd.cmake | 22 + .../vax-unknown-netbsdelf.cmake | 20 + .../x86_64-apple-darwin.cmake | 21 + .../x86_64-linux-android.cmake | 12 + .../cmake_toolchains/x86_64-linux-gnu.cmake | 20 + .../x86_64-linux-gnux32.cmake | 19 + .../x86_64-unknown-dragonfly.cmake | 20 + .../x86_64-unknown-freebsd.cmake | 20 + .../x86_64-unknown-haiku.cmake | 20 + .../x86_64-unknown-linux-gnu.cmake | 20 + .../x86_64-unknown-linux-gnu2.11.cmake | 21 + .../x86_64-unknown-linux-gnu2.13.cmake | 21 + .../x86_64-unknown-linux-gnu2.19.cmake | 21 + .../x86_64-unknown-linux-gnu2.24.cmake | 21 + .../x86_64-unknown-linux-gnu2.28.cmake | 21 + .../x86_64-unknown-linux-gnu2.31.cmake | 21 + .../x86_64-unknown-linux-gnu2.7.cmake | 21 + .../x86_64-unknown-linux-musl.cmake | 20 + .../x86_64-unknown-netbsd.cmake | 20 + .../x86_64-unknown-openbsd.cmake | 22 + .../x86_64-unknown-serenity.cmake | 20 + .../cmake_toolchains/x86_64-w64-mingw32.cmake | 18 + .../x86_64h-apple-darwin.cmake | 21 + .gitmodules | 3 + README.md | 7 + submodules/cmake-redis | 1 + 181 files changed, 4062 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/cmake_toolchains/aarch64-apple-darwin.cmake create mode 100644 .github/workflows/cmake_toolchains/aarch64-linux-android.cmake create mode 100644 .github/workflows/cmake_toolchains/aarch64-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/aarch64-tizeniot-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/aarch64-unknown-freebsd.cmake create mode 100644 .github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.19.cmake create mode 100644 .github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.24.cmake create mode 100644 .github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.28.cmake create mode 100644 .github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.31.cmake create mode 100644 .github/workflows/cmake_toolchains/aarch64-unknown-linux-musl.cmake create mode 100644 .github/workflows/cmake_toolchains/aarch64-unknown-openbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/aarch64-unknown-serenity.cmake create mode 100644 .github/workflows/cmake_toolchains/aarch64-w64-mingw32.cmake create mode 100644 .github/workflows/cmake_toolchains/alpha-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/alpha-unknown-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/alpha-unknown-linux-gnu2.7.cmake create mode 100644 .github/workflows/cmake_toolchains/alpha-unknown-netbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/alpha-unknown-openbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-bookeen-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-cervantes-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-kindle-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-kindle5-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-kindlepw2-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-kobo-linux-gnueabihf.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-linux-gnueabihf.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-obreey-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-remarkable-linux-gnueabihf.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-tizeniot-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-tizeniotheadless-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-tizenmobile-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-tizenwearable-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.11.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.13.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.19.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.24.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.7.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.13.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.19.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.24.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.28.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.31.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-linux-musleabihf.cmake create mode 100644 .github/workflows/cmake_toolchains/arm-unknown-openbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/armv7-w64-mingw32.cmake create mode 100644 .github/workflows/cmake_toolchains/armv7a-linux-androideabi.cmake create mode 100644 .github/workflows/cmake_toolchains/armv7l-unknown-linux-musleabihf.cmake create mode 100644 .github/workflows/cmake_toolchains/hppa-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/hppa-unknown-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/hppa-unknown-linux-gnu2.7.cmake create mode 100644 .github/workflows/cmake_toolchains/hppa-unknown-netbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/hppa-unknown-openbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/i386-tizenmobile-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/i386-tizenwearable-linux-gnueabi.cmake create mode 100644 .github/workflows/cmake_toolchains/i386-unknown-freebsd.cmake create mode 100644 .github/workflows/cmake_toolchains/i386-unknown-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.11.cmake create mode 100644 .github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.19.cmake create mode 100644 .github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.24.cmake create mode 100644 .github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.28.cmake create mode 100644 .github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.31.cmake create mode 100644 .github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.7.cmake create mode 100644 .github/workflows/cmake_toolchains/i386-unknown-linux-musl.cmake create mode 100644 .github/workflows/cmake_toolchains/i386-unknown-netbsdelf.cmake create mode 100644 .github/workflows/cmake_toolchains/i386-unknown-openbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/i586-unknown-haiku.cmake create mode 100644 .github/workflows/cmake_toolchains/i686-linux-android.cmake create mode 100644 .github/workflows/cmake_toolchains/i686-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/i686-w64-mingw32.cmake create mode 100644 .github/workflows/cmake_toolchains/ia64-unknown-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/ia64-unknown-linux-gnu2.11.cmake create mode 100644 .github/workflows/cmake_toolchains/ia64-unknown-linux-gnu2.13.cmake create mode 100644 .github/workflows/cmake_toolchains/ia64-unknown-linux-gnu2.7.cmake create mode 100644 .github/workflows/cmake_toolchains/m68k-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/mips-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/mips-unknown-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.11.cmake create mode 100644 .github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.13.cmake create mode 100644 .github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.19.cmake create mode 100644 .github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.24.cmake create mode 100644 .github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.28.cmake create mode 100644 .github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.7.cmake create mode 100644 .github/workflows/cmake_toolchains/mips-unknown-netbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/mips64-linux-gnuabi64.cmake create mode 100644 .github/workflows/cmake_toolchains/mips64-unknown-linux-musl.cmake create mode 100644 .github/workflows/cmake_toolchains/mips64-unknown-openbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/mips64el-linux-gnuabi64.cmake create mode 100644 .github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi64.cmake create mode 100644 .github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi642.24.cmake create mode 100644 .github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi642.28.cmake create mode 100644 .github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi642.31.cmake create mode 100644 .github/workflows/cmake_toolchains/mips64el-unknown-openbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/mipsel-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.11.cmake create mode 100644 .github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.13.cmake create mode 100644 .github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.19.cmake create mode 100644 .github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.24.cmake create mode 100644 .github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.28.cmake create mode 100644 .github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.31.cmake create mode 100644 .github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.7.cmake create mode 100644 .github/workflows/cmake_toolchains/mipsisa32r6-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/mipsisa32r6el-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/mipsisa64r6-linux-gnuabi64.cmake create mode 100644 .github/workflows/cmake_toolchains/mipsisa64r6el-linux-gnuabi64.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc-unknown-freebsd.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.11.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.13.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.19.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.7.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc-unknown-netbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc-unknown-openbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc64-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc64-unknown-freebsd.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc64-unknown-freebsd_elfv2.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc64-unknown-openbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc64le-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.19.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.24.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.28.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.31.cmake create mode 100644 .github/workflows/cmake_toolchains/powerpc64le-unknown-linux-musl.cmake create mode 100644 .github/workflows/cmake_toolchains/riscv64-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/riscv64-unknown-freebsd.cmake create mode 100644 .github/workflows/cmake_toolchains/riscv64-unknown-linux-musl.cmake create mode 100644 .github/workflows/cmake_toolchains/riscv64-unknown-openbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/s390-unknown-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/s390-unknown-linux-gnu2.11.cmake create mode 100644 .github/workflows/cmake_toolchains/s390-unknown-linux-gnu2.13.cmake create mode 100644 .github/workflows/cmake_toolchains/s390-unknown-linux-gnu2.7.cmake create mode 100644 .github/workflows/cmake_toolchains/s390x-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/s390x-unknown-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.13.cmake create mode 100644 .github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.19.cmake create mode 100644 .github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.24.cmake create mode 100644 .github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.28.cmake create mode 100644 .github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.31.cmake create mode 100644 .github/workflows/cmake_toolchains/s390x-unknown-linux-musl.cmake create mode 100644 .github/workflows/cmake_toolchains/sh4-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/shle-unknown-netbsdelf.cmake create mode 100644 .github/workflows/cmake_toolchains/sparc-unknown-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/sparc-unknown-linux-gnu2.11.cmake create mode 100644 .github/workflows/cmake_toolchains/sparc-unknown-linux-gnu2.13.cmake create mode 100644 .github/workflows/cmake_toolchains/sparc-unknown-linux-gnu2.7.cmake create mode 100644 .github/workflows/cmake_toolchains/sparc-unknown-netbsdelf.cmake create mode 100644 .github/workflows/cmake_toolchains/sparc64-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/sparc64-unknown-freebsd.cmake create mode 100644 .github/workflows/cmake_toolchains/sparc64-unknown-netbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/sparc64-unknown-openbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/vax-unknown-netbsdelf.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-apple-darwin.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-linux-android.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-linux-gnux32.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-dragonfly.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-freebsd.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-haiku.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.11.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.13.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.19.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.24.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.28.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.31.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.7.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-linux-musl.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-netbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-openbsd.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-unknown-serenity.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64-w64-mingw32.cmake create mode 100644 .github/workflows/cmake_toolchains/x86_64h-apple-darwin.cmake create mode 100644 .gitmodules create mode 100644 README.md create mode 160000 submodules/cmake-redis diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5825c30 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,502 @@ +name: Build + +on: + push: + branches: + - '**' + +jobs: + build: + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@main + with: + submodules: true + - name: Checkout Redis submodule + run: | + git -C "${PWD}/submodules/cmake-redis" submodule update --init --depth='1' + - name: Free up some space + run: | + sudo rm --recursive --force \ + '/opt/'* \ + '/usr/local/lib/android' \ + '/usr/local/share/vcpkg' \ + '/usr/share/java' + sudo apt purge --auto-remove \ + '*apache2*' \ + '*docker*' \ + '*dotnet*' \ + '*firefox*' \ + '*google*' \ + '*jdk*' \ + '*nginx*' \ + '*php*' \ + '*ruby*' \ + '*wayland*' \ + 'auto*' \ + 'azure-cli' \ + 'bind9*' \ + 'build-essential' \ + 'clang*' \ + 'container*' \ + 'glib*' \ + 'libmono*' \ + 'lld*' \ + 'llvm*' \ + 'mercurial*' \ + 'mysql*' \ + 'postgresql*' \ + 'powershell' \ + 'x11*' \ + 'xdg*' + - name: Setup Linux cross-compiler + run: | + declare -r SPHYNX_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Sphynx/releases/latest')")" + declare -r SPHYNX_TARBALL='/tmp/toolchain.tar.xz' + declare -r SPHYNX_URL="https://github.com/AmanoTeam/Sphynx/releases/download/${SPHYNX_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${SPHYNX_URL}" --output "${SPHYNX_TARBALL}" + tar --directory="$(dirname "${SPHYNX_TARBALL}")" --extract --file="${SPHYNX_TARBALL}" + + echo 'SPHYNX_HOME=/tmp/sphynx' >> "${GITHUB_ENV}" + echo '/tmp/sphynx/bin' >> "${GITHUB_PATH}" + - name: Setup Android cross-compiler + uses: nttld/setup-ndk@main + id: setup-ndk + with: + ndk-version: r26d + - name: Post setup settings for Android cross-compiler + run: | + echo 'ANDROID_HOME=${{ steps.setup-ndk.outputs.ndk-path }}' >> "${GITHUB_ENV}" + sudo sed --in-place '/CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG/d' '/usr/local/share/cmake-'*'/Modules/Platform/Android.cmake' + echo '${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin' >> "${GITHUB_PATH}" + - name: Setup Windows cross-compiler + run: | + declare -r LLVM_MINGW_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/LLVMMinGW-Builds/releases/latest')")" + declare -r LLVM_MINGW_TARBALL='/tmp/toolchain.tar.xz' + declare -r LLVM_MINGW_URL="https://github.com/AmanoTeam/LLVMMinGW-Builds/releases/download/${LLVM_MINGW_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${LLVM_MINGW_URL}" --output "${LLVM_MINGW_TARBALL}" + tar --directory="$(dirname "${LLVM_MINGW_TARBALL}")" --extract --file="${LLVM_MINGW_TARBALL}" + + echo 'LLVM_MINGW_HOME=/tmp/llvm-mingw' >> "${GITHUB_ENV}" + echo '/tmp/llvm-mingw/bin' >> "${GITHUB_PATH}" + - name: Setup NetBSD cross-compiler + run: | + declare -r DAKINI_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Dakini/releases/latest')")" + declare -r DAKINI_TARBALL='/tmp/toolchain.tar.xz' + declare -r DAKINI_URL="https://github.com/AmanoTeam/Dakini/releases/download/${DAKINI_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${DAKINI_URL}" --output "${DAKINI_TARBALL}" + tar --directory="$(dirname "${DAKINI_TARBALL}")" --extract --file="${DAKINI_TARBALL}" + + echo 'DAKINI_HOME=/tmp/dakini' >> "${GITHUB_ENV}" + echo '/tmp/dakini/bin' >> "${GITHUB_PATH}" + - name: Setup FreeBSD cross-compiler + run: | + declare -r LOKI_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Loki/releases/latest')")" + declare -r LOKI_TARBALL='/tmp/toolchain.tar.xz' + declare -r LOKI_URL="https://github.com/AmanoTeam/Loki/releases/download/${LOKI_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --silent --connect-timeout '10' --retry '15' --retry-all-errors --fail --location --url "${LOKI_URL}" --output "${LOKI_TARBALL}" + tar --directory="$(dirname "${LOKI_TARBALL}")" --extract --file="${LOKI_TARBALL}" + + echo 'LOKI_HOME=/tmp/loki' >> "${GITHUB_ENV}" + echo '/tmp/loki/bin' >> "${GITHUB_PATH}" + - name: Setup DragonFly cross-compiler + run: | + declare -r DRAGONFLY_CROSS_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Venti/releases/latest')")" + declare -r DRAGONFLY_CROSS_TARBALL='/tmp/toolchain.tar.xz' + declare -r DRAGONFLY_CROSS_URL="https://github.com/AmanoTeam/dr4g0nflybsdcr0ss/releases/download/${DRAGONFLY_CROSS_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${DRAGONFLY_CROSS_URL}" --output "${DRAGONFLY_CROSS_TARBALL}" + tar --directory="$(dirname "${DRAGONFLY_CROSS_TARBALL}")" --extract --file="${DRAGONFLY_CROSS_TARBALL}" + + echo 'VENTI_HOME=/tmp/venti' >> "${GITHUB_ENV}" + echo '/tmp/venti/bin' >> "${GITHUB_PATH}" + - name: Setup Haiku cross-compiler + run: | + declare -r SIL_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Sil/releases/latest')")" + declare -r SIL_TARBALL='/tmp/toolchain.tar.xz' + declare -r SIL_URL="https://github.com/AmanoTeam/Sil/releases/download/${SIL_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${SIL_URL}" --output "${SIL_TARBALL}" + tar --directory="$(dirname "${SIL_TARBALL}")" --extract --file="${SIL_TARBALL}" + + echo 'SIL_HOME=/tmp/sil' >> "${GITHUB_ENV}" + echo '/tmp/sil/bin' >> "${GITHUB_PATH}" + - name: Setup OBGGCC cross-compiler + run: | + declare -r OBGGCC_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/obggcc/releases/latest')")" + declare -r OBGGCC_TARBALL='/tmp/toolchain.tar.xz' + declare -r OBGGCC_URL="https://github.com/AmanoTeam/obggcc/releases/download/${OBGGCC_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${OBGGCC_URL}" --output "${OBGGCC_TARBALL}" + tar --directory="$(dirname "${OBGGCC_TARBALL}")" --extract --file="${OBGGCC_TARBALL}" + + echo 'OBGGCC_HOME=/tmp/obggcc' >> "${GITHUB_ENV}" + echo '/tmp/obggcc/bin' >> "${GITHUB_PATH}" + - name: Setup OpenBSD cross-compiler + run: | + declare -r ATAR_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Atar/releases/latest')")" + declare -r ATAR_TARBALL='/tmp/toolchain.tar.xz' + declare -r ATAR_URL="https://github.com/AmanoTeam/Atar/releases/download/${ATAR_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${ATAR_URL}" --output "${ATAR_TARBALL}" + tar --directory="$(dirname "${ATAR_TARBALL}")" --extract --file="${ATAR_TARBALL}" + + echo 'ATAR_HOME=/tmp/atar' >> "${GITHUB_ENV}" + echo '/tmp/atar/bin' >> "${GITHUB_PATH}" + - name: Setup Linux musl cross-compiler + run: | + declare -r RAIDEN_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Raiden/releases/latest')")" + declare -r RAIDEN_TARBALL='/tmp/toolchain.tar.xz' + declare -r RAIDEN_URL="https://github.com/AmanoTeam/Raiden/releases/download/${RAIDEN_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${RAIDEN_URL}" --output "${RAIDEN_TARBALL}" + tar --directory="$(dirname "${RAIDEN_TARBALL}")" --extract --file="${RAIDEN_TARBALL}" + + echo 'RAIDEN_HOME=/tmp/raiden' >> "${GITHUB_ENV}" + echo '/tmp/raiden/bin' >> "${GITHUB_PATH}" + - name: Setup SerenityOS cross-compiler + run: | + declare -r SENNA_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Senna/releases/latest')")" + declare -r SENNA_TARBALL='/tmp/toolchain.tar.xz' + declare -r SENNA_URL="https://github.com/AmanoTeam/Senna/releases/download/${SENNA_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${SENNA_URL}" --output "${SENNA_TARBALL}" + tar --directory="$(dirname "${SENNA_TARBALL}")" --extract --file="${SENNA_TARBALL}" + + echo 'SENNA_HOME=/tmp/senna' >> "${GITHUB_ENV}" + echo '/tmp/senna/bin' >> "${GITHUB_PATH}" + - name: Setup Kindle cross-compiler + run: | + declare -r KEL_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Kel/releases/latest')")" + declare -r KEL_TARBALL='/tmp/toolchain.tar.xz' + declare -r KEL_URL="https://github.com/AmanoTeam/Kel/releases/download/${KEL_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${KEL_URL}" --output "${KEL_TARBALL}" + tar --directory="$(dirname "${KEL_TARBALL}")" --extract --file="${KEL_TARBALL}" + + echo 'KEL_HOME=/tmp/kel' >> "${GITHUB_ENV}" + echo '/tmp/kel/bin' >> "${GITHUB_PATH}" + - name: Setup PocketBook cross-compiler + run: | + declare -r NERO_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Nero/releases/latest')")" + declare -r NERO_TARBALL='/tmp/toolchain.tar.xz' + declare -r NERO_URL="https://github.com/AmanoTeam/Nero/releases/download/${NERO_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${NERO_URL}" --output "${NERO_TARBALL}" + tar --directory="$(dirname "${NERO_TARBALL}")" --extract --file="${NERO_TARBALL}" + + echo 'NERO_HOME=/tmp/nero' >> "${GITHUB_ENV}" + echo '/tmp/nero/bin' >> "${GITHUB_PATH}" + - name: Setup reMarkable cross-compiler + run: | + declare -r NAN_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Nan/releases/latest')")" + declare -r NAN_TARBALL='/tmp/toolchain.tar.xz' + declare -r NAN_URL="https://github.com/AmanoTeam/Nan/releases/download/${NAN_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${NAN_URL}" --output "${NAN_TARBALL}" + tar --directory="$(dirname "${NAN_TARBALL}")" --extract --file="${NAN_TARBALL}" + + echo 'NAN_HOME=/tmp/nan' >> "${GITHUB_ENV}" + echo '/tmp/nan/bin' >> "${GITHUB_PATH}" + - name: Setup Cervantes cross-compiler + run: | + declare -r NIL_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Nil/releases/latest')")" + declare -r NIL_TARBALL='/tmp/toolchain.tar.xz' + declare -r NIL_URL="https://github.com/AmanoTeam/Nil/releases/download/${NIL_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${NIL_URL}" --output "${NIL_TARBALL}" + tar --directory="$(dirname "${NIL_TARBALL}")" --extract --file="${NIL_TARBALL}" + + echo 'NIL_HOME=/tmp/nil' >> "${GITHUB_ENV}" + echo '/tmp/nil/bin' >> "${GITHUB_PATH}" + - name: Setup Bookeen cross-compiler + run: | + declare -r AI_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Ai/releases/latest')")" + declare -r AI_TARBALL='/tmp/toolchain.tar.xz' + declare -r AI_URL="https://github.com/AmanoTeam/Ai/releases/download/${AI_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${AI_URL}" --output "${AI_TARBALL}" + tar --directory="$(dirname "${AI_TARBALL}")" --extract --file="${AI_TARBALL}" + + echo 'AI_HOME=/tmp/ai' >> "${GITHUB_ENV}" + echo '/tmp/ai/bin' >> "${GITHUB_PATH}" + - name: Setup Kobo cross-compiler + run: | + declare -r KAL_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Kal/releases/latest')")" + declare -r KAL_TARBALL='/tmp/toolchain.tar.xz' + declare -r KAL_URL="https://github.com/AmanoTeam/Kal/releases/download/${KAL_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${KAL_URL}" --output "${KAL_TARBALL}" + tar --directory="$(dirname "${KAL_TARBALL}")" --extract --file="${KAL_TARBALL}" + + echo 'KAL_HOME=/tmp/kal' >> "${GITHUB_ENV}" + echo '/tmp/kal/bin' >> "${GITHUB_PATH}" + - name: Setup Tizen cross-compiler + run: | + declare -r NUL_TAG="$(jq --raw-output '.tag_name' <<< "$(curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --url 'https://api.github.com/repos/AmanoTeam/Nul/releases/latest')")" + declare -r NUL_TARBALL='/tmp/toolchain.tar.xz' + declare -r NUL_URL="https://github.com/AmanoTeam/Nul/releases/download/${NUL_TAG}/x86_64-unknown-linux-gnu.tar.xz" + + curl --connect-timeout '10' --retry '15' --retry-all-errors --fail --silent --location --url "${NUL_URL}" --output "${NUL_TARBALL}" + tar --directory="$(dirname "${NUL_TARBALL}")" --extract --file="${NUL_TARBALL}" + + echo 'NUL_HOME=/tmp/nul' >> "${GITHUB_ENV}" + echo '/tmp/nul/bin' >> "${GITHUB_PATH}" + - name: Build with CMake + run: | + declare -ra targets=( + # aarch64-apple-darwin + hppa-unknown-openbsd + powerpc64-unknown-openbsd + vax-unknown-netbsdelf + # x86_64-apple-darwin + # x86_64h-apple-darwin + aarch64-linux-android + aarch64-linux-gnu + aarch64-tizeniot-linux-gnu + aarch64-unknown-freebsd + aarch64-unknown-linux-gnu + aarch64-unknown-linux-gnu2.19 + aarch64-unknown-linux-gnu2.24 + aarch64-unknown-linux-gnu2.28 + aarch64-unknown-linux-gnu2.31 + aarch64-unknown-linux-musl + aarch64-unknown-openbsd + aarch64-unknown-serenity + aarch64-w64-mingw32 + alpha-linux-gnu + alpha-unknown-linux-gnu + alpha-unknown-linux-gnu2.7 + alpha-unknown-netbsd + alpha-unknown-openbsd + arm-bookeen-linux-gnueabi + arm-cervantes-linux-gnueabi + arm-kindle-linux-gnueabi + arm-kindle5-linux-gnueabi + arm-kindlepw2-linux-gnueabi + arm-kobo-linux-gnueabihf + arm-linux-gnueabi + arm-linux-gnueabihf + arm-obreey-linux-gnueabi + arm-remarkable-linux-gnueabihf + arm-tizeniot-linux-gnueabi + arm-tizeniotheadless-linux-gnueabi + arm-tizenmobile-linux-gnueabi + arm-tizenwearable-linux-gnueabi + arm-unknown-linux-gnueabi + arm-unknown-linux-gnueabi2.11 + arm-unknown-linux-gnueabi2.13 + arm-unknown-linux-gnueabi2.19 + arm-unknown-linux-gnueabi2.24 + arm-unknown-linux-gnueabi2.7 + arm-unknown-linux-gnueabihf + arm-unknown-linux-gnueabihf2.13 + arm-unknown-linux-gnueabihf2.19 + arm-unknown-linux-gnueabihf2.24 + arm-unknown-linux-gnueabihf2.28 + arm-unknown-linux-gnueabihf2.31 + arm-unknown-linux-musleabihf + arm-unknown-openbsd + armv7-w64-mingw32 + armv7a-linux-androideabi + armv7l-unknown-linux-musleabihf + hppa-linux-gnu + hppa-unknown-linux-gnu + hppa-unknown-linux-gnu2.7 + hppa-unknown-netbsd + i386-tizenmobile-linux-gnueabi + i386-tizenwearable-linux-gnueabi + i386-unknown-freebsd + i386-unknown-linux-gnu + i386-unknown-linux-gnu2.11 + i386-unknown-linux-gnu2.19 + i386-unknown-linux-gnu2.24 + i386-unknown-linux-gnu2.28 + i386-unknown-linux-gnu2.31 + i386-unknown-linux-gnu2.7 + i386-unknown-linux-musl + i386-unknown-netbsdelf + i386-unknown-openbsd + i586-unknown-haiku + i686-linux-android + i686-linux-gnu + i686-w64-mingw32 + ia64-unknown-linux-gnu + ia64-unknown-linux-gnu2.11 + ia64-unknown-linux-gnu2.13 + ia64-unknown-linux-gnu2.7 + m68k-linux-gnu + mips-linux-gnu + mips-unknown-linux-gnu + mips-unknown-linux-gnu2.11 + mips-unknown-linux-gnu2.13 + mips-unknown-linux-gnu2.19 + mips-unknown-linux-gnu2.24 + mips-unknown-linux-gnu2.28 + mips-unknown-linux-gnu2.7 + mips-unknown-netbsd + mips64-linux-gnuabi64 + mips64-unknown-linux-musl + mips64-unknown-openbsd + mips64el-linux-gnuabi64 + mips64el-unknown-linux-gnuabi64 + mips64el-unknown-linux-gnuabi642.24 + mips64el-unknown-linux-gnuabi642.28 + mips64el-unknown-linux-gnuabi642.31 + mips64el-unknown-openbsd + mipsel-linux-gnu + mipsel-unknown-linux-gnu + mipsel-unknown-linux-gnu2.11 + mipsel-unknown-linux-gnu2.13 + mipsel-unknown-linux-gnu2.19 + mipsel-unknown-linux-gnu2.24 + mipsel-unknown-linux-gnu2.28 + mipsel-unknown-linux-gnu2.31 + mipsel-unknown-linux-gnu2.7 + mipsisa32r6-linux-gnu + mipsisa32r6el-linux-gnu + mipsisa64r6-linux-gnuabi64 + mipsisa64r6el-linux-gnuabi64 + powerpc-linux-gnu + powerpc-unknown-freebsd + powerpc-unknown-linux-gnu + powerpc-unknown-linux-gnu2.11 + powerpc-unknown-linux-gnu2.13 + powerpc-unknown-linux-gnu2.19 + powerpc-unknown-linux-gnu2.7 + powerpc-unknown-netbsd + powerpc-unknown-openbsd + powerpc64-linux-gnu + powerpc64-unknown-freebsd + powerpc64-unknown-freebsd_elfv2 + powerpc64le-linux-gnu + powerpc64le-unknown-linux-gnu + powerpc64le-unknown-linux-gnu2.19 + powerpc64le-unknown-linux-gnu2.24 + powerpc64le-unknown-linux-gnu2.28 + powerpc64le-unknown-linux-gnu2.31 + powerpc64le-unknown-linux-musl + riscv64-linux-gnu + riscv64-unknown-freebsd + riscv64-unknown-linux-musl + riscv64-unknown-openbsd + s390-unknown-linux-gnu + s390-unknown-linux-gnu2.11 + s390-unknown-linux-gnu2.13 + s390-unknown-linux-gnu2.7 + s390x-linux-gnu + s390x-unknown-linux-gnu + s390x-unknown-linux-gnu2.13 + s390x-unknown-linux-gnu2.19 + s390x-unknown-linux-gnu2.24 + s390x-unknown-linux-gnu2.28 + s390x-unknown-linux-gnu2.31 + s390x-unknown-linux-musl + sh4-linux-gnu + shle-unknown-netbsdelf + sparc-unknown-linux-gnu + sparc-unknown-linux-gnu2.11 + sparc-unknown-linux-gnu2.13 + sparc-unknown-linux-gnu2.7 + sparc-unknown-netbsdelf + sparc64-linux-gnu + sparc64-unknown-freebsd + sparc64-unknown-netbsd + sparc64-unknown-openbsd + x86_64-linux-android + x86_64-linux-gnu + x86_64-linux-gnux32 + x86_64-unknown-dragonfly + x86_64-unknown-freebsd + x86_64-unknown-haiku + x86_64-unknown-linux-gnu + x86_64-unknown-linux-gnu + x86_64-unknown-linux-gnu2.11 + x86_64-unknown-linux-gnu2.13 + x86_64-unknown-linux-gnu2.19 + x86_64-unknown-linux-gnu2.24 + x86_64-unknown-linux-gnu2.28 + x86_64-unknown-linux-gnu2.31 + x86_64-unknown-linux-gnu2.7 + x86_64-unknown-linux-musl + x86_64-unknown-netbsd + x86_64-unknown-openbsd + x86_64-unknown-serenity + x86_64-w64-mingw32 + ) + + declare running='0' + + declare -r toolchains_directory="${PWD}/.github/workflows/cmake_toolchains" + + declare -r source_directory="${PWD}/submodules/cmake-redis" + + declare -r output_directory="$(realpath './output')" + mkdir --parent "${output_directory}" + + for target in "${targets[@]}"; do + declare build_directory="${target}-build" + declare install_prefix="${build_directory}/${target}" + declare status='0' + + echo "- Building for ${target}" + + cmake \ + -B "${build_directory}" \ + -S "${source_directory}" \ + -DCMAKE_TOOLCHAIN_FILE="${toolchains_directory}/${target}.cmake" \ + -DCMAKE_INSTALL_PREFIX="${install_prefix}" \ + -DCMAKE_BUILD_TYPE='MinSizeRel' + + echo "- Building main project" + + cmake --build "${build_directory}" || status='1' + + # Some targets will fail to build (and that's ok) + if [ "${status}" == '0' ]; then + cmake --install "${build_directory}" --strip 1>/dev/null + + echo "- Creating compressed archive" + + pushd "$(dirname "${install_prefix}")" + + if [[ "${target}" == *'mingw32' ]]; then + zip --recurse-paths -9 "${output_directory}/${target}.zip" "${target}" 1>/dev/null + else + tar --create --file=- "${target}" | xz --extreme --threads='0' --compress -9 > "${output_directory}/${target}.tar.xz" + fi + + pushd + fi + + cmake --build "${build_directory}" --target 'redis-clean' + rm --force --recursive "${build_directory}" + done + - name: Upload artifact + uses: actions/upload-artifact@main + with: + path: ./output + - name: Get tag name for release + if: startsWith(github.event.head_commit.message, 'Bump version') + run: echo "VERSION_TAG=${COMMIT_MESSAGE/* }" >> "${GITHUB_ENV}" + env: + COMMIT_MESSAGE: ${{ github.event.head_commit.message }} + - name: Create release + if: startsWith(github.event.head_commit.message, 'Bump version') + uses: softprops/action-gh-release@master + with: + tag_name: v${{ env.VERSION_TAG }} + name: Redis v${{ env.VERSION_TAG }} + files: ./output/* + draft: true + prerelease: false + fail_on_unmatched_files: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/cmake_toolchains/aarch64-apple-darwin.cmake b/.github/workflows/cmake_toolchains/aarch64-apple-darwin.cmake new file mode 100644 index 0000000..e070499 --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-apple-darwin.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Darwin") +set(CMAKE_SYSTEM_PROCESSOR "arm64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-apple-darwin20.4") + +set(TOOLCHAIN_PATH "$ENV{OSXCROSS_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-clang") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-clang++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_INSTALL_NAME_TOOL "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-install_name_tool" CACHE FILEPATH "install_name_tool") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/SDK/MacOSX11.3.sdk") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/aarch64-linux-android.cmake b/.github/workflows/cmake_toolchains/aarch64-linux-android.cmake new file mode 100644 index 0000000..b78758d --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-linux-android.cmake @@ -0,0 +1,12 @@ +set(ANDROID_ABI "arm64-v8a") +set(ANDROID_NATIVE_API_LEVEL "21") + +set(TOOLCHAIN_PREFIX "aarch64-linux-android${ANDROID_NATIVE_API_LEVEL}") + +include("$ENV{ANDROID_HOME}/build/cmake/android.toolchain.cmake") + +set(CMAKE_AR "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-nm" CACHE FILEPATH "nm") diff --git a/.github/workflows/cmake_toolchains/aarch64-linux-gnu.cmake b/.github/workflows/cmake_toolchains/aarch64-linux-gnu.cmake new file mode 100644 index 0000000..0cef8f7 --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "aarch64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/aarch64-tizeniot-linux-gnu.cmake b/.github/workflows/cmake_toolchains/aarch64-tizeniot-linux-gnu.cmake new file mode 100644 index 0000000..a0babfb --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-tizeniot-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "aarch64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-tizeniot-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{NUL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/aarch64-unknown-freebsd.cmake b/.github/workflows/cmake_toolchains/aarch64-unknown-freebsd.cmake new file mode 100644 index 0000000..42c1a6d --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-unknown-freebsd.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "FreeBSD") +set(CMAKE_SYSTEM_PROCESSOR "aarch64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-freebsd12.3") + +set(TOOLCHAIN_PATH "$ENV{LOKI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu.cmake b/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu.cmake new file mode 100644 index 0000000..2e56188 --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "aarch64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.19.cmake b/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.19.cmake new file mode 100644 index 0000000..9f7d1c4 --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.19.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "aarch64") + +set(TARGET_GLIBC "2.19") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.24.cmake b/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.24.cmake new file mode 100644 index 0000000..a6c9c94 --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.24.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "aarch64") + +set(TARGET_GLIBC "2.24") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.28.cmake b/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.28.cmake new file mode 100644 index 0000000..dad4b87 --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.28.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "aarch64") + +set(TARGET_GLIBC "2.28") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.31.cmake b/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.31.cmake new file mode 100644 index 0000000..0df2108 --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-unknown-linux-gnu2.31.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "aarch64") + +set(TARGET_GLIBC "2.31") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/aarch64-unknown-linux-musl.cmake b/.github/workflows/cmake_toolchains/aarch64-unknown-linux-musl.cmake new file mode 100644 index 0000000..feff63a --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-unknown-linux-musl.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "aarch64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-musl") + +set(TOOLCHAIN_PATH "$ENV{RAIDEN_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/aarch64-unknown-openbsd.cmake b/.github/workflows/cmake_toolchains/aarch64-unknown-openbsd.cmake new file mode 100644 index 0000000..aaa3865 --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-unknown-openbsd.cmake @@ -0,0 +1,22 @@ +set(CMAKE_SYSTEM_NAME "OpenBSD") +set(CMAKE_SYSTEM_PROCESSOR "aarch64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-openbsd") + +set(TOOLCHAIN_PATH "$ENV{ATAR_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +add_link_options("-Wl,-rpath-link,${CMAKE_FIND_ROOT_PATH}/lib") diff --git a/.github/workflows/cmake_toolchains/aarch64-unknown-serenity.cmake b/.github/workflows/cmake_toolchains/aarch64-unknown-serenity.cmake new file mode 100644 index 0000000..f19d123 --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-unknown-serenity.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "SerenityOS") +set(CMAKE_SYSTEM_PROCESSOR "aarch64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-serenity") + +set(TOOLCHAIN_PATH "$ENV{SENNA_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/aarch64-w64-mingw32.cmake b/.github/workflows/cmake_toolchains/aarch64-w64-mingw32.cmake new file mode 100644 index 0000000..60bd44b --- /dev/null +++ b/.github/workflows/cmake_toolchains/aarch64-w64-mingw32.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Windows") +set(CMAKE_SYSTEM_PROCESSOR "aarch64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32") + +set(TOOLCHAIN_PATH "$ENV{LLVM_MINGW_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_RC_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-windres") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/alpha-linux-gnu.cmake b/.github/workflows/cmake_toolchains/alpha-linux-gnu.cmake new file mode 100644 index 0000000..7c2ea3c --- /dev/null +++ b/.github/workflows/cmake_toolchains/alpha-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "alpha") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/alpha-unknown-linux-gnu.cmake b/.github/workflows/cmake_toolchains/alpha-unknown-linux-gnu.cmake new file mode 100644 index 0000000..29abf85 --- /dev/null +++ b/.github/workflows/cmake_toolchains/alpha-unknown-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "alpha") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/alpha-unknown-linux-gnu2.7.cmake b/.github/workflows/cmake_toolchains/alpha-unknown-linux-gnu2.7.cmake new file mode 100644 index 0000000..3d5976b --- /dev/null +++ b/.github/workflows/cmake_toolchains/alpha-unknown-linux-gnu2.7.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "alpha") + +set(TARGET_GLIBC "2.7") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/alpha-unknown-netbsd.cmake b/.github/workflows/cmake_toolchains/alpha-unknown-netbsd.cmake new file mode 100644 index 0000000..02f70ce --- /dev/null +++ b/.github/workflows/cmake_toolchains/alpha-unknown-netbsd.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "NetBSD") +set(CMAKE_SYSTEM_PROCESSOR "alpha") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-netbsd") + +set(TOOLCHAIN_PATH "$ENV{DAKINI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/alpha-unknown-openbsd.cmake b/.github/workflows/cmake_toolchains/alpha-unknown-openbsd.cmake new file mode 100644 index 0000000..ce0bdef --- /dev/null +++ b/.github/workflows/cmake_toolchains/alpha-unknown-openbsd.cmake @@ -0,0 +1,22 @@ +set(CMAKE_SYSTEM_NAME "OpenBSD") +set(CMAKE_SYSTEM_PROCESSOR "alpha") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-openbsd") + +set(TOOLCHAIN_PATH "$ENV{ATAR_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +add_link_options("-Wl,-rpath-link,${CMAKE_FIND_ROOT_PATH}/lib") diff --git a/.github/workflows/cmake_toolchains/arm-bookeen-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/arm-bookeen-linux-gnueabi.cmake new file mode 100644 index 0000000..5528cf5 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-bookeen-linux-gnueabi.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-bookeen-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{AI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-cervantes-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/arm-cervantes-linux-gnueabi.cmake new file mode 100644 index 0000000..2925c96 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-cervantes-linux-gnueabi.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-cervantes-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{NIL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-kindle-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/arm-kindle-linux-gnueabi.cmake new file mode 100644 index 0000000..3f9c6d0 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-kindle-linux-gnueabi.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-kindle-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{KEL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-kindle5-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/arm-kindle5-linux-gnueabi.cmake new file mode 100644 index 0000000..d1fee12 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-kindle5-linux-gnueabi.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-kindle5-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{KEL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-kindlepw2-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/arm-kindlepw2-linux-gnueabi.cmake new file mode 100644 index 0000000..92f1b64 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-kindlepw2-linux-gnueabi.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-kindlepw2-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{KEL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-kobo-linux-gnueabihf.cmake b/.github/workflows/cmake_toolchains/arm-kobo-linux-gnueabihf.cmake new file mode 100644 index 0000000..6a419fa --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-kobo-linux-gnueabihf.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-kobo-linux-gnueabihf") + +set(TOOLCHAIN_PATH "$ENV{KAL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/arm-linux-gnueabi.cmake new file mode 100644 index 0000000..44303b9 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-linux-gnueabi.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-linux-gnueabihf.cmake b/.github/workflows/cmake_toolchains/arm-linux-gnueabihf.cmake new file mode 100644 index 0000000..44eef8a --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-linux-gnueabihf.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabihf") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-obreey-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/arm-obreey-linux-gnueabi.cmake new file mode 100644 index 0000000..94edef0 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-obreey-linux-gnueabi.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-obreey-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{NERO_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-remarkable-linux-gnueabihf.cmake b/.github/workflows/cmake_toolchains/arm-remarkable-linux-gnueabihf.cmake new file mode 100644 index 0000000..c20192d --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-remarkable-linux-gnueabihf.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-remarkable-linux-gnueabihf") + +set(TOOLCHAIN_PATH "$ENV{NAN_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-tizeniot-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/arm-tizeniot-linux-gnueabi.cmake new file mode 100644 index 0000000..da3295f --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-tizeniot-linux-gnueabi.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-tizeniot-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{NUL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-tizeniotheadless-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/arm-tizeniotheadless-linux-gnueabi.cmake new file mode 100644 index 0000000..dee3657 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-tizeniotheadless-linux-gnueabi.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-tizeniotheadless-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{NUL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-tizenmobile-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/arm-tizenmobile-linux-gnueabi.cmake new file mode 100644 index 0000000..bb44819 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-tizenmobile-linux-gnueabi.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-tizenmobile-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{NUL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-tizenwearable-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/arm-tizenwearable-linux-gnueabi.cmake new file mode 100644 index 0000000..72738d2 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-tizenwearable-linux-gnueabi.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-tizenwearable-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{NUL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi.cmake new file mode 100644 index 0000000..6b9f907 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.11.cmake b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.11.cmake new file mode 100644 index 0000000..7ef7aa0 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.11.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TARGET_GLIBC "2.11") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.13.cmake b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.13.cmake new file mode 100644 index 0000000..a9b7d62 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.13.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TARGET_GLIBC "2.13") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.19.cmake b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.19.cmake new file mode 100644 index 0000000..ea072fa --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.19.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TARGET_GLIBC "2.19") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.24.cmake b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.24.cmake new file mode 100644 index 0000000..519ca0d --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.24.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TARGET_GLIBC "2.24") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.7.cmake b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.7.cmake new file mode 100644 index 0000000..83579d7 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabi2.7.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TARGET_GLIBC "2.7") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf.cmake b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf.cmake new file mode 100644 index 0000000..b144616 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabihf") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.13.cmake b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.13.cmake new file mode 100644 index 0000000..409bd91 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.13.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TARGET_GLIBC "2.13") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabihf") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.19.cmake b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.19.cmake new file mode 100644 index 0000000..f49f9ce --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.19.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TARGET_GLIBC "2.19") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabihf") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.24.cmake b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.24.cmake new file mode 100644 index 0000000..f52b295 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.24.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TARGET_GLIBC "2.24") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabihf") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.28.cmake b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.28.cmake new file mode 100644 index 0000000..c0def78 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.28.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TARGET_GLIBC "2.28") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabihf") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.31.cmake b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.31.cmake new file mode 100644 index 0000000..abf21c2 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-linux-gnueabihf2.31.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TARGET_GLIBC "2.31") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnueabihf") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-linux-musleabihf.cmake b/.github/workflows/cmake_toolchains/arm-unknown-linux-musleabihf.cmake new file mode 100644 index 0000000..eaa1884 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-linux-musleabihf.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-musleabihf") + +set(TOOLCHAIN_PATH "$ENV{RAIDEN_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/arm-unknown-openbsd.cmake b/.github/workflows/cmake_toolchains/arm-unknown-openbsd.cmake new file mode 100644 index 0000000..bec1917 --- /dev/null +++ b/.github/workflows/cmake_toolchains/arm-unknown-openbsd.cmake @@ -0,0 +1,22 @@ +set(CMAKE_SYSTEM_NAME "OpenBSD") +set(CMAKE_SYSTEM_PROCESSOR "arm") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-openbsd") + +set(TOOLCHAIN_PATH "$ENV{ATAR_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +add_link_options("-Wl,-rpath-link,${CMAKE_FIND_ROOT_PATH}/lib") diff --git a/.github/workflows/cmake_toolchains/armv7-w64-mingw32.cmake b/.github/workflows/cmake_toolchains/armv7-w64-mingw32.cmake new file mode 100644 index 0000000..4f8fbcb --- /dev/null +++ b/.github/workflows/cmake_toolchains/armv7-w64-mingw32.cmake @@ -0,0 +1,18 @@ +set(CMAKE_SYSTEM_NAME "Windows") +set(CMAKE_SYSTEM_PROCESSOR "armv7") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32") + +set(TOOLCHAIN_PATH "$ENV{LLVM_MINGW_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_RC_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-windres") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/armv7a-linux-androideabi.cmake b/.github/workflows/cmake_toolchains/armv7a-linux-androideabi.cmake new file mode 100644 index 0000000..8e23f02 --- /dev/null +++ b/.github/workflows/cmake_toolchains/armv7a-linux-androideabi.cmake @@ -0,0 +1,12 @@ +set(ANDROID_ABI "armeabi-v7a") +set(ANDROID_NATIVE_API_LEVEL "21") + +set(TOOLCHAIN_PREFIX "armv7a-linux-androideabi${ANDROID_NATIVE_API_LEVEL}") + +include("$ENV{ANDROID_HOME}/build/cmake/android.toolchain.cmake") + +set(CMAKE_AR "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-nm" CACHE FILEPATH "nm") diff --git a/.github/workflows/cmake_toolchains/armv7l-unknown-linux-musleabihf.cmake b/.github/workflows/cmake_toolchains/armv7l-unknown-linux-musleabihf.cmake new file mode 100644 index 0000000..e73831a --- /dev/null +++ b/.github/workflows/cmake_toolchains/armv7l-unknown-linux-musleabihf.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "armv7l") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-musleabihf") + +set(TOOLCHAIN_PATH "$ENV{RAIDEN_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/hppa-linux-gnu.cmake b/.github/workflows/cmake_toolchains/hppa-linux-gnu.cmake new file mode 100644 index 0000000..bc65ca4 --- /dev/null +++ b/.github/workflows/cmake_toolchains/hppa-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "hppa") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/hppa-unknown-linux-gnu.cmake b/.github/workflows/cmake_toolchains/hppa-unknown-linux-gnu.cmake new file mode 100644 index 0000000..522df6e --- /dev/null +++ b/.github/workflows/cmake_toolchains/hppa-unknown-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "hppa") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/hppa-unknown-linux-gnu2.7.cmake b/.github/workflows/cmake_toolchains/hppa-unknown-linux-gnu2.7.cmake new file mode 100644 index 0000000..164d876 --- /dev/null +++ b/.github/workflows/cmake_toolchains/hppa-unknown-linux-gnu2.7.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "hppa") + +set(TARGET_GLIBC "2.7") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/hppa-unknown-netbsd.cmake b/.github/workflows/cmake_toolchains/hppa-unknown-netbsd.cmake new file mode 100644 index 0000000..bc7b34a --- /dev/null +++ b/.github/workflows/cmake_toolchains/hppa-unknown-netbsd.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "NetBSD") +set(CMAKE_SYSTEM_PROCESSOR "hppa") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-netbsd") + +set(TOOLCHAIN_PATH "$ENV{DAKINI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/hppa-unknown-openbsd.cmake b/.github/workflows/cmake_toolchains/hppa-unknown-openbsd.cmake new file mode 100644 index 0000000..5c6dbaf --- /dev/null +++ b/.github/workflows/cmake_toolchains/hppa-unknown-openbsd.cmake @@ -0,0 +1,22 @@ +set(CMAKE_SYSTEM_NAME "OpenBSD") +set(CMAKE_SYSTEM_PROCESSOR "hppa") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-openbsd") + +set(TOOLCHAIN_PATH "$ENV{ATAR_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +add_link_options("-Wl,-rpath-link,${CMAKE_FIND_ROOT_PATH}/lib") diff --git a/.github/workflows/cmake_toolchains/i386-tizenmobile-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/i386-tizenmobile-linux-gnueabi.cmake new file mode 100644 index 0000000..72d75f3 --- /dev/null +++ b/.github/workflows/cmake_toolchains/i386-tizenmobile-linux-gnueabi.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "i386") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-tizenmobile-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{NUL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/i386-tizenwearable-linux-gnueabi.cmake b/.github/workflows/cmake_toolchains/i386-tizenwearable-linux-gnueabi.cmake new file mode 100644 index 0000000..72d75f3 --- /dev/null +++ b/.github/workflows/cmake_toolchains/i386-tizenwearable-linux-gnueabi.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "i386") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-tizenmobile-linux-gnueabi") + +set(TOOLCHAIN_PATH "$ENV{NUL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/i386-unknown-freebsd.cmake b/.github/workflows/cmake_toolchains/i386-unknown-freebsd.cmake new file mode 100644 index 0000000..c25ccbe --- /dev/null +++ b/.github/workflows/cmake_toolchains/i386-unknown-freebsd.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "FreeBSD") +set(CMAKE_SYSTEM_PROCESSOR "i386") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-freebsd12.3") + +set(TOOLCHAIN_PATH "$ENV{LOKI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu.cmake b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu.cmake new file mode 100644 index 0000000..27862aa --- /dev/null +++ b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "i386") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.11.cmake b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.11.cmake new file mode 100644 index 0000000..b8a2546 --- /dev/null +++ b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.11.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "i386") + +set(TARGET_GLIBC "2.11") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.19.cmake b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.19.cmake new file mode 100644 index 0000000..6e13e6e --- /dev/null +++ b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.19.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "i386") + +set(TARGET_GLIBC "2.19") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.24.cmake b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.24.cmake new file mode 100644 index 0000000..3261573 --- /dev/null +++ b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.24.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "i386") + +set(TARGET_GLIBC "2.24") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.28.cmake b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.28.cmake new file mode 100644 index 0000000..8ff9b22 --- /dev/null +++ b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.28.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "i386") + +set(TARGET_GLIBC "2.28") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.31.cmake b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.31.cmake new file mode 100644 index 0000000..e1b17eb --- /dev/null +++ b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.31.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "i386") + +set(TARGET_GLIBC "2.31") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.7.cmake b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.7.cmake new file mode 100644 index 0000000..3711561 --- /dev/null +++ b/.github/workflows/cmake_toolchains/i386-unknown-linux-gnu2.7.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "i386") + +set(TARGET_GLIBC "2.7") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/i386-unknown-linux-musl.cmake b/.github/workflows/cmake_toolchains/i386-unknown-linux-musl.cmake new file mode 100644 index 0000000..289ad75 --- /dev/null +++ b/.github/workflows/cmake_toolchains/i386-unknown-linux-musl.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "i386") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-musl") + +set(TOOLCHAIN_PATH "$ENV{RAIDEN_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/i386-unknown-netbsdelf.cmake b/.github/workflows/cmake_toolchains/i386-unknown-netbsdelf.cmake new file mode 100644 index 0000000..ffcba8a --- /dev/null +++ b/.github/workflows/cmake_toolchains/i386-unknown-netbsdelf.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "NetBSD") +set(CMAKE_SYSTEM_PROCESSOR "i386") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-netbsdelf") + +set(TOOLCHAIN_PATH "$ENV{DAKINI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/i386-unknown-openbsd.cmake b/.github/workflows/cmake_toolchains/i386-unknown-openbsd.cmake new file mode 100644 index 0000000..588a7fc --- /dev/null +++ b/.github/workflows/cmake_toolchains/i386-unknown-openbsd.cmake @@ -0,0 +1,22 @@ +set(CMAKE_SYSTEM_NAME "OpenBSD") +set(CMAKE_SYSTEM_PROCESSOR "i386") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-openbsd") + +set(TOOLCHAIN_PATH "$ENV{ATAR_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +add_link_options("-Wl,-rpath-link,${CMAKE_FIND_ROOT_PATH}/lib") diff --git a/.github/workflows/cmake_toolchains/i586-unknown-haiku.cmake b/.github/workflows/cmake_toolchains/i586-unknown-haiku.cmake new file mode 100644 index 0000000..b5682c0 --- /dev/null +++ b/.github/workflows/cmake_toolchains/i586-unknown-haiku.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Haiku") +set(CMAKE_SYSTEM_PROCESSOR "i586") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-haiku") + +set(TOOLCHAIN_PATH "$ENV{SIL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" -lnetwork) +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" -lnetwork) +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/i686-linux-android.cmake b/.github/workflows/cmake_toolchains/i686-linux-android.cmake new file mode 100644 index 0000000..f4c7007 --- /dev/null +++ b/.github/workflows/cmake_toolchains/i686-linux-android.cmake @@ -0,0 +1,12 @@ +set(ANDROID_ABI "x86") +set(ANDROID_NATIVE_API_LEVEL "21") + +set(TOOLCHAIN_PREFIX "i686-linux-android${ANDROID_NATIVE_API_LEVEL}") + +include("$ENV{ANDROID_HOME}/build/cmake/android.toolchain.cmake") + +set(CMAKE_AR "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-nm" CACHE FILEPATH "nm") diff --git a/.github/workflows/cmake_toolchains/i686-linux-gnu.cmake b/.github/workflows/cmake_toolchains/i686-linux-gnu.cmake new file mode 100644 index 0000000..a3d1cb8 --- /dev/null +++ b/.github/workflows/cmake_toolchains/i686-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "i686") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/i686-w64-mingw32.cmake b/.github/workflows/cmake_toolchains/i686-w64-mingw32.cmake new file mode 100644 index 0000000..9ff55c6 --- /dev/null +++ b/.github/workflows/cmake_toolchains/i686-w64-mingw32.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Windows") +set(CMAKE_SYSTEM_PROCESSOR "i686") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32") + +set(TOOLCHAIN_PATH "$ENV{LLVM_MINGW_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_RC_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-windres") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/ia64-unknown-linux-gnu.cmake b/.github/workflows/cmake_toolchains/ia64-unknown-linux-gnu.cmake new file mode 100644 index 0000000..1d6c452 --- /dev/null +++ b/.github/workflows/cmake_toolchains/ia64-unknown-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "ia64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/ia64-unknown-linux-gnu2.11.cmake b/.github/workflows/cmake_toolchains/ia64-unknown-linux-gnu2.11.cmake new file mode 100644 index 0000000..a237fad --- /dev/null +++ b/.github/workflows/cmake_toolchains/ia64-unknown-linux-gnu2.11.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "ia64") + +set(TARGET_GLIBC "2.11") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/ia64-unknown-linux-gnu2.13.cmake b/.github/workflows/cmake_toolchains/ia64-unknown-linux-gnu2.13.cmake new file mode 100644 index 0000000..b45008c --- /dev/null +++ b/.github/workflows/cmake_toolchains/ia64-unknown-linux-gnu2.13.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "ia64") + +set(TARGET_GLIBC "2.13") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/ia64-unknown-linux-gnu2.7.cmake b/.github/workflows/cmake_toolchains/ia64-unknown-linux-gnu2.7.cmake new file mode 100644 index 0000000..7bdf08b --- /dev/null +++ b/.github/workflows/cmake_toolchains/ia64-unknown-linux-gnu2.7.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "ia64") + +set(TARGET_GLIBC "2.7") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/m68k-linux-gnu.cmake b/.github/workflows/cmake_toolchains/m68k-linux-gnu.cmake new file mode 100644 index 0000000..8f4394e --- /dev/null +++ b/.github/workflows/cmake_toolchains/m68k-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "m68k") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips-linux-gnu.cmake b/.github/workflows/cmake_toolchains/mips-linux-gnu.cmake new file mode 100644 index 0000000..a641709 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu.cmake b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu.cmake new file mode 100644 index 0000000..c22ed36 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.11.cmake b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.11.cmake new file mode 100644 index 0000000..16b00f3 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.11.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips") + +set(TARGET_GLIBC "2.11") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.13.cmake b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.13.cmake new file mode 100644 index 0000000..847d2f1 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.13.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips") + +set(TARGET_GLIBC "2.13") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.19.cmake b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.19.cmake new file mode 100644 index 0000000..5b4413f --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.19.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips") + +set(TARGET_GLIBC "2.19") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.24.cmake b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.24.cmake new file mode 100644 index 0000000..cb4e561 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.24.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips") + +set(TARGET_GLIBC "2.24") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.28.cmake b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.28.cmake new file mode 100644 index 0000000..751a480 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.28.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips") + +set(TARGET_GLIBC "2.28") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.7.cmake b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.7.cmake new file mode 100644 index 0000000..9479847 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips-unknown-linux-gnu2.7.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips") + +set(TARGET_GLIBC "2.7") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips-unknown-netbsd.cmake b/.github/workflows/cmake_toolchains/mips-unknown-netbsd.cmake new file mode 100644 index 0000000..3fcb4bc --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips-unknown-netbsd.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "NetBSD") +set(CMAKE_SYSTEM_PROCESSOR "mips") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-netbsd") + +set(TOOLCHAIN_PATH "$ENV{DAKINI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips64-linux-gnuabi64.cmake b/.github/workflows/cmake_toolchains/mips64-linux-gnuabi64.cmake new file mode 100644 index 0000000..a389360 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips64-linux-gnuabi64.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnuabi64") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips64-unknown-linux-musl.cmake b/.github/workflows/cmake_toolchains/mips64-unknown-linux-musl.cmake new file mode 100644 index 0000000..5b98ccb --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips64-unknown-linux-musl.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-musl") + +set(TOOLCHAIN_PATH "$ENV{RAIDEN_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips64-unknown-openbsd.cmake b/.github/workflows/cmake_toolchains/mips64-unknown-openbsd.cmake new file mode 100644 index 0000000..ae97b15 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips64-unknown-openbsd.cmake @@ -0,0 +1,22 @@ +set(CMAKE_SYSTEM_NAME "OpenBSD") +set(CMAKE_SYSTEM_PROCESSOR "mips64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-openbsd") + +set(TOOLCHAIN_PATH "$ENV{ATAR_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +add_link_options("-Wl,-rpath-link,${CMAKE_FIND_ROOT_PATH}/lib") diff --git a/.github/workflows/cmake_toolchains/mips64el-linux-gnuabi64.cmake b/.github/workflows/cmake_toolchains/mips64el-linux-gnuabi64.cmake new file mode 100644 index 0000000..92f856f --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips64el-linux-gnuabi64.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips64el") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnuabi64") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi64.cmake b/.github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi64.cmake new file mode 100644 index 0000000..4360385 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi64.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips64el") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnuabi64") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi642.24.cmake b/.github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi642.24.cmake new file mode 100644 index 0000000..55d846e --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi642.24.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips64el") + +set(TARGET_GLIBC "2.24") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnuabi64") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi642.28.cmake b/.github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi642.28.cmake new file mode 100644 index 0000000..1db82a2 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi642.28.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips64el") + +set(TARGET_GLIBC "2.28") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnuabi64") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi642.31.cmake b/.github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi642.31.cmake new file mode 100644 index 0000000..51bd69f --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips64el-unknown-linux-gnuabi642.31.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mips64el") + +set(TARGET_GLIBC "2.31") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnuabi64") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mips64el-unknown-openbsd.cmake b/.github/workflows/cmake_toolchains/mips64el-unknown-openbsd.cmake new file mode 100644 index 0000000..040d6b0 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mips64el-unknown-openbsd.cmake @@ -0,0 +1,22 @@ +set(CMAKE_SYSTEM_NAME "OpenBSD") +set(CMAKE_SYSTEM_PROCESSOR "mips64el") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-openbsd") + +set(TOOLCHAIN_PATH "$ENV{ATAR_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +add_link_options("-Wl,-rpath-link,${CMAKE_FIND_ROOT_PATH}/lib") diff --git a/.github/workflows/cmake_toolchains/mipsel-linux-gnu.cmake b/.github/workflows/cmake_toolchains/mipsel-linux-gnu.cmake new file mode 100644 index 0000000..cca6527 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mipsel-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mipsel") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu.cmake b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu.cmake new file mode 100644 index 0000000..102c9f4 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mipsel") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.11.cmake b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.11.cmake new file mode 100644 index 0000000..3474847 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.11.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mipsel") + +set(TARGET_GLIBC "2.11") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.13.cmake b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.13.cmake new file mode 100644 index 0000000..a9c5cee --- /dev/null +++ b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.13.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mipsel") + +set(TARGET_GLIBC "2.13") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.19.cmake b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.19.cmake new file mode 100644 index 0000000..7be7cbb --- /dev/null +++ b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.19.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mipsel") + +set(TARGET_GLIBC "2.19") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.24.cmake b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.24.cmake new file mode 100644 index 0000000..6cfc497 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.24.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mipsel") + +set(TARGET_GLIBC "2.24") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.28.cmake b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.28.cmake new file mode 100644 index 0000000..e0d24c1 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.28.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mipsel") + +set(TARGET_GLIBC "2.28") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.31.cmake b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.31.cmake new file mode 100644 index 0000000..c377ed5 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.31.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mipsel") + +set(TARGET_GLIBC "2.31") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.7.cmake b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.7.cmake new file mode 100644 index 0000000..eadd5c1 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mipsel-unknown-linux-gnu2.7.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mipsel") + +set(TARGET_GLIBC "2.7") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/mipsisa32r6-linux-gnu.cmake b/.github/workflows/cmake_toolchains/mipsisa32r6-linux-gnu.cmake new file mode 100644 index 0000000..a28c415 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mipsisa32r6-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mipsisa32r6") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/mipsisa32r6el-linux-gnu.cmake b/.github/workflows/cmake_toolchains/mipsisa32r6el-linux-gnu.cmake new file mode 100644 index 0000000..c6644b7 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mipsisa32r6el-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mipsisa32r6el") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/mipsisa64r6-linux-gnuabi64.cmake b/.github/workflows/cmake_toolchains/mipsisa64r6-linux-gnuabi64.cmake new file mode 100644 index 0000000..a14a883 --- /dev/null +++ b/.github/workflows/cmake_toolchains/mipsisa64r6-linux-gnuabi64.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mipsisa64r6") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnuabi64") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/mipsisa64r6el-linux-gnuabi64.cmake b/.github/workflows/cmake_toolchains/mipsisa64r6el-linux-gnuabi64.cmake new file mode 100644 index 0000000..2df4d4e --- /dev/null +++ b/.github/workflows/cmake_toolchains/mipsisa64r6el-linux-gnuabi64.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "mipsisa64r6el") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnuabi64") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc-linux-gnu.cmake b/.github/workflows/cmake_toolchains/powerpc-linux-gnu.cmake new file mode 100644 index 0000000..628953d --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc-unknown-freebsd.cmake b/.github/workflows/cmake_toolchains/powerpc-unknown-freebsd.cmake new file mode 100644 index 0000000..ed98a5a --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc-unknown-freebsd.cmake @@ -0,0 +1,18 @@ +set(CMAKE_SYSTEM_NAME "FreeBSD") +set(CMAKE_SYSTEM_PROCESSOR "powerpc") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-freebsd12.3") + +set(TOOLCHAIN_PATH "$ENV{LOKI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" "-static-libstdc++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu.cmake b/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu.cmake new file mode 100644 index 0000000..4daa1ee --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.11.cmake b/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.11.cmake new file mode 100644 index 0000000..7197552 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.11.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc") + +set(TARGET_GLIBC "2.11") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.13.cmake b/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.13.cmake new file mode 100644 index 0000000..5426b1f --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.13.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc") + +set(TARGET_GLIBC "2.13") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.19.cmake b/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.19.cmake new file mode 100644 index 0000000..8469308 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.19.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc") + +set(TARGET_GLIBC "2.19") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.7.cmake b/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.7.cmake new file mode 100644 index 0000000..6ba6052 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc-unknown-linux-gnu2.7.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc") + +set(TARGET_GLIBC "2.7") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc-unknown-netbsd.cmake b/.github/workflows/cmake_toolchains/powerpc-unknown-netbsd.cmake new file mode 100644 index 0000000..a937914 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc-unknown-netbsd.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "NetBSD") +set(CMAKE_SYSTEM_PROCESSOR "powerpc") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-netbsd") + +set(TOOLCHAIN_PATH "$ENV{DAKINI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc-unknown-openbsd.cmake b/.github/workflows/cmake_toolchains/powerpc-unknown-openbsd.cmake new file mode 100644 index 0000000..1b7c0de --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc-unknown-openbsd.cmake @@ -0,0 +1,22 @@ +set(CMAKE_SYSTEM_NAME "OpenBSD") +set(CMAKE_SYSTEM_PROCESSOR "powerpc") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-openbsd") + +set(TOOLCHAIN_PATH "$ENV{ATAR_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +add_link_options("-Wl,-rpath-link,${CMAKE_FIND_ROOT_PATH}/lib") diff --git a/.github/workflows/cmake_toolchains/powerpc64-linux-gnu.cmake b/.github/workflows/cmake_toolchains/powerpc64-linux-gnu.cmake new file mode 100644 index 0000000..8198c71 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc64-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc64-unknown-freebsd.cmake b/.github/workflows/cmake_toolchains/powerpc64-unknown-freebsd.cmake new file mode 100644 index 0000000..0911e34 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc64-unknown-freebsd.cmake @@ -0,0 +1,18 @@ +set(CMAKE_SYSTEM_NAME "FreeBSD") +set(CMAKE_SYSTEM_PROCESSOR "powerpc64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-freebsd12.3") + +set(TOOLCHAIN_PATH "$ENV{LOKI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc64-unknown-freebsd_elfv2.cmake b/.github/workflows/cmake_toolchains/powerpc64-unknown-freebsd_elfv2.cmake new file mode 100644 index 0000000..e0b85a4 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc64-unknown-freebsd_elfv2.cmake @@ -0,0 +1,18 @@ +set(CMAKE_SYSTEM_NAME "FreeBSD") +set(CMAKE_SYSTEM_PROCESSOR "powerpc64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-freebsd13.0") + +set(TOOLCHAIN_PATH "$ENV{LOKI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc64-unknown-openbsd.cmake b/.github/workflows/cmake_toolchains/powerpc64-unknown-openbsd.cmake new file mode 100644 index 0000000..eedc3c2 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc64-unknown-openbsd.cmake @@ -0,0 +1,22 @@ +set(CMAKE_SYSTEM_NAME "OpenBSD") +set(CMAKE_SYSTEM_PROCESSOR "powerpc64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-openbsd") + +set(TOOLCHAIN_PATH "$ENV{ATAR_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +add_link_options("-Wl,-rpath-link,${CMAKE_FIND_ROOT_PATH}/lib") diff --git a/.github/workflows/cmake_toolchains/powerpc64le-linux-gnu.cmake b/.github/workflows/cmake_toolchains/powerpc64le-linux-gnu.cmake new file mode 100644 index 0000000..b4cf287 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc64le-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc64le") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu.cmake b/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu.cmake new file mode 100644 index 0000000..1d759b8 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc64le") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.19.cmake b/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.19.cmake new file mode 100644 index 0000000..bff2404 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.19.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc64le") + +set(TARGET_GLIBC "2.19") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.24.cmake b/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.24.cmake new file mode 100644 index 0000000..c73fc6b --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.24.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc64le") + +set(TARGET_GLIBC "2.24") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.28.cmake b/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.28.cmake new file mode 100644 index 0000000..133f295 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.28.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc64le") + +set(TARGET_GLIBC "2.28") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.31.cmake b/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.31.cmake new file mode 100644 index 0000000..392d809 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-gnu2.31.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc64le") + +set(TARGET_GLIBC "2.31") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-musl.cmake b/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-musl.cmake new file mode 100644 index 0000000..dcb0977 --- /dev/null +++ b/.github/workflows/cmake_toolchains/powerpc64le-unknown-linux-musl.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "powerpc64le") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-musl") + +set(TOOLCHAIN_PATH "$ENV{RAIDEN_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/riscv64-linux-gnu.cmake b/.github/workflows/cmake_toolchains/riscv64-linux-gnu.cmake new file mode 100644 index 0000000..4ea9c25 --- /dev/null +++ b/.github/workflows/cmake_toolchains/riscv64-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "riscv64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/riscv64-unknown-freebsd.cmake b/.github/workflows/cmake_toolchains/riscv64-unknown-freebsd.cmake new file mode 100644 index 0000000..b9ffe34 --- /dev/null +++ b/.github/workflows/cmake_toolchains/riscv64-unknown-freebsd.cmake @@ -0,0 +1,18 @@ +set(CMAKE_SYSTEM_NAME "FreeBSD") +set(CMAKE_SYSTEM_PROCESSOR "riscv64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-freebsd14.0") + +set(TOOLCHAIN_PATH "$ENV{LOKI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/riscv64-unknown-linux-musl.cmake b/.github/workflows/cmake_toolchains/riscv64-unknown-linux-musl.cmake new file mode 100644 index 0000000..af6bd64 --- /dev/null +++ b/.github/workflows/cmake_toolchains/riscv64-unknown-linux-musl.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "riscv64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-musl") + +set(TOOLCHAIN_PATH "$ENV{RAIDEN_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/riscv64-unknown-openbsd.cmake b/.github/workflows/cmake_toolchains/riscv64-unknown-openbsd.cmake new file mode 100644 index 0000000..6174e5c --- /dev/null +++ b/.github/workflows/cmake_toolchains/riscv64-unknown-openbsd.cmake @@ -0,0 +1,22 @@ +set(CMAKE_SYSTEM_NAME "OpenBSD") +set(CMAKE_SYSTEM_PROCESSOR "riscv64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-openbsd") + +set(TOOLCHAIN_PATH "$ENV{ATAR_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +add_link_options("-Wl,-rpath-link,${CMAKE_FIND_ROOT_PATH}/lib") diff --git a/.github/workflows/cmake_toolchains/s390-unknown-linux-gnu.cmake b/.github/workflows/cmake_toolchains/s390-unknown-linux-gnu.cmake new file mode 100644 index 0000000..b20b2a7 --- /dev/null +++ b/.github/workflows/cmake_toolchains/s390-unknown-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "s390") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/s390-unknown-linux-gnu2.11.cmake b/.github/workflows/cmake_toolchains/s390-unknown-linux-gnu2.11.cmake new file mode 100644 index 0000000..406651f --- /dev/null +++ b/.github/workflows/cmake_toolchains/s390-unknown-linux-gnu2.11.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "s390") + +set(TARGET_GLIBC "2.11") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/s390-unknown-linux-gnu2.13.cmake b/.github/workflows/cmake_toolchains/s390-unknown-linux-gnu2.13.cmake new file mode 100644 index 0000000..0f09f30 --- /dev/null +++ b/.github/workflows/cmake_toolchains/s390-unknown-linux-gnu2.13.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "s390") + +set(TARGET_GLIBC "2.13") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/s390-unknown-linux-gnu2.7.cmake b/.github/workflows/cmake_toolchains/s390-unknown-linux-gnu2.7.cmake new file mode 100644 index 0000000..05fbd4c --- /dev/null +++ b/.github/workflows/cmake_toolchains/s390-unknown-linux-gnu2.7.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "s390") + +set(TARGET_GLIBC "2.7") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/s390x-linux-gnu.cmake b/.github/workflows/cmake_toolchains/s390x-linux-gnu.cmake new file mode 100644 index 0000000..28f8537 --- /dev/null +++ b/.github/workflows/cmake_toolchains/s390x-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "s390x") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu.cmake b/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu.cmake new file mode 100644 index 0000000..6e89ad6 --- /dev/null +++ b/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "s390x") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.13.cmake b/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.13.cmake new file mode 100644 index 0000000..6e66766 --- /dev/null +++ b/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.13.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "s390x") + +set(TARGET_GLIBC "2.13") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.19.cmake b/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.19.cmake new file mode 100644 index 0000000..e796b8f --- /dev/null +++ b/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.19.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "s390x") + +set(TARGET_GLIBC "2.19") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.24.cmake b/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.24.cmake new file mode 100644 index 0000000..78b3de0 --- /dev/null +++ b/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.24.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "s390x") + +set(TARGET_GLIBC "2.24") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.28.cmake b/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.28.cmake new file mode 100644 index 0000000..4a87074 --- /dev/null +++ b/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.28.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "s390x") + +set(TARGET_GLIBC "2.28") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.31.cmake b/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.31.cmake new file mode 100644 index 0000000..e4a0987 --- /dev/null +++ b/.github/workflows/cmake_toolchains/s390x-unknown-linux-gnu2.31.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "s390x") + +set(TARGET_GLIBC "2.31") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/s390x-unknown-linux-musl.cmake b/.github/workflows/cmake_toolchains/s390x-unknown-linux-musl.cmake new file mode 100644 index 0000000..8a751aa --- /dev/null +++ b/.github/workflows/cmake_toolchains/s390x-unknown-linux-musl.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "s390x") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-musl") + +set(TOOLCHAIN_PATH "$ENV{RAIDEN_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/sh4-linux-gnu.cmake b/.github/workflows/cmake_toolchains/sh4-linux-gnu.cmake new file mode 100644 index 0000000..4d898d5 --- /dev/null +++ b/.github/workflows/cmake_toolchains/sh4-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "sh4") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/shle-unknown-netbsdelf.cmake b/.github/workflows/cmake_toolchains/shle-unknown-netbsdelf.cmake new file mode 100644 index 0000000..e44795a --- /dev/null +++ b/.github/workflows/cmake_toolchains/shle-unknown-netbsdelf.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "NetBSD") +set(CMAKE_SYSTEM_PROCESSOR "shle") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-netbsdelf") + +set(TOOLCHAIN_PATH "$ENV{DAKINI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/sparc-unknown-linux-gnu.cmake b/.github/workflows/cmake_toolchains/sparc-unknown-linux-gnu.cmake new file mode 100644 index 0000000..c3bc5d1 --- /dev/null +++ b/.github/workflows/cmake_toolchains/sparc-unknown-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "sparc") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/sparc-unknown-linux-gnu2.11.cmake b/.github/workflows/cmake_toolchains/sparc-unknown-linux-gnu2.11.cmake new file mode 100644 index 0000000..0b385e3 --- /dev/null +++ b/.github/workflows/cmake_toolchains/sparc-unknown-linux-gnu2.11.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "sparc") + +set(TARGET_GLIBC "2.11") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/sparc-unknown-linux-gnu2.13.cmake b/.github/workflows/cmake_toolchains/sparc-unknown-linux-gnu2.13.cmake new file mode 100644 index 0000000..1befaad --- /dev/null +++ b/.github/workflows/cmake_toolchains/sparc-unknown-linux-gnu2.13.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "sparc") + +set(TARGET_GLIBC "2.13") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/sparc-unknown-linux-gnu2.7.cmake b/.github/workflows/cmake_toolchains/sparc-unknown-linux-gnu2.7.cmake new file mode 100644 index 0000000..c7b8260 --- /dev/null +++ b/.github/workflows/cmake_toolchains/sparc-unknown-linux-gnu2.7.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "sparc") + +set(TARGET_GLIBC "2.7") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/sparc-unknown-netbsdelf.cmake b/.github/workflows/cmake_toolchains/sparc-unknown-netbsdelf.cmake new file mode 100644 index 0000000..0f466f9 --- /dev/null +++ b/.github/workflows/cmake_toolchains/sparc-unknown-netbsdelf.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "NetBSD") +set(CMAKE_SYSTEM_PROCESSOR "sparc") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-netbsdelf") + +set(TOOLCHAIN_PATH "$ENV{DAKINI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/sparc64-linux-gnu.cmake b/.github/workflows/cmake_toolchains/sparc64-linux-gnu.cmake new file mode 100644 index 0000000..190378d --- /dev/null +++ b/.github/workflows/cmake_toolchains/sparc64-linux-gnu.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "sparc64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/sparc64-unknown-freebsd.cmake b/.github/workflows/cmake_toolchains/sparc64-unknown-freebsd.cmake new file mode 100644 index 0000000..5b45fdb --- /dev/null +++ b/.github/workflows/cmake_toolchains/sparc64-unknown-freebsd.cmake @@ -0,0 +1,18 @@ +set(CMAKE_SYSTEM_NAME "FreeBSD") +set(CMAKE_SYSTEM_PROCESSOR "sparc64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-freebsd12.3") + +set(TOOLCHAIN_PATH "$ENV{LOKI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/sparc64-unknown-netbsd.cmake b/.github/workflows/cmake_toolchains/sparc64-unknown-netbsd.cmake new file mode 100644 index 0000000..21789cd --- /dev/null +++ b/.github/workflows/cmake_toolchains/sparc64-unknown-netbsd.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "NetBSD") +set(CMAKE_SYSTEM_PROCESSOR "sparc64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-netbsd") + +set(TOOLCHAIN_PATH "$ENV{DAKINI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/sparc64-unknown-openbsd.cmake b/.github/workflows/cmake_toolchains/sparc64-unknown-openbsd.cmake new file mode 100644 index 0000000..c59e156 --- /dev/null +++ b/.github/workflows/cmake_toolchains/sparc64-unknown-openbsd.cmake @@ -0,0 +1,22 @@ +set(CMAKE_SYSTEM_NAME "OpenBSD") +set(CMAKE_SYSTEM_PROCESSOR "sparc64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-openbsd") + +set(TOOLCHAIN_PATH "$ENV{ATAR_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +add_link_options("-Wl,-rpath-link,${CMAKE_FIND_ROOT_PATH}/lib") diff --git a/.github/workflows/cmake_toolchains/vax-unknown-netbsdelf.cmake b/.github/workflows/cmake_toolchains/vax-unknown-netbsdelf.cmake new file mode 100644 index 0000000..5f45ba8 --- /dev/null +++ b/.github/workflows/cmake_toolchains/vax-unknown-netbsdelf.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "NetBSD") +set(CMAKE_SYSTEM_PROCESSOR "vax") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-netbsdelf") + +set(TOOLCHAIN_PATH "$ENV{DAKINI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-apple-darwin.cmake b/.github/workflows/cmake_toolchains/x86_64-apple-darwin.cmake new file mode 100644 index 0000000..15d5470 --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-apple-darwin.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Darwin") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-apple-darwin20.4") + +set(TOOLCHAIN_PATH "$ENV{OSXCROSS_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-clang") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-clang++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_INSTALL_NAME_TOOL "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-install_name_tool" CACHE FILEPATH "install_name_tool") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/SDK/MacOSX11.3.sdk") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-linux-android.cmake b/.github/workflows/cmake_toolchains/x86_64-linux-android.cmake new file mode 100644 index 0000000..c5c1aea --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-linux-android.cmake @@ -0,0 +1,12 @@ +set(ANDROID_ABI "x86_64") +set(ANDROID_NATIVE_API_LEVEL "21") + +set(TOOLCHAIN_PREFIX "${ANDROID_ABI}-linux-android${ANDROID_NATIVE_API_LEVEL}") + +include("$ENV{ANDROID_HOME}/build/cmake/android.toolchain.cmake") + +set(CMAKE_AR "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${ANDROID_TOOLCHAIN_ROOT}/bin/llvm-nm" CACHE FILEPATH "nm") diff --git a/.github/workflows/cmake_toolchains/x86_64-linux-gnu.cmake b/.github/workflows/cmake_toolchains/x86_64-linux-gnu.cmake new file mode 100644 index 0000000..45c304d --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-linux-gnux32.cmake b/.github/workflows/cmake_toolchains/x86_64-linux-gnux32.cmake new file mode 100644 index 0000000..e6bfc8a --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-linux-gnux32.cmake @@ -0,0 +1,19 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnux32") + +set(TOOLCHAIN_PATH "$ENV{SPHYNX_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-dragonfly.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-dragonfly.cmake new file mode 100644 index 0000000..b718dda --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-dragonfly.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "DragonFly") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-dragonfly") + +set(TOOLCHAIN_PATH "$ENV{VENTI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-freebsd.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-freebsd.cmake new file mode 100644 index 0000000..28c82cf --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-freebsd.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "FreeBSD") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-freebsd12.3") + +set(TOOLCHAIN_PATH "$ENV{LOKI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-haiku.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-haiku.cmake new file mode 100644 index 0000000..84eb589 --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-haiku.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Haiku") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-haiku") + +set(TOOLCHAIN_PATH "$ENV{SIL_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" -lnetwork) +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" -lnetwork) +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu.cmake new file mode 100644 index 0000000..13541aa --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.11.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.11.cmake new file mode 100644 index 0000000..70593b7 --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.11.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TARGET_GLIBC "2.11") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.13.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.13.cmake new file mode 100644 index 0000000..f7a272a --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.13.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TARGET_GLIBC "2.13") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.19.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.19.cmake new file mode 100644 index 0000000..7e75f03 --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.19.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TARGET_GLIBC "2.19") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.24.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.24.cmake new file mode 100644 index 0000000..3a0579e --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.24.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TARGET_GLIBC "2.24") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.28.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.28.cmake new file mode 100644 index 0000000..9a43d62 --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.28.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TARGET_GLIBC "2.28") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.31.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.31.cmake new file mode 100644 index 0000000..ab55ec2 --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.31.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TARGET_GLIBC "2.31") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.7.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.7.cmake new file mode 100644 index 0000000..1ab2e5c --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-gnu2.7.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TARGET_GLIBC "2.7") +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-gnu") + +set(TOOLCHAIN_PATH "$ENV{OBGGCC_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}${TARGET_GLIBC}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-linux-musl.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-musl.cmake new file mode 100644 index 0000000..a66151d --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-linux-musl.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-linux-musl") + +set(TOOLCHAIN_PATH "$ENV{RAIDEN_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-netbsd.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-netbsd.cmake new file mode 100644 index 0000000..413d145 --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-netbsd.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "NetBSD") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-netbsd") + +set(TOOLCHAIN_PATH "$ENV{DAKINI_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-openbsd.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-openbsd.cmake new file mode 100644 index 0000000..7451267 --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-openbsd.cmake @@ -0,0 +1,22 @@ +set(CMAKE_SYSTEM_NAME "OpenBSD") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-openbsd") + +set(TOOLCHAIN_PATH "$ENV{ATAR_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) + +add_link_options("-Wl,-rpath-link,${CMAKE_FIND_ROOT_PATH}/lib") diff --git a/.github/workflows/cmake_toolchains/x86_64-unknown-serenity.cmake b/.github/workflows/cmake_toolchains/x86_64-unknown-serenity.cmake new file mode 100644 index 0000000..4d7366a --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-unknown-serenity.cmake @@ -0,0 +1,20 @@ +set(CMAKE_SYSTEM_NAME "SerenityOS") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-unknown-serenity") + +set(TOOLCHAIN_PATH "$ENV{SENNA_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.github/workflows/cmake_toolchains/x86_64-w64-mingw32.cmake b/.github/workflows/cmake_toolchains/x86_64-w64-mingw32.cmake new file mode 100644 index 0000000..308338f --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64-w64-mingw32.cmake @@ -0,0 +1,18 @@ +set(CMAKE_SYSTEM_NAME "Windows") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}-w64-mingw32") + +set(TOOLCHAIN_PATH "$ENV{LLVM_MINGW_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-gcc" CACHE FILEPATH "cc") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-g++" CACHE FILEPATH "c++") +set(CMAKE_RC_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-windres") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/${TOOLCHAIN_PREFIX}") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) \ No newline at end of file diff --git a/.github/workflows/cmake_toolchains/x86_64h-apple-darwin.cmake b/.github/workflows/cmake_toolchains/x86_64h-apple-darwin.cmake new file mode 100644 index 0000000..e927774 --- /dev/null +++ b/.github/workflows/cmake_toolchains/x86_64h-apple-darwin.cmake @@ -0,0 +1,21 @@ +set(CMAKE_SYSTEM_NAME "Darwin") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(TOOLCHAIN_PREFIX "${CMAKE_SYSTEM_PROCESSOR}h-apple-darwin20.4") + +set(TOOLCHAIN_PATH "$ENV{OSXCROSS_HOME}") + +set(CMAKE_C_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-clang") +set(CMAKE_CXX_COMPILER "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-clang++" CACHE FILEPATH "c++") +set(CMAKE_AR "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ar" CACHE FILEPATH "ar") +set(CMAKE_STRIP "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-strip" CACHE FILEPATH "strip") +set(CMAKE_OBJCOPY "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-objcopy" CACHE FILEPATH "objcopy") +set(CMAKE_RANLIB "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-ranlib" CACHE FILEPATH "ranlib") +set(CMAKE_INSTALL_NAME_TOOL "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-install_name_tool" CACHE FILEPATH "install_name_tool") +set(CMAKE_NM "${TOOLCHAIN_PATH}/bin/${TOOLCHAIN_PREFIX}-nm" CACHE FILEPATH "nm") + +set(CMAKE_FIND_ROOT_PATH "${TOOLCHAIN_PATH}/SDK/MacOSX11.3.sdk") +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY) diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..cd2d54d --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "submodules/cmake-redis"] + path = submodules/cmake-redis + url = https://github.com/AmanoTeam/cmake-redis diff --git a/README.md b/README.md new file mode 100644 index 0000000..4387afc --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# Redis + +Precompiled portable FFmpeg binaries for Linux, BSD and Haiku + +## Releases + +You can obtain releases from the [releases](https://github.com/AmanoTeam/Redis-Builds/releases) page. diff --git a/submodules/cmake-redis b/submodules/cmake-redis new file mode 160000 index 0000000..759fea9 --- /dev/null +++ b/submodules/cmake-redis @@ -0,0 +1 @@ +Subproject commit 759fea9cac0d94c1ccc75397755135a7cdda44f5