mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-27 13:38:49 +03:00
WinMain is cmake specific
This commit is contained in:
parent
c856840284
commit
6b49fe257f
2 changed files with 5 additions and 4 deletions
|
@ -12,7 +12,7 @@ compiler = meson.get_compiler('cpp')
|
||||||
qt5 = import('qt5')
|
qt5 = import('qt5')
|
||||||
qt5_modules = ['Core', 'Qml', 'Quick', 'QuickWidgets', 'Widgets', 'Multimedia', 'Svg']
|
qt5_modules = ['Core', 'Qml', 'Quick', 'QuickWidgets', 'Widgets', 'Multimedia', 'Svg']
|
||||||
if target_machine.system() == 'windows'
|
if target_machine.system() == 'windows'
|
||||||
qt5_modules += 'WinMain'
|
#qt5_modules += 'WinMain'
|
||||||
elif target_machine.system() == 'darwin'
|
elif target_machine.system() == 'darwin'
|
||||||
qt5_modules += 'MacExtras'
|
qt5_modules += 'MacExtras'
|
||||||
else
|
else
|
||||||
|
@ -320,8 +320,8 @@ if host_machine.system() == 'darwin'
|
||||||
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']
|
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('-DNOMINMAX WIN32_LEAN_AND_MEAN', '-DSTRICT', '/Zc:__cplusplus', language: 'cpp')
|
||||||
deps += dependency('wintoastlib')
|
deps += dependency('wintoast')
|
||||||
else
|
else
|
||||||
sources += ['src/notifications/ManagerLinux.cpp']
|
sources += ['src/notifications/ManagerLinux.cpp']
|
||||||
endif
|
endif
|
||||||
|
@ -334,6 +334,7 @@ executable('nheko',
|
||||||
cpp_args: '-DQAPPLICATION_CLASS=QApplication',
|
cpp_args: '-DQAPPLICATION_CLASS=QApplication',
|
||||||
include_directories: inc,
|
include_directories: inc,
|
||||||
dependencies : deps,
|
dependencies : deps,
|
||||||
|
win_subsystem: 'windows,6.1',
|
||||||
install: true)
|
install: true)
|
||||||
|
|
||||||
if target_machine.system() != 'windows' and target_machine.system() != 'darwin'
|
if target_machine.system() != 'windows' and target_machine.system() != 'darwin'
|
||||||
|
|
|
@ -14,7 +14,7 @@ install_headers(
|
||||||
inc = include_directories('src')
|
inc = include_directories('src')
|
||||||
wintoastlib = library(
|
wintoastlib = library(
|
||||||
'wintoast',
|
'wintoast',
|
||||||
'wintoastlib.cpp',
|
'src/wintoastlib.cpp',
|
||||||
include_directories: inc,
|
include_directories: inc,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue