Signed-off-by: Kefu Chai <kchai@redhat.com>
# Make-Check libxmlsec1-dev,
# Crimson libyaml-cpp-dev,
lsb-release,
+# Make-Check ninja-build,
# Jaeger nlohmann-json-dev | nlohmann-json3-dev,
parted,
patch,
fi
PYBUILD="2"
+ARGS="-GNinja"
if [ -r /etc/os-release ]; then
source /etc/os-release
case "$ID" in
function build() {
local targets="$@"
+ if test -n $targets; then
+ targets="--target $targets"
+ fi
$DRY_RUN cd build
BUILD_MAKEOPTS=${BUILD_MAKEOPTS:-$DEFAULT_MAKEOPTS}
test "$BUILD_MAKEOPTS" && echo "make will run with option(s) $BUILD_MAKEOPTS"
- $DRY_RUN make $BUILD_MAKEOPTS $targets || return 1
+ # older cmake does not support --parallel or -j, so pass it to underlying generator
+ $DRY_RUN cmake --build . $targets -- $BUILD_MAKEOPTS || return 1
$DRY_RUN ccache -s # print the ccache statistics to evaluate the efficiency
}