Commit 5103eb30 authored by Max Kellermann's avatar Max Kellermann

meson.build: compile Win32Main.cxx only on Windows

parent 0cccdcf9
...@@ -272,7 +272,6 @@ sources = [ ...@@ -272,7 +272,6 @@ sources = [
'src/LogInit.cxx', 'src/LogInit.cxx',
'src/ls.cxx', 'src/ls.cxx',
'src/Instance.cxx', 'src/Instance.cxx',
'src/win32/Win32Main.cxx',
'src/MusicBuffer.cxx', 'src/MusicBuffer.cxx',
'src/MusicPipe.cxx', 'src/MusicPipe.cxx',
'src/MusicChunk.cxx', 'src/MusicChunk.cxx',
...@@ -320,6 +319,12 @@ sources = [ ...@@ -320,6 +319,12 @@ sources = [
'src/PlaylistFile.cxx', 'src/PlaylistFile.cxx',
] ]
if is_windows
sources += [
'src/win32/Win32Main.cxx',
]
endif
if not is_android if not is_android
sources += [ sources += [
'src/CommandLine.cxx', 'src/CommandLine.cxx',
......
...@@ -18,9 +18,6 @@ ...@@ -18,9 +18,6 @@
*/ */
#include "Main.hxx" #include "Main.hxx"
#ifdef _WIN32
#include "util/Compiler.h" #include "util/Compiler.h"
#include "Instance.hxx" #include "Instance.hxx"
#include "system/FatalError.hxx" #include "system/FatalError.hxx"
...@@ -155,5 +152,3 @@ void win32_app_stopping() ...@@ -155,5 +152,3 @@ void win32_app_stopping()
else else
running.store(false); running.store(false);
} }
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment