meson c --buildtype release --strip -Db_lto=true -Dprebuilt_server=../scrcpy-server.jar --cross-file cross_file.txt
cross_file.txt:
[binaries] c = 'aarch64-linux-gcc' cpp = 'aarch64-linux-g++' ar = 'aarch64-linux-ar' strip = 'aarch64-linux-strip' pkgconfig = '/home/root/workspace/rk3399/linuxsdk-friendlyelec/buildroot/output/rockchip_rk3399/host/bin/pkg-config' [host_machine] system = 'linux' cpu_family = 'arm' cpu = 'FP-ARMv8' endian = 'little' [build_machine] system = 'linux' cpu_family = 'x86_64' cpu = 'i686' endian = 'little'