cordova: added Cordova binding based on Java binding

The Cordova plugins for each Java packages will be created
if BUILDCORDOVA=ON and BUILDSWIGJAVA=ON.
This commit is contained in:
Lin Sun
2017-11-22 22:14:59 +08:00
committed by Noel Eck
parent 090ce2040e
commit 8dc6aea73f
3 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,8 @@
find_program(UPM_CORDOVA_BINDING NAMES upm-cordova-binding
)
if(UPM_CORDOVA_BINDING)
message(STATUS "The npm package to build cordova bindings found at ${UPM_CORDOVA_BINDING}")
else()
message(FATAL_ERROR "Unable to find the npm package for building cordova bindings, please install by 'npm install -g upm-cordova-binding'")
endif()