Skip to content

Commit

Permalink
[feature] fmt (#350)
Browse files Browse the repository at this point in the history
* fmt

(cherry picked from commit dae3420)

* FMT to fomulas to build

* Fix tar.gz download

* fmt rm tar

* libfmt emscripten / fixed

* Updating CMake Linux Toolchains to folder and code

* fmt updated for all platforms

* GitHub Actions

* Actions Update / Android FMT

* linux arm install firmware off

* FMT Android

* GitHub Actions

* FMT Android

* fmt android

* fmt Android config

* GitHub Actions catos off

* GitHub Actions android only test

* Android cmake fixes

* GitHub Workflow all standard -a

* GitHub Actions

* GitHub Actions
  • Loading branch information
danoli3 authored Feb 18, 2024
1 parent ddb6acc commit d9c882c
Show file tree
Hide file tree
Showing 35 changed files with 911 additions and 163 deletions.
61 changes: 0 additions & 61 deletions .github/disabled/build-android.yml

This file was deleted.

File renamed without changes.
19 changes: 10 additions & 9 deletions .github/disabled/build-linux-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,16 @@ jobs:
TOOLCHAIN_PREFIX: "aarch64-linux-gnu"
steps:
- name: Determine Release
id: vars
run: |
if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
echo "::set-output name=tag::nightly"
echo "::set-output name=release::nightly"
elif [[ "${{ github.ref }}" == "refs/heads/bleeding" ]]; then
echo "::set-output name=tag::bleeding"
echo "::set-output name=release::bleeding"
fi
id: vars
shell: bash
run: |
if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
echo "release=nightly" >> $GITHUB_ENV
echo "prerelease=false" >> $GITHUB_ENV
elif [[ "${{ github.ref }}" == "refs/heads/bleeding" ]]; then
echo "release=bleeding" >> $GITHUB_ENV
echo "prerelease=true" >> $GITHUB_ENV
fi
- uses: actions/checkout@v4
- name: Scripts Calc Formula
run: ./scripts/calculate_formulas.sh
Expand Down
27 changes: 14 additions & 13 deletions .github/disabled/build-linux64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,36 @@ jobs:
strategy:
matrix:
cfg:
- {target: linux, opt: gcc6}
- {target: linux64, opt: gcc6}
env:
TARGET: ${{matrix.cfg.target}}
OPT: ${{matrix.cfg.opt}}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
- name: Scripts Calc Formula - ${{matrix.cfg.target}} - ${{matrix.cfg.opt}}
run: ./scripts/calculate_formulas.sh
- name: Scripts Install
run: ./scripts/$TARGET/install.sh
- name: Determine Release
id: vars
shell: bash
run: |
if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
echo "release=nightly" >> $GITHUB_ENV
echo "prerelease=false" >> $GITHUB_ENV
elif [[ "${{ github.ref }}" == "refs/heads/bleeding" ]]; then
echo "release=bleeding" >> $GITHUB_ENV
echo "prerelease=true" >> $GITHUB_ENV
fi
id: vars
shell: bash
run: |
if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
echo "release=nightly" >> $GITHUB_ENV
echo "prerelease=false" >> $GITHUB_ENV
elif [[ "${{ github.ref }}" == "refs/heads/bleeding" ]]; then
echo "release=bleeding" >> $GITHUB_ENV
echo "prerelease=true" >> $GITHUB_ENV
fi
- name: build
run: ./scripts/build.sh
env:
GA_CI_SECRET: ${{ secrets.CI_SECRET }}
- name: Package
- name: Package
working-directory: ${{ env.GITHUB_WORKSPACE }}
run: scripts/package.sh
env:
TARGET: "linux64"
BUNDLE: ${{ matrix.bundle }}
GA_CI_SECRET: ${{ secrets.CI_SECRET }}
- name: Update Release
Expand Down
20 changes: 0 additions & 20 deletions apothecary/aarch64-linux-gnu.toolchain.cmake

This file was deleted.

6 changes: 3 additions & 3 deletions apothecary/android_configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,17 @@ if [ "$ABI" = "armeabi-v7a" ]; then
export CFLAGS="$CFLAGS $MAKE_TARGET "
export CPPFLAGS="$CPPFLAGS $MAKE_TARGET "
#export CPPFLAGS="$CPPFLAGS -isystem ${SYSROOT}/usr/include/arm-linux-androideabi"
export LDFLAGS="$LDFLAGS $MAKE_TARGET -march=armv7-a -mfloat-abi=softfp -Wl,--fix-cortex-a8 -Wl,--no-undefined"
export LDFLAGS="$LDFLAGS $MAKE_TARGET -Wl,--fix-cortex-a8 -Wl,--no-undefined"
elif [ $ABI = "arm64-v8a" ]; then
export CFLAGS="$CFLAGS $MAKE_TARGET "
export CPPFLAGS="$CPPFLAGS $MAKE_TARGET"
#export CPPFLAGS="$CPPFLAGS -isystem ${SYSROOT}/usr/include/aarch64-linux-android" # for ASM includes
export LDFLAGS="$LDFLAGS"
export LDFLAGS="$LDFLAGS -Wl,--fix-cortex-a8 -Wl,--no-undefined"
elif [ "$ABI" = "x86-64" ]; then
export CFLAGS="$CFLAGS $MAKE_TARGET"
export CPPFLAGS="$CPPFLAGS $MAKE_TARGET "
#export CPPFLAGS="$CPPFLAGS -isystem ${SYSROOT}/usr/include/x86_64-linux-android" # for ASM includes
export LDFLAGS="$LDFLAGS $MAKE_TARGET -Wl,--fix-cortex-a8 -shared -Wl,--no-undefined"
export LDFLAGS="$LDFLAGS $MAKE_TARGET -Wl,--fix-cortex-a8 -Wl,--no-undefined"
elif [ "$ABI" = "x86" ]; then
export CFLAGS="$CFLAGS $MAKE_TARGET" #march=i686 -target i686-linux-android
export CPPFLAGS="$CPPFLAGS $MAKE_TARGET" # -target i686-none-linux-android
Expand Down
3 changes: 2 additions & 1 deletion apothecary/formulas/FreeImage/FreeImage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function build() {
-DENABLE_ARC=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=TRUE \
-DENABLE_VISIBILITY=OFF \
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/ios.toolchain.cmake
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/toolchains/ios.toolchain.cmake
"
cmake .. ${DEFS} \
-DCMAKE_C_STANDARD=17 \
Expand Down Expand Up @@ -175,6 +175,7 @@ function build() {
-DCMAKE_SYSROOT=$SYSROOT \
-DANDROID_NDK=$NDK_ROOT \
-DANDROID_ABI=$ABI \
-DCMAKE_ANDROID_ARCH_ABI=$ABI \
-DANDROID_STL=c++_shared \
-DCMAKE_C_STANDARD=17 \
-DCMAKE_CXX_STANDARD=17 \
Expand Down
2 changes: 1 addition & 1 deletion apothecary/formulas/_depends/pixman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function build() {
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=lib \
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE=bin \
-D CMAKE_VERBOSE_MAKEFILE=OFF \
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/ios.toolchain.cmake \
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/toolchains/ios.toolchain.cmake \
-DPLATFORM=$PLATFORM \
-DENABLE_BITCODE=OFF \
-DENABLE_ARC=OFF \
Expand Down
2 changes: 1 addition & 1 deletion apothecary/formulas/_depends/zlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function build() {
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CXX_STANDARD_REQUIRED=ON \
-DCMAKE_CXX_EXTENSIONS=OFF \
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/ios.toolchain.cmake \
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/toolchains/ios.toolchain.cmake \
-DCMAKE_INSTALL_PREFIX=Release \
-DCMAKE_CXX_FLAGS_RELEASE="-DUSE_PTHREADS=1 ${FLAG_RELEASE} " \
-DCMAKE_C_FLAGS_RELEASE="-DUSE_PTHREADS=1 ${FLAG_RELEASE} " \
Expand Down
7 changes: 6 additions & 1 deletion apothecary/formulas/assimp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function build() {
-DCMAKE_INSTALL_PREFIX=Release \
-DCMAKE_INCLUDE_OUTPUT_DIRECTORY=include \
-DCMAKE_INSTALL_INCLUDEDIR=include \
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/ios.toolchain.cmake \
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/toolchains/ios.toolchain.cmake \
-DPLATFORM=$PLATFORM \
-DENABLE_BITCODE=OFF \
-DENABLE_ARC=OFF \
Expand Down Expand Up @@ -186,6 +186,7 @@ function build() {
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_CMAKE_TOOLCHAIN
-DCMAKE_BUILD_TYPE=Release
-DANDROID_ABI=$ABI
-DCMAKE_ANDROID_ARCH_ABI=$ABI
-DANDROID_STL=c++_static
-DANDROID_NATIVE_API_LEVEL=$ANDROID_PLATFORM
-DANDROID_FORCE_ARM_BUILD=TRUE
Expand All @@ -203,6 +204,7 @@ function build() {
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_CMAKE_TOOLCHAIN
-DCMAKE_BUILD_TYPE=Release
-DANDROID_ABI=$ABI
-DCMAKE_ANDROID_ARCH_ABI=$ABI
-DANDROID_STL=c++_static
-DANDROID_NATIVE_API_LEVEL=$ANDROID_PLATFORM
-DANDROID_FORCE_ARM_BUILD=TRUE
Expand All @@ -219,6 +221,7 @@ function build() {
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_CMAKE_TOOLCHAIN
-DCMAKE_BUILD_TYPE=Release
-DANDROID_ABI=$ABI
-DCMAKE_ANDROID_ARCH_ABI=$ABI
-DANDROID_STL=c++_static
-DANDROID_NATIVE_API_LEVEL=$ANDROID_PLATFORM
-DCMAKE_INSTALL_PREFIX=install"
Expand All @@ -234,6 +237,7 @@ function build() {
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_CMAKE_TOOLCHAIN
-DCMAKE_BUILD_TYPE=Release
-DANDROID_ABI=$ABI
-DCMAKE_ANDROID_ARCH_ABI=$ABI
-DANDROID_STL=c++_static
-DANDROID_NATIVE_API_LEVEL=$ANDROID_PLATFORM
-DCMAKE_INSTALL_PREFIX=install"
Expand Down Expand Up @@ -287,6 +291,7 @@ function build() {
-DANDROID_NDK=$NDK_ROOT \
-DCMAKE_BUILD_TYPE=Release \
-DANDROID_ABI=$ABI \
-DCMAKE_ANDROID_ARCH_ABI=$ABI \
-DANDROID_STL=c++_shared \
-DANDROID_PLATFORM=$ANDROID_PLATFORM \
-DANDROID_NATIVE_API_LEVEL=$ANDROID_PLATFORM \
Expand Down
2 changes: 1 addition & 1 deletion apothecary/formulas/cairo/cairo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function build() {
-DBUILD_GTK_DOC=OFF -DNO_BUILD_TESTS=ON -DNO_DEPENDENCY_TRACKING=ON -DBUILD_XLIB=OFF -DNO_QT=ON -DBUILD_SHARED_LIBS=OFF -DNO_QUARTZ_FONT=OFF -DNO_QUARTZ=OFF -DNO_QUARTZ_IMAGE=OFF"

cmake .. ${DEFS} \
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/ios.toolchain.cmake \
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/toolchains/ios.toolchain.cmake \
-DPLATFORM=$PLATFORM \
-DENABLE_BITCODE=OFF \
-DENABLE_ARC=OFF \
Expand Down
4 changes: 2 additions & 2 deletions apothecary/formulas/curl/curl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ function build() {
-DCMAKE_INSTALL_PREFIX=Release \
-DCMAKE_INCLUDE_OUTPUT_DIRECTORY=include \
-DCMAKE_INSTALL_INCLUDEDIR=include \
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/ios.toolchain.cmake \
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/toolchains/ios.toolchain.cmake \
-DPLATFORM=$PLATFORM \
-DENABLE_BITCODE=OFF \
-DENABLE_ARC=OFF \
Expand Down Expand Up @@ -291,7 +291,7 @@ function build() {
-DCMAKE_INSTALL_PREFIX=Release \
-DCMAKE_INCLUDE_OUTPUT_DIRECTORY=include \
-DCMAKE_INSTALL_INCLUDEDIR=include \
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/ios.toolchain.cmake \
-DCMAKE_TOOLCHAIN_FILE=$APOTHECARY_DIR/toolchains/ios.toolchain.cmake \
-DPLATFORM=$PLATFORM \
-DENABLE_BITCODE=OFF \
-DENABLE_ARC=OFF \
Expand Down
Loading

0 comments on commit d9c882c

Please sign in to comment.