Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

bdero
Copy link
Member

@bdero bdero commented Nov 1, 2022

No description provided.

@bdero bdero requested a review from zanderso November 1, 2022 19:15
@bdero bdero self-assigned this Nov 1, 2022
@bdero
Copy link
Member Author

bdero commented Nov 1, 2022

@zanderso I don't really know if this is correct. I assume the reason we only include impellerc when flutter_runtime_mode == "debug" is that we only want to ship the debug version of impellerc? I suspect the correct behavior would be for me to include the shader lib alongside impellerc.

@zanderso
Copy link
Member

zanderso commented Nov 1, 2022

This change is correct. The terminology is a little confusing here. "debug" in this context refers to the Flutter runtime mode, not the runtime mode of the host binaries. The host binaries are compiled with optimizations (and stripped, I think). The host binaries are only archived for "debug" Flutter runtime mode so that we only do it once.

@bdero
Copy link
Member Author

bdero commented Nov 1, 2022

Ah, that makes sense. Smoke tested this and the included dir is working as intended:

❯ autoninja -C ../out/host_debug_unopt -j 1000 flutter/build/archives:artifacts
ninja: Entering directory `../out/host_debug_unopt'
[4/4] STAMP obj/flutter/build/archives/artifacts.stamp
❯ unzip ../out/host_debug_unopt/zip_archives/darwin-x64/artifacts.zip -d artifacts
Archive:  ../out/host_debug_unopt/zip_archives/darwin-x64/artifacts.zip
  inflating: artifacts/gen_snapshot
  inflating: artifacts/icudtl.dat
  inflating: artifacts/flutter_tester
  inflating: artifacts/LICENSE.impellerc.md
  inflating: artifacts/LICENSE.path_ops.md
  inflating: artifacts/impellerc
  inflating: artifacts/shader_lib/impeller/constants.glsl
  inflating: artifacts/shader_lib/impeller/color.glsl
  inflating: artifacts/shader_lib/impeller/types.glsl
  inflating: artifacts/shader_lib/impeller/branching.glsl
  inflating: artifacts/shader_lib/impeller/gaussian.glsl
  inflating: artifacts/shader_lib/impeller/blending.glsl
  inflating: artifacts/shader_lib/impeller/transform.glsl
  inflating: artifacts/shader_lib/impeller/texture.glsl
  inflating: artifacts/shader_lib/flutter/runtime_effect.glsl
  inflating: artifacts/libpath_ops.dylib
  inflating: artifacts/libtessellator.dylib
  inflating: artifacts/isolate_snapshot.bin
  inflating: artifacts/vm_isolate_snapshot.bin
  inflating: artifacts/frontend_server.dart.snapshot
  inflating: artifacts/entitlements.txt

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App e: impeller
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants