mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
Add wintoastlib for windows
This commit is contained in:
parent
6666acc734
commit
5cfb96a967
3 changed files with 41 additions and 2 deletions
|
@ -319,8 +319,9 @@ if host_machine.system() == 'darwin'
|
||||||
deps += dependency('Cocoa', method: 'extraframework')
|
deps += dependency('Cocoa', method: 'extraframework')
|
||||||
deps += dependency('UserNotifications', method: 'extraframework')
|
deps += dependency('UserNotifications', method: 'extraframework')
|
||||||
elif host_machine.system() == 'windows'
|
elif host_machine.system() == 'windows'
|
||||||
sources += ['src/notifications/ManagerWin.cpp', 'src/wintoastlib.cpp']
|
sources += ['src/notifications/ManagerWin.cpp']
|
||||||
add_project_arguments('-D_WIN32_WINNT=0x0601', '-DNOMINMAX WIN32_LEAN_AND_MEAN', '-DSTRICT', '/Zc:__cplusplus', language: 'cpp')
|
add_project_arguments('-D_WIN32_WINNT=0x0601', '-DNOMINMAX WIN32_LEAN_AND_MEAN', '-DSTRICT', '/Zc:__cplusplus', language: 'cpp')
|
||||||
|
deps += dependency('wintoastlib')
|
||||||
else
|
else
|
||||||
sources += ['src/notifications/ManagerLinux.cpp']
|
sources += ['src/notifications/ManagerLinux.cpp']
|
||||||
endif
|
endif
|
||||||
|
|
33
subprojects/packagefiles/wintoast/meson.build
Normal file
33
subprojects/packagefiles/wintoast/meson.build
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
project(
|
||||||
|
'wintoast', 'cpp',
|
||||||
|
version: '0.2.0',
|
||||||
|
default_options: [
|
||||||
|
'warning_level=2'
|
||||||
|
],
|
||||||
|
meson_version: '>= 0.54.0'
|
||||||
|
)
|
||||||
|
|
||||||
|
install_headers(
|
||||||
|
'src/wintoastlib.h',
|
||||||
|
)
|
||||||
|
|
||||||
|
inc = include_directories('src')
|
||||||
|
wintoastlib = library(
|
||||||
|
'wintoast',
|
||||||
|
'wintoastlib.cpp',
|
||||||
|
include_directories: inc,
|
||||||
|
)
|
||||||
|
|
||||||
|
wintoast_dep = declare_dependency(
|
||||||
|
link_with: wintoastlib,
|
||||||
|
include_directories: inc,
|
||||||
|
)
|
||||||
|
meson.override_dependency('wintoast', wintoast_dep)
|
||||||
|
|
||||||
|
# Generate pc file
|
||||||
|
pkg = import('pkgconfig')
|
||||||
|
|
||||||
|
pkg.generate(wintoastlib,
|
||||||
|
name: 'wintoast',
|
||||||
|
description: 'WinToast is a lightly library written in C++ which brings a complete integration of the modern toast notifications of Windows 8 & Windows 10.')
|
||||||
|
|
5
subprojects/wintoast.wrap
Normal file
5
subprojects/wintoast.wrap
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[wrap-git]
|
||||||
|
url = https://github.com/mohabouje/WinToast.git
|
||||||
|
revision = 5e441fd03543b999edb663caf8df7be37c0d575c
|
||||||
|
|
||||||
|
patch_directory = wintoast
|
Loading…
Reference in a new issue