committed by
Steve Lhomme
1 changed files with 35 additions and 30 deletions
@ -1,35 +1,40 @@ |
|||
vlc_sources = [] |
|||
# Do we build the main VLC binary? |
|||
build_vlc = get_option('vlc') |
|||
|
|||
vlc_deps = [m_lib, dl_lib, threads_dep] |
|||
if build_vlc |
|||
vlc_sources = [] |
|||
|
|||
if host_system == 'darwin' |
|||
vlc_sources += ['darwinvlc.m'] |
|||
vlc_deps += corefoundation_dep |
|||
vlc_deps += dependency('Cocoa', required: true) |
|||
elif host_system == 'windows' |
|||
vlc_sources += ['winvlc.c'] |
|||
else |
|||
vlc_sources += ['vlc.c', 'override.c'] |
|||
endif |
|||
vlc_deps = [m_lib, dl_lib, threads_dep] |
|||
|
|||
if host_system == 'darwin' |
|||
vlc_sources += ['darwinvlc.m'] |
|||
vlc_deps += corefoundation_dep |
|||
vlc_deps += dependency('Cocoa', required: true) |
|||
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' |
|||
) |
|||
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) |
|||
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' |
|||
) |
|||
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 |
|||
|
|||
Loading…
Reference in new issue