Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Apple binaries from the repo #67

Open
HolyBlackCat opened this issue Oct 7, 2022 · 4 comments
Open

Remove Apple binaries from the repo #67

HolyBlackCat opened this issue Oct 7, 2022 · 4 comments

Comments

@HolyBlackCat
Copy link

There are some large binaries in the Xcode directory, e.g. https://github.com/libsdl-org/SDL_net/blob/main/Xcode/iOS/SDL2.framework/SDL2

I guess they were added to Git by mistake?

@madebr
Copy link
Contributor

madebr commented Sep 26, 2023

@slouken
(continuation of libsdl-org/SDL_image@0af1438#r123702517)
How about adding tbds of SDL3 to all satellite libraries?
tbd stands for Text-based Dynamic Library Stubs.

@slouken
Copy link
Collaborator

slouken commented Sep 27, 2023

That's an interesting idea. Can you create an xcframework of stubs?

@madebr
Copy link
Contributor

madebr commented Sep 27, 2023

No idea.
This document and the tapi* man pages mention dylibs and frameworks.
Since a xcframework is a collection of frameworks, perhaps?

@sezero
Copy link
Contributor

sezero commented Sep 27, 2023

Don't know about xcframework thingies, but running tapi stubify on an SDL build
simply generates the tbd. Doing that on linux on an SDL2 build gave this: SDL2.tbd.zip

$ tapi --help
OVERVIEW: Text-based Stubs Tool

USAGE: tapi [--version][--help]
       tapi <command> [<args>]

Commands:
  archive     Merge or thin text-based stub files
  stubify     Create a text-based stub file from a library
  installapi  Create a text-based stub file by scanning the header files
  reexport    Create a linker reexport file by scanning the header files

See 'tapi <command> --help' to read more about a specific command.

$ tapi stubify --help
OVERVIEW: Text-based Stubs Tool

USAGE: tapi stubify

OPTIONS:
  --delete-input-file   Delete input file on success
  --delete-private-frameworks
                        Delete private frameworks from the SDK
  --filetype=<value>    Specify the output file type (tbd-v1, tbd-v2, or tbd-v3)
  -F <value>            Add directory to framework include search path
  -help                 Display this help message
  -iframework <value>   Add directory to SYSTEM framework search path
  --inline-private-frameworks
                        Inline private frameworks
  -isysroot <dir>       Set the system root directory (usually /)
  --load-snapshot=<dir> Specify the snapshot input directory
  -L <value>            Add directory to the library search path
  --no-uuids            Don't record the UUIDs from the library in the text-based stub file
  -o <file>             Write output to <file>
  --set-installapi-flag Set the installapi flag in the text-based stub file
  --snapshot-dir=<dir>  Specify the snapshot output directory
  --snapshot-use-own-resource-dir
                        Use our own resource directory
  --snapshot            Force creation of a snapshot
  -version              Display the version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants