libsdl-org / SDL_net

A simple, cross-platform wrapper over TCP/IP sockets.
zlib License
210 stars 51 forks source link

Remove Apple binaries from the repo #67

Open HolyBlackCat opened 2 years ago

HolyBlackCat commented 2 years ago

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 commented 1 year ago

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

slouken commented 1 year ago

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

madebr commented 1 year ago

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

sezero commented 1 year ago

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