-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add (#31): Add source-code of all repositories
Added the plain source-code of all repositories, which were included as submodules until the previous commit. While doing so, there are some additional changes: - structured them into new subdirectories for a cleaner separation. - removed license-files an git-directores to keep all under the current Apache2-license - update license-header in all files to match with the license of the repository
- Loading branch information
1 parent
c134bdd
commit 00ecdd6
Showing
1,174 changed files
with
130,881 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
QT -= qt core gui | ||
|
||
TARGET = AzukiHeart | ||
CONFIG += console | ||
CONFIG += c++17 | ||
|
||
LIBS += -L../../libraries/../libraries/libAzukiHeart/src -lAzukiHeart | ||
LIBS += -L../../libraries/../libraries/libAzukiHeart/src/debug -lAzukiHeart | ||
LIBS += -L../../libraries/../libraries/libAzukiHeart/src/release -lAzukiHeart | ||
INCLUDEPATH += ../../libraries/libAzukiHeart/include | ||
|
||
LIBS += -L../../libraries/../libraries/libMisakiGuard/src -lMisakiGuard | ||
LIBS += -L../../libraries/../libraries/libMisakiGuard/src/debug -lMisakiGuard | ||
LIBS += -L../../libraries/../libraries/libMisakiGuard/src/release -lMisakiGuard | ||
INCLUDEPATH += ../../libraries/libMisakiGuard/include | ||
|
||
LIBS += -L../../libraries/../libraries/libKitsunemimiHanamiNetwork/src -lKitsunemimiHanamiNetwork | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiHanamiNetwork/src/debug -lKitsunemimiHanamiNetwork | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiHanamiNetwork/src/release -lKitsunemimiHanamiNetwork | ||
INCLUDEPATH += ../../libraries/libKitsunemimiHanamiNetwork/include | ||
|
||
LIBS += -L../../libraries/../libraries/libKitsunemimiHanamiCommon/src -lKitsunemimiHanamiCommon | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiHanamiCommon/src/debug -lKitsunemimiHanamiCommon | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiHanamiCommon/src/release -lKitsunemimiHanamiCommon | ||
INCLUDEPATH += ../../libraries/libKitsunemimiHanamiCommon/include | ||
|
||
LIBS += -L../../libraries/../libraries/libKitsunemimiSakuraHardware/src -lKitsunemimiSakuraHardware | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiSakuraHardware/src/debug -lKitsunemimiSakuraHardware | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiSakuraHardware/src/release -lKitsunemimiSakuraHardware | ||
INCLUDEPATH += ../../libraries/libKitsunemimiSakuraHardware/include | ||
|
||
LIBS += -L../../libraries/../libraries/libKitsunemimiArgs/src -lKitsunemimiArgs | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiArgs/src/debug -lKitsunemimiArgs | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiArgs/src/release -lKitsunemimiArgs | ||
INCLUDEPATH += ../../libraries/libKitsunemimiArgs/include | ||
|
||
LIBS += -L../../libraries/../libraries/libKitsunemimiConfig/src -lKitsunemimiConfig | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiConfig/src/debug -lKitsunemimiConfig | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiConfig/src/release -lKitsunemimiConfig | ||
INCLUDEPATH += ../../libraries/libKitsunemimiConfig/include | ||
|
||
LIBS += -L../../libraries/../libraries/libKitsunemimiSakuraNetwork/src -lKitsunemimiSakuraNetwork | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiSakuraNetwork/src/debug -lKitsunemimiSakuraNetwork | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiSakuraNetwork/src/release -lKitsunemimiSakuraNetwork | ||
INCLUDEPATH += ../../libraries/libKitsunemimiSakuraNetwork/include | ||
|
||
LIBS += -L../../libraries/../libraries/libKitsunemimiCommon/src -lKitsunemimiCommon | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiCommon/src/debug -lKitsunemimiCommon | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiCommon/src/release -lKitsunemimiCommon | ||
INCLUDEPATH += ../../libraries/libKitsunemimiCommon/include | ||
|
||
LIBS += -L../../libraries/../libraries/libKitsunemimiNetwork/src -lKitsunemimiNetwork | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiNetwork/src/debug -lKitsunemimiNetwork | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiNetwork/src/release -lKitsunemimiNetwork | ||
INCLUDEPATH += ../../libraries/libKitsunemimiNetwork/include | ||
|
||
LIBS += -L../../libraries/../libraries/libKitsunemimiJson/src -lKitsunemimiJson | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiJson/src/debug -lKitsunemimiJson | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiJson/src/release -lKitsunemimiJson | ||
INCLUDEPATH += ../../libraries/libKitsunemimiJson/include | ||
|
||
LIBS += -L../../libraries/../libraries/libKitsunemimiIni/src -lKitsunemimiIni | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiIni/src/debug -lKitsunemimiIni | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiIni/src/release -lKitsunemimiIni | ||
INCLUDEPATH += ../../libraries/libKitsunemimiIni/include | ||
|
||
LIBS += -L../../libraries/../libraries/libKitsunemimiJwt/src -lKitsunemimiJwt | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiJwt/src/debug -lKitsunemimiJwt | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiJwti/src/release -lKitsunemimiJwt | ||
INCLUDEPATH += ../../libraries/libKitsunemimiJwt/include | ||
|
||
LIBS += -L../../libraries/../libraries/libKitsunemimiCrypto/src -lKitsunemimiCrypto | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiCrypto/src/debug -lKitsunemimiCrypto | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiCrypto/src/release -lKitsunemimiCrypto | ||
INCLUDEPATH += ../../libraries/libKitsunemimiCrypto/include | ||
|
||
LIBS += -L../../libraries/../libraries/libKitsunemimiCpu/src -lKitsunemimiCpu | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiCpu/src/debug -lKitsunemimiCpu | ||
LIBS += -L../../libraries/../libraries/libKitsunemimiCpu/src/release -lKitsunemimiCpu | ||
INCLUDEPATH += ../../libraries/libKitsunemimiCpu/include | ||
|
||
LIBS += -lcryptopp -lssl -luuid -lcrypto -lprotobuf -lpthread | ||
|
||
INCLUDEPATH += $$PWD \ | ||
src | ||
|
||
SOURCES += src/main.cpp \ | ||
src/api/v1/measurements/power_consumption.cpp \ | ||
src/api/v1/measurements/speed.cpp \ | ||
src/api/v1/measurements/temperature_production.cpp \ | ||
src/api/v1/system_info/get_system_info.cpp \ | ||
src/api/v1/threading/get_thread_mapping.cpp \ | ||
src/azuki_root.cpp \ | ||
src/core/power_measuring.cpp \ | ||
src/core/speed_measuring.cpp \ | ||
src/core/temperature_measuring.cpp \ | ||
src/core/thread_binder.cpp \ | ||
src/core/value_container.cpp | ||
|
||
HEADERS += \ | ||
src/api/blossom_initializing.h \ | ||
src/api/v1/measurements/power_consumption.h \ | ||
src/api/v1/measurements/speed.h \ | ||
src/api/v1/measurements/temperature_production.h \ | ||
src/api/v1/system_info/get_system_info.h \ | ||
src/api/v1/threading/get_thread_mapping.h \ | ||
src/args.h \ | ||
src/azuki_root.h \ | ||
src/callbacks.h \ | ||
src/config.h \ | ||
src/core/power_measuring.h \ | ||
src/core/speed_measuring.h \ | ||
src/core/temperature_measuring.h \ | ||
src/core/thread_binder.h \ | ||
src/core/value_container.h | ||
|
||
AZUKI_PROTO_BUFFER = ../../libraries/libKitsunemimiHanamiMessages/protobuffers/azuki_messages.proto3 | ||
|
||
OTHER_FILES += $$AZUKI_PROTO_BUFFER | ||
|
||
protobuf_decl.name = protobuf headers | ||
protobuf_decl.name = protobuf headers | ||
protobuf_decl.input = KYOUKO_PROTO_BUFFER | ||
protobuf_decl.output = ${QMAKE_FILE_IN_PATH}/${QMAKE_FILE_BASE}.proto3.pb.h | ||
protobuf_decl.commands = protoc --cpp_out=${QMAKE_FILE_IN_PATH} --proto_path=${QMAKE_FILE_IN_PATH} ${QMAKE_FILE_NAME} | ||
protobuf_decl.variable_out = HEADERS | ||
QMAKE_EXTRA_COMPILERS += protobuf_decl | ||
|
||
protobuf_impl.name = protobuf sources | ||
protobuf_impl.input = KYOUKO_PROTO_BUFFER | ||
protobuf_impl.output = ${QMAKE_FILE_IN_PATH}/${QMAKE_FILE_BASE}.proto3.pb.cc | ||
protobuf_impl.depends = ${QMAKE_FILE_IN_PATH}/${QMAKE_FILE_BASE}.proto3.pb.h | ||
protobuf_impl.commands = $$escape_expand(\n) | ||
protobuf_impl.variable_out = SOURCES | ||
QMAKE_EXTRA_COMPILERS += protobuf_impl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Changelog | ||
|
||
## [0.2.0] - 2022-07-02 | ||
|
||
### Changed | ||
- only update thread-bindings, in case there has something to be updated to avoid unnecessary requests | ||
- merged files for better structure | ||
- allow multiple core-ids when binding threads | ||
- use separate core-ids for processing-threads | ||
|
||
|
||
## [0.1.1] - 2022-02-14 | ||
|
||
### Changed | ||
- use new component-libraries | ||
|
||
|
||
## [0.1.0] - 2022-01-09 | ||
|
||
### Added | ||
- request thread-mapping of all components | ||
- update thread-binding for all components over networt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# AzukiHeart | ||
|
||
## Description | ||
|
||
Resouce-managment- and Monitoring-component of the Hanami-AI-Project: https://github.com/kitsudaiki/Hanami-AI | ||
|
||
## Author | ||
|
||
Tobias Anker | ||
|
||
eMail: tobias.anker@kitsunemimi.moe | ||
|
||
## License | ||
|
||
This project is licensed under the Apache License Version 2.0 - see the [LICENSE](LICENSE) file for details | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
#!/bin/bash | ||
|
||
# get current directory-path and the path of the parent-directory | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
PARENT_DIR="$(dirname "$DIR")" | ||
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | ||
|
||
# create build-directory | ||
BUILD_DIR="$PARENT_DIR/build" | ||
mkdir -p $BUILD_DIR | ||
|
||
# create directory for the final result | ||
RESULT_DIR="$PARENT_DIR/result" | ||
mkdir -p $RESULT_DIR | ||
|
||
#----------------------------------------------------------------------------------------------------------------- | ||
|
||
function build_kitsune_lib_repo () { | ||
REPO_NAME=$1 | ||
NUMBER_OF_THREADS=$2 | ||
ADDITIONAL_CONFIGS=$3 | ||
|
||
# create build directory for repo and go into this directory | ||
REPO_DIR="$BUILD_DIR/$REPO_NAME" | ||
mkdir -p $REPO_DIR | ||
cd $REPO_DIR | ||
|
||
# build repo library with qmake | ||
/usr/lib/x86_64-linux-gnu/qt5/bin/qmake "$PARENT_DIR/$REPO_NAME/$REPO_NAME.pro" -spec linux-g++ "CONFIG += optimize_full staticlib $ADDITIONAL_CONFIGS" | ||
/usr/bin/make -j$NUMBER_OF_THREADS | ||
|
||
# copy build-result and include-files into the result-directory | ||
echo "----------------------------------------------------------------------" | ||
echo $RESULT_DIR | ||
cp $REPO_DIR/src/$REPO_NAME.a $RESULT_DIR/ | ||
cp -r $PARENT_DIR/$REPO_NAME/include $RESULT_DIR/ | ||
ls -l $RESULT_DIR/include/ | ||
ls -l $RESULT_DIR | ||
} | ||
|
||
function download_repo_github () { | ||
REPO_NAME=$1 | ||
TAG_OR_BRANCH=$2 | ||
|
||
echo "" | ||
echo "" | ||
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" | ||
echo "$REPO_NAME" | ||
echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++" | ||
echo "Branch/Tag: $TAG_OR_BRANCH" | ||
|
||
# clone repo | ||
git clone https://github.com/kitsudaiki/$REPO_NAME.git "$PARENT_DIR/$REPO_NAME" | ||
cd "$PARENT_DIR/$REPO_NAME" | ||
|
||
# checkout branch | ||
if [[ $CURRENT_BRANCH =~ ^tag.* ]] || [[ $CURRENT_BRANCH =~ ^hotfix.* ]] || [[ $CURRENT_BRANCH =~ ^v.* ]] || [[ $CURRENT_BRANCH =~ ^rolling$ ]] || [[ $CURRENT_BRANCH =~ ^staging$ ]]; then | ||
# if a stable branch, then use the defined tag of branch | ||
# check if defined branch even exist | ||
BRANCH_EXIST=$(git ls-remote --heads origin $TAG_OR_BRANCH) | ||
if [[ -z "$BRANCH_EXIST" ]]; then | ||
echo "" | ||
echo "-------------------------------------------------------------------------------------" | ||
echo "Branch or tag '$TAG_OR_BRANCH' does not exist for the repository '$REPO_NAME'" | ||
echo "-------------------------------------------------------------------------------------" | ||
echo "" | ||
exit 1 | ||
fi | ||
git checkout $TAG_OR_BRANCH | ||
else | ||
# if develop or feature branch, then try to checkout the feature-branch in the other repo as well | ||
# or otherwise use the develop-branch as default | ||
BRANCH_EXIST=$(git ls-remote --heads origin $CURRENT_BRANCH) | ||
if [[ -n "$BRANCH_EXIST" ]]; then | ||
git checkout $CURRENT_BRANCH | ||
else | ||
git checkout develop | ||
fi | ||
fi | ||
} | ||
|
||
function get_required_kitsune_lib_repo () { | ||
REPO_NAME=$1 | ||
TAG_OR_BRANCH=$2 | ||
NUMBER_OF_THREADS=$3 | ||
|
||
download_repo_github $REPO_NAME $TAG_OR_BRANCH | ||
build_kitsune_lib_repo $REPO_NAME $NUMBER_OF_THREADS | ||
} | ||
|
||
#----------------------------------------------------------------------------------------------------------------- | ||
|
||
echo "" | ||
echo "###########################################################################################################" | ||
echo "" | ||
get_required_kitsune_lib_repo "libKitsunemimiCommon" "develop" 8 | ||
get_required_kitsune_lib_repo "libKitsunemimiJson" "develop" 1 | ||
get_required_kitsune_lib_repo "libKitsunemimiIni" "develop" 1 | ||
get_required_kitsune_lib_repo "libKitsunemimiNetwork" "develop" 8 | ||
get_required_kitsune_lib_repo "libKitsunemimiArgs" "develop" 8 | ||
get_required_kitsune_lib_repo "libKitsunemimiConfig" "develop" 8 | ||
echo "" | ||
echo "###########################################################################################################" | ||
echo "" | ||
get_required_kitsune_lib_repo "libKitsunemimiCpu" "develop" 8 | ||
get_required_kitsune_lib_repo "libKitsunemimiSqlite" "develop" 8 | ||
get_required_kitsune_lib_repo "libKitsunemimiCrypto" "develop" 8 | ||
get_required_kitsune_lib_repo "libKitsunemimiJwt" "develop" 8 | ||
echo "" | ||
echo "###########################################################################################################" | ||
echo "" | ||
get_required_kitsune_lib_repo "libKitsunemimiSakuraNetwork" "develop" 8 | ||
get_required_kitsune_lib_repo "libKitsunemimiSakuraHardware" "develop" 8 | ||
get_required_kitsune_lib_repo "libKitsunemimiSakuraDatabase" "develop" 8 | ||
echo "" | ||
echo "###########################################################################################################" | ||
echo "" | ||
get_required_kitsune_lib_repo "libKitsunemimiHanamiCommon" "develop" 8 | ||
get_required_kitsune_lib_repo "libKitsunemimiHanamiDatabase" "develop" 8 | ||
download_repo_github "libKitsunemimiHanamiMessages" "develop" | ||
get_required_kitsune_lib_repo "libKitsunemimiHanamiNetwork" "develop" 8 | ||
echo "" | ||
echo "###########################################################################################################" | ||
echo "" | ||
get_required_kitsune_lib_repo "libAzukiHeart" "develop" 8 | ||
get_required_kitsune_lib_repo "libMisakiGuard" "develop" 8 | ||
echo "" | ||
echo "###########################################################################################################" | ||
|
||
#----------------------------------------------------------------------------------------------------------------- | ||
|
||
# create build directory for KyoukoMind and go into this directory | ||
LIB_KITSUNE_SAKURA_TREE_DIR="$BUILD_DIR/AzukiHeart" | ||
mkdir -p $LIB_KITSUNE_SAKURA_TREE_DIR | ||
cd $LIB_KITSUNE_SAKURA_TREE_DIR | ||
|
||
# build AzukiHeart with qmake | ||
/usr/lib/x86_64-linux-gnu/qt5/bin/qmake "$PARENT_DIR/AzukiHeart/AzukiHeart.pro" -spec linux-g++ "CONFIG += optimize_full" | ||
/usr/bin/make -j8 | ||
|
||
# copy build-result and include-files into the result-directory | ||
cp "$LIB_KITSUNE_SAKURA_TREE_DIR/AzukiHeart" "$RESULT_DIR/" | ||
|
||
#----------------------------------------------------------------------------------------------------------------- | ||
|
Oops, something went wrong.