Revert "Revert "Missed some things in prev commit.""

This reverts commit 2e59788aa9.
This commit is contained in:
V.VamsiKrishna 2015-03-20 11:48:21 +05:30
parent eb3c88b3dd
commit beab10ab9b
3 changed files with 7 additions and 1 deletions

View File

@ -308,6 +308,8 @@ if selected_platform in platform_list:
if (env['colored']=='yes'):
methods.colored(sys,env)
if (env['etc1']=='yes'):
env.Append(CPPFLAGS=['-DETC1_ENABLED'])
Export('env')

View File

@ -6,7 +6,8 @@ etc_sources = [
"etc1/rg_etc1.cpp"
]
env.drivers_sources+=etc_sources
if (env["etc1"] != "no"):
env.drivers_sources+=etc_sources
#env.add_source_files(env.drivers_sources, etc_sources)

View File

@ -222,7 +222,10 @@ void register_driver_types() {
#endif
#endif
#ifdef ETC1_ENABLED
_register_etc1_compress_func();
#endif
initialize_chibi();
}