From 34fe915e387b9e62df8b3cba6dba5e809650ea9b Mon Sep 17 00:00:00 2001 From: Hoffmann Gerhard Date: Mon, 11 Mar 2024 16:37:06 +0100 Subject: [PATCH] win stuff --- Calculator/Calculator.pro | 5 +++++ Calculator/main.cpp | 4 ++-- CalculatorCInterface/CalculatorCInterface.pro | 5 +++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Calculator/Calculator.pro b/Calculator/Calculator.pro index 7c1334d..74b2308 100644 --- a/Calculator/Calculator.pro +++ b/Calculator/Calculator.pro @@ -10,6 +10,11 @@ unix { LIBS += -L/opt/ptu5/opt/build-ATBTariffCalculator-Desktop_Qt_5_12_12_GCC_64bit-Debug/CalculatorCInterface/ -lCalculatorCInterface } +win32 { +INCLUDEPATH += C:\Users\G.Hoffmann\Downloads\libgit2-1.7.2\libgit2-1.7.2\include +LIBS += -LC:\build-ATBTariffCalculator-Desktop_Qt_6_5_0_MinGW_64_bit-Release\CalculatorCInterface\release -lCalculatorCInterface +} + # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 diff --git a/Calculator/main.cpp b/Calculator/main.cpp index d4c3c50..f9a85a6 100644 --- a/Calculator/main.cpp +++ b/Calculator/main.cpp @@ -26,13 +26,13 @@ int main(int argc, char *argv[]) //setDebugLevel(LOG_NOTICE); } -#ifdef __linux__ +#if 1 //TariffCalculatorHandle handle = NewTariffCalculator(); //DeleteTariffCalculator(handle); if (InitGitLibrary() > 0) { - qCritical() << CloneRepository("https://git.mimbach49.de/GerhardHoffmann/customer_999.git", "/tmp/customer_999"); + qCritical() << CloneRepository("https://git.mimbach49.de/GerhardHoffmann/customer_999.git", "C:\\tmp\\customer_999"); ShutdownGitLibrary(); } #else diff --git a/CalculatorCInterface/CalculatorCInterface.pro b/CalculatorCInterface/CalculatorCInterface.pro index 651dc11..2f60b75 100644 --- a/CalculatorCInterface/CalculatorCInterface.pro +++ b/CalculatorCInterface/CalculatorCInterface.pro @@ -8,6 +8,11 @@ unix { LIBS += -L/usr/lib64 -lgit2 } +win32 { + INCLUDEPATH += C:\Users\G.Hoffmann\Downloads\libgit2-1.7.2\libgit2-1.7.2\include + LIBS += -LC:\Users\G.Hoffmann\Downloads\libgit2-1.7.2\libgit2-1.7.2\build\Debug -lgit2 +} + # INCLUDEPATH+=$$_PRO_FILE_PWD_/../Utilities/