History

meson: bump required version to 1.3.0

Newer meson versions added support for features that mpv has been using for a long time. Annoying fallbacks were left in place to not break old versions but ideally everyone should be using the newer build features. Both the latest ubuntu LTS and debian stable (in backports) have 1.5.0 in their repos, so go ahead and bump the version so we can drop some old code and let developers use newer meson features if applicable.

Dudemanguy committed 2 years ago

Commit b52a67d1 parent 1c55d602 files · +5 −27Browse files

Unified · Split

2 files
  1. meson.build +5 −16
  2. player/meson.build +0 −11
meson.build+5−16
@@ -2,7 +2,7 @@ project('mpv', · 1 unmodified line
22 'c',
33 license: ['GPL2+', 'LGPL2.1+'],
44 version: files('./MPV_VERSION'),
5− meson_version: '>=0.62.0',
5+ meson_version: '>=1.3.0',
66 default_options: [
77 'backend_max_links=16',
88 'buildtype=debugoptimized',
@@ -603,7 +603,8 @@ sources += [ebml_defs, ebml_types] · 594 unmodified lines
603603
604604 subdir('common')
605605 subdir('etc')
606−subdir('player')
606+subdir('player/javascript')
607+subdir('player/lua')
607608 subdir('sub')
608609
609610 if darwin
@@ -1684,20 +1685,9 @@ if rst2pdf.found() · 1074 unmodified lines
16841685 endif
16851686
16861687
1687−if meson.version().version_compare('>= 1.1.0')
1688− configuration = meson.build_options()
1689−else
1690− # Arbitrary hardcoded things to pass if the meson version is too
1691− # old to have the build_options method.
1692− configuration = 'meson configure build ' + '-Dprefix=' + get_option('prefix') + \
1693− ' -Dbuildtype=' + get_option('buildtype') + \
1694− ' -Doptimization=' + get_option('optimization')
1695−endif
1696−
1697−
16981688 # Set config.h
16991689 conf_data = configuration_data()
1700−conf_data.set_quoted('CONFIGURATION', configuration)
1690+conf_data.set_quoted('CONFIGURATION', meson.build_options())
17011691 conf_data.set_quoted('DEFAULT_DVD_DEVICE', dvd_device)
17021692 conf_data.set_quoted('DEFAULT_CDROM_DEVICE', cd_device)
17031693
@@ -1813,8 +1803,7 @@ if get_option('cplayer') · 109 unmodified lines
18131803 mpv = executable('mpv', main_fn_source, objects: libmpv.extract_all_objects(recursive: true), dependencies: dependencies,
18141804 win_subsystem: 'windows', install: true)
18151805
1816− # Older meson versions generate this in the player subdirectory.
1817− if win32 and meson.version().version_compare('>= 1.3.0')
1806+ if win32
18181807 wrapper_sources= 'osdep/win32-console-wrapper.c'
18191808 executable('mpv', wrapper_sources, c_args: '-municode', link_args: '-municode',
18201809 name_suffix: 'com', install: true)
player/meson.build+0−11
@@ -1,11 +0,0 @@
1−subdir('javascript')
2−subdir('lua')
3−
4−# Older versions of meson don't allow multiple build targets with the same name in the same
5−# file. Generate it here for compatibility reasons for windows.
6−if win32 and get_option('cplayer') and meson.version().version_compare('< 1.3.0')
7− wrapper_sources= '../osdep/win32-console-wrapper.c'
8− executable('mpv', wrapper_sources, c_args: '-municode', link_args: '-municode',
9− name_suffix: 'com', install: true)
10− warning('mpv.com executable will be generated in the player subdirectory.')
11−endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t