Lines Matching +full:- +full:dcmake_toolchain_file
4 # Use of this source code is governed by a BSD-style license that can be
16 # - cmake3
17 # - yasm or nasm
19 # - gcc-arm-linux-gnueabihf
20 # - g++-arm-linux-gnueabihf
22 # - gcc-aarch64-linux-gnu
23 # - g++-aarch64-linux-gnu
25 # - lib32gcc-7-dev
26 # - lib32stdc++-7-dev
29 set -eE
37 TMP=$(mktemp -d "${BASE}/build.XXXX")
40 rm -rf "${CFG}"
41 mkdir -p "${CFG}/config"
44 rm -rf "${TMP}"
48 # $1 - Header file directory.
51 rm -rf "${TMP}"
56 mkdir -p "${CFG}/${1}/config"
59 if [ $# -ne 0 ]; then
66 # We may have enough targets to avoid re-implementing this.
69 # $1 - Header file directory.
70 # $2 - cmake options.
76 egrep "#define [A-Z0-9_]+ [01]" config/aom_config.h | \
84 #clang-format -i "${CFG}/${1}/config/"*_rtcd.h
91 local vals=($(git -C "${SRC}" --no-pager log -1 --format="%cd%n%H" \
92 --date=format:"%A %B %d %Y"))
93 sed -E -i.bak \
94 -e "s/^(Date:)[[:space:]]+.*$/\1 ${vals[0]}/" \
95 -e "s/^(Commit:)[[:space:]]+[a-f0-9]{40}/\1 ${vals[1]}/" \
111 [ -f ${TMP}/cmake.txt ] && cat ${TMP}/cmake.txt
115 all_platforms="-DCONFIG_SIZE_LIMIT=1"
116 all_platforms+=" -DDECODE_HEIGHT_LIMIT=16384 -DDECODE_WIDTH_LIMIT=16384"
117 all_platforms+=" -DCONFIG_AV1_ENCODER=0"
118 all_platforms+=" -DCONFIG_LOWBITDEPTH=1"
119 all_platforms+=" -DCONFIG_MAX_DECODE_PROFILE=0"
120 all_platforms+=" -DCONFIG_NORMAL_TILE_MODE=1"
123 all_platforms+=" -DENABLE_SSE4_1=0"
124 all_platforms+=" -DCONFIG_RUNTIME_CPU_DETECT=0"
126 toolchain="-DCMAKE_TOOLCHAIN_FILE=${SRC}/build/cmake/toolchains"
129 gen_config_files x86 "${toolchain}/x86-linux.cmake ${all_platforms} -DCONFIG_PIC=1"
139 gen_config_files arm "${toolchain}/armv7-linux-gcc.cmake ${all_platforms}"
142 gen_config_files arm64 "${toolchain}/arm64-linux-gcc.cmake ${all_platforms}"
149 # - the path prefix (//third_party/libaom/source/)
150 # - comments (lines starting with #)
151 # - header files
152 # - perl scripts (rtcd)
154 rm -f "${BASE}/Android.bp"
160 grep -v ^\# |
162 grep -v h\",$ |
163 grep -v pl\",$
167 rm -f "${BASE}/libaom_srcs.gni"
168 bpfmt -w "${BASE}/Android.bp" || echo "bpfmt not found: format Android.bp manually."