Enable custom subprojects option
This commit is contained in:
parent
9335ccae00
commit
95d525f43a
17
README.md
17
README.md
@ -63,6 +63,23 @@ Update all GStreamer modules without rebuilding:
|
|||||||
ninja -C build/ git-update
|
ninja -C build/ git-update
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Custom subprojects
|
||||||
|
|
||||||
|
We also added a meson option, 'custom_subprojects', that allows the user
|
||||||
|
to provide a comma-separated list of subprojects that should be built
|
||||||
|
alongside the default ones.
|
||||||
|
|
||||||
|
To use it:
|
||||||
|
|
||||||
|
```
|
||||||
|
cd subprojects
|
||||||
|
git clone my_subproject
|
||||||
|
cd ../build
|
||||||
|
rm -rf * && meson .. -Dcustom_subprojects=my_subproject
|
||||||
|
ninja
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Run tests
|
## Run tests
|
||||||
|
|
||||||
You can easily run the test of all the components:
|
You can easily run the test of all the components:
|
||||||
|
@ -90,6 +90,14 @@ import os
|
|||||||
os.symlink(os.path.join('@1@', 'subprojects', '@0@'),
|
os.symlink(os.path.join('@1@', 'subprojects', '@0@'),
|
||||||
os.path.join('@1@', '@0@'))
|
os.path.join('@1@', '@0@'))
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
foreach custom_subproj: get_option('custom_subprojects').split(',')
|
||||||
|
if custom_subproj != ''
|
||||||
|
message ('Adding custom subproject ' + custom_subproj)
|
||||||
|
subprojects += [custom_subproj]
|
||||||
|
endif
|
||||||
|
endforeach
|
||||||
|
|
||||||
foreach subproj: subprojects
|
foreach subproj: subprojects
|
||||||
subproject(subproj, version: gst_version)
|
subproject(subproj, version: gst_version)
|
||||||
|
|
||||||
|
@ -7,3 +7,4 @@ option('disable_gst_editing_services', type : 'boolean', value : false)
|
|||||||
option('disable_rtsp_server', type : 'boolean', value : false)
|
option('disable_rtsp_server', type : 'boolean', value : false)
|
||||||
option('disable_gst_omx', type : 'boolean', value : true)
|
option('disable_gst_omx', type : 'boolean', value : true)
|
||||||
option('disable_gstreamer_vaapi', type : 'boolean', value : false)
|
option('disable_gstreamer_vaapi', type : 'boolean', value : false)
|
||||||
|
option('custom_subprojects', type : 'string', value : '', description : 'Comma-separated project names')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user