|
|
|
@ -59,9 +59,10 @@ common_model = lenv.Object(common_src) |
|
|
|
|
# build thneed model |
|
|
|
|
if arch == "aarch64" or arch == "larch64": |
|
|
|
|
compiler = lenv.Program('thneed/compile', ["thneed/compile.cc" ]+common_model, LIBS=libs) |
|
|
|
|
cmd = f"cd {Dir('.').get_abspath()} && {compiler[0].get_abspath()} ../../models/supercombo.dlc ../../models/supercombo.thneed --binary" |
|
|
|
|
snpe_path = "/data/pythonpath/phonelibs/snpe/"+arch |
|
|
|
|
cenv = Environment(ENV = {'LD_LIBRARY_PATH' : snpe_path+":"+lenv["ENV"]["LD_LIBRARY_PATH"]}) |
|
|
|
|
cmd = f"cd {Dir('.').abspath} && {compiler[0].abspath} ../../models/supercombo.dlc ../../models/supercombo.thneed --binary" |
|
|
|
|
|
|
|
|
|
lib_paths = ':'.join([Dir(p).abspath for p in lenv["LIBPATH"]]) |
|
|
|
|
cenv = Environment(ENV={'LD_LIBRARY_PATH': f"{lib_paths}:{lenv['ENV']['LD_LIBRARY_PATH']}"}) |
|
|
|
|
cenv.Command("../../models/supercombo.thneed", ["../../models/supercombo.dlc", compiler], cmd) |
|
|
|
|
|
|
|
|
|
lenv.Program('_dmonitoringmodeld', [ |
|
|
|
|