mirror of https://code.videolan.org/videolan/vlc
43 lines
1.2 KiB
Meson
43 lines
1.2 KiB
Meson
# Do we build the main VLC binary?
|
|
build_vlc = get_option('vlc')
|
|
|
|
if build_vlc and (host_system != 'darwin' or have_osx)
|
|
vlc_sources = []
|
|
|
|
vlc_deps = [m_lib, dl_lib, threads_dep]
|
|
|
|
if host_system == 'darwin'
|
|
vlc_sources += ['darwinvlc.m']
|
|
vlc_deps += corefoundation_dep
|
|
if have_osx
|
|
vlc_deps += dependency('Cocoa', required: true)
|
|
endif
|
|
elif host_system == 'windows'
|
|
vlc_sources += ['winvlc.c']
|
|
else
|
|
vlc_sources += ['vlc.c', 'override.c']
|
|
endif
|
|
|
|
executable('vlc',
|
|
vlc_sources,
|
|
link_with: [libvlc],
|
|
include_directories: [vlc_include_dirs],
|
|
dependencies: vlc_deps,
|
|
install: true,
|
|
win_subsystem: 'windows'
|
|
)
|
|
|
|
vlc_top_builddir_def = '-DTOP_BUILDDIR="@0@"'.format(vlc_build_root)
|
|
vlc_top_srcdir_def = '-DTOP_SRCDIR="@0@"'.format(vlc_src_root)
|
|
|
|
executable('vlc-static',
|
|
vlc_sources,
|
|
link_with: [libvlc],
|
|
include_directories: [vlc_include_dirs],
|
|
dependencies: vlc_deps,
|
|
c_args: [vlc_top_builddir_def, vlc_top_srcdir_def],
|
|
objc_args: [vlc_top_builddir_def, vlc_top_srcdir_def],
|
|
win_subsystem: 'windows'
|
|
)
|
|
endif
|