$title 'Test object oriented C++ API running a sequence of examples based on a transport model' (CPPTRSEQ,SEQ=22) $onText Contributor: Lutz Westermann, January 2013 $offText $set srcRoot %gams.sysdir%apifiles%system.dirsep%CPPnet%system.dirsep% $escape & $if %system.filesys% == UNIX $if %sysenv.MPATH% == %&sysenv.MPATH%& $abort.noError Need Mono to run this on Unix $ set BUILD MSBuild.exe $if %system.filesys% == UNIX $set BUILD $MPATH/xbuild $ set x64 $if %system.platform% == WEX $set x64 x64%system.dirsep% $if %system.platform% == WEX $if not set flags $set flags -t:rebuild -p:Configuration=Release -p:Platform="x64" $if %system.platform% == LAX $if not set flags $set flags /t:rebuild /p:Configuration=Release $if %system.platform% == LEX $if not set flags $set flags /t:rebuild /p:Configuration=Release $if %system.platform% == DEX $if not set flags $set flags /t:rebuild /p:Configuration=Release /p:DefineConstants="__APPLE__" $if %system.platform% == DAX $if not set flags $set flags /t:rebuild /p:Configuration=Release /p:DefineConstants="__APPLE__" $onEchoV > cmexTrans $call %BUILD% %flags% "%srcRoot%Transport%1%system.dirsep%Transport%1.vcxproj" $if errorlevel 1 $abort 'Problem compiling Transport%1.cpp' $call ="%srcRoot%Transport%1%system.dirsep%%x64%Release%system.dirsep%Transport%1.exe" "%gams.sysdir%." $if errorlevel 1 $abort 'Problem executing Transport%1' $offEcho * Make sure that correct GAMS system is found when checking the registry $call findthisgams -q $batInclude cmexTrans 1 $batInclude cmexTrans 2 $batInclude cmexTrans 3 $batInclude cmexTrans 4 $batInclude cmexTrans 5 $batInclude cmexTrans 6 $batInclude cmexTrans 7 $batInclude cmexTrans 8 * These two need more references, cannot assume that they are the same one all machines *$batInclude cmexTrans 9 *$batInclude cmexTrans 10 $batInclude cmexTrans 11