Skip to content

Commit 4ba0798

Browse files
author
Lauris Kaplinski
committed
Latest DigiDoc/CDoc
1 parent 59b07c1 commit 4ba0798

35 files changed

+1617
-2085
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ permissions:
55
env:
66
BUILD_NUMBER: ${{ github.run_number }}
77
CMAKE_BUILD_PARALLEL_LEVEL: 4
8-
UBUNTU_DEPS: ./libdigidocpp-pkg/*.deb cmake libldap2-dev gettext libpcsclite-dev libssl-dev libgl-dev libqt6svg6-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libflatbuffers-dev zlib1g-dev
8+
UBUNTU_DEPS: ./libdigidocpp-pkg/*.deb cmake libldap2-dev gettext libpcsclite-dev libssl-dev libgl-dev libqt6svg6-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools libflatbuffers-dev libxml2-dev zlib1g-dev
99
jobs:
1010
macos:
1111
name: Build on macOS
@@ -154,7 +154,7 @@ jobs:
154154
Rename-Item "libdigidocpp*.msi" libdigidocpp.msi
155155
msiexec /qn /i libdigidocpp.msi
156156
- name: Prepare vcpkg
157-
uses: lukka/run-vcpkg@v7
157+
uses: lukka/run-vcpkg@v11
158158
with:
159159
vcpkgArguments: openssl zlib flatbuffers
160160
vcpkgGitCommitId: 4008642a50a01a7115c2406b04d5273898e7fe1c
@@ -173,9 +173,10 @@ jobs:
173173
dotnet tool install -g wix --version 5.0.2
174174
wix extension -g add WixToolset.UI.wixext/5.0.2
175175
- name: Build
176+
env:
177+
VCPKG_MANIFEST_DIR: ${{ github.workspace }}/client/libcdoc
176178
run: |
177-
cmake "-GNinja" -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo `
178-
-DCMAKE_TOOLCHAIN_FILE=${{ env.RUNVCPKG_VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake
179+
cmake "-GNinja" -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo "-DCMAKE_TOOLCHAIN_FILE=${{ env.VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake" -DVCPKG_MANIFEST_DIR=${{ github.workspace }}/client/libcdoc
179180
cmake --build build --target msi
180181
cmake --build build --target msishellext
181182
cmake --build build --target appx

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "common"]
22
path = common
33
url = ../qt-common
4+
[submodule "client/libcdoc"]
5+
path = client/libcdoc
6+
url = git@github.com:open-eid/libcdoc.git

CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ set(CMAKE_CXX_STANDARD 20)
3030
set(CMAKE_CXX_STANDARD_REQUIRED YES)
3131
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION YES)
3232
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_DEBUG NO)
33-
if(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang")
34-
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-object_path_lto,lto.o")
35-
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-object_path_lto,lto.o")
36-
endif()
3733
set(CPACK_PACKAGE_VERSION ${VERSION})
3834
set(CPACK_GENERATOR RPM)
3935
set(CPACK_PACKAGE_CONTACT "RIA <info@ria.ee>")
@@ -48,8 +44,6 @@ find_package(libdigidocpp 4.2.0 REQUIRED HINTS /Library)
4844
message("-- Found libdigidocpp: ${libdigidocpp_DIR} (found version \"${libdigidocpp_VERSION}\")")
4945
find_package(LDAP REQUIRED)
5046
find_package(Qt6 6.2.0 REQUIRED COMPONENTS Core Widgets Network PrintSupport SvgWidgets LinguistTools)
51-
find_package(FlatBuffers CONFIG REQUIRED NAMES FlatBuffers Flatbuffers)
52-
find_package(ZLIB REQUIRED)
5347

5448
if(APPLE)
5549
add_subdirectory(extensions/DigiDocQL)

client/Application.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#include "Common.h"
2525
#include "Configuration.h"
26+
#include "CDocSupport.h"
2627
#include "MainWindow.h"
2728
#include "QSigner.h"
2829
#include "QSmartCard.h"
@@ -462,6 +463,7 @@ Application::Application( int &argc, char **argv )
462463
setQuitOnLastWindowClosed( true );
463464
return;
464465
}
466+
DDCDocLogger::setUpLogger();
465467

466468
QMetaObject::invokeMethod(this, [this] {
467469
#ifdef Q_OS_MAC

0 commit comments

Comments
 (0)