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
|
2008-09-20 22:06:22 +00:00
|
|
|
for flag in flags
|
2008-08-27 09:44:16 +00:00
|
|
|
if not flag.startswith('-W')
|
|
|
|
)
|
2008-09-16 16:50:09 +00:00
|
|
|
env_bochs = env.Clone(
|
2008-08-27 09:44:16 +00:00
|
|
|
CCFLAGS = filterWarnings(env['CCFLAGS']),
|
|
|
|
CXXFLAGS = filterWarnings(env['CXXFLAGS']),
|
|
|
|
)
|
2008-07-12 17:40:22 +00:00
|
|
|
env_bochs.StaticLibrary("bdisasm", files)
|