meson: Replace obselete join_paths() with '/' operator
Since meson v0.49.0, join_paths() is equivalent to '/' hence, drop and replace it with '/' short-hand in meson files. This commit does not introduce any functional changes. Signed-off-by: Umang Jain <umang.jain@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
99feb66df0
commit
17bf7df227
9 changed files with 14 additions and 16 deletions
|
@ -1,7 +1,6 @@
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
doc_install_dir = join_paths(get_option('datadir'), 'doc',
|
doc_install_dir = get_option('datadir') / 'doc' / 'libcamera-@0@'.format(libcamera_version)
|
||||||
'libcamera-@0@'.format(libcamera_version))
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Doxygen
|
# Doxygen
|
||||||
|
|
|
@ -7,7 +7,7 @@ libcamera_ipa_headers = files([
|
||||||
])
|
])
|
||||||
|
|
||||||
install_headers(libcamera_ipa_headers,
|
install_headers(libcamera_ipa_headers,
|
||||||
subdir: join_paths(libcamera_include_dir, 'ipa'))
|
subdir: libcamera_include_dir / 'ipa')
|
||||||
|
|
||||||
libcamera_generated_ipa_headers = []
|
libcamera_generated_ipa_headers = []
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ libcamera_public_headers = files([
|
||||||
'transform.h',
|
'transform.h',
|
||||||
])
|
])
|
||||||
|
|
||||||
include_dir = join_paths(libcamera_include_dir, 'libcamera')
|
include_dir = libcamera_include_dir / 'libcamera'
|
||||||
|
|
||||||
subdir('internal')
|
subdir('internal')
|
||||||
subdir('ipa')
|
subdir('ipa')
|
||||||
|
@ -48,7 +48,7 @@ foreach header : control_source_files
|
||||||
output : header + '.h',
|
output : header + '.h',
|
||||||
command : [gen_controls, '-o', '@OUTPUT@', '@INPUT@'],
|
command : [gen_controls, '-o', '@OUTPUT@', '@INPUT@'],
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : join_paths('include', include_dir))
|
install_dir : 'include' / include_dir)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
libcamera_public_headers += control_headers
|
libcamera_public_headers += control_headers
|
||||||
|
@ -63,7 +63,7 @@ formats_h = custom_target('formats_h',
|
||||||
output : 'formats.h',
|
output : 'formats.h',
|
||||||
command : [gen_formats, '-o', '@OUTPUT@', '@INPUT@'],
|
command : [gen_formats, '-o', '@OUTPUT@', '@INPUT@'],
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : join_paths('include', include_dir))
|
install_dir : 'include' / include_dir)
|
||||||
libcamera_public_headers += formats_h
|
libcamera_public_headers += formats_h
|
||||||
|
|
||||||
# libcamera.h
|
# libcamera.h
|
||||||
|
@ -72,7 +72,7 @@ libcamera_h = custom_target('gen-header',
|
||||||
output : 'libcamera.h',
|
output : 'libcamera.h',
|
||||||
command : [gen_header, meson.current_source_dir(), '@OUTPUT@'],
|
command : [gen_header, meson.current_source_dir(), '@OUTPUT@'],
|
||||||
install : true,
|
install : true,
|
||||||
install_dir : join_paths('include', include_dir))
|
install_dir : 'include' / include_dir)
|
||||||
|
|
||||||
libcamera_public_headers += libcamera_h
|
libcamera_public_headers += libcamera_h
|
||||||
|
|
||||||
|
@ -86,4 +86,4 @@ libcamera_version_config.set('LIBCAMERA_VERSION_PATCH', version[2])
|
||||||
configure_file(input : 'version.h.in',
|
configure_file(input : 'version.h.in',
|
||||||
output : 'version.h',
|
output : 'version.h',
|
||||||
configuration : libcamera_version_config,
|
configuration : libcamera_version_config,
|
||||||
install_dir : join_paths('include', include_dir))
|
install_dir : 'include' / include_dir)
|
||||||
|
|
|
@ -148,8 +148,7 @@ endif
|
||||||
# Create a symlink from the build root to the source root. This is used when
|
# Create a symlink from the build root to the source root. This is used when
|
||||||
# running libcamera from the build directory to locate resources in the source
|
# running libcamera from the build directory to locate resources in the source
|
||||||
# directory (such as IPA configuration files).
|
# directory (such as IPA configuration files).
|
||||||
run_command('ln', '-fsT', meson.source_root(),
|
run_command('ln', '-fsT', meson.source_root(), meson.build_root() / 'source')
|
||||||
join_paths(meson.build_root(), 'source'))
|
|
||||||
|
|
||||||
configure_file(output : 'config.h', configuration : config_h)
|
configure_file(output : 'config.h', configuration : config_h)
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ ipa_names = []
|
||||||
foreach pipeline : pipelines
|
foreach pipeline : pipelines
|
||||||
if ipas.contains(pipeline)
|
if ipas.contains(pipeline)
|
||||||
subdir(pipeline)
|
subdir(pipeline)
|
||||||
ipa_names += join_paths(ipa_install_dir, ipa_name + '.so')
|
ipa_names += ipa_install_dir / ipa_name + '.so'
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
|
|
@ -10,4 +10,4 @@ conf_files = files([
|
||||||
])
|
])
|
||||||
|
|
||||||
install_data(conf_files,
|
install_data(conf_files,
|
||||||
install_dir : join_paths(ipa_data_dir, 'raspberrypi'))
|
install_dir : ipa_data_dir / 'raspberrypi')
|
||||||
|
|
|
@ -5,4 +5,4 @@ conf_files = files([
|
||||||
])
|
])
|
||||||
|
|
||||||
install_data(conf_files,
|
install_data(conf_files,
|
||||||
install_dir : join_paths(ipa_data_dir, 'vimc'))
|
install_dir : ipa_data_dir / 'vimc')
|
||||||
|
|
|
@ -103,7 +103,7 @@ endforeach
|
||||||
|
|
||||||
libcamera_sources += control_sources
|
libcamera_sources += control_sources
|
||||||
|
|
||||||
gen_version = join_paths(meson.source_root(), 'utils', 'gen-version.sh')
|
gen_version = meson.source_root() / 'utils' / 'gen-version.sh'
|
||||||
|
|
||||||
version_cpp = vcs_tag(command : [gen_version, meson.build_root()],
|
version_cpp = vcs_tag(command : [gen_version, meson.build_root()],
|
||||||
input : 'version.cpp.in',
|
input : 'version.cpp.in',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
proxy_install_dir = join_paths(get_option('libexecdir'), 'libcamera')
|
proxy_install_dir = get_option('libexecdir') / 'libcamera'
|
||||||
|
|
||||||
# generate {pipeline}_ipa_proxy_worker.cpp
|
# generate {pipeline}_ipa_proxy_worker.cpp
|
||||||
foreach mojom : ipa_mojoms
|
foreach mojom : ipa_mojoms
|
||||||
|
@ -25,4 +25,4 @@ foreach mojom : ipa_mojoms
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
config_h.set('IPA_PROXY_DIR',
|
config_h.set('IPA_PROXY_DIR',
|
||||||
'"' + join_paths(get_option('prefix'), proxy_install_dir) + '"')
|
'"' + get_option('prefix') / proxy_install_dir + '"')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue