Compare commits
6 Commits
d9c98b5cdc
...
fdfac9d951
| Author | SHA1 | Date | |
|---|---|---|---|
| fdfac9d951 | |||
| 7ba37df367 | |||
| 4176c39620 | |||
| 91ffaca437 | |||
| 146f1e0855 | |||
| e72ca60381 |
14
cmake/osx-arm64.cmake
Normal file
14
cmake/osx-arm64.cmake
Normal file
@@ -0,0 +1,14 @@
|
||||
# QUIK Toolchain file for OSX-ARM64 systems.
|
||||
# Copyright (C) 2024
|
||||
|
||||
set(CMAKE_SYSTEM_NAME Darwin)
|
||||
|
||||
set(CMAKE_C_COMPILER aarch64-apple-darwin23-clang)
|
||||
set(CMAKE_CXX_COMPILER aarch64-apple-darwin23-clang++)
|
||||
|
||||
set(CMAKE_FIND_ROOT_PATH "/usr/local/SDK/MacOSX14.0.sdk/usr"
|
||||
"/usr/local/SDK/MacOSX14.0.sdk/System")
|
||||
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
14
cmake/osx-x64.cmake
Normal file
14
cmake/osx-x64.cmake
Normal file
@@ -0,0 +1,14 @@
|
||||
# QUIK Toolchain file for OSX-ARM64 systems.
|
||||
# Copyright (C) 2024
|
||||
|
||||
set(CMAKE_SYSTEM_NAME Darwin)
|
||||
|
||||
set(CMAKE_C_COMPILER x86_64-apple-darwin23-clang)
|
||||
set(CMAKE_CXX_COMPILER x86_64-apple-darwin23-clang++)
|
||||
|
||||
set(CMAKE_FIND_ROOT_PATH "/usr/local/SDK/MacOSX14.0.sdk/usr"
|
||||
"/usr/local/SDK/MacOSX14.0.sdk/System")
|
||||
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
18
sh/publish.sh
Executable file
18
sh/publish.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
if [-z "$1"]
|
||||
then
|
||||
$1 = $(dirname "$0")
|
||||
fi
|
||||
|
||||
if [ -z "$QUIK_API_KEY" ]
|
||||
then
|
||||
echo "Please define QUIK_API_KEY"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd $1
|
||||
dotnet nuget add source \
|
||||
-n QUIK -u themixedupstuff -p "$QUIK_API_KEY" \
|
||||
--store-password-in-clear-text \
|
||||
https://git.mixedup.dev/api/packages/QUIK/nuget/index.json
|
||||
dotnet nuget push -s QUIK bin/*/*.nupkg
|
||||
@@ -3,6 +3,7 @@
|
||||
# $1 Source path of the project.
|
||||
# $2 Target architecture list.
|
||||
# DST is the destination directory.
|
||||
# NOINSTALL = 1 to skip installing.
|
||||
|
||||
SRC=$1
|
||||
ARCHS=$2
|
||||
@@ -15,7 +16,7 @@ fi
|
||||
|
||||
if [ -z "$ARCHS" ]
|
||||
then
|
||||
ARCHS="linux-arm linux-arm64 linux-x64 win-x64 win-x86"
|
||||
ARCHS="linux-arm linux-arm64 linux-x64 win-x64 win-x86 osx-arm64 osx-x64"
|
||||
fi
|
||||
|
||||
if [ -z "$DST" ]
|
||||
@@ -42,13 +43,15 @@ for ARCH in $ARCHS; do
|
||||
cmake -B $BUILD -S $SRC \
|
||||
-G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_C_FLAGS=-static-libgcc \
|
||||
-DCMAKE_CXX_FLAGS=-static-libgcc \
|
||||
-DCMAKE_INSTALL_PREFIX=$PREFIX \
|
||||
-DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN \
|
||||
$QUIK_ADDITIONAL_CMAKE
|
||||
|
||||
# Build and install.
|
||||
ninja -C $BUILD all
|
||||
ninja -C $BUILD install
|
||||
|
||||
if [ ! $NOINSTALL ]
|
||||
then
|
||||
ninja -C $BUILD install
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user