Files
cup_edit/makefile
Daverin 672952f8a0 cherry-pick a0671a9b6f084ee02f1f5b7000e34f884fd27241
cherry-pick a0671a9b6f084ee02f1f5b7000e34f884fd27241
2023-11-09 12:04:24 +08:00

27 lines
1.2 KiB
Makefile
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(dir $(mkfile_path))
parent_dir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))/..)
filament_build_out := $(parent_dir)/filament/out/cmake-release
# building on MacOS, we currently just delete the macos/include
# and macos/src directories and copy from iOS
sync-libs-macos:
@rm -r ${current_dir}macos/include || echo "macos/include does not exist"
cp -R ${current_dir}ios/include ${current_dir}macos
@rm -r ${current_dir}macos/src || echo "macos/src does not exist"
cp -R ${current_dir}ios/src ${current_dir}macos
# We use a single material (no lighting and no transparency) for background images
#
# by default this assumes you have built filament in a sibling folder
# you may customize the out folder by speicifying `filament_build_out`
#
# eg: make generate-background-material filament_build_out=/filament/out/release
#
generate-background-material:
${filament_build_out}/tools/matc/matc -a opengl -a metal -o materials/image.filamat materials/image.mat
${filament_build_out}/tools/resgen/resgen -c -p image -x ios/include/material/ materials/image.filamat
rm materials/image.filamat