aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/comms-ublox
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/comms-ublox')
-rw-r--r--vcpkg/ports/comms-ublox/copyright5
-rw-r--r--vcpkg/ports/comms-ublox/portfile.cmake25
-rw-r--r--vcpkg/ports/comms-ublox/vcpkg.json19
3 files changed, 49 insertions, 0 deletions
diff --git a/vcpkg/ports/comms-ublox/copyright b/vcpkg/ports/comms-ublox/copyright
new file mode 100644
index 0000000..da9779c
--- /dev/null
+++ b/vcpkg/ports/comms-ublox/copyright
@@ -0,0 +1,5 @@
+The generated code has no license, the vendor is free to pick any as long as it's compatibile with the license(s) of the relevant CommsChampion Ecosystem project:
+
+The protocol definition uses the COMMS Library, which is provided under the MPL-2.0 licence. It allows usage in any closed source projects as long as modifications to the COMMS Library itself remain open source.
+The CommsChampion Tools use open source Qt5 libraries, hence are licensed under the GPLv3. It means that any relevant plugin code must remain open source and is not really available to be used in the closed source commercial products.
+The code of this project (libraries and tools it contains) is licensed under Apache v2.0 license.
diff --git a/vcpkg/ports/comms-ublox/portfile.cmake b/vcpkg/ports/comms-ublox/portfile.cmake
new file mode 100644
index 0000000..a57793c
--- /dev/null
+++ b/vcpkg/ports/comms-ublox/portfile.cmake
@@ -0,0 +1,25 @@
+#header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO commschamp/cc.ublox.generated
+ REF v1.0
+ SHA512 0c487d9409c2f2818024f6232832762527250c3563a5eb5c639ad49943931ceb24616db2432bcd752d1a84820ec5349522510dcd202508641d3f29aef41ca1e5
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DOPT_REQUIRE_COMMS_LIB=ON
+ -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
+)
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(PACKAGE_NAME ublox CONFIG_PATH lib/ublox/cmake)
+# currently this is only a header only library. after moving lib/ublox to share this lib path will be empty
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+# Handle copyright
+file(INSTALL "${CURRENT_PORT_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg/ports/comms-ublox/vcpkg.json b/vcpkg/ports/comms-ublox/vcpkg.json
new file mode 100644
index 0000000..4b6fd80
--- /dev/null
+++ b/vcpkg/ports/comms-ublox/vcpkg.json
@@ -0,0 +1,19 @@
+{
+ "name": "comms-ublox",
+ "version-semver": "1.0.0",
+ "description": "UBLOX (UBX) protocol definition, generated out of cc.ublox.commsdsl",
+ "homepage": "https://commschamp.github.io/",
+ "documentation": "https://github.com/commschamp/cc.ublox.generated",
+ "license": null,
+ "dependencies": [
+ "comms",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}