通过code_build调试时使用加载不同的sane文件
This commit is contained in:
parent
9f90ba0c7e
commit
0cb13a6ca4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue