mpt-libopenmpt_test.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. project "libopenmpt_test"
  2. uuid "0A313F63-131E-46A0-931D-23C3A3D488F2"
  3. language "C++"
  4. location ( "../../build/" .. mpt_projectpathname )
  5. vpaths { ["*"] = "../../" }
  6. mpt_projectname = "libopenmpt_test"
  7. dofile "../../build/premake/premake-defaults-EXE.lua"
  8. dofile "../../build/premake/premake-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. filter { "action:vs*" }
  17. includedirs ( extincludedirs )
  18. filter { "not action:vs*" }
  19. sysincludedirs ( extincludedirs )
  20. filter {}
  21. includedirs {
  22. "../..",
  23. "../../src",
  24. "../../common",
  25. "$(IntDir)/svn_version",
  26. "../../build/svn_version",
  27. }
  28. files {
  29. "../../src/mpt/**.cpp",
  30. "../../src/mpt/**.hpp",
  31. "../../src/openmpt/**.cpp",
  32. "../../src/openmpt/**.hpp",
  33. "../../common/*.cpp",
  34. "../../common/*.h",
  35. "../../soundlib/*.cpp",
  36. "../../soundlib/*.h",
  37. "../../soundlib/plugins/*.cpp",
  38. "../../soundlib/plugins/*.h",
  39. "../../soundlib/plugins/dmo/*.cpp",
  40. "../../soundlib/plugins/dmo/*.h",
  41. "../../sounddsp/*.cpp",
  42. "../../sounddsp/*.h",
  43. "../../test/*.cpp",
  44. "../../test/*.h",
  45. "../../libopenmpt/libopenmpt.h",
  46. "../../libopenmpt/libopenmpt.hpp",
  47. "../../libopenmpt/libopenmpt_config.h",
  48. "../../libopenmpt/libopenmpt_ext.h",
  49. "../../libopenmpt/libopenmpt_ext.hpp",
  50. "../../libopenmpt/libopenmpt_ext_impl.hpp",
  51. "../../libopenmpt/libopenmpt_impl.hpp",
  52. "../../libopenmpt/libopenmpt_internal.h",
  53. "../../libopenmpt/libopenmpt_stream_callbacks_buffer.h",
  54. "../../libopenmpt/libopenmpt_stream_callbacks_fd.h",
  55. "../../libopenmpt/libopenmpt_stream_callbacks_file.h",
  56. "../../libopenmpt/libopenmpt_version.h",
  57. "../../libopenmpt/libopenmpt_c.cpp",
  58. "../../libopenmpt/libopenmpt_cxx.cpp",
  59. "../../libopenmpt/libopenmpt_ext_impl.cpp",
  60. "../../libopenmpt/libopenmpt_impl.cpp",
  61. "../../libopenmpt/libopenmpt_test.cpp",
  62. }
  63. excludes {
  64. "../../src/mpt/crypto/**.cpp",
  65. "../../src/mpt/crypto/**.hpp",
  66. "../../src/mpt/json/**.cpp",
  67. "../../src/mpt/json/**.hpp",
  68. "../../src/mpt/library/**.cpp",
  69. "../../src/mpt/library/**.hpp",
  70. "../../src/mpt/path/**.cpp",
  71. "../../src/mpt/path/**.hpp",
  72. "../../src/mpt/uuid_namespace/**.cpp",
  73. "../../src/mpt/uuid_namespace/**.hpp",
  74. "../../test/mpt_tests_crypto.cpp",
  75. "../../test/mpt_tests_uuid_namespace.cpp",
  76. "../../src/openmpt/sounddevice/**.cpp",
  77. "../../src/openmpt/sounddevice/**.hpp",
  78. }
  79. characterset "Unicode"
  80. warnings "Extra"
  81. defines { "LIBOPENMPT_BUILD", "LIBOPENMPT_BUILD_TEST" }
  82. links {
  83. "mpg123",
  84. "ogg",
  85. "vorbis",
  86. "zlib",
  87. }
  88. filter {}
  89. prebuildcommands { "..\\..\\build\\svn_version\\update_svn_version_vs_premake.cmd $(IntDir)" }