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