modify build.sh ,fix find_package search path in CONFIG mode

This commit is contained in:
houzh 2023-05-12 07:46:24 +00:00
parent 284014f2ed
commit 926adacfde
2 changed files with 3 additions and 1 deletions

View File

@ -69,6 +69,8 @@ if [ "$PRODUCT" != "X64" ]; then
echo "TOOLCHAIN_FILE=${TOOLCHAIN_FILE}" echo "TOOLCHAIN_FILE=${TOOLCHAIN_FILE}"
fi fi
export PATH=$PATH:$DEPLIBS_DIR
if [ "${BUILD_TYPE,,}"="debug" ];then if [ "${BUILD_TYPE,,}"="debug" ];then
DEPLIBS_DIR="${DEPLIBS_DIR}/debug" DEPLIBS_DIR="${DEPLIBS_DIR}/debug"
fi fi

View File

@ -61,7 +61,7 @@ int main (int argc, char *argv[]){
cdroid::HtmlView*html=new cdroid::HtmlView(400,400); cdroid::HtmlView*html=new cdroid::HtmlView(400,400);
w->addView(html); w->addView(html);
if(app.getParamCount()) if(app.getParamCount())
html->open_page(getParam(0,htmlbody)); html->open_page(app.getParam(0,htmlbody),"");
else else
html->open_page(htmlbody,""); html->open_page(htmlbody,"");
return app.exec(); return app.exec();