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