| 1 |
|
| 2 |
from misc.utility.scons_hints import * |
| 3 |
|
| 4 |
Import("env") |
| 5 |
Import("env_modules") |
| 6 |
|
| 7 |
env_etcpak = env_modules.Clone() |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
thirdparty_obj = [] |
| 12 |
|
| 13 |
thirdparty_dir = "#thirdparty/etcpak/" |
| 14 |
thirdparty_sources = [ |
| 15 |
"DecodeRGB.cpp", |
| 16 |
"Dither.cpp", |
| 17 |
"ProcessDxtc.cpp", |
| 18 |
"ProcessRGB.cpp", |
| 19 |
"Tables.cpp", |
| 20 |
] |
| 21 |
thirdparty_sources = [thirdparty_dir + file for file in thirdparty_sources] |
| 22 |
|
| 23 |
env_etcpak.Prepend(CPPPATH=[thirdparty_dir]) |
| 24 |
|
| 25 |
env_thirdparty = env_etcpak.Clone() |
| 26 |
env_thirdparty.disable_warnings() |
| 27 |
env_thirdparty.add_source_files(thirdparty_obj, thirdparty_sources) |
| 28 |
env.modules_sources += thirdparty_obj |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
module_obj = [] |
| 33 |
|
| 34 |
env_etcpak.add_source_files(module_obj, "*.cpp") |
| 35 |
env.modules_sources += module_obj |
| 36 |
|
| 37 |
|
| 38 |
env.Depends(module_obj, thirdparty_obj) |