-
Notifications
You must be signed in to change notification settings - Fork 23
/
build.bat
executable file
·1371 lines (1176 loc) · 48.8 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@echo off
setlocal EnableDelayedExpansion
set script_location=%~dp0
set "idl_location=%script_location%srcIdl"
set "common_cpp_folder=%script_location%srcCppCommon"
set "classic_cpp_folder=%script_location%srcCpp"
set "modern_cpp_folder=%script_location%srcCpp11"
set "cs_folder=%script_location%srcCs"
set "java_folder=%script_location%srcJava"
set "java_scripts_folder=%script_location%resource\scripts\java_execution_scripts"
set "cs_scripts_folder=%script_location%resource\scripts\cs_execution_scripts"
set "bin_folder=%script_location%bin"
set "cStringifyFile_script=%script_location%resource\scripts\cStringifyFile.pl"
set "qos_file=%script_location%perftest_qos_profiles.xml"
@REM # By default we will build pro, not micro
set BUILD_MICRO=0
set CMAKE_GENERATOR="NMake Makefiles"
set ADDITIONAL_CMAKE_ARGS=""
@REM # In case we build micro, which version.
set BUILD_MICRO_24x_COMPATIBILITY=0
set MICRO_UNBOUNDED_SEQUENCE_SIZE=1048576
@REM # Default values for building the different APIS:
set BUILD_CPP=1
set BUILD_CPP11=1
set BUILD_JAVA=1
set BUILD_CS=0
@REM # If this value is != 0, then it means the user specified specific APIS to be
@REM # built, and not everything.
set BUILD_SPECIFIC_APIS=0
set CMAKE_EXE=cmake
set MSBUILD_EXE=msbuild
set JAVAC_EXE=javac
set JAVA_EXE=java
set JAR_EXE=jar
set PERL_EXEC=perl
set RELEASE_DEBUG=release
set STATIC_DYNAMIC=static
set USE_SECURE_LIBS=0
set USE_LW_SECURE_LIBS=0
set LEGACY_DD_IMPL=0
@REM Starting with 5.2.6 (rtiddsgen 2.3.6) the name of the solutions is different
set rtiddsgen_version_number_new_solution_name=2.3.6
@REM # Needed when compiling statically using security
set RTI_OPENSSLHOME=
set "classic_cpp_lang_string=C++"
set "modern_cpp_lang_string=C++11"
set "cs_lang_string=C#"
set "java_lang_string=java"
@REM # Variables for customType
set "custom_type_folder=%idl_location%\customType"
set USE_CUSTOM_TYPE=0
set USE_CUSTOM_TYPE_FLAT=0
set "custom_type=" @REM # Type of the customer
set "custom_type_flat=" @REM # Type of the customer
@REM # Name of the file with the type. "TSupport.h"
set "custom_type_file_name_support="
@REM # Intermediate file for including the custom type file #include "file.idl"
set "custom_idl_file=%custom_type_folder%\custom.idl"
@REM # Variables for FlatData
@REM #3.0.0 -- 3 We just need the Major first value of the version.
set flatdata_ddsgen_version=3
set FLATDATA_AVAILABLE=0
::------------------------------------------------------------------------------
@REM # Initial message
echo ================================== PERFTEST: ===================================
::------------------------------------------------------------------------------
@REM # PARSE ARGUMENTS
if "%1"=="" (
call:help
exit /b 1
)
:parse_arguments
if NOT "%1"=="" (
if "%1"=="--clean" (
call:clean
exit /b 0
) ELSE if "%1"=="--help" (
call:help
exit /b 0
) ELSE if "%1"=="-h" (
call:help
exit /b 0
) ELSE if "%1"=="--micro-24x-compatibility" (
SET BUILD_MICRO=1
SET BUILD_MICRO_24x_COMPATIBILITY=1
) ELSE if "%1"=="--micro" (
SET BUILD_MICRO=1
) ELSE if "%1"=="--skip-java-build" (
SET BUILD_JAVA=0
) ELSE if "%1"=="--skip-cpp-build" (
SET BUILD_CPP=0
) ELSE if "%1"=="--skip-cpp11-build" (
SET BUILD_CPP11=0
) ELSE if "%1"=="--skip-cs-build" (
set BUILD_CS=0
) ELSE if "%1"=="--java-build" (
set BUILD_JAVA=1
if "!BUILD_SPECIFIC_APIS!"=="0" (
set BUILD_SPECIFIC_APIS=1
set BUILD_CPP=0
set BUILD_CPP11=0
)
) ELSE if "%1"=="--cpp-build" (
set BUILD_CPP=1
if "!BUILD_SPECIFIC_APIS!"=="0" (
set BUILD_SPECIFIC_APIS=1
set BUILD_JAVA=0
set BUILD_CPP11=0
)
) ELSE if "%1"=="--cpp11-build" (
set BUILD_CPP11=1
if "!BUILD_SPECIFIC_APIS!"=="0" (
set BUILD_SPECIFIC_APIS=1
set BUILD_CPP=0
set BUILD_JAVA=0
)
) ELSE if "%1"=="--cs-build" (
set BUILD_CS=1
if "!BUILD_SPECIFIC_APIS!"=="0" (
set BUILD_SPECIFIC_APIS=1
set BUILD_CPP=0
set BUILD_CPP11=0
set BUILD_JAVA=0
)
set architecture_cs=net5
) ELSE if "%1"=="--debug" (
SET RELEASE_DEBUG=debug
) ELSE if "%1"=="--dynamic" (
SET STATIC_DYNAMIC=dynamic
) ELSE if "%1"=="--legacy-DynamicData" (
SET LEGACY_DD_IMPL=1
) ELSE if "%1"=="--secure" (
SET USE_SECURE_LIBS=1
) ELSE if "%1"=="--lightWeightSecure" (
SET USE_SECURE_LIBS=1
SET USE_LW_SECURE_LIBS=1
) ELSE if "%1"=="--security" (
SET USE_SECURE_LIBS=1
) ELSE if "%1"=="--lightWeightSecurity" (
SET USE_SECURE_LIBS=1
SET USE_LW_SECURE_LIBS=1
) ELSE if "%1"=="--msbuild" (
SET MSBUILD_EXE=%2
SHIFT
) ELSE if "%1"=="--perl" (
SET PERL_EXEC=%2
SHIFT
) ELSE if "%1"=="--java-home" (
SET "JAVAC_EXE=%2\bin\javac"
SET "JAVA_EXE=%2\bin\java"
SET "JAR_EXE=%2\bin\jar"
SHIFT
) ELSE if "%1"=="--platform" (
SET architecture=%2
SHIFT
) ELSE if "%1"=="--openssl-home" (
SET "RTI_OPENSSLHOME=%2"
SHIFT
) ELSE if "%1"=="--openssl-version" (
if not "%RTI_OPENSSLHOME%x"=="x" (
echo [WARNING]: --openssl-version will be ignored, as --openssl-home was provided already.
) else (
set "SSL_VERSION=%2"
)
SHIFT
) ELSE if "%1"=="--nddshome" (
SET "NDDSHOME=%2"
SHIFT
) ELSE if "%1"=="--rtimehome" (
SET "RTIMEHOME=%2"
SHIFT
) ELSE if "%1"=="--cmake" (
SET "CMAKE_EXE=%2"
SHIFT
) ELSE if "%1"=="--cmake-generator" (
SET "CMAKE_GENERATOR=%2"
SHIFT
) ELSE if "%1"=="--add-cmake-args" (
SET "ADDITIONAL_CMAKE_ARGS=%2"
SHIFT
) ELSE if "%1"=="--customType" (
SET USE_CUSTOM_TYPE=1
SET "custom_type=%2"
if "!custom_type!"== "" (
echo [ERROR]: --customType should be followed by the name of the type.
call:help
exit /b 1
)
SHIFT
) ELSE if "%1"=="--customTypeFlatData" (
SET USE_CUSTOM_TYPE_FLAT=1
SET "custom_type_flat=%2"
if "!custom_type_flat!"== "" (
echo [ERROR]: --customTypeFlatData should be followed by the name of the type.
call:help
exit /b 1
)
SHIFT
) ELSE if "%1"=="--flatData-max-size" (
SET "RTI_FLATDATA_MAX_SIZE=%2"
if "!RTI_FLATDATA_MAX_SIZE!" LEQ "0" (
echo [ERROR]: "--flatData-max-size n" requires "n > 0."
exit /b 1
)
SHIFT
) ELSE (
echo [ERROR]: Unknown argument "%1"
call:help
exit /b 1
)
SHIFT
GOTO :parse_arguments
)
::------------------------------------------------------------------------------
if "x!architecture!" == "x" (
echo [ERROR]: The platform argument is missing.
exit /b 1
)
if not x%architecture:INtime=%==x%architecture% (
set "executable_extension=.rta"
) else (
set "executable_extension=.exe"
)
::------------------------------------------------------------------------------
if !BUILD_MICRO! == 1 (
@REM # Is RTIMEHOME set?
if not exist "%RTIMEHOME%" (
@REM # Is NDDSHOME set?
if not exist "%NDDSHOME%" (
echo [ERROR]: Nor RTIMEHOME nor NDDSHOME variables are set or the paths do not exist.
exit /b 1
) else (
echo [WARNING]: The RTIMEHOME variable is not set or the path does not exist, using NDDSHOME instead.
)
) else (
set "NDDSHOME=!RTIMEHOME!"
)
call !MSBUILD_EXE! /version > nul
if not !ERRORLEVEL! == 0 (
echo [WARNING]: !MSBUILD_EXE! executable not found, perftest_cpp_micro will not be built.
set BUILD_MICRO=0
exit /b 1
)
) else (
if not exist "%NDDSHOME%" (
echo [ERROR]: The NDDSHOME variable is not set or the path does not exist.
exit /b 1
)
if !BUILD_CPP! == 1 (
call !MSBUILD_EXE! /version > nul
if not !ERRORLEVEL! == 0 (
echo [WARNING]: !MSBUILD_EXE! executable not found, perftest_cpp will not be built.
set BUILD_CPP=0
)
)
if !BUILD_CPP11! == 1 (
call !MSBUILD_EXE! /version > nul
if not !ERRORLEVEL! == 0 (
echo [WARNING]: !MSBUILD_EXE! executable not found, perftest_cpp11 will not be built.
set BUILD_CPP11=0
)
)
if !BUILD_CS! == 1 (
call dotnet --version > nul
if not !ERRORLEVEL! == 0 (
echo [WARNING]: dotnet executable not found, perftest_cs will not be built.
set BUILD_CS=0
)
)
if !BUILD_JAVA! == 1 (
call !JAVAC_EXE! -version > nul 2>nul
if not !ERRORLEVEL! == 0 (
echo [WARNING]: !JAVAC_EXE! executable not found, perftest_java will not be built.
set BUILD_JAVA=0
)
)
)
::------------------------------------------------------------------------------
if !BUILD_CPP! == 1 (
set GENERATE_QOS_STRING=1
)
if !BUILD_CPP11! == 1 (
set GENERATE_QOS_STRING=1
)
if !GENERATE_QOS_STRING! == 1 (
call !PERL_EXEC! -version > nul 2>nul
if not !ERRORLEVEL! == 0 (
echo [WARNING]: PERL not found, !common_cpp_folder!\qos_string.h will not be updated.
) else (
!PERL_EXEC! !cStringifyFile_script! !qos_file! PERFTEST_QOS_STRING > !common_cpp_folder!\qos_string.h
echo [INFO]: QoS String !common_cpp_folder!\qos_string.h updated successfully.
)
)
::------------------------------------------------------------------------------
if !BUILD_MICRO! == 1 (
set BUILD_CPP=0
set BUILD_CPP11=0
set BUILD_JAVA=0
set BUILD_CS=0
set "rtiddsgen_executable=!NDDSHOME!/rtiddsgen/scripts/rtiddsgen.bat"
) else (
@REM # This calls the function in charge of getting the name of the solution for C++
@REM # given the architecture.
echo .
call::get_solution_name
set "rtiddsgen_executable=!NDDSHOME!/bin/rtiddsgen.bat"
)
::------------------------------------------------------------------------------
if !BUILD_CPP! == 1 (
call::copy_src_cpp_common
call::copy_src_cpp_connextDDS
call::solution_compilation_flag_calculation
call::get_flatdata_available
REM # Generate files for the custom type files
set "additional_defines_custom_type="
set "additional_header_files_custom_type="
set "additional_source_files_custom_type="
if !USE_CUSTOM_TYPE! == 1 (
REM # Search the file which contains "Struct ${custom_type} {" and include it to ${custom_idl_file}
set found_idl=0
for %%i in (%custom_type_folder%\*) do (
FINDSTR /C:"struct %custom_type% {" %%i >NUL 2>&1
if !ERRORLEVEL! == 0 (
REM # found
set custom_type_file_name_support=%%~niSupport.h
echo #include "%%~nxi" > %custom_idl_file%
set found_idl=1
)
)
if !found_idl! == 0 (
echo [ERROR]: Cannot find an idl file with the %custom_type% structure for custom type test.
exit /b 1
)
call copy /Y %custom_type_folder%\* %idl_location%\
set "additional_header_files_custom_type=CustomType.h"
set "additional_source_files_custom_type=CustomType.cxx"
REM # Find all the files in the folder ${custom_type_folder}
REM # Run codegen with all those files
for %%i in (%custom_type_folder%\*) do (
call "%rtiddsgen_executable%" -language %classic_cpp_lang_string% -unboundedSupport -I %idl_location% -replace^
-create typefiles -d "%classic_cpp_folder%" %%i
if not !ERRORLEVEL! == 0 (
echo [ERROR]:Failure generating code for %classic_cpp_lang_string% with the file %%i."
exit /b 1
)
set "additional_header_files_custom_type=%%~niPlugin.h %%~ni.h %%~niSupport.h !additional_header_files_custom_type!"
set "additional_source_files_custom_type=%%~niPlugin.cxx %%~ni.cxx %%~niSupport.cxx !additional_source_files_custom_type!"
)
set "additional_header_files_custom_type=!additional_header_files_custom_type! "
set "additional_source_files_custom_type=!additional_source_files_custom_type! "
REM # Adding RTI_USE_CUSTOM_TYPE as a macro
set "additional_defines_custom_type= -D RTI_CUSTOM_TYPE=%custom_type%"
if !USE_CUSTOM_TYPE_FLAT! == 1 (
set "additional_defines_custom_type=!additional_defines_custom_type! -D RTI_CUSTOM_TYPE_FLATDATA=%custom_type_flat%"
)
)
if !LEGACY_DD_IMPL! == 1 (
echo [INFO]: Allow the use of both legacy and new Dynamic Data Impl.
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_LEGACY_DD_IMPL"
)
set "ADDITIONAL_DEFINES=PERFTEST_RTI_PRO RTI_LANGUAGE_CPP_TRADITIONAL RTI_WIN32"
if !USE_SECURE_LIBS! == 1 (
if !USE_LW_SECURE_LIBS! == 1 (
set "LWS_TAG=Lightweight "
)
echo [INFO_TAG] Using RTI !LWS_TAG!Security Libraries
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_SECURE_PERFTEST"
if "x!STATIC_DYNAMIC!" == "xdynamic" (
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_PERFTEST_DYNAMIC_LINKING"
echo [INFO] Linking Dynamically.
REM Linking Statically
) else (
if !USE_LW_SECURE_LIBS! == 1 (
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_LW_SECURE_PERFTEST"
)
if not "x!SSL_VERSION!"=="x" (
call :find_ssl_libraries "%SSL_VERSION%"
if "!RTI_OPENSSLHOME!"=="" (
echo [ERROR] %SSL_VERSION% Not found.
exit /b -1
)
)
REM If the SSL_VERSION is empty and the $RTI_CRYPTOHOME is empty too
REM we need to be creative. If we set the $SSL_VERSION before, we will
REM not enter here.
if "!RTI_OPENSSLHOME!"=="" (
call :crypto_path_calculation
)
if "%USE_LW_SECURE_LIBS%"=="1" (
set additional_rti_libs=nddslightweightsecurity !additional_rti_libs!
) else (
set additional_rti_libs=nddssecurity !additional_rti_libs!
)
set rtiddsgen_extra_options=-additionalLibraries "crypt32 libcrypto libssl"
set rtiddsgen_extra_options=!rtiddsgen_extra_options! -additionalLibraryPaths "!RTI_OPENSSLHOME!\static_!RELEASE_DEBUG!\lib"
echo [INFO] Using security plugin. Linking Statically.
)
set "additional_header_files=PerftestSecurity.h !additional_header_files!"
set "additional_source_files=PerftestSecurity.cxx !additional_source_files!"
)
set "additional_defines_rtiddsgen=-D "PERFTEST_RTI_PRO""
if !FLATDATA_AVAILABLE! == 1 (
@REM On Windows we always enable ZeroCopy if FlatData is available.
set additional_rti_libs=nddsmetp !additional_rti_libs!
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_FLATDATA_AVAILABLE RTI_ZEROCOPY_AVAILABLE"
set "additional_defines_rtiddsgen_flatdata=-D "RTI_FLATDATA_AVAILABLE" -D "RTI_ZEROCOPY_AVAILABLE""
if NOT "!RTI_FLATDATA_MAX_SIZE!" == "" (
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_FLATDATA_MAX_SIZE=!RTI_FLATDATA_MAX_SIZE!"
set "additional_defines_rtiddsgen_flatdata=!additional_defines_rtiddsgen_flatdata! -D "RTI_FLATDATA_MAX_SIZE=!RTI_FLATDATA_MAX_SIZE!""
)
)
if !USE_CUSTOM_TYPE! == 1 (
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_CUSTOM_TYPE=%custom_type% RTI_CUSTOM_TYPE_FILE_NAME_SUPPORT=!custom_type_file_name_support!"
if !USE_CUSTOM_TYPE_FLAT! == 1 (
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_CUSTOM_TYPE_FLATDATA=%custom_type_flat%"
)
)
where git >nul 2>nul
If !ERRORLEVEL! == 0 (
for /f "tokens=* USEBACKQ" %%F in (`git rev-parse --short HEAD`) do (
set commit_id=%%F
)
for /f "tokens=* USEBACKQ" %%F in (`git rev-parse --abbrev-ref HEAD`) do (
set branch_name=%%F
)
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! PERFTEST_COMMIT_ID=\"!commit_id!\""
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! PERFTEST_BRANCH_NAME=\"!branch_name!\""
)
set "ADDITIONAL_DEFINES=/0x !ADDITIONAL_DEFINES!"
set "additional_header_files=!additional_header_files_custom_type!!additional_header_files!RTIRawTransportImpl.h Parameter.h ParameterManager.h ThreadPriorities.h RTIDDSLoggerDevice.h MessagingIF.h RTIDDSImpl.h perftest_cpp.h qos_string.h CpuMonitor.h PerftestTransport.h Infrastructure_common.h Infrastructure_pro.h PerftestPrinter.h FileDataLoader.h"
set "additional_source_files=!additional_source_files_custom_type!!additional_source_files!RTIRawTransportImpl.cxx Parameter.cxx ParameterManager.cxx ThreadPriorities.cxx RTIDDSLoggerDevice.cxx RTIDDSImpl.cxx CpuMonitor.cxx PerftestTransport.cxx Infrastructure_common.cxx Infrastructure_pro.cxx PerftestPrinter.cxx FileDataLoader.cxx"
if !FLATDATA_AVAILABLE! == 1 (
set "additional_header_files=!additional_header_files! perftest_ZeroCopy.h perftest_ZeroCopyPlugin.h perftest_ZeroCopySupport.h"
set "additional_source_files=!additional_source_files! perftest_ZeroCopy.cxx perftest_ZeroCopyPlugin.cxx perftest_ZeroCopySupport.cxx"
)
set additional_rti_libs_str=
if "!additional_rti_libs!" NEQ "" (
set additional_rti_libs_str=-additionalRtiLibraries "!additional_rti_libs!"
)
echo[
echo "%rtiddsgen_executable%" -language %classic_cpp_lang_string%^
-unboundedSupport -replace -create typefiles -create makefiles^
-platform %architecture%^
!additional_defines_rtiddsgen!^
!additional_defines_rtiddsgen_flatdata!^
-additionalHeaderFiles "!additional_header_files!"^
-additionalSourceFiles "!additional_source_files!"^
-additionalDefines "!ADDITIONAL_DEFINES!"^
!additional_rti_libs_str!^
!rtiddsgen_extra_options! !additional_defines_custom_type!^
-d "%classic_cpp_folder%" "%idl_location%\perftest.idl"
echo[
echo [INFO]: Generating types and makefiles for %classic_cpp_lang_string%
call "%rtiddsgen_executable%" -language %classic_cpp_lang_string%^
-unboundedSupport -replace -create typefiles -create makefiles^
-platform %architecture%^
!additional_defines_rtiddsgen!^
!additional_defines_rtiddsgen_flatdata!^
-additionalHeaderFiles "!additional_header_files!"^
-additionalSourceFiles "!additional_source_files!"^
-additionalDefines "!ADDITIONAL_DEFINES!"^
!additional_rti_libs_str!^
!rtiddsgen_extra_options! !additional_defines_custom_type!^
-d "%classic_cpp_folder%" "%idl_location%\perftest.idl"
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure generating code for %classic_cpp_lang_string%.
call::clean_copied_files
exit /b 1
)
@REM # Generate ZeroCopy types avoiding performance degradation issue
if !FLATDATA_AVAILABLE! == 1 (
echo[
echo "%rtiddsgen_executable%" -language %classic_cpp_lang_string%^
!additional_defines_rtiddsgen!^
!additional_defines_rtiddsgen_flatdata!^
-replace -create typefiles^
-platform %architecture%^
!rtiddsgen_extra_options! !additional_defines_custom_type!^
-d "%classic_cpp_folder%" "%idl_location%\perftest_ZeroCopy.idl"
echo[
echo [INFO]: Generating Zero Copy code
call "%rtiddsgen_executable%" -language %classic_cpp_lang_string%^
!additional_defines_rtiddsgen!^
!additional_defines_rtiddsgen_flatdata!^
-replace -create typefiles^
-platform %architecture%^
!rtiddsgen_extra_options! !additional_defines_custom_type!^
-d "%classic_cpp_folder%" "%idl_location%\perftest_ZeroCopy.idl"
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure generating code for %classic_cpp_lang_string%.
call::clean_copied_files
exit /b 1
)
)
call copy "%classic_cpp_folder%"\perftest_cpp.cxx "%classic_cpp_folder%"\perftest_publisher.cxx
call copy "%classic_cpp_folder%"\perftest_cpp.cxx "%classic_cpp_folder%"\perftest_subscriber.cxx
echo[
echo [INFO]: Compiling %classic_cpp_lang_string%
echo call !MSBUILD_EXE! /p:Configuration="!solution_compilation_mode_flag!" /p:Platform="!win_arch!" "%classic_cpp_folder%"\%solution_name_cpp%
call !MSBUILD_EXE! /p:Configuration="!solution_compilation_mode_flag!" /p:Platform="!win_arch!" "%classic_cpp_folder%"\%solution_name_cpp%
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure compiling code for %classic_cpp_lang_string%.
call::clean_copied_files
exit /b 1
)
if !USE_LW_SECURE_LIBS! == 1 (
set "executable_suffix=_lws"
)
echo [INFO]: Copying perftest_cpp executable file:
md "%bin_folder%"\%architecture%\!RELEASE_DEBUG!
copy /Y "%classic_cpp_folder%"\objs\%architecture%\perftest_publisher"%executable_extension%" "%bin_folder%"\%architecture%\!RELEASE_DEBUG!\perftest_cpp"%executable_suffix%""%executable_extension%"
call::clean_copied_files
if "x!STATIC_DYNAMIC!" == "xdynamic" (
echo [INFO]: Code compiled dynamically, Add "NDDSHOME/lib/%platform%"
if !USE_SECURE_LIBS! == 1 (
echo and <OPENSSL_HOME>\!RELEASE_DEBUG!\bin
)
echo to your PATH variable
)
)
::------------------------------------------------------------------------------
if !BUILD_CPP11! == 1 (
call::copy_src_cpp_common
call::solution_compilation_flag_calculation
call::get_flatdata_available
set "ADDITIONAL_DEFINES=RTI_LANGUAGE_CPP_MODERN RTI_WIN32"
set additional_rti_libs=
if !USE_SECURE_LIBS! == 1 (
if !USE_LW_SECURE_LIBS! == 1 (
set "LWS_TAG=Lightweight "
)
echo [INFO_TAG] Using RTI !LWS_TAG!Security Libraries
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_SECURE_PERFTEST"
if "x!STATIC_DYNAMIC!" == "xdynamic" (
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_PERFTEST_DYNAMIC_LINKING"
echo [INFO] Linking Dynamically.
REM Linking Statically
) else (
if !USE_LW_SECURE_LIBS! == 1 (
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_LW_SECURE_PERFTEST"
)
if not "x!SSL_VERSION!"=="x" (
call :find_ssl_libraries "%SSL_VERSION%"
if "!RTI_OPENSSLHOME!"=="" (
echo [ERROR] %SSL_VERSION% Not found.
exit /b -1
)
)
REM If the SSL_VERSION is empty and the $RTI_CRYPTOHOME is empty too
REM we need to be creative. If we set the $SSL_VERSION before, we will
REM not enter here.
if "!RTI_OPENSSLHOME!"=="" (
call :crypto_path_calculation
)
if "%USE_LW_SECURE_LIBS%"=="1" (
set additional_rti_libs=nddslightweightsecurity !additional_rti_libs!
) else (
set additional_rti_libs=nddssecurity !additional_rti_libs!
)
set rtiddsgen_extra_options=-additionalLibraries "crypt32 libcrypto libssl"
set rtiddsgen_extra_options=!rtiddsgen_extra_options! -additionalLibraryPaths "!RTI_OPENSSLHOME!\static_!RELEASE_DEBUG!\lib"
echo [INFO] Using security plugin. Linking Statically.
)
)
where git >nul 2>nul
If !ERRORLEVEL! == 0 (
for /f "tokens=* USEBACKQ" %%F in (`git rev-parse --short HEAD`) do (
set commit_id=%%F
)
for /f "tokens=* USEBACKQ" %%F in (`git name-rev --name-only HEAD`) do (
set branch_name=%%F
)
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! PERFTEST_COMMIT_ID=\"!commit_id!\""
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! PERFTEST_BRANCH_NAME=\"!branch_name!\""
)
set "additional_defines_rtiddsgen=-D "PERFTEST_RTI_PRO""
if !FLATDATA_AVAILABLE! == 1 (
set "additional_rti_libs=nddsmetp !additional_rti_libs!"
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_FLATDATA_AVAILABLE RTI_ZEROCOPY_AVAILABLE"
set "additional_defines_rtiddsgen_flatdata=-D "RTI_FLATDATA_AVAILABLE" -D "RTI_ZEROCOPY_AVAILABLE""
if NOT "!RTI_FLATDATA_MAX_SIZE!" == "" (
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_FLATDATA_MAX_SIZE=!RTI_FLATDATA_MAX_SIZE!"
set "additional_defines_rtiddsgen_flatdata=!additional_defines_rtiddsgen_flatdata! -D "RTI_FLATDATA_MAX_SIZE=!RTI_FLATDATA_MAX_SIZE!""
)
)
set "ADDITIONAL_DEFINES=/0x !ADDITIONAL_DEFINES!"
set "additional_header_files=ThreadPriorities.h Parameter.h ParameterManager.h MessagingIF.h RTIDDSImpl.h perftest_cpp.h qos_string.h CpuMonitor.h PerftestTransport.h PerftestPrinter.h"
set "additional_source_files=ThreadPriorities.cxx Parameter.cxx ParameterManager.cxx RTIDDSImpl.cxx CpuMonitor.cxx PerftestTransport.cxx PerftestPrinter.cxx"
if !FLATDATA_AVAILABLE! == 1 (
set "additional_header_files=!additional_header_files! perftest_ZeroCopy.hpp perftest_ZeroCopyPlugin.hpp"
set "additional_source_files=!additional_source_files! perftest_ZeroCopy.cxx perftest_ZeroCopyPlugin.cxx"
)
set additional_rti_libs_str=
if "!additional_rti_libs!" NEQ "" (
set additional_rti_libs_str=-additionalRtiLibraries "!additional_rti_libs!"
)
echo[
echo [INFO] "%rtiddsgen_executable%" -language %modern_cpp_lang_string% ^
-unboundedSupport -replace -create typefiles -create makefiles^
-platform %architecture%^
!additional_defines_rtiddsgen!^
!additional_defines_rtiddsgen_flatdata!^
-additionalHeaderFiles "!additional_header_files!"^
-additionalSourceFiles "!additional_source_files!"^
-additionalDefines "!ADDITIONAL_DEFINES!"^
!additional_rti_libs_str!^
!rtiddsgen_extra_options!^
-d "%modern_cpp_folder%" "%idl_location%\perftest.idl"
@REM #Generate files for srcCpp11
echo[
echo [INFO]: Generating types and makefiles for %modern_cpp_lang_string%
call "%rtiddsgen_executable%" -language %modern_cpp_lang_string% ^
-unboundedSupport -replace -create typefiles -create makefiles^
-platform %architecture%^
!additional_defines_rtiddsgen!^
!additional_defines_rtiddsgen_flatdata!^
-additionalHeaderFiles "!additional_header_files!"^
-additionalSourceFiles "!additional_source_files!"^
-additionalDefines "!ADDITIONAL_DEFINES!"^
!additional_rti_libs_str!^
!rtiddsgen_extra_options!^
-d "%modern_cpp_folder%" "%idl_location%\perftest.idl"
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure generating code for %modern_cpp_lang_string%.
call::clean_copied_files
exit /b 1
)
if !FLATDATA_AVAILABLE! == 1 (
echo[
echo "%rtiddsgen_executable%" -language %modern_cpp_lang_string%^
!additional_defines_rtiddsgen!^
!additional_defines_rtiddsgen_flatdata!^
-replace -create typefiles -platform %architecture%^
!rtiddsgen_extra_options!^
-d "%modern_cpp_folder%" "%idl_location%\perftest_ZeroCopy.idl"
@REM # Generate Zero Copy types avoiding performance degradation issue
echo[
echo [INFO]: Generating Zero Copy code
call "%rtiddsgen_executable%" -language %modern_cpp_lang_string%^
!additional_defines_rtiddsgen!^
!additional_defines_rtiddsgen_flatdata!^
-replace -create typefiles -platform %architecture%^
!rtiddsgen_extra_options!^
-d "%modern_cpp_folder%" "%idl_location%\perftest_ZeroCopy.idl"
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure generating code for %modern_cpp_lang_string%.
call::clean_copied_files
exit /b 1
)
)
call copy "%modern_cpp_folder%"\perftest_cpp.cxx "%modern_cpp_folder%"\perftest_publisher.cxx
call copy "%modern_cpp_folder%"\perftest_cpp.cxx "%modern_cpp_folder%"\perftest_subscriber.cxx
echo[
echo [INFO]: Compiling %modern_cpp_lang_string%
echo call !MSBUILD_EXE! /p:Configuration="!solution_compilation_mode_flag!" /p:Platform="!win_arch!" "%modern_cpp_folder%"\%solution_name_cpp%
call !MSBUILD_EXE! /p:Configuration="!solution_compilation_mode_flag!" /p:Platform="!win_arch!" "%modern_cpp_folder%"\%solution_name_cpp%
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure compiling code for %modern_cpp_lang_string%.
call::clean_copied_files
exit /b 1
)
echo [INFO]: Copying perftest_cpp executable file:
md "%bin_folder%"\%architecture%\!RELEASE_DEBUG!
copy /Y "%modern_cpp_folder%"\objs\%architecture%\perftest_publisher"%executable_extension%" "%bin_folder%"\%architecture%\!RELEASE_DEBUG!\perftest_cpp11"%executable_extension%"
call::clean_copied_files
if "x!STATIC_DYNAMIC!" == "xdynamic" (
echo [INFO]: Code compiled dynamically, Add "NDDSHOME/lib/%platform%"
if !USE_SECURE_LIBS! == 1 (
echo and <OPENSSL_HOME>\!RELEASE_DEBUG!\bin
)
echo to your PATH variable
)
)
echo[
::------------------------------------------------------------------------------
if %BUILD_CS% == 1 (
set "additional_defines_rtiddsgen=-D "PERFTEST_RTI_PRO""
@REM Generate files for srcCs
echo[
echo [INFO]: Generating types for %cs_lang_string%
md "%cs_folder%\ConnextDDS\GeneratedCode"
call "%rtiddsgen_executable%" -language %cs_lang_string% -unboundedSupport -replace^
!additional_defines_rtiddsgen! -d "%cs_folder%\ConnextDDS\GeneratedCode" "%idl_location%\perftest.idl"
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure generating code for %cs_lang_string%.
exit /b 1
)
@REM Generate files for srcCs
echo[
echo [INFO]: Generating projects for %cs_lang_string%
call "%rtiddsgen_executable%" -language %cs_lang_string% -unboundedSupport -replace -platform !architecture_cs!^
-update makefiles !additional_defines_rtiddsgen! -d "%cs_folder%" "%idl_location%\perftest.idl"
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure generating code for %cs_lang_string%.
exit /b 1
)
del "%cs_folder%\README*"
@REM Generate files for srcCs
echo[
echo [INFO]: Compiling dotnet projects for %cs_lang_string%
call dotnet build --configuration %RELEASE_DEBUG% %cs_folder%
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure executing dotnet build %cs_lang_string%.
exit /b 1
)
echo [INFO]: Copying files
md "%bin_folder%"\!RELEASE_DEBUG!
copy "%cs_scripts_folder%"\perftest_cs.bat "%bin_folder%"\!RELEASE_DEBUG!\perftest_cs.bat
echo dotnet run -p %cs_folder% --configuration %RELEASE_DEBUG% -- %%args%% >> "%bin_folder%"\!RELEASE_DEBUG!\perftest_cs.bat
echo :endscript >> "%bin_folder%"\!RELEASE_DEBUG!\perftest_cs.bat
echo[
echo [INFO]: You can run the dotnet project by executing the following command:
echo[
echo "dotnet run -p %cs_folder% --configuration %RELEASE_DEBUG% -- <arguments>"
echo[
echo [INFO]: Alternatively, the following script can be executed:
echo[
echo "%bin_folder%"\!RELEASE_DEBUG!\perftest_cs.bat
echo[
echo [INFO]: Compilation successful
)
::------------------------------------------------------------------------------
if %BUILD_JAVA% == 1 (
set "additional_defines_rtiddsgen=-D "PERFTEST_RTI_PRO""
@REM Generate files for Java
echo[
echo [INFO]: Generating types and makefiles for %java_lang_string%
call "%rtiddsgen_executable%" -language %java_lang_string% -unboundedSupport -replace^
!additional_defines_rtiddsgen!^
-package com.rti.perftest.gen -d "%java_folder%" "%idl_location%\perftest.idl"
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure generating code for %java_lang_string%.
exit /b 1
)
call md "%java_folder%"\class
call md "%java_folder%"\jar\!RELEASE_DEBUG!
echo[
if x!RELEASE_DEBUG! == xrelease (
echo [INFO]: Compiling against nddsjava.jar library
set "rti_ndds_java_jar=%NDDSHOME%/lib/java/nddsjava.jar"
) else (
echo [INFO]: Compiling against nddsjavad.jar library
set "rti_ndds_java_jar=%NDDSHOME%/lib/java/nddsjavad.jar"
)
echo[
echo [INFO]: Doing javac
call !JAVAC_EXE! -d "%java_folder%"/class -cp "!rti_ndds_java_jar!"^
"%java_folder%"/com/rti/perftest/*.java^
"%java_folder%"/com/rti/perftest/ddsimpl/*.java^
"%java_folder%"/com/rti/perftest/gen/*.java^
"%java_folder%"/com/rti/perftest/harness/*.java
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure compiling code for %java_lang_string%.
exit /b 1
)
echo [INFO]: Generating jar
!JAR_EXE! cf "%java_folder%"\jar\!RELEASE_DEBUG!\perftest_java.jar^
-C "%java_folder%"\class .
echo [INFO]: Copying files
md "%bin_folder%"\!RELEASE_DEBUG!
copy "%java_folder%"\jar\!RELEASE_DEBUG!\perftest_java.jar "%bin_folder%"\!RELEASE_DEBUG!\perftest_java.jar
copy "%java_scripts_folder%"\perftest_java.bat "%bin_folder%"\!RELEASE_DEBUG!\perftest_java.bat
echo [INFO]: Files copied
echo[
echo [INFO]: You can run the java .jar file by using the following command:
echo[
echo "!JAVA_EXE!" -Xmx1500m -cp "%bin_folder%\!RELEASE_DEBUG!\perftest_java.jar;%NDDSHOME%\lib\java\nddsjava.jar" com.rti.perftest.ddsimpl.PerfTestLauncher
echo[
echo You will need to set the PATH variable for this script.
echo[
echo [INFO]: Or by running:
echo[
echo "%bin_folder%"\!RELEASE_DEBUG!\perftest_java.bat
echo[
echo You will need to set the NDDSHOME and RTI_PERFTEST_ARCH for this script.
echo[
echo [INFO]: Compilation successful
)
::------------------------------------------------------------------------------
if !BUILD_MICRO! == 1 (
call::copy_src_cpp_common
call::copy_src_cpp_connextDDS
call::solution_compilation_flag_calculation
set "ADDITIONAL_DEFINES=RTI_LANGUAGE_CPP_TRADITIONAL"
if !BUILD_MICRO_24x_COMPATIBILITY! == 1 (
set "ADDITIONAL_DEFINES=PERFTEST_RTI_MICRO_24x_COMPATIBILITY !ADDITIONAL_DEFINES!"
) else (
if !USE_SECURE_LIBS! == 1 (
if "x!RTI_OPENSSLHOME!" == "x" (
echo [ERROR]: In order to link statically using the security plugin you need to also provide the OpenSSL home path by using the --openssl-home option.
exit /b 1
)
set "ADDITIONAL_DEFINES=!ADDITIONAL_DEFINES! RTI_SECURE_PERFTEST"
set "additional_rti_libraries=rti_me_netioshmem rti_me_netioshmem rti_me_seccore"
set rtiddsgen_extra_options= -additionalLibraries "libeay32z ssleay32z"
set rtiddsgen_extra_options=!rtiddsgen_extra_options! -additionalLibraryPaths "!RTI_OPENSSLHOME!/static_!RELEASE_DEBUG!/lib"
echo [INFO] Using security plugin. Linking Statically.
) else (
set "additional_rti_libraries=nddsmetp"
)
set rtiddsgen_extra_options=!rtiddsgen_extra_options! -sequenceSize !MICRO_UNBOUNDED_SEQUENCE_SIZE! -additionalRtiLibraries "!additional_rti_libraries!"
)
set "ADDITIONAL_DEFINES=RTI_WIN32 PERFTEST_RTI_MICRO !ADDITIONAL_DEFINES!"
set "additional_header_files=ParameterManager.h Parameter.h ThreadPriorities.h MessagingIF.h RTIDDSImpl.h perftest_cpp.h CpuMonitor.h PerftestTransport.h Infrastructure_common.h Infrastructure_micro.h FileDataLoader.h PerftestSecurity.h PerftestPrinter.h"
set "additional_source_files=ParameterManager.cxx Parameter.cxx ThreadPriorities.cxx RTIDDSImpl.cxx CpuMonitor.cxx PerftestTransport.cxx Infrastructure_common.cxx Infrastructure_micro.cxx FileDataLoader.cxx PerftestSecurity.cxx PerftestPrinter.cxx"
set "additional_defines_rtiddsgen=-D "PERFTEST_RTI_MICRO""
@REM # Generate files for srcCpp
echo[
echo [INFO]: Generating types and makefiles for %classic_cpp_lang_string%
call "%rtiddsgen_executable%" -micro -language %classic_cpp_lang_string% -replace^
!additional_defines_rtiddsgen!^
-create typefiles -create makefiles^
-additionalHeaderFiles "!additional_header_files!"^
-additionalSourceFiles "!additional_source_files!" -additionalDefines "!ADDITIONAL_DEFINES!"^
!rtiddsgen_extra_options!^
-d "%classic_cpp_folder%" "%idl_location%\perftest.idl"
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure generating code for %classic_cpp_lang_string%.
exit /b 1
)
call copy "%classic_cpp_folder%"\perftest_cpp.cxx "%classic_cpp_folder%"\perftest_publisher.cxx
call copy "%classic_cpp_folder%"\perftest_cpp.cxx "%classic_cpp_folder%"\perftest_subscriber.cxx
call copy "%idl_location%\perftest.idl" "%classic_cpp_folder%"\perftest.idl
call echo. > "%classic_cpp_folder%"\perftestApplication.h
call echo. > "%classic_cpp_folder%"\perftestApplication.cxx
echo[
echo [INFO]: Compiling %classic_cpp_lang_string%
if x!CMAKE_GENERATOR! == x"NMake Makefiles" (
echo[
echo [INFO]: Using NMake for the CMake generator, use --cmake-generator to specify other.
)
cd "%classic_cpp_folder%"
call !CMAKE_EXE! -DCMAKE_BUILD_TYPE=!RELEASE_DEBUG! -G !CMAKE_GENERATOR! !ADDITIONAL_CMAKE_ARGS! -B./perftest_build -H. -DRTIME_TARGET_NAME=%architecture% -DPLATFORM_LIBS="netapi32.lib;advapi32.lib;user32.lib;winmm.lib;WS2_32.lib;"
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure compiling code for %classic_cpp_lang_string%.
cd ..
exit /b 1
)
call !CMAKE_EXE! --build ./perftest_build --config !RELEASE_DEBUG! --target perftest_publisher
if not !ERRORLEVEL! == 0 (
echo [ERROR]: Failure compiling code for %classic_cpp_lang_string%.
cd ..
exit /b 1
)
cd ..
echo[
echo [INFO]: Copying perftest_cpp executable file:
md "%bin_folder%"\%architecture%\!RELEASE_DEBUG!
if x!CMAKE_GENERATOR! == x"NMake Makefiles" (
copy /Y "%classic_cpp_folder%"\objs\%architecture%\perftest_publisher.exe "%bin_folder%"\%architecture%\!RELEASE_DEBUG!\perftest_cpp_micro.exe
) else (
copy /Y "%classic_cpp_folder%"\objs\%architecture%\!RELEASE_DEBUG!\perftest_publisher.exe "%bin_folder%"\%architecture%\!RELEASE_DEBUG!\perftest_cpp_micro.exe
)
)
echo[