Skip to content

Phosh: propose upstream options for static libphosh resource registration #210

Description

@samcday

Propose upstream Phosh Meson options for consumers that embed libphosh statically, based on the working downstream patches in #186 (related: #190).

  • Make GResource generation support --manual-register for static embedding.
  • Ensure the resource object is retained from the static archive and registered exactly once during library initialization; Add opt-in static libphosh embedding for GTK3 #186 calls phosh_register_resource() from phosh_shell_init() using g_once_init_enter/leave.
  • Preserve the normal shared-library resource behavior and validate both shared and static consumers before dropping our downstream patches.

The aim is to replace the patches to phosh/src/meson.build and phosh/src/shell.c with an upstream-supported build option.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions