fix: Add Lts/Proxies/TrainingAreaBase to release scope
- Include Lts/Proxies/TrainingAreaBase in release_items for header dependencies - Add directory filtering logic for Lts/Proxies and TrainingAreaBase - Required for CoPrtCnv to find training_area_telegrams.h Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
1 file changed
+9
-2
@@ -109,6 +109,7 @@ def copy_src_dir_to_dest_dir(srcdir, dstdir, perm=None, with_subdirs=True, relea
|
|||||||
'TetraIF',
|
'TetraIF',
|
||||||
'Z/src',
|
'Z/src',
|
||||||
'Lts/Common',
|
'Lts/Common',
|
||||||
|
'Lts/Proxies/TrainingAreaBase', # Required for training_area_telegrams.h used by TetraIF
|
||||||
'CMakeLists.txt',
|
'CMakeLists.txt',
|
||||||
'cmake',
|
'cmake',
|
||||||
'tests',
|
'tests',
|
||||||
@@ -139,8 +140,14 @@ def copy_src_dir_to_dest_dir(srcdir, dstdir, perm=None, with_subdirs=True, relea
|
|||||||
# In Z directory, only keep src
|
# In Z directory, only keep src
|
||||||
dirs[:] = [d for d in dirs if d == 'src']
|
dirs[:] = [d for d in dirs if d == 'src']
|
||||||
elif rel_root == 'Lts':
|
elif rel_root == 'Lts':
|
||||||
# In Lts directory, only keep Common
|
# In Lts directory, only keep Common and Proxies (for TrainingAreaBase)
|
||||||
dirs[:] = [d for d in dirs if d == 'Common']
|
dirs[:] = [d for d in dirs if d in ('Common', 'Proxies')]
|
||||||
|
elif rel_root == 'Lts/Proxies':
|
||||||
|
# In Lts/Proxies, only keep TrainingAreaBase
|
||||||
|
dirs[:] = [d for d in dirs if d == 'TrainingAreaBase']
|
||||||
|
elif rel_root.startswith('Lts/Proxies/TrainingAreaBase'):
|
||||||
|
# Keep all subdirectories under TrainingAreaBase (DDS code wrapped in conditionals)
|
||||||
|
pass
|
||||||
elif rel_root.startswith('Lts/Common'):
|
elif rel_root.startswith('Lts/Common'):
|
||||||
# Keep all subdirectories under Lts/Common except LtsUtilsGuiDds (requires DDS)
|
# Keep all subdirectories under Lts/Common except LtsUtilsGuiDds (requires DDS)
|
||||||
if rel_root == 'Lts/Common/LtsUtils/LtsUtilsGui':
|
if rel_root == 'Lts/Common/LtsUtils/LtsUtilsGui':
|
||||||
|
|||||||
Reference in new issue
Block a user