Changeset View
Changeset View
Standalone View
Standalone View
build/premake/premake5.lua
Show First 20 Lines • Show All 932 Lines • ▼ Show 20 Lines | function setup_all_libs () | ||||
sysincludedirs { glad_path.."include" } | sysincludedirs { glad_path.."include" } | ||||
if _OPTIONS["gles"] then | if _OPTIONS["gles"] then | ||||
files { glad_path.."src/gles2.cpp" } | files { glad_path.."src/gles2.cpp" } | ||||
else | else | ||||
files { glad_path.."src/gl.cpp" } | files { glad_path.."src/gl.cpp" } | ||||
if os.istarget("windows") then | if os.istarget("windows") then | ||||
files { glad_path.."src/wgl.cpp" } | files { glad_path.."src/wgl.cpp" } | ||||
elseif os.istarget("linux") or os.istarget("bsd") then | elseif os.istarget("linux") or os.istarget("bsd") then | ||||
files { glad_path.."src/glx.cpp" } | files { glad_path.."src/egl.cpp", glad_path.."src/glx.cpp" } | ||||
Stan: I don't suppose we can check for it there so sounds safe. | |||||
end | end | ||||
end | end | ||||
-- Third-party libraries that are built as part of the main project, | -- Third-party libraries that are built as part of the main project, | ||||
-- not built externally and then linked | -- not built externally and then linked | ||||
source_dirs = { | source_dirs = { | ||||
"third_party/mongoose", | "third_party/mongoose", | ||||
▲ Show 20 Lines • Show All 587 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
I don't suppose we can check for it there so sounds safe.