mavlink: cmake generate mavlink headers at build time

- mavlink/mavlink is now directly included as a submodule instead of the generated mavlink/c_library_v2
 - this also switches to mavlink development.xml by default
This commit is contained in:
Jacob Crabill
2021-11-05 23:01:38 -04:00
committed by GitHub
parent 88489ae8bd
commit 5969508fa7
20 changed files with 71 additions and 32 deletions
+2 -2
View File
@@ -135,9 +135,9 @@ if (os.path.exists('src/lib/ecl/.git')):
# Mavlink
if (os.path.exists('mavlink/include/mavlink/v2.0/.git')):
if (os.path.exists('src/modules/mavlink/mavlink/.git')):
mavlink_git_version = subprocess.check_output('git rev-parse --verify HEAD'.split(),
cwd='mavlink/include/mavlink/v2.0', stderr=subprocess.STDOUT).decode('utf-8').strip()
cwd='src/modules/mavlink/mavlink', stderr=subprocess.STDOUT).decode('utf-8').strip()
mavlink_git_version_short = mavlink_git_version[0:16]
header += f"""