25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

2016-12-15_2016-november-recap.md 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. Title: November 2016 recap
  2. Date: 2016-12-15 00:00
  3. Category: News
  4. Slug: 2016-november-recap
  5. Lang: en
  6. ![Construction of a building][screenshot]
  7. This article describes the start of MJIN library separation into modules.
  8. Once we built OpenSceneGraph for Android, it became obvious that some MJIN functionality is not suitable for Android. For example, UIQt provides a basis for OGS Editor UI. Since OGS Editor is a desktop application, we don't need UIQt for Android.
  9. We decided to have a look at two approaches to separate MJIN into modules: build-time separation and run-time one.
  10. **Build-time** separation means MJIN becomes highly configurable and each platform gets specifically tailored MJIN build.
  11. **Run-time** separation means MJIN is divided into smaller libraries that are connected at run-time, which makes it easy to change functionality without rebuilding.
  12. **Run-time separation research.**
  13. Since run-time separation has more benefits, we started researching it first. The easiest way to achieve it was to use C API, because C ABI rules are much simpler than C++ one's.
  14. We created a sample project consisting of the application, library, and plugin:
  15. * **The application** has been linked to the library and used it to load the plugin.
  16. * **The library** provided functions to register plugins and call their functions.
  17. * **The plugin** provided functions for the library and called library functions.
  18. The research was successful: the sample project worked correctly under Linux and Windows. However, since MJIN is currently a single large entity, we postponed C API application until we finish build-time separation.
  19. **Build-time separation start.**
  20. We extracted the following modules from MJIN:
  21. * Android: provides Java Native Interface (JNI) to MJIN
  22. * Sound: provides access to OpenAL
  23. * UIQt: provides access to Qt UI
  24. Sound and UIQt modules are currently statically linked into MJIN library, while Android module is already a separate library due to JNI requirements.
  25. In the coming year, we're going to significantly restructure MJIN so that it suits as many platforms as possible.
  26. That's it for describing the start of MJIN library separation into modules.
  27. [screenshot]: ../../images/2016-12-15_2016-november-recap.png