meson.build: compile Win32Main.cxx only on Windows
This commit is contained in:
parent
0cccdcf9b2
commit
5103eb3039
|
@ -272,7 +272,6 @@ sources = [
|
|||
'src/LogInit.cxx',
|
||||
'src/ls.cxx',
|
||||
'src/Instance.cxx',
|
||||
'src/win32/Win32Main.cxx',
|
||||
'src/MusicBuffer.cxx',
|
||||
'src/MusicPipe.cxx',
|
||||
'src/MusicChunk.cxx',
|
||||
|
@ -320,6 +319,12 @@ sources = [
|
|||
'src/PlaylistFile.cxx',
|
||||
]
|
||||
|
||||
if is_windows
|
||||
sources += [
|
||||
'src/win32/Win32Main.cxx',
|
||||
]
|
||||
endif
|
||||
|
||||
if not is_android
|
||||
sources += [
|
||||
'src/CommandLine.cxx',
|
||||
|
|
|
@ -18,9 +18,6 @@
|
|||
*/
|
||||
|
||||
#include "Main.hxx"
|
||||
|
||||
#ifdef _WIN32
|
||||
|
||||
#include "util/Compiler.h"
|
||||
#include "Instance.hxx"
|
||||
#include "system/FatalError.hxx"
|
||||
|
@ -155,5 +152,3 @@ void win32_app_stopping()
|
|||
else
|
||||
running.store(false);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue