tree: 8e2873c54473019fb1836ebd53749c62594471db [path history] [tgz]
  1. README.md
  2. __init__.py
  3. _env.py
  4. alsa/
  5. blittergles/
  6. bsd/
  7. directfb/
  8. dlmalloc/
  9. egl/
  10. ffmpeg/
  11. gcc/
  12. gles/
  13. input/
  14. internal_only.h
  15. iso/
  16. lib/
  17. libaom/
  18. libde265/
  19. libevent/
  20. libjpeg/
  21. libvpx/
  22. linux/
  23. media_session/
  24. msvc/
  25. nouser/
  26. opus/
  27. posix/
  28. pthread/
  29. pulse/
  30. signal/
  31. speechd/
  32. starboard/
  33. stub/
  34. test_webapi_extension/
  35. wayland/
  36. widevine/
  37. x11/
src/starboard/shared/README.md

Starboard Shared Implementations

src/starboard/shared and subdirectories contain all implementation code that could concievably be shared between platforms.

Organization

As much code as possible is pushed into the shared directory. Each subdirectory foo means “files in here depend on foo.”

All source locations are specified relative to src/starboard/.

  • shared/iso/ - Implementation files that follow ISO C and C++ standards, but standards that are either new, or have historically had poor support on a variety of embedded platforms. Platforms that are ISO-compliant with the latest standards should be able to use these.
  • shared/libevent/ - libevent-specific implementation files, for platforms that can build and run libevent. See shared/libevent/README.md for more information.
  • shared/posix/ - POSIX-specific implementation files. Starboard implementations may pull some or all of this directory to implement Starboard APIs, if the platform is POSIX-compliant.
  • shared/pthread/ - pthread-specific implementation files, for platforms that provide a reasonable implementation of POSIX threads. This is called out separately from POSIX, because we've found that there are some platforms that are fairly POSIX-y, except in their threading APIs.
  • shared/starboard/ - Implementations of Starboard API functions that only rely on other Starboard API functions. Code in here should be reusable on any platform that implements the needed APIs.