build: fix mechanism for additional dependencies

Instead of expecting plugins to store their configuration files in
a "configs/" directory, read the dependencies from the config.xml file.
The reason why the old method does not work is that the <resource-file>
element of the plugin.xml file doesn't support a "target-dir" attribute.

By using the <config-file> element, instead, we don't need to do any
changes to cordova lib, and all the plugin configuration can now be
stored in the plugin.xml file.

Example:

<config-file target="config.xml" parent="/*">
  <feature name="FacebookConnect">
    <param policy_group="accounts" policy_version="1" />
    <param hook="account-application" value="qml/app.application" />
    <param hook="account-service" value="qml/app.service" />
    <deps>
      <pkgConfig>["signond", "libsignon-qt5"]</pkgConfig>
      <deb>["signond-dev:ARCH", "libsignon-qt5-dev:ARCH"]</deb>
    </deps>
  </feature>
</config-file>
1 file changed
tree: e33f016ad2cad6991c324b2a058adf25387c6775
  1. bin/
  2. cordova-js-src/
  3. CordovaUbuntu/
  4. qml/
  5. src/
  6. tests/
  7. www/
  8. xml/
  9. .editorconfig
  10. .gitignore
  11. CMakeLists.txt
  12. CONTRIBUTING.md
  13. default_icon.png
  14. LICENSE
  15. main.cpp
  16. package.json
  17. README.md
  18. RELEASENOTES.md
  19. VERSION
README.md

Cordova/Ubuntu

Cordova/Ubuntu is the Ubuntu port of the Apache Cordova project.

Requirements

  • Ubuntu SDK

License

Licensed under the APACHE-2.0 license. See LICENSE file for details.