openalext_build.mkf 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. # mkf file for building extension openalext.
  2. # NOTE: This file was originally written by the extension builder, but will not
  3. # be overwritten (unless --force is specified) and is intended to be modified.
  4. display_name "Extensions/openalext"
  5. includepath source/h
  6. includepath h
  7. defines
  8. {
  9. #Define the verbose channel to be off by default (but controllable by icf)
  10. IW_TRACE_CHANNEL_OPENALEXT_VERBOSE=2
  11. #This macro indicates that this extension is being built
  12. S3E_EXT_OPENALEXT
  13. }
  14. #This command re-generates the relevant source files from the s4e when
  15. #the mkb is run
  16. extension
  17. {
  18. ("$MARMALADE_ROOT/s3e/edk/builder")
  19. "edk_build openalext.s4e"
  20. }
  21. #include the extension builder subproject
  22. subproject "$MARMALADE_ROOT/s3e/edk"
  23. if {{defined I3D_OS_IPHONE}}
  24. {
  25. files
  26. {
  27. ["source"]
  28. (use_first_found, source/iphone, source/generic)
  29. openalext_platform.mm
  30. #Add any iphone-specific files here
  31. }
  32. }
  33. if {{defined I3D_OS_WINDOWS}}
  34. {
  35. files
  36. {
  37. ["source"]
  38. (use_first_found, source/windows, source/generic)
  39. openalext_platform.cpp
  40. #Add any windows-specific files here
  41. }
  42. }
  43. if {{defined S3E_ANDROID}}
  44. {
  45. files
  46. {
  47. ["source"]
  48. (use_first_found, source/android, source/generic)
  49. openalext_platform.cpp
  50. #Add any android-specific files here
  51. }
  52. }
  53. if {{defined I3D_OS_OSX}}
  54. {
  55. files
  56. {
  57. ["source"]
  58. (use_first_found, source/osx, source/generic)
  59. openalext_platform.mm
  60. #Add any osx-specific files here
  61. }
  62. }
  63. if {{defined I3D_OS_LINUX and not defined S3E_ANDROID}}
  64. {
  65. files
  66. {
  67. ["source"]
  68. (use_first_found, source/linux, source/generic)
  69. openalext_platform.cpp
  70. #Add any linux-specific files here
  71. }
  72. }
  73. if {{defined I3D_OS_WP8}}
  74. {
  75. files
  76. {
  77. ["h"]
  78. (source/wp8)
  79. openalext_shim.h
  80. ["source"]
  81. (use_first_found, source/wp8, source/generic)
  82. openalext_platform.cpp
  83. openalext_shim.cpp
  84. #Add any wp8-specific files here
  85. }
  86. }
  87. files
  88. {
  89. # Add any platform-independent files here
  90. # Note that if the file exists in the platform-specific directory
  91. # it will be taken from there instead of 'generic'
  92. openalext_register.cpp
  93. openalext.cpp
  94. ["h"]
  95. (source/h)
  96. openalext_internal.h
  97. openalext_autodefs.h
  98. ["docs"]
  99. (interface)
  100. openalext.defines.txt
  101. []
  102. (.)
  103. openalext.s4e
  104. }