dolphin/SConstruct
Laurence Muller d8ed24fd29 nJoy:
- This version should compile on linux.
- The about and config dialogs are disabled (win32 should be replaced by wxWidgets)
- This version is untested, so if you want to try it out, use a premade nJoy.ini from a windows install.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@70 8ced0084-cf51-0410-be5f-012b33b47a6e
2008-07-23 18:53:54 +00:00

55 lines
1.5 KiB
Python

import os
ccflags = '-g -O3 -fno-strict-aliasing -fPIC -msse2 -Wall -DLOGGING -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE'
if False:
ccflags += ' -fomit-frame-pointer'
include_paths = ["../../../Core/Common/Src",
"../../../Core/DiscIO/Src",
"../../../PluginSpecs",
"../../../",
"../../../Core/Core/Src",
"../../../Core/DebuggerWX/src",
"../../../../Externals/Bochs_disasm",
"../../../Core/VideoCommon/Src",
# "../../../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",
"Source/Core/VideoCommon/Src",
"Source/Plugins/Plugin_VideoOGL/Src",
"Source/Plugins/Plugin_DSP_NULL/Src",
"Source/Plugins/Plugin_DSP_LLE/Src",
"Source/Plugins/Plugin_PadSimple/Src",
"Source/Plugins/Plugin_nJoy_SDL/Src",
"Source/Core/DolphinWX/src",
]
lib_paths = include_paths
env = Environment(CC="gcc",
CXX="g++",
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
)