Compare commits
No commits in common. "34fe915e387b9e62df8b3cba6dba5e809650ea9b" and "3c7b5d0958ee83ab79fa56b77778cf43968617cd" have entirely different histories.
34fe915e38
...
3c7b5d0958
@ -10,11 +10,6 @@ unix {
|
|||||||
LIBS += -L/opt/ptu5/opt/build-ATBTariffCalculator-Desktop_Qt_5_12_12_GCC_64bit-Debug/CalculatorCInterface/ -lCalculatorCInterface
|
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.
|
# You can make your code fail to compile if it uses deprecated APIs.
|
||||||
# In order to do so, uncomment the following line.
|
# 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
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||||
|
@ -26,13 +26,13 @@ int main(int argc, char *argv[])
|
|||||||
//setDebugLevel(LOG_NOTICE);
|
//setDebugLevel(LOG_NOTICE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 1
|
#ifdef __linux__
|
||||||
|
|
||||||
//TariffCalculatorHandle handle = NewTariffCalculator();
|
//TariffCalculatorHandle handle = NewTariffCalculator();
|
||||||
//DeleteTariffCalculator(handle);
|
//DeleteTariffCalculator(handle);
|
||||||
|
|
||||||
if (InitGitLibrary() > 0) {
|
if (InitGitLibrary() > 0) {
|
||||||
qCritical() << CloneRepository("https://git.mimbach49.de/GerhardHoffmann/customer_999.git", "C:\\tmp\\customer_999");
|
qCritical() << CloneRepository("https://git.mimbach49.de/GerhardHoffmann/customer_999.git", "/tmp/customer_999");
|
||||||
ShutdownGitLibrary();
|
ShutdownGitLibrary();
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
@ -8,11 +8,6 @@ unix {
|
|||||||
LIBS += -L/usr/lib64 -lgit2
|
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/
|
# INCLUDEPATH+=$$_PRO_FILE_PWD_/../Utilities/
|
||||||
|
|
||||||
|
|
||||||
|
BIN
windows/git2.dll
BIN
windows/git2.dll
Binary file not shown.
BIN
windows/git2.exp
BIN
windows/git2.exp
Binary file not shown.
BIN
windows/git2.lib
BIN
windows/git2.lib
Binary file not shown.
BIN
windows/git2.pdb
BIN
windows/git2.pdb
Binary file not shown.
@ -1,35 +0,0 @@
|
|||||||
unit TariffCalculator;
|
|
||||||
|
|
||||||
{$mode ObjFPC}{$H+}
|
|
||||||
|
|
||||||
interface
|
|
||||||
|
|
||||||
uses
|
|
||||||
SysUtils, CTypes;
|
|
||||||
|
|
||||||
type
|
|
||||||
// Can't use the class directly, so it is treated as an opaque handle.
|
|
||||||
// THandle is guaranteed to have the right size, even on other platforms.
|
|
||||||
TariffCalculatorHandle = THandle;
|
|
||||||
|
|
||||||
function NewTariffCalculator: TariffCalculatorHandle; stdcall;
|
|
||||||
procedure DeleteTariffCalculator(handle: TariffCalculatorHandle); stdcall;
|
|
||||||
|
|
||||||
function InitGitLibrary: cint32; stdcall;
|
|
||||||
function ShutdownGitLibrary: cint32; stdcall;
|
|
||||||
function CloneRepository(var url; var local_path) : cint32; stdcall;
|
|
||||||
|
|
||||||
implementation
|
|
||||||
|
|
||||||
const
|
|
||||||
DLLName = 'CalculatorCInterface.dll';
|
|
||||||
|
|
||||||
function NewTariffCalculator: TariffCalculatorHandle; stdcall; external DLLName;
|
|
||||||
procedure DeleteTariffCalculator(handle: TariffCalculatorHandle); stdcall; external DLLName;
|
|
||||||
|
|
||||||
function InitGitLibrary: cint32; stdcall; external DLLName;
|
|
||||||
function ShutdownGitLibrary: cint32; stdcall; external DLLName;
|
|
||||||
function CloneRepository(var url; var local_path) : cint32; stdcall; external DLLName;
|
|
||||||
|
|
||||||
end.
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user