genie.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. -- genie gets a tiny bit confused if the same project appears in multiple
  2. -- solutions in a single run. genie adds a bogus $projectname path to the
  3. -- intermediate objects directory in that case. work-around using multiple
  4. -- invocations of genie and a custom option to distinguish them.
  5. newoption {
  6. trigger = "group",
  7. value = "PROJECTS",
  8. description = "OpenMPT project group",
  9. allowed = {
  10. { "libopenmpt", "libopenmpt" },
  11. }
  12. }
  13. newoption {
  14. trigger = "target",
  15. value = "PROJECTS",
  16. description = "windows target platform",
  17. allowed = {
  18. { "windesktop81", "windesktop81" },
  19. { "winphone8" , "winphone8" },
  20. { "winphone81" , "winphone81" },
  21. { "winstore81" , "winstore81" },
  22. { "winstore82" , "winstore82" },
  23. { "winstore10" , "winstore10" },
  24. }
  25. }
  26. if _ACTION == "vs2019" then
  27. if _OPTIONS["target"] == "windesktop81" then
  28. mpt_projectpathname = "vs2019win81"
  29. mpt_bindirsuffix = "win81"
  30. end
  31. if _OPTIONS["target"] == "winstore10" then
  32. mpt_projectpathname = "vs2019uwp"
  33. mpt_bindirsuffix = "uwp"
  34. end
  35. end
  36. if _ACTION == "vs2017" then
  37. if _OPTIONS["target"] == "windesktop81" then
  38. mpt_projectpathname = "vs2017win81"
  39. mpt_bindirsuffix = "win81"
  40. end
  41. if _OPTIONS["target"] == "winstore82" then
  42. mpt_projectpathname = "vs2017uwp"
  43. mpt_bindirsuffix = "uwp"
  44. end
  45. end
  46. --mpt_projectpathname = _OPTIONS["target"]
  47. --mpt_bindirsuffix = _OPTIONS["target"]
  48. solution "libopenmpt"
  49. location ( "../../build/" .. mpt_projectpathname )
  50. configurations { "Debug", "Release", "DebugShared", "ReleaseShared" }
  51. if _OPTIONS["target"] == "winstore10" then
  52. platforms { "x32", "x64", "ARM", "ARM64" }
  53. else
  54. platforms { "x32", "x64", "ARM" }
  55. end
  56. dofile "../../build/genie/mpt-libopenmpt.lua"
  57. dofile "../../build/genie/ext-mpg123.lua"
  58. dofile "../../build/genie/ext-ogg.lua"
  59. dofile "../../build/genie/ext-vorbis.lua"
  60. dofile "../../build/genie/ext-zlib.lua"