Here is the compound task I made that runs these three steps in sequence each time you build from VSCode. E.g: Ctrl + Shift + B
1. make distclean
2. ./configure <list of required build options>
3. make -j$(nproc)
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run Make distclean command",
"type": "shell",
"command": "make distclean",
"problemMatcher": [],
"group": "build"
},
{
"label": "Run Config script",
"type": "shell",
"command": "./configure",
"args": [
"--enable-hdhomerun_client",
"--disable-hdhomerun_static",
"--disable-dvbscan",
"--enable-libav",
"--disable-ffmpeg_static",
"--enable-libx264",
"--disable-libx264_static",
"--enable-libx265",
"--disable-libx265_static",
"--enable-libvpx",
"--disable-libvpx_static",
"--enable-libtheora",
"--disable-libtheora_static",
"--enable-libvorbis",
"--disable-libvorbis_static",
"--enable-libfdkaac",
"--disable-libfdkaac_static",
"--enable-libopus",
"--disable-libopus_static",
"--enable-vaapi",
"--enable-nvenc",
"--enable-omx",
"--enable-dvbcsa",
"--enable-dvben50221",
"--enable-libsystemd_daemon",
"--enable-pcre2",
"--enable-pngquant",
"--enable-ddci",
"--python=/usr/bin/python3"
],
"problemMatcher": [],
"group": "build"
},
{
"label": "Run Make command",
"type": "shell",
"command": "make",
"args": [
"-j$(nproc)"
],
"problemMatcher": [],
"group": "build"
},
{
"label": "Build TVH",
"dependsOrder": "sequence",
"dependsOn": [
"Run Make distclean command",
"Run Config script",
"Run Make command"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Cheers,
Flex