1
0

mpt-libopenmpt-small.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. project "libopenmpt-small"
  2. uuid "25560abd-41fc-444c-9e71-f8502bc7ee96"
  3. language "C++"
  4. location ( "../../build/" .. mpt_projectpathname )
  5. vpaths { ["*"] = "../../" }
  6. mpt_projectname = "libopenmpt-small"
  7. dofile "../../build/premake/premake-defaults-LIBorDLL.lua"
  8. dofile "../../build/premake/premake-defaults.lua"
  9. local extincludedirs = {
  10. "../../include",
  11. }
  12. filter { "action:vs*" }
  13. includedirs ( extincludedirs )
  14. filter { "not action:vs*" }
  15. sysincludedirs ( extincludedirs )
  16. filter {}
  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. filter { "action:vs*" }
  73. resdefines {
  74. "MPT_BUILD_VER_SPECIAL_PREFIX=\"+small\"",
  75. }
  76. filter { "action:vs*", "kind:SharedLib or ConsoleApp or WindowedApp" }
  77. resdefines {
  78. "MPT_BUILD_VER_FILENAME=\"" .. mpt_projectname .. ".dll\"",
  79. "MPT_BUILD_VER_FILEDESC=\"" .. mpt_projectname .. "\"",
  80. }
  81. filter { "action:vs*", "kind:SharedLib or ConsoleApp or WindowedApp" }
  82. resincludedirs {
  83. "$(IntDir)/svn_version",
  84. "../../build/svn_version",
  85. "$(ProjDir)/../../build/svn_version",
  86. }
  87. files {
  88. "../../libopenmpt/libopenmpt_version.rc",
  89. }
  90. filter { "action:vs*", "kind:SharedLib" }
  91. resdefines { "MPT_BUILD_VER_DLL" }
  92. filter { "action:vs*", "kind:ConsoleApp or WindowedApp" }
  93. resdefines { "MPT_BUILD_VER_EXE" }
  94. filter {}
  95. characterset "Unicode"
  96. warnings "Extra"
  97. defines { "LIBOPENMPT_BUILD", "LIBOPENMPT_BUILD_SMALL" }
  98. filter { "kind:SharedLib" }
  99. defines { "LIBOPENMPT_BUILD_DLL" }
  100. filter { "kind:SharedLib" }
  101. filter {}
  102. links {
  103. "minimp3",
  104. "miniz",
  105. "stb_vorbis"
  106. }
  107. prebuildcommands { "..\\..\\build\\svn_version\\update_svn_version_vs_premake.cmd $(IntDir)" }