通过code_build调试时使用加载不同的sane文件

This commit is contained in:
luoliangyi 2024-10-18 18:12:24 +08:00
parent 9f90ba0c7e
commit 0cb13a6ca4
1 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,12 @@ HGSaneManagerImpl::~HGSaneManagerImpl()
HGResult HGSaneManagerImpl::Create()
{
#ifdef CODE_BUILD
std::pair<std::string, std::string> pr;
pr.first = "hgsane";
pr.second = "libHGSaneXY.so";
m_vSource.push_back(pr);
#else
std::string archName;
FILE *file = popen("arch", "r");
if (NULL != file)
@ -132,7 +138,7 @@ HGResult HGSaneManagerImpl::Create()
closedir(dir);
}
#endif
return HGBASE_ERR_OK;
}