Open hseok-oh opened 4 years ago
package
folder seems to be packages
@hseok-oh
infra/nncc/cmake/packages
: runtime library package (build result)
Maybe infra/nnfw/cmake/package
nnfw_find_package
wrapper: same, but don't download external library code
nnfw_find_package
may download external library source (e.g. boost source).
nnfw_find_package may download external library source (e.g. boost source).
Source download package (e.g. boost source) will be moved to infra/cmake/packages
@hseok-oh I meant nnfw_find_package(BOOST)
will try to dowonload if BUILD_BOOST
is on.
I think we need new standard to rearrange cmake packages
cc/ @parjong @seanshpark
Concept
External library's source code can be shared by compiler and runtime. But built binary or pre-installed library may not be shared because
Now
infra/cmake/packages
: runtime & compiler common packagennas_find_package
wrappernnfw_find_package
wrapperTODO
infra/cmake/packages
: package definition for external library code downloadnnas_find_package
wrapper (same)infra/nncc/cmake/packages
: compiler library package (build result)nncc_find_package
wrapperinfra/nnfw/cmake/packages
: runtime library package (build result)nnfw_find_package
wrapper: same, but don't download external library code