mpt-libopenmpt.lua 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. project "libopenmpt"
  2. uuid "9C5101EF-3E20-4558-809B-277FDD50E878"
  3. language "C++"
  4. location ( "../../build/" .. mpt_projectpathname )
  5. vpaths { ["*"] = "../../" }
  6. mpt_projectname = "libopenmpt"
  7. dofile "../../build/genie/genie-defaults-LIBorDLL.lua"
  8. dofile "../../build/genie/genie-defaults.lua"
  9. local extincludedirs = {
  10. "../../include/mpg123/ports/MSVC++",
  11. "../../include/mpg123/src/libmpg123",
  12. "../../include/ogg/include",
  13. "../../include/vorbis/include",
  14. "../../include/zlib",
  15. }
  16. includedirs ( extincludedirs )
  17. includedirs {
  18. "../..",
  19. "../../src",
  20. "../../common",
  21. "$(IntDir)/svn_version",
  22. "../../build/svn_version",
  23. }
  24. files {
  25. "../../src/mpt/**.cpp",
  26. "../../src/mpt/**.hpp",
  27. "../../src/openmpt/**.cpp",
  28. "../../src/openmpt/**.hpp",
  29. "../../common/*.cpp",
  30. "../../common/*.h",
  31. "../../soundlib/*.cpp",
  32. "../../soundlib/*.h",
  33. "../../soundlib/plugins/*.cpp",
  34. "../../soundlib/plugins/*.h",
  35. "../../soundlib/plugins/dmo/*.cpp",
  36. "../../soundlib/plugins/dmo/*.h",
  37. "../../sounddsp/*.cpp",
  38. "../../sounddsp/*.h",
  39. "../../libopenmpt/libopenmpt.h",
  40. "../../libopenmpt/libopenmpt.hpp",
  41. "../../libopenmpt/libopenmpt_config.h",
  42. "../../libopenmpt/libopenmpt_ext.h",
  43. "../../libopenmpt/libopenmpt_ext.hpp",
  44. "../../libopenmpt/libopenmpt_ext_impl.hpp",
  45. "../../libopenmpt/libopenmpt_impl.hpp",
  46. "../../libopenmpt/libopenmpt_internal.h",
  47. "../../libopenmpt/libopenmpt_stream_callbacks_buffer.h",
  48. "../../libopenmpt/libopenmpt_stream_callbacks_fd.h",
  49. "../../libopenmpt/libopenmpt_stream_callbacks_file.h",
  50. "../../libopenmpt/libopenmpt_version.h",
  51. "../../libopenmpt/libopenmpt_c.cpp",
  52. "../../libopenmpt/libopenmpt_cxx.cpp",
  53. "../../libopenmpt/libopenmpt_ext_impl.cpp",
  54. "../../libopenmpt/libopenmpt_impl.cpp",
  55. }
  56. excludes {
  57. "../../src/mpt/crypto/**.cpp",
  58. "../../src/mpt/crypto/**.hpp",
  59. "../../src/mpt/json/**.cpp",
  60. "../../src/mpt/json/**.hpp",
  61. "../../src/mpt/library/**.cpp",
  62. "../../src/mpt/library/**.hpp",
  63. "../../src/mpt/path/**.cpp",
  64. "../../src/mpt/path/**.hpp",
  65. "../../src/mpt/test/**.cpp",
  66. "../../src/mpt/test/**.hpp",
  67. "../../src/mpt/uuid_namespace/**.cpp",
  68. "../../src/mpt/uuid_namespace/**.hpp",
  69. "../../src/openmpt/sounddevice/**.cpp",
  70. "../../src/openmpt/sounddevice/**.hpp",
  71. }
  72. resdefines {
  73. "MPT_BUILD_VER_FILENAME=\"" .. mpt_projectname .. ".dll\"",
  74. "MPT_BUILD_VER_FILEDESC=\"" .. mpt_projectname .. "\"",
  75. }
  76. configuration "DebugShared or ReleaseShared"
  77. defines { "LIBOPENMPT_BUILD_DLL" }
  78. resincludedirs {
  79. "$(IntDir)/svn_version",
  80. "../../build/svn_version",
  81. "$(ProjDir)/../../build/svn_version",
  82. }
  83. files {
  84. "../../libopenmpt/libopenmpt_version.rc",
  85. }
  86. resdefines { "MPT_BUILD_VER_DLL" }
  87. configuration {}
  88. flags { "Unicode" }
  89. flags { "ExtraWarnings" }
  90. defines { "LIBOPENMPT_BUILD" }
  91. links {
  92. "mpg123",
  93. "vorbis",
  94. "ogg",
  95. "zlib",
  96. }
  97. prebuildcommands { "..\\..\\build\\svn_version\\update_svn_version_vs_premake.cmd $(IntDir)" }