Makefile/README updates
This commit is contained in:
@@ -1,17 +1,18 @@
|
|||||||
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||||
current_dir := $(dir $(mkfile_path))
|
current_dir := $(dir $(mkfile_path))
|
||||||
parent_dir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))/../..)
|
parent_dir := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))/..)
|
||||||
|
|
||||||
filament_build_out := $(parent_dir)/filament/out/cmake-release
|
filament_build_out := $(parent_dir)/filament/out/cmake-release
|
||||||
|
|
||||||
# building on MacOS, we currently just delete the macos/include
|
# building on MacOS, we currently just delete the macos/include
|
||||||
# and macos/src directories and copy from iOS
|
# and macos/src directories and copy from iOS
|
||||||
|
|
||||||
macos:
|
sync-macos: FORCE
|
||||||
rm -rf ${current_dir}include
|
rm -rf ${current_dir}macos/include ${current_dir}macos/src
|
||||||
cp -R ${current_dir}../ios/include ${current_dir}
|
cp -R ${current_dir}ios/include ${current_dir}macos
|
||||||
rm -rf ${current_dir}macos/src
|
cp -R ${current_dir}ios/src ${current_dir}macos
|
||||||
cp -R ${current_dir}../ios/src ${current_dir}
|
|
||||||
|
FORCE: ;
|
||||||
|
|
||||||
# We use a single material (no lighting and no transparency) for background images
|
# We use a single material (no lighting and no transparency) for background images
|
||||||
#
|
#
|
||||||
@@ -390,13 +390,9 @@ Project structure:
|
|||||||
e.g.
|
e.g.
|
||||||
|
|
||||||
```
|
```
|
||||||
cd macos && make
|
make sync-macos
|
||||||
```
|
```
|
||||||
|
|
||||||
- Android keeps a separate copy of ALL headers (because it's currently running a different version of Filament, earlier versions have some texture filtering issues)
|
|
||||||
-- can't symlink either?
|
|
||||||
--- IMPORTANT - current version only works on Flutter 3.15.0-15.2.pre / Filament v1.43.1
|
|
||||||
|
|
||||||
- Note also need to specifically build imageio/png/tinyexr
|
- Note also need to specifically build imageio/png/tinyexr
|
||||||
- if release build, then need to comment out -fno-exceptions
|
- if release build, then need to comment out -fno-exceptions
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user