File tree Expand file tree Collapse file tree
fastdds_python_examples/HelloWorldExample Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11
2- cmake_minimum_required (VERSION 3.16.3 )
2+ cmake_minimum_required (VERSION 3.22 )
33
44# SWIG: use standard target name.
55if (POLICY CMP0078)
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- idl_files=(
4- ' ./fastdds_python/test/types/test_modules.idl'
5- ' ./fastdds_python/test/types/test_complete.idl'
6- ' ./fastdds_python/test/types/test_included_modules.idl'
7- ' ./fastdds_python_examples/HelloWorldExample/HelloWorld.idl'
8- )
9-
103red=' \E[1;31m'
114yellow=' \E[1;33m'
125textreset=' \E[1;0m'
2518
2619ret_value=0
2720
28- for idl_file in " ${idl_files[@]} " ; do
29- idl_dir=$( dirname " ${idl_file} " )
30- file_from_gen=$( basename " ${idl_file} " )
31-
32- echo -e " Processing ${yellow}${idl_file}${textreset} "
33-
34- cd " ${idl_dir} "
21+ cd ./fastdds_python/test/types
22+ echo -e " Processing ${yellow} test_complete.idl test_modules.idl${textreset} "
23+ echo " Running: fastddsgen -cdr both -replace -python test_complete.idl test_modules.idl"
24+ fastddsgen -cdr both -replace -python test_complete.idl test_modules.idl
25+ if [[ $? != 0 ]]; then
26+ ret_value=-1
27+ fi
28+ cd -
3529
36- echo " Running: fastddsgen -cdr both -replace -flat-output-dir -python ${file_from_gen} "
37- fastddsgen -cdr both -replace -flat-output-dir -python ${file_from_gen}
30+ if [[ $ret_value != -1 ]] ; then
31+ cd " ./fastdds_python_examples/HelloWorldExample "
3832
39- if [[ $? != 0 ]]; then
40- ret_value=-1
41- fi
33+ echo -e " Processing ${yellow} HelloWorld.idl${textreset} "
34+ echo " Running: fastddsgen -cdr both -replace -python HelloWorld.idl"
35+ fastddsgen -cdr both -replace -python HelloWorld.idl
36+ fi
4237
43- cd -
44- done
38+ if [[ $? != 0 ]]; then
39+ ret_value=-1
40+ fi
41+ cd -
4542
4643exit ${ret_value}
You can’t perform that action at this time.
0 commit comments