1
0

apiconfig.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. #ifndef __API_DEF_CFG_H
  2. #define __API_DEF_CFG_H
  3. #define WASABINOMAINAPI
  4. #ifdef WASABI_COMPILE_APP
  5. # define WASABI_API_APP applicationApi
  6. #endif
  7. #ifdef WASABI_COMPILE_SVC
  8. # define WASABI_API_SVC serviceApi
  9. #endif
  10. #ifdef WASABI_COMPILE_SYSCB
  11. # define WASABI_API_SYSCB sysCallbackApi
  12. #endif
  13. #ifdef WASABI_COMPILE_COMPONENTS
  14. # define WASABI_API_COMPONENT componentApi
  15. #endif
  16. #ifdef WASABI_COMPILE_SCRIPT
  17. # define WASABI_API_MAKI makiApi
  18. #endif
  19. #ifdef WASABI_COMPILE_UTF
  20. # define WASABI_API_UTF utfApi
  21. #endif
  22. #ifdef WASABI_COMPILE_WND
  23. # define WASABI_API_WND wndApi
  24. #endif
  25. #ifdef WASABI_COMPILE_IMGLDR
  26. # define WASABI_API_IMGLDR imgLoaderApi
  27. #endif
  28. #ifdef WASABI_COMPILE_FILEREADER
  29. # define WASABI_API_FILE fileApi
  30. #endif
  31. #ifdef WASABI_COMPILE_TIMERS
  32. # define WASABI_API_TIMER timerApi
  33. #endif
  34. #ifdef WASABI_COMPILE_WNDMGR
  35. # define WASABI_API_WNDMGR wndManagerApi
  36. #endif
  37. #ifdef WASABI_COMPILE_SKIN
  38. # define WASABI_API_SKIN skinApi
  39. #endif
  40. #ifdef WASABI_COMPILE_METADB
  41. # define WASABI_API_METADB metadbApi
  42. #endif
  43. #ifdef WASABI_COMPILE_LOCALES
  44. # define WASABI_API_LOCALE localeApi
  45. #endif
  46. #ifdef WASABI_COMPILE_CONFIG
  47. # define WASABI_API_CONFIG configApi
  48. #endif
  49. #ifdef WASABI_COMPILE_FONTS
  50. # define WASABI_API_FONT fontApi
  51. // This sets the static font renderer. If you are compiling with api_config, the attribute to set is { 0x280876cf, 0x48c0, 0x40bc, { 0x8e, 0x86, 0x73, 0xce, 0x6b, 0xb4, 0x62, 0xe5 } }, "Font Renderer"
  52. # if defined(WASABI_FONT_RENDERER_USE_WIN32)
  53. # define WASABI_FONT_RENDERER "" // "" is Win32
  54. # elif defined(WASABI_FONT_RENDERER_USE_FREETYPE)
  55. # define WASABI_FONT_RENDERER "Freetype" // Freetype lib
  56. # else
  57. # define WASABI_FONT_RENDERER "" // "" default for OS
  58. # endif
  59. #endif
  60. #ifdef WASABI_COMPILE_MEMMGR
  61. # define WASABI_API_MEMMGR memmgrApi
  62. #endif
  63. #ifdef WASABI_COMPILE_XMLPARSER
  64. # define WASABI_API_XML xmlApi
  65. #endif
  66. #ifdef WASABI_COMPILE_MEDIACORE
  67. # define WASABI_API_MEDIACORE coreApi
  68. #endif
  69. #ifdef WASABI_COMPILE_TEXTMODE
  70. # define WASABI_API_TEXTMODE textmodeApi
  71. #endif
  72. #ifdef LINUX
  73. # define WASABI_COMPILE_LINUX
  74. # define WASABI_API_LINUX linuxApi
  75. #endif
  76. #ifdef WASABI_COMPILE_STATSWND
  77. # if defined(_DEBUG) | defined(WASABI_DEBUG)
  78. # define WASABI_COMPILE_STATSWND
  79. # ifndef WASABI_DEBUG
  80. # define WASABI_DEBUG
  81. # endif
  82. # endif
  83. #endif
  84. #ifdef WASABI_COMPILE_APP
  85. # include <api/application/api_application.h>
  86. #endif
  87. #ifdef WASABI_COMPILE_SVC
  88. # include <api/service/api_service.h>
  89. #endif
  90. #ifdef WASABI_COMPILE_SYSCB
  91. # include <api/syscb/api_syscb.h>
  92. #endif
  93. #ifdef WASABI_COMPILE_MEMMGR
  94. # include <api/memmgr/api_memmgr.h>
  95. #endif
  96. #ifdef WASABI_COMPILE_SCRIPT
  97. # include <api/script/api_maki.h>
  98. #endif
  99. #ifdef WASABI_COMPILE_FONTS
  100. # include <api/font/api_font.h>
  101. #endif
  102. #ifdef WASABI_COMPILE_WND
  103. # include <api/wnd/api_wnd.h>
  104. #endif
  105. #ifdef WASABI_COMPILE_IMGLDR
  106. # include <api/imgldr/api_imgldr.h>
  107. #endif
  108. #ifdef WASABI_COMPILE_FILEREADER
  109. # include <api/filereader/api_filereader.h>
  110. #endif
  111. #ifdef WASABI_COMPILE_TIMERS
  112. # include <api/timer/api_timer.h>
  113. #endif
  114. #ifdef WASABI_COMPILE_WNDMGR
  115. # include <api/wndmgr/api_wndmgr.h>
  116. #endif
  117. #ifdef WASABI_COMPILE_LOCALES
  118. # include <api/locales/api_locales.h>
  119. #endif
  120. #ifdef WASABI_COMPILE_CONFIG
  121. # include <api/config/api_config.h>
  122. #endif
  123. #ifdef WASABI_COMPILE_SKIN
  124. # include <api/skin/api_skin.h>
  125. #endif
  126. #ifdef WASABI_COMPILE_MAKIDEBUG
  127. # include <api/script/debugger/api_makidebug.h>
  128. #endif
  129. #ifdef WASABI_COMPILE_TEXTMODE
  130. # include <api/textmode/api_textmode.h>
  131. #endif
  132. #ifdef WASABI_API_LINUX
  133. #include <api/linux/api_linux.h>
  134. #endif
  135. #endif