Import('env') etc_sources = [ "etc1/image_etc.cpp", "etc1/rg_etc1.cpp" ] if (env["etc1"] != "no"): env.drivers_sources+=etc_sources #env.add_source_files(env.drivers_sources, etc_sources) Export('env')