Adding more run scripts

parent d607e241
......@@ -16,6 +16,14 @@ if( NOT ITA_VASERVER_DEPLOY_WITH_COMMON_SCRIPTS )
set( ITA_VASERVER_DEPLOY_WITH_COMMON_SCRIPTS ON CACHE BOOL "Install VAServer starting scripts" )
endif( )
if( NOT ITA_VASERVER_DEFAULT_SERVER_ADDRESS )
set( ITA_VASERVER_DEFAULT_SERVER_ADDRESS "localhost" CACHE STRING "Default server bind address" )
endif( )
if( NOT ITA_VASERVER_DEFAULT_SERVER_PORT )
set( ITA_VASERVER_DEFAULT_SERVER_PORT 12340 CACHE INT "Default server bind port" )
endif( )
# compiler
if( ITA_CORE_LIBS_BUILD_STATIC )
add_definitions( -DITA_BASE_STATIC -DITA_DATA_SOURCES_STATIC )
......@@ -49,7 +57,7 @@ target_link_libraries( VAServer ${VISTA_USE_PACKAGE_LIBRARIES} ${VISTAINTERPROCC
# install
set( ITA_VA_VASERVER_CONFIG_PATH "${VACORE_ROOT_DIR}/conf/VACore.ini" )
if( NOT DEFINED ITA_VASERVER_VC_COMMANDLINE_ARGUMENTS )
set( ITA_VASERVER_VC_COMMANDLINE_ARGUMENTS "0.0.0.0:12340 \"${ITA_VA_VASERVER_CONFIG_PATH}\"" CACHE STRING "VAServer command line arguments for execution out of Visual Studio" )
set( ITA_VASERVER_VC_COMMANDLINE_ARGUMENTS "${ITA_VASERVER_DEFAULT_SERVER_ADDRESS}:${ITA_VASERVER_DEFAULT_SERVER_PORT} \"${ITA_VA_VASERVER_CONFIG_PATH}\"" CACHE STRING "VAServer command line arguments for execution out of Visual Studio" )
endif( )
vista_set_target_msvc_arguments( VAServer ${ITA_VASERVER_VC_COMMANDLINE_ARGUMENTS} )
......@@ -62,10 +70,20 @@ set_property( TARGET VAServer PROPERTY FOLDER "VA/Apps" )
# deploy
if( ITA_VASERVER_DEPLOY_WITH_COMMON_SCRIPTS )
set( ITA_VA_SERVER_START_SCRIPT_ADDRESS ${ITA_VASERVER_DEFAULT_SERVER_ADDRESS} )
set( ITA_VA_SERVER_START_SCRIPT_PORT ${ITA_VASERVER_DEFAULT_SERVER_PORT} )
if( WIN32 )
set( ITA_VA_SERVER_START_SCRIPT_INI VACore.ini )
configure_file( "run_VAServer.bat.proto" "run_VAServer.bat" @ONLY )
install( FILES "run_VAServer.bat" DESTINATION "." )
configure_file( "run_VAServer.bat.proto" "run_VAServer_experimental.bat" @ONLY )
install( FILES "run_VAServer_experimental.bat" DESTINATION "." )
else( )
set( ITA_VA_SERVER_START_SCRIPT_INI VACore.experimental.ini )
configure_file( "run_VAServer.sh.proto" "run_VAServer.sh" @ONLY )
install( FILES "run_VAServer.sh" DESTINATION "." )
configure_file( "run_VAServer.sh.proto" "run_VAServer_experimental.sh" @ONLY )
install( FILES "run_VAServer.run_VAServer_experimental.sh" DESTINATION "." )
endif( )
endif( )
......
@rem Example how to start the VA server (with configuration file)
bin\VAServer.exe localhost:12340 conf\VACore.ini
\ No newline at end of file
bin\VAServer.exe 0.0.0.0:12340 conf/VACore.ini
\ No newline at end of file
bin\VAServer.exe @ITA_VA_SERVER_START_SCRIPT_ADDRESS@:@ITA_VA_SERVER_START_SCRIPT_PORT@ conf\@ITA_VA_SERVER_START_SCRIPT_INI@
\ No newline at end of file
# Example how to start the VA server (with configuration file)
./bin/VAServer localhost:12340 ./conf/VACore.ini
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment