2008-07-12 17:40:22 +00:00
|
|
|
Import('env')
|
2008-08-06 21:07:31 +00:00
|
|
|
import sys
|
2008-07-12 17:40:22 +00:00
|
|
|
|
|
|
|
files = ["BPStructs.cpp",
|
|
|
|
"DataReader.cpp",
|
|
|
|
"Globals.cpp",
|
|
|
|
"GLInit.cpp",
|
|
|
|
"main.cpp",
|
|
|
|
"memcpy_amd.cpp",
|
|
|
|
"OpcodeDecoding.cpp",
|
|
|
|
# "OpcodeReaders.cpp", # outdated
|
|
|
|
"PixelShader.cpp",
|
2008-07-20 11:02:41 +00:00
|
|
|
"PixelShaderManager.cpp",
|
2008-07-12 17:40:22 +00:00
|
|
|
"rasterfont.cpp",
|
|
|
|
"Render.cpp",
|
2008-07-21 01:27:13 +00:00
|
|
|
# "TextureDecoder.cpp",
|
2008-07-12 17:40:22 +00:00
|
|
|
"TextureMngr.cpp",
|
|
|
|
"VertexLoader.cpp",
|
|
|
|
"VertexLoader_Normal.cpp",
|
|
|
|
"VertexShader.cpp",
|
2008-07-20 11:02:41 +00:00
|
|
|
"VertexShaderManager.cpp",
|
2008-08-14 22:25:45 +00:00
|
|
|
"XFB.cpp",
|
2008-07-12 17:40:22 +00:00
|
|
|
# "Linux/Conf.cpp",
|
2008-07-23 16:04:58 +00:00
|
|
|
# "Linux/Linux.cpp",
|
|
|
|
"GUI/ConfigDlg.cpp",
|
2008-07-12 17:40:22 +00:00
|
|
|
]
|
2008-08-06 21:07:31 +00:00
|
|
|
if sys.platform == 'darwin':
|
2008-08-21 00:27:10 +00:00
|
|
|
gfxenv=env.Copy(CXXFLAGS = " -DMACOSX=1 `sdl-config --cflags` `wx-config --cppflags` -I/opt/local/include ", LINKFLAGS = " -framework OpenGL -framework Cg `sdl-config --libs` `wx-config --libs` -L/opt/local/lib ")
|
2008-08-12 23:17:29 +00:00
|
|
|
gfxenv.SharedLibrary("../../../../Binary/mac/Plugins/zeroogl.so", files, LIBS=["videocommon", "common", "GLEW"])
|
2008-08-06 21:07:31 +00:00
|
|
|
else:
|
|
|
|
gfxenv=env.Copy(CXXFLAGS = " `wx-config --cppflags` `pkg-config --cflags xxf86vm` ", LINKFLAGS = "`wx-config --libs` `pkg-config --libs xxf86vm` ")
|
|
|
|
gfxenv.SharedLibrary("../../../../Binary/linux/Plugins/zeroogl.so", files, LIBS=["videocommon", "common", "cairo", "GL", "GLU", "GLEW", "CgGL", "Cg", "X11"])
|