Ticket #1316: premake4.lua.patch
File premake4.lua.patch, 1.5 KB (added by , 12 years ago) |
---|
-
premake4.lua
5 5 newoption { trigger = "gles", description = "Use non-working OpenGL ES 2.0 mode" } 6 6 newoption { trigger = "icc", description = "Use Intel C++ Compiler (Linux only; should use either \"--cc icc\" or --without-pch too, and then set CXX=icpc before calling make)" } 7 7 newoption { trigger = "outpath", description = "Location for generated project files" } 8 newoption { trigger = "without-fam", description = "Disable use of FAM API on Linux" }9 8 newoption { trigger = "without-audio", description = "Disable use of OpenAL/Ogg/Vorbis APIs" } 10 9 newoption { trigger = "without-nvtt", description = "Disable use of NVTT" } 11 10 newoption { trigger = "without-tests", description = "Disable generation of test projects" } … … 153 152 defines { "CONFIG2_GLES=1" } 154 153 end 155 154 156 if _OPTIONS["without-fam"] then157 defines { "CONFIG2_FAM=0" }158 end159 160 155 if _OPTIONS["without-audio"] then 161 156 defines { "CONFIG2_AUDIO=0" } 162 157 end … … 761 756 762 757 elseif os.is("linux") or os.is("bsd") then 763 758 764 if not _OPTIONS["without-fam"] then765 links { "fam" }766 end767 768 759 if not _OPTIONS["android"] then 769 760 links { "rt" } 770 761 end … … 1176 1167 1177 1168 elseif os.is("linux") or os.is("bsd") then 1178 1169 1179 if not _OPTIONS["without-fam"] then1180 links { "fam" }1181 end1182 1183 1170 if not _OPTIONS["android"] then 1184 1171 links { "rt" } 1185 1172 end