mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +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_modules = ['Core', 'Qml', 'Quick', 'QuickWidgets', 'Widgets', 'Multimedia', 'Svg']
|
||||
if target_machine.system() == 'windows'
|
||||
qt5_modules += 'WinMain'
|
||||
#qt5_modules += 'WinMain'
|
||||
elif target_machine.system() == 'darwin'
|
||||
qt5_modules += 'MacExtras'
|
||||
else
|
||||
|
@ -320,8 +320,8 @@ if host_machine.system() == 'darwin'
|
|||
deps += dependency('UserNotifications', method: 'extraframework')
|
||||
elif host_machine.system() == 'windows'
|
||||
sources += ['src/notifications/ManagerWin.cpp']
|
||||
add_project_arguments('-D_WIN32_WINNT=0x0601', '-DNOMINMAX WIN32_LEAN_AND_MEAN', '-DSTRICT', '/Zc:__cplusplus', language: 'cpp')
|
||||
deps += dependency('wintoastlib')
|
||||
add_project_arguments('-DNOMINMAX WIN32_LEAN_AND_MEAN', '-DSTRICT', '/Zc:__cplusplus', language: 'cpp')
|
||||
deps += dependency('wintoast')
|
||||
else
|
||||
sources += ['src/notifications/ManagerLinux.cpp']
|
||||
endif
|
||||
|
@ -334,6 +334,7 @@ executable('nheko',
|
|||
cpp_args: '-DQAPPLICATION_CLASS=QApplication',
|
||||
include_directories: inc,
|
||||
dependencies : deps,
|
||||
win_subsystem: 'windows,6.1',
|
||||
install: true)
|
||||
|
||||
if target_machine.system() != 'windows' and target_machine.system() != 'darwin'
|
||||
|
|
|
@ -14,7 +14,7 @@ install_headers(
|
|||
inc = include_directories('src')
|
||||
wintoastlib = library(
|
||||
'wintoast',
|
||||
'wintoastlib.cpp',
|
||||
'src/wintoastlib.cpp',
|
||||
include_directories: inc,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue