@@ -56,7 +56,8 @@ build() {
56
56
local -r -a _valid_targets=(
57
57
macos-x86_64
58
58
macos-arm64
59
- linux-x86_64
59
+ ubuntu-x86_64
60
+ ubuntu-aarch64
60
61
)
61
62
62
63
local config=' RelWithDebInfo'
@@ -66,7 +67,7 @@ build() {
66
67
local -a args
67
68
while (( # )) {
68
69
case ${1} {
69
- -t| --target| --generator | - c| --config)
70
+ -t| --target| -c| --config)
70
71
if (( # == 1 )) || [[ ${2: 0: 1} == ' -' ]] {
71
72
log_error " Missing value for option %B${1} %b"
72
73
exit 2
@@ -104,8 +105,8 @@ build() {
104
105
check_${host_os}
105
106
setup_ccache
106
107
107
- if [[ ${host_os} == linux ]] {
108
- autoload -Uz setup_linux && setup_linux
108
+ if [[ ${host_os} == ubuntu ]] {
109
+ autoload -Uz setup_ubuntu && setup_ubuntu
109
110
}
110
111
111
112
local product_name
@@ -188,21 +189,20 @@ build() {
188
189
}
189
190
popd
190
191
;;
191
- linux -* )
192
+ ubuntu -* )
192
193
local cmake_bin=' /usr/bin/cmake'
193
194
cmake_args+=(
194
- -S ${PWD} -B build_${target##* -}
195
- -G Ninja
196
- -DCMAKE_BUILD_TYPE:STRING=${config}
197
- -DCEF_ROOT_DIR:PATH=" ${project_root} /.deps/cef_binary_${CEF_VERSION} _${target// -/ _} "
198
- -DENABLE_AJA:BOOL=OFF
199
- -DENABLE_WEBRTC:BOOL=OFF
200
- -DENABLE_NATIVE_NVENC:BOOL=OFF
195
+ --preset ubuntu-ci
196
+ --toolchain ${project_root} /cmake/linux/toolchain-${target##* -} -gcc.cmake
197
+ -DENABLE_BROWSER:BOOL=ON
198
+ -DCEF_ROOT_DIR:PATH=" ${project_root} /.deps/cef_binary_${CEF_VERSION} _${target// ubuntu-/ linux_} "
201
199
)
200
+
202
201
if (( ! UBUNTU_2210 _OR_LATER )) cmake_args+=(-DENABLE_NEW_MPEGTS_OUTPUT:BOOL=OFF)
202
+ if [[ ${target##* -} == aarch64 ]] cmake-args+=(-DENABLE_QSV11:BOOL=OFF)
203
203
204
- cmake_build_args+=(build_${target##* - } --config ${config} --parallel)
205
- cmake_install_args+=(build_${target##* - } --prefix ${project_root} /build_${target##* - } /install/${config} )
204
+ cmake_build_args+=(build_${target%% - * } --config ${config} --parallel)
205
+ cmake_install_args+=(build_${target%% - * } --prefix ${project_root} /build_${target%% - * } /install/${config} )
206
206
207
207
log_group " Configuring ${product_name} ..."
208
208
${cmake_bin} -S ${project_root} ${cmake_args}
0 commit comments