2008-07-12 11:40:22 -06:00
|
|
|
import os
|
|
|
|
|
2008-07-23 02:49:58 -06:00
|
|
|
ccflags = '-g -O3 -fno-strict-aliasing -fPIC -msse2 -Wall -DLOGGING -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE'
|
2008-07-12 11:40:22 -06:00
|
|
|
|
|
|
|
if False:
|
|
|
|
ccflags += ' -fomit-frame-pointer'
|
|
|
|
|
|
|
|
include_paths = ["../../../Core/Common/Src",
|
|
|
|
"../../../Core/DiscIO/Src",
|
|
|
|
"../../../PluginSpecs",
|
|
|
|
"../../../",
|
|
|
|
"../../../Core/Core/Src",
|
|
|
|
"../../../Core/DebuggerWX/src",
|
|
|
|
"../../../../Externals/Bochs_disasm",
|
2008-07-20 05:02:41 -06:00
|
|
|
"../../../Core/VideoCommon/Src",
|
2008-07-12 11:40:22 -06:00
|
|
|
# "../../../Plugins/Plugin_VideoOGL/Src/Windows",
|
|
|
|
]
|
|
|
|
|
|
|
|
dirs = ["Source/Core/Common/Src",
|
|
|
|
"Externals/Bochs_disasm",
|
|
|
|
"Source/Core/Core/Src",
|
|
|
|
"Source/Core/DiscIO/Src",
|
|
|
|
"Source/Core/DebuggerWX/src",
|
2008-07-20 05:02:41 -06:00
|
|
|
"Source/Core/VideoCommon/Src",
|
2008-07-12 11:40:22 -06:00
|
|
|
"Source/Plugins/Plugin_VideoOGL/Src",
|
2008-07-20 05:02:41 -06:00
|
|
|
"Source/Plugins/Plugin_DSP_NULL/Src",
|
2008-07-12 11:40:22 -06:00
|
|
|
"Source/Plugins/Plugin_DSP_LLE/Src",
|
|
|
|
"Source/Plugins/Plugin_PadSimple/Src",
|
2008-07-22 05:16:45 -06:00
|
|
|
"Source/Plugins/Plugin_nJoy_SDL/Plugin_nJoy_SDL",
|
2008-07-12 11:40:22 -06:00
|
|
|
"Source/Core/DolphinWX/src",
|
|
|
|
]
|
|
|
|
|
|
|
|
lib_paths = include_paths
|
|
|
|
|
2008-07-23 02:49:58 -06:00
|
|
|
env = Environment(CC="gcc",
|
|
|
|
CXX="g++",
|
2008-07-12 11:40:22 -06:00
|
|
|
CCFLAGS=ccflags,
|
|
|
|
CXXFLAGS=ccflags,
|
|
|
|
CPPPATH=include_paths,
|
|
|
|
LIBPATH=lib_paths,
|
|
|
|
ENV={'PATH' : os.environ['PATH'],
|
|
|
|
'HOME' : os.environ['HOME']})
|
|
|
|
|
|
|
|
Export('env')
|
|
|
|
|
|
|
|
builddir = "build"
|
|
|
|
|
|
|
|
for dir in dirs:
|
|
|
|
SConscript(
|
|
|
|
dir + os.sep + "SConscript",
|
|
|
|
# build_dir = builddir + os.sep + dir,
|
|
|
|
duplicate = 0
|
|
|
|
)
|
|
|
|
|