mirror of
https://github.com/gwm17/Mask.git
synced 2024-11-26 12:08:52 -05:00
Added (probable) Windows compatibility, needs testing to verify
This commit is contained in:
parent
0bafaa3b2e
commit
f5052dbbce
33
premake5.lua
33
premake5.lua
|
@ -17,6 +17,30 @@ project "Mask"
|
||||||
"src/**.cxx"
|
"src/**.cxx"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prebuildcommands {
|
||||||
|
"rootcint -f src/kinematics_dict.cxx include/Kinematics.h include/LinkDef_Kinematics.h",
|
||||||
|
"{MOVE} src/kinematics_dict_rdict.pcm bin/"
|
||||||
|
}
|
||||||
|
|
||||||
|
filter "system:windows"
|
||||||
|
systemversion "latest"
|
||||||
|
--ROOT cannot be located using the config tools, so we must query for the ROOTSYS env variable
|
||||||
|
--Have to use an if statement to hide this (@penguin for example doesn't have a ROOTSYS)
|
||||||
|
if os.host() == windows then
|
||||||
|
rootpath = os.getenv("ROOTSYS")
|
||||||
|
|
||||||
|
includedirs {
|
||||||
|
"include",
|
||||||
|
"./",
|
||||||
|
rootpath .. "include"
|
||||||
|
}
|
||||||
|
|
||||||
|
links {
|
||||||
|
rootpath .. "lib/**.lib"
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
|
filter "system:macosx or linux"
|
||||||
includedirs {
|
includedirs {
|
||||||
"include",
|
"include",
|
||||||
"./"
|
"./"
|
||||||
|
@ -30,7 +54,8 @@ project "Mask"
|
||||||
"`root-config --glibs`"
|
"`root-config --glibs`"
|
||||||
}
|
}
|
||||||
|
|
||||||
prebuildcommands {
|
filter "configurations:Debug"
|
||||||
"rootcint -f src/kinematics_dict.cxx include/Kinematics.h include/LinkDef_Kinematics.h",
|
symbols "On"
|
||||||
"{MOVE} src/kinematics_dict_rdict.pcm bin/"
|
|
||||||
}
|
filter "configurations:Release"
|
||||||
|
optimize "On"
|
Loading…
Reference in New Issue
Block a user