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
2 'c',2 'c',
3 license: ['GPL2+', 'LGPL2.1+'],3 license: ['GPL2+', 'LGPL2.1+'],
4 version: files('./MPV_VERSION'),4 version: files('./MPV_VERSION'),
5 meson_version: '>=0.62.0',5 meson_version: '>=1.3.0',
6 default_options: [6 default_options: [
7 'backend_max_links=16',7 'backend_max_links=16',
8 'buildtype=debugoptimized',8 'buildtype=debugoptimized',
@@ -603,7 +603,8 @@ sources += [ebml_defs, ebml_types] · 594 unmodified lines
603 603
604subdir('common')604subdir('common')
605subdir('etc')605subdir('etc')
606subdir('player')606subdir('player/javascript')
607subdir('player/lua')
607subdir('sub')608subdir('sub')
608 609
609if darwin610if darwin
@@ -1684,20 +1685,9 @@ if rst2pdf.found() · 1074 unmodified lines
1684endif1685endif
1685 1686
1686 1687
1687if meson.version().version_compare('>= 1.1.0')
1688 configuration = meson.build_options()
1689else
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')
1695endif
1696
1697
1698# Set config.h1688# Set config.h
1699conf_data = configuration_data()1689conf_data = configuration_data()
1700conf_data.set_quoted('CONFIGURATION', configuration)1690conf_data.set_quoted('CONFIGURATION', meson.build_options())
1701conf_data.set_quoted('DEFAULT_DVD_DEVICE', dvd_device)1691conf_data.set_quoted('DEFAULT_DVD_DEVICE', dvd_device)
1702conf_data.set_quoted('DEFAULT_CDROM_DEVICE', cd_device)1692conf_data.set_quoted('DEFAULT_CDROM_DEVICE', cd_device)
1703 1693
@@ -1813,8 +1803,7 @@ if get_option('cplayer') · 109 unmodified lines
1813 mpv = executable('mpv', main_fn_source, objects: libmpv.extract_all_objects(recursive: true), dependencies: dependencies,1803 mpv = executable('mpv', main_fn_source, objects: libmpv.extract_all_objects(recursive: true), dependencies: dependencies,
1814 win_subsystem: 'windows', install: true)1804 win_subsystem: 'windows', install: true)
1815 1805
1816 # Older meson versions generate this in the player subdirectory.1806 if win32
1817 if win32 and meson.version().version_compare('>= 1.3.0')
1818 wrapper_sources= 'osdep/win32-console-wrapper.c'1807 wrapper_sources= 'osdep/win32-console-wrapper.c'
1819 executable('mpv', wrapper_sources, c_args: '-municode', link_args: '-municode',1808 executable('mpv', wrapper_sources, c_args: '-municode', link_args: '-municode',
1820 name_suffix: 'com', install: true)1809 name_suffix: 'com', install: true)
player/meson.build+0−11
@@ -1,11 +0,0 @@
1subdir('javascript')
2subdir('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.
6if 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.')
11endif

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