- use resgen to package the DFG LUT into filament, instead of using a large include of a C array. - add a zstd compression step, which reduces the size from ~100KB to ~75KB. The overhead of zstd is about 90KB uncompressed, however it will pay for itself tenfold when we use it to compress material packages.
44 lines
1.9 KiB
YAML
44 lines
1.9 KiB
YAML
configs:
|
|
Metal Debug: debug
|
|
Metal Release: release
|
|
OpenGL Debug: debug
|
|
OpenGL Release: release
|
|
targetTemplates:
|
|
FilamentApp:
|
|
type: application
|
|
platform: iOS
|
|
deploymentTarget: "12.1"
|
|
sources:
|
|
- path: ${target_name}/${target_name}
|
|
- path: ${target_name}/Materials
|
|
buildPhase: none
|
|
optional: true
|
|
scheme:
|
|
configVariants:
|
|
- Metal
|
|
- OpenGL
|
|
settings:
|
|
base:
|
|
OTHER_LDFLAGS: ["-lfilament", "-lbackend", "-lfilaflat", "-lktxreader",
|
|
"-lfilabridge", "-lutils", "-lsmol-v", "-lgeometry", "-libl",
|
|
"-labseil", "-lzstd"]
|
|
ENABLE_BITCODE: NO
|
|
CLANG_CXX_LANGUAGE_STANDARD: gnu++17
|
|
# This allows users to not have to specify a unique bundle ID when building the sample apps.
|
|
SAMPLE_CODE_DISAMBIGUATOR: ${DEVELOPMENT_TEAM}
|
|
configs:
|
|
debug:
|
|
HEADER_SEARCH_PATHS: ["../../../out/ios-debug/filament/include", "generated"]
|
|
LIBRARY_SEARCH_PATHS:
|
|
- "../../../out/ios-debug/filament/lib/$(CURRENT_ARCH)"
|
|
- "../../../out/ios-debug/filament/lib/universal"
|
|
release:
|
|
HEADER_SEARCH_PATHS: ["../../../out/ios-release/filament/include", "generated"]
|
|
LIBRARY_SEARCH_PATHS:
|
|
- "../../../out/ios-release/filament/lib/$(CURRENT_ARCH)"
|
|
- "../../../out/ios-release/filament/lib/universal"
|
|
metal:
|
|
GCC_PREPROCESSOR_DEFINITIONS: ["FILAMENT_APP_USE_METAL=1", "$(inherited)"]
|
|
opengl:
|
|
GCC_PREPROCESSOR_DEFINITIONS: ["FILAMENT_APP_USE_OPENGL=1", "$(inherited)"]
|