mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-13 13:20:07 +00:00
684a9f6a99
move setup.py back to eglRenderer extension, use pkgutil.get_loader('eglRenderer').get_filename() disable dlmopen by default, unless B3_USE_DLMOPEN is defined.
65 lines
1007 B
Lua
65 lines
1007 B
Lua
|
|
project "OpenGL_Window"
|
|
|
|
language "C++"
|
|
|
|
kind "StaticLib"
|
|
|
|
initOpenGL()
|
|
initGlew()
|
|
|
|
includedirs {
|
|
"../ThirdPartyLibs",
|
|
"../../src",
|
|
}
|
|
|
|
if os.is("Linux") then
|
|
buildoptions{"-fPIC"}
|
|
end
|
|
|
|
--links {
|
|
--}
|
|
|
|
files {
|
|
"*.cpp",
|
|
"*.h",
|
|
"OpenGLWindow/*.c",
|
|
"OpenGLWindow/*.h",
|
|
"OpenGLWindow/GL/*.h",
|
|
"../ThirdPartyLibs/stb_image/stb_image_write.cpp",
|
|
}
|
|
|
|
|
|
|
|
if not os.is("Windows") then
|
|
excludes {
|
|
"Win32OpenGLWindow.cpp",
|
|
"Win32OpenGLWindow.h",
|
|
"Win32Window.cpp",
|
|
"Win32Window.h",
|
|
}
|
|
end
|
|
if os.is("Linux") then
|
|
initX11()
|
|
end
|
|
if not os.is("Linux") then
|
|
excludes {
|
|
"X11OpenGLWindow.cpp",
|
|
"X11OpenGLWindows.h"
|
|
}
|
|
end
|
|
if not os.is("MacoSX") then
|
|
excludes {
|
|
"MacOpenGLWindow.cpp"
|
|
}
|
|
end
|
|
if os.is("MacOSX") then
|
|
files
|
|
{
|
|
"MacOpenGLWindow.h",
|
|
"MacOpenGLWindow.cpp",
|
|
"MacOpenGLWindowObjC.m",
|
|
"MacOpenGLWindowObjC.h",
|
|
}
|
|
end
|