tree: 54a8b8dd4816633785d37ff6c246923172433d36 [path history] [tgz]
  1. alsa/
  2. crash/
  3. deviceauth/
  4. egl/
  5. enhanced_audio/
  6. ffmpeg/
  7. gcc/
  8. gles/
  9. input/
  10. iso/
  11. lib/
  12. libaom/
  13. libdav1d/
  14. libde265/
  15. libevent/
  16. libfdkaac/
  17. libjpeg/
  18. libvpx/
  19. linux/
  20. media_session/
  21. modular/
  22. nouser/
  23. openh264/
  24. opus/
  25. posix/
  26. pthread/
  27. pulse/
  28. signal/
  29. speechd/
  30. starboard/
  31. stub/
  32. testing/
  33. toolchain/
  34. uwp/
  35. widevine/
  36. win32/
  37. x11/
  38. __init__.py
  39. environment.h
  40. internal_only.h
  41. README.md
  42. retry.py
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.