mpt-libopenmpt_examples.lua 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. project "libopenmpt_example_cxx"
  2. uuid "ce5b5a74-cdb1-4654-b928-f91725fb57c9"
  3. language "C++"
  4. location ( "../../build/" .. mpt_projectpathname )
  5. vpaths { ["*"] = "../../examples/" }
  6. mpt_projectname = "libopenmpt_example_cxx"
  7. dofile "../../build/premake/premake-defaults-EXE.lua"
  8. dofile "../../build/premake/premake-defaults.lua"
  9. warnings "Extra"
  10. local extincludedirs = {
  11. "../..",
  12. "../../include/portaudio/bindings/cpp/include",
  13. "../../include/portaudio/include",
  14. }
  15. filter { "action:vs*" }
  16. includedirs ( extincludedirs )
  17. filter { "not action:vs*" }
  18. sysincludedirs ( extincludedirs )
  19. filter {}
  20. includedirs {
  21. "../..",
  22. }
  23. files {
  24. "../../examples/libopenmpt_example_cxx.cpp",
  25. }
  26. characterset "Unicode"
  27. links { "libopenmpt", "zlib", "vorbis", "ogg", "mpg123", "portaudio", "portaudiocpp", "ksuser", "winmm" }
  28. filter { "not configurations:*Shared" }
  29. filter { "configurations:*Shared" }
  30. defines { "LIBOPENMPT_USE_DLL" }
  31. filter {}
  32. project "libopenmpt_example_c"
  33. uuid "3f39804d-01c0-479c-ab8b-025683529c57"
  34. language "C"
  35. location ( "../../build/" .. mpt_projectpathname )
  36. vpaths { ["*"] = "../../examples/" }
  37. mpt_projectname = "libopenmpt_example_c"
  38. dofile "../../build/premake/premake-defaults-EXE.lua"
  39. dofile "../../build/premake/premake-defaults.lua"
  40. warnings "Extra"
  41. local extincludedirs = {
  42. "../..",
  43. "../../include/portaudio/include",
  44. }
  45. filter { "action:vs*" }
  46. includedirs ( extincludedirs )
  47. filter { "not action:vs*" }
  48. sysincludedirs ( extincludedirs )
  49. filter {}
  50. includedirs {
  51. "../..",
  52. }
  53. files {
  54. "../../examples/libopenmpt_example_c.c",
  55. }
  56. characterset "Unicode"
  57. links { "libopenmpt", "zlib", "vorbis", "ogg", "mpg123", "portaudio", "ksuser", "winmm" }
  58. filter { "not configurations:*Shared" }
  59. filter { "configurations:*Shared" }
  60. defines { "LIBOPENMPT_USE_DLL" }
  61. filter {}
  62. project "libopenmpt_example_c_mem"
  63. uuid "4db3da91-fafd-43af-b3b7-35699b80aba1"
  64. language "C"
  65. location ( "../../build/" .. mpt_projectpathname )
  66. vpaths { ["*"] = "../../examples/" }
  67. mpt_projectname = "libopenmpt_example_c_mem"
  68. dofile "../../build/premake/premake-defaults-EXE.lua"
  69. dofile "../../build/premake/premake-defaults.lua"
  70. warnings "Extra"
  71. local extincludedirs = {
  72. "../..",
  73. "../../include/portaudio/include",
  74. }
  75. filter { "action:vs*" }
  76. includedirs ( extincludedirs )
  77. filter { "not action:vs*" }
  78. sysincludedirs ( extincludedirs )
  79. filter {}
  80. includedirs {
  81. "../..",
  82. }
  83. files {
  84. "../../examples/libopenmpt_example_c_mem.c",
  85. }
  86. characterset "Unicode"
  87. links { "libopenmpt", "zlib", "vorbis", "ogg", "mpg123", "portaudio", "ksuser", "winmm" }
  88. filter { "not configurations:*Shared" }
  89. filter { "configurations:*Shared" }
  90. defines { "LIBOPENMPT_USE_DLL" }
  91. filter {}
  92. project "libopenmpt_example_c_unsafe"
  93. uuid "696a79ac-65eb-445f-981a-7639c54569f8"
  94. language "C"
  95. location ( "../../build/" .. mpt_projectpathname )
  96. vpaths { ["*"] = "../../examples/" }
  97. mpt_projectname = "libopenmpt_example_c_unsafe"
  98. dofile "../../build/premake/premake-defaults-EXE.lua"
  99. dofile "../../build/premake/premake-defaults.lua"
  100. warnings "Extra"
  101. local extincludedirs = {
  102. "../..",
  103. "../../include/portaudio/include",
  104. }
  105. filter { "action:vs*" }
  106. includedirs ( extincludedirs )
  107. filter { "not action:vs*" }
  108. sysincludedirs ( extincludedirs )
  109. filter {}
  110. includedirs {
  111. "../..",
  112. }
  113. files {
  114. "../../examples/libopenmpt_example_c_unsafe.c",
  115. }
  116. characterset "Unicode"
  117. links { "libopenmpt", "zlib", "vorbis", "ogg", "mpg123", "portaudio", "ksuser", "winmm" }
  118. filter { "not configurations:*Shared" }
  119. filter { "configurations:*Shared" }
  120. defines { "LIBOPENMPT_USE_DLL" }
  121. filter {}
  122. project "libopenmpt_example_c_probe"
  123. uuid "3fbc000d-2574-4a02-96ba-db82d7e7d7bb"
  124. language "C"
  125. location ( "../../build/" .. mpt_projectpathname )
  126. vpaths { ["*"] = "../../examples/" }
  127. mpt_projectname = "libopenmpt_example_c_probe"
  128. dofile "../../build/premake/premake-defaults-EXE.lua"
  129. dofile "../../build/premake/premake-defaults.lua"
  130. warnings "Extra"
  131. local extincludedirs = {
  132. "../..",
  133. "../../include/portaudio/include",
  134. }
  135. filter { "action:vs*" }
  136. includedirs ( extincludedirs )
  137. filter { "not action:vs*" }
  138. sysincludedirs ( extincludedirs )
  139. filter {}
  140. includedirs {
  141. "../..",
  142. }
  143. files {
  144. "../../examples/libopenmpt_example_c_probe.c",
  145. }
  146. characterset "Unicode"
  147. links { "libopenmpt", "zlib", "vorbis", "ogg" }
  148. filter { "not configurations:*Shared" }
  149. filter { "configurations:*Shared" }
  150. defines { "LIBOPENMPT_USE_DLL" }
  151. filter {}