Skip to content
/ snoretoast Public

Commit 55800f1

Browse files
committed
Version bump
1 parent 760c096 commit 55800f1

File tree

7 files changed

+39
-18
lines changed

7 files changed

+39
-18
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
cmake_minimum_required(VERSION 3.4)
22

3-
project( snoretoast VERSION 0.5.99)
3+
project(snoretoast VERSION 0.6.0)
4+
# Always change the guid when the version is changed SNORETOAST_CALLBACK_GUID
5+
set(SNORETOAST_CALLBACK_GUID eb1fdd5b-8f70-4b5a-b230-998a2dc19303)
46

57
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/)
68

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Releases and binaries can be found [here](https://download.kde.org/stable/snoret
1919

2020
----------------------------------------------------------
2121
```
22-
Welcome to SnoreToast 0.5.99.
22+
Welcome to SnoreToast 0.6.0.
2323
A command line application capable of creating Windows Toast notifications.
2424
2525
---- Usage ----

src/CMakeLists.txt

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,22 @@ target_include_directories(SnoreToastActions INTERFACE
55
)
66
add_library(SnoreToast::SnoreToastActions ALIAS SnoreToastActions)
77

8-
8+
configure_file(config.h.in config.h @ONLY)
99
add_library(libsnoretoast STATIC snoretoasts.cpp toasteventhandler.cpp linkhelper.cpp utils.cpp)
1010
target_link_libraries(libsnoretoast PUBLIC runtimeobject shlwapi SnoreToast::SnoreToastActions)
1111
target_compile_definitions(libsnoretoast PRIVATE UNICODE _UNICODE __WRL_CLASSIC_COM_STRICT__ WIN32_LEAN_AND_MEAN NOMINMAX)
12-
target_compile_definitions(libsnoretoast PRIVATE
13-
SNORETOAST_VERSION_MAJOR=${PROJECT_VERSION_MAJOR}
14-
SNORETOAST_VERSION_MINOR=${PROJECT_VERSION_MINOR}
15-
SNORETOAST_VERSION_PATCH=${PROJECT_VERSION_PATCH}
16-
)
1712
target_compile_definitions(libsnoretoast PUBLIC __WRL_CLASSIC_COM_STRICT__)
1813
target_include_directories(libsnoretoast PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
1914
set_target_properties(libsnoretoast PROPERTIES EXPORT_NAME LibSnoreToast)
2015
add_library(SnoreToast::LibSnoreToast ALIAS libsnoretoast)
21-
22-
2316
generate_export_header(libsnoretoast)
2417

2518
create_icon_rc(${PROJECT_SOURCE_DIR}/data/zzz.ico TOAST_ICON)
2619
add_executable(snoretoast WIN32 main.cpp ${TOAST_ICON})
2720
target_link_libraries(snoretoast PRIVATE SnoreToast::LibSnoreToast snoreretoastsources)
2821
target_compile_definitions(snoretoast PRIVATE UNICODE _UNICODE WIN32_LEAN_AND_MEAN NOMINMAX)
29-
# if there are changes to the callback mechanism we need to change the uuid for the activator SNORETOAST_CALLBACK_UUID
30-
target_compile_definitions(snoretoast PRIVATE
31-
SNORETOAST_CALLBACK_UUID="{383803B6-AFDA-4220-BFC3-0DBF810106BF}"
32-
)
3322
add_executable(SnoreToast::SnoreToast ALIAS snoretoast)
3423

3524
install(TARGETS snoretoast SnoreToastActions EXPORT LibSnoreToastConfig RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
36-
install(FILES snoretoastactions.h DESTINATION include/snoretoast)
25+
install(FILES snoretoastactions.h ${CMAKE_CURRENT_BINARY_DIR}/config.h DESTINATION include/snoretoast)
3726
install(EXPORT LibSnoreToastConfig DESTINATION lib/cmake/libsnoretoast NAMESPACE SnoreToast::)

src/config.h.in

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
SnoreToast is capable to invoke Windows 8 toast notifications.
3+
Copyright (C) 2019 Hannah von Reth <vonreth@kde.org>
4+
5+
SnoreToast is free software: you can redistribute it and/or modify
6+
it under the terms of the GNU Lesser General Public License as published by
7+
the Free Software Foundation, either version 3 of the License, or
8+
(at your option) any later version.
9+
10+
SnoreToast is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
GNU Lesser General Public License for more details.
14+
15+
You should have received a copy of the GNU Lesser General Public License
16+
along with SnoreToast. If not, see <http://www.gnu.org/licenses/>.
17+
*/
18+
19+
#pragma once
20+
21+
22+
#define SNORETOAST_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
23+
#define SNORETOAST_VERSION_MINOR @PROJECT_VERSION_MINOR@
24+
#define SNORETOAST_VERSION_PATCH @PROJECT_VERSION_PATCH@
25+
26+
27+
#define SNORETOAST_CALLBACK_GUID "@SNORETOAST_CALLBACK_GUID@"

src/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
along with SnoreToast. If not, see <http://www.gnu.org/licenses/>.
1717
*/
1818
#include "snoretoasts.h"
19+
#include "config.h"
20+
1921
#include "toasteventhandler.h"
2022

2123
#include "snoretoastactioncenterintegration.h"

src/snoretoastactioncenterintegration.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ INotificationActivationCallback : public IUnknown
3939
};
4040

4141
// The COM server which implements the callback notifcation from Action Center
42-
class DECLSPEC_UUID(SNORETOAST_CALLBACK_UUID) SnoreToastActionCenterIntegration
42+
class DECLSPEC_UUID(SNORETOAST_CALLBACK_GUID) SnoreToastActionCenterIntegration
4343
: public Microsoft::WRL::RuntimeClass<
4444
Microsoft::WRL::RuntimeClassFlags<Microsoft::WRL::ClassicCom>,
4545
INotificationActivationCallback>
@@ -49,7 +49,7 @@ class DECLSPEC_UUID(SNORETOAST_CALLBACK_UUID) SnoreToastActionCenterIntegration
4949
{
5050
static std::wstring _uuid = [] {
5151
std::wstringstream out;
52-
out << SNORETOAST_CALLBACK_UUID;
52+
out << SNORETOAST_CALLBACK_GUID;
5353
return out.str();
5454
}();
5555
return _uuid;

src/snoretoasts.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@
1414
1515
You should have received a copy of the GNU Lesser General Public License
1616
along with SnoreToast. If not, see <http://www.gnu.org/licenses/>.
17-
*/
17+
*/
1818

1919
#include "snoretoasts.h"
2020
#include "toasteventhandler.h"
2121
#include "linkhelper.h"
2222
#include "utils.h"
23+
#include "config.h"
2324

2425
#include <wrl\wrappers\corewrappers.h>
2526
#include <sstream>

0 commit comments

Comments
 (0)