2008-07-12 17:40:22 +00:00
|
|
|
Import('env')
|
|
|
|
|
2008-08-26 22:28:42 +00:00
|
|
|
files = [
|
|
|
|
"dis_decode.cpp",
|
|
|
|
"dis_groups.cpp",
|
|
|
|
"resolve.cpp",
|
|
|
|
"syntax.cpp",
|
|
|
|
"PowerPCDisasm.cpp",
|
|
|
|
]
|
2008-07-12 17:40:22 +00:00
|
|
|
|
2008-08-27 09:44:16 +00:00
|
|
|
def filterWarnings(flags):
|
|
|
|
return ' '.join(
|
|
|
|
flag
|
|
|
|
for flag in flags.split()
|
|
|
|
if not flag.startswith('-W')
|
|
|
|
)
|
|
|
|
env_bochs = env.Copy(
|
|
|
|
CCFLAGS = filterWarnings(env['CCFLAGS']),
|
|
|
|
CXXFLAGS = filterWarnings(env['CXXFLAGS']),
|
|
|
|
)
|
2008-07-12 17:40:22 +00:00
|
|
|
env_bochs.StaticLibrary("bdisasm", files)
|