File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,6 +84,9 @@ elif [ "$DARWIN" = true ]; then
8484 export MAKEFLAGS=" -j$( sysctl -n hw.logicalcpu) "
8585fi
8686
87+ # Expose target sysroot to CMake
88+ export TARGET_SYSROOT=" ${TARGET} "
89+
8790# Optimise Rust code for binary size
8891export CARGO_PROFILE_RELEASE_DEBUG=false
8992export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
@@ -196,6 +199,8 @@ make install/strip
196199mkdir ${DEPS} /jpeg
197200$CURL https://github.com/mozilla/mozjpeg/archive/v${VERSION_MOZJPEG} .tar.gz | tar xzC ${DEPS} /jpeg --strip-components=1
198201cd ${DEPS} /jpeg
202+ # [PATCH] BUILD: Silence CMake 3.28.x deprecation warning
203+ $CURL https://github.com/mozilla/mozjpeg/commit/1644bdb7d2fac66cd0ce25adef7754e008b5bc1e.patch | patch -p1
199204cmake -G" Unix Makefiles" \
200205 -DCMAKE_TOOLCHAIN_FILE=${ROOT} /Toolchain.cmake -DCMAKE_INSTALL_PREFIX=${TARGET} -DCMAKE_INSTALL_LIBDIR:PATH=lib -DCMAKE_BUILD_TYPE=MinSizeRel \
201206 -DENABLE_STATIC=TRUE -DENABLE_SHARED=FALSE -DWITH_JPEG8=1 -DWITH_TURBOJPEG=FALSE -DPNG_SUPPORTED=FALSE
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ version_latest "proxy-libintl" "$VERSION_PROXY_LIBINTL" "frida/proxy-libintl"
4949version_latest " rsvg" " $VERSION_RSVG " " 5420" " unstable"
5050version_latest " spng" " $VERSION_SPNG " " randy408/libspng"
5151version_latest " tiff" " $VERSION_TIFF " " 1738"
52- version_latest " vips" " $VERSION_VIPS " " 5097"
52+ # version_latest "vips" "$VERSION_VIPS" "5097" # Temporarily disabled to allow version 8.17.2 to roll in
5353version_latest " webp" " $VERSION_WEBP " " 1761"
5454version_latest " xml2" " $VERSION_XML2 " " 1783"
5555version_latest " zlib-ng" " $VERSION_ZLIB_NG " " 115592"
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ SET(CMAKE_CXX_COMPILER clang++)
44# macOS 11 Big Sur is the first version to support ARM-based macs
55SET (CMAKE_OSX_DEPLOYMENT_TARGET 11.0)
66
7+ set (CMAKE_FIND_ROOT_PATH $ENV{TARGET_SYSROOT} )
78set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
89set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
910set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
11+ set (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ SET(CMAKE_CXX_COMPILER clang++)
44# Earliest supported version of macOS
55SET (CMAKE_OSX_DEPLOYMENT_TARGET 10.15)
66
7+ set (CMAKE_FIND_ROOT_PATH $ENV{TARGET_SYSROOT} )
78set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
89set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
910set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
11+ set (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
Original file line number Diff line number Diff line change 1+ set (CMAKE_FIND_ROOT_PATH $ENV{TARGET_SYSROOT} )
12set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
23set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
34set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
5+ set (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ SET(CMAKE_AR arm-rpi-linux-gnueabihf-ar)
88SET (CMAKE_STRIP arm-rpi-linux -gnueabihf-strip)
99SET (CMAKE_RANLIB arm-rpi-linux -gnueabihf-ranlib)
1010
11+ set (CMAKE_FIND_ROOT_PATH $ENV{TARGET_SYSROOT} )
1112set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
1213set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
1314set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
15+ set (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ SET(CMAKE_RANLIB powerpc64le-linux-gnu-gcc-ranlib)
1010
1111#SET(CMAKE_CROSSCOMPILING_EMULATOR qemu-ppc64le-static)
1212
13+ set (CMAKE_FIND_ROOT_PATH $ENV{TARGET_SYSROOT} )
1314set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
1415set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
1516set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
17+ set (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ SET(CMAKE_AR riscv64-linux-gnu-gcc-ar)
88SET (CMAKE_STRIP riscv64-linux -gnu-gcc-strip)
99SET (CMAKE_RANLIB riscv64-linux -gnu-gcc-ranlib)
1010
11+ set (CMAKE_FIND_ROOT_PATH $ENV{TARGET_SYSROOT} )
1112set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
1213set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
1314set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
15+ set (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ SET(CMAKE_RANLIB s390x-linux-gnu-gcc-ranlib)
1010
1111#SET(CMAKE_CROSSCOMPILING_EMULATOR qemu-s390x-static)
1212
13+ set (CMAKE_FIND_ROOT_PATH $ENV{TARGET_SYSROOT} )
1314set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
1415set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
1516set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
17+ set (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
Original file line number Diff line number Diff line change 1+ set (CMAKE_FIND_ROOT_PATH $ENV{TARGET_SYSROOT} )
12set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
23set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
34set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
5+ set (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
You can’t perform that action at this time.
0 commit comments