Skip to content

Commit 3c63374

Browse files
committed
Merge branch 'dev'
2 parents 2b7cc11 + 07a8c59 commit 3c63374

File tree

6 files changed

+41
-14
lines changed

6 files changed

+41
-14
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
- name: Build
106106
run: |
107107
cmake -E make_directory out
108-
cmake -S . -B out -DCMAKE_BUILD_TYPE=RelWithDebInfo -DFETCHCONTENT_QUIET=OFF
108+
cmake -S . -B out -DCMAKE_BUILD_TYPE=RelWithDebInfo "-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64" -DFETCHCONTENT_QUIET=OFF
109109
installers/${{ matrix.installer }}/build.py . out
110110
111111

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
run: |
112112
cmake -E make_directory out
113113
cd out
114-
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DFETCHCONTENT_QUIET=OFF ..
114+
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo "-DCMAKE_OSX_ARCHITECTURES=x86_64;arm64" -DFETCHCONTENT_QUIET=OFF ..
115115
116116
117117
- name: Make Distribution

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55

66
## Unreleased
77

8+
### Fixed
9+
- APT installer no longer creates bogus `/debian` directory
10+
- Mac `.pkg` installer now correctly includes both x64 and arm64 architectures.
11+
12+
### Changed
13+
- Updated `{fmt}` library dependency
14+
- It is now possible to specify version externally when building `wsddn` by setting `WSDDN_VERSION` CMake variable.
15+
816
## [1.1] - 2023-05-19
917

1018
### Added

CMakeLists.txt

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ if (TARGET uuid_static)
6666
set_target_properties(uuid_static PROPERTIES FOLDER "Dependencies")
6767
endif()
6868
set_target_properties(spdlog PROPERTIES FOLDER "Dependencies")
69+
set_target_properties(fmt PROPERTIES FOLDER "Dependencies")
6970

7071

7172
set_target_properties(wsddn PROPERTIES
@@ -192,18 +193,22 @@ PRIVATE
192193
${CMAKE_SOURCES}
193194
)
194195

195-
execute_process(
196-
COMMAND git describe --tags --match "v*" --abbrev=0
197-
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
198-
RESULT_VARIABLE GIT_DESCRIBE_RESULT
199-
OUTPUT_VARIABLE GIT_DESCRIBE_OUTPUT
200-
)
196+
if (NOT WSDDN_VERSION)
197+
198+
execute_process(
199+
COMMAND git describe --tags --match "v*" --abbrev=0
200+
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
201+
RESULT_VARIABLE GIT_DESCRIBE_RESULT
202+
OUTPUT_VARIABLE GIT_DESCRIBE_OUTPUT
203+
)
204+
205+
if ("${GIT_DESCRIBE_RESULT}" STREQUAL "0")
206+
string(STRIP "${GIT_DESCRIBE_OUTPUT}" GIT_DESCRIBE_OUTPUT)
207+
string(SUBSTRING "${GIT_DESCRIBE_OUTPUT}" 1 -1 WSDDN_VERSION)
208+
else()
209+
set(WSDDN_VERSION "0.1")
210+
endif()
201211

202-
if ("${GIT_DESCRIBE_RESULT}" STREQUAL "0")
203-
string(STRIP "${GIT_DESCRIBE_OUTPUT}" GIT_DESCRIBE_OUTPUT)
204-
string(SUBSTRING "${GIT_DESCRIBE_OUTPUT}" 1 -1 WSDDN_VERSION)
205-
else()
206-
set(WSDDN_VERSION "0.1")
207212
endif()
208213

209214
message(NOTICE WSDDN_VERSION: ${WSDDN_VERSION})

cmake/dependencies.cmake

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,26 @@ endif()
6363

6464
FetchContent_Declare(libuuid
6565
GIT_REPOSITORY https://github.com/gershnik/libuuid-cmake.git
66-
GIT_TAG v2.39
66+
GIT_TAG v2.39.rev1
6767
GIT_SHALLOW TRUE
6868
GIT_PROGRESS TRUE
6969
)
7070
list(APPEND DECLARED_DEPENDENCIES libuuid)
7171

72+
set(FMT_INSTALL OFF)
73+
74+
FetchContent_Declare(fmt
75+
GIT_REPOSITORY https://github.com/fmtlib/fmt
76+
GIT_TAG 9.1.0
77+
GIT_SHALLOW TRUE
78+
GIT_PROGRESS TRUE
79+
GIT_SUBMODULES_RECURSE FALSE
80+
)
81+
list(APPEND DECLARED_DEPENDENCIES fmt)
82+
7283
set(SPDLOG_NO_ATOMIC_LEVELS ON)
7384
set(SPDLOG_NO_TLS ON)
85+
set(SPDLOG_FMT_EXTERNAL_HO ON)
7486

7587
FetchContent_Declare(spdlog
7688
GIT_REPOSITORY https://github.com/gabime/spdlog

installers/deb-systemd/build.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
key, val = deps.split('=', 1)
8383
key = key.replace(':', "_")
8484
control.write_text(control.read_text().format_map({key: val}))
85+
86+
(stagedir/ 'debian').unlink()
8587
subprocess.run(['dpkg-deb', '--build', '--root-owner-group', stagedir, workdir], check=True)
8688

8789
subprocess.run(['gzip', '--keep', '--force', builddir / 'wsddn'], check=True)

0 commit comments

Comments
 (0)