Warning, /frameworks/kuserfeedback/src/server/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 set(server_top_srcs
0002     .htaccess
0003 )
0004 
0005 set(server_admin_srcs
0006     admin/index.php
0007     admin/.htaccess
0008 )
0009 
0010 set(server_analytics_srcs
0011     analytics/index.php
0012     analytics/.htaccess
0013 )
0014 
0015 set(server_config_srcs
0016     config/localconfig.php.example
0017 )
0018 
0019 set(server_shared_srcs
0020     shared/admin.php
0021     shared/aggregation.php
0022     shared/analytics.php
0023     shared/compat.php
0024     shared/config.php
0025     shared/datastore.php
0026     shared/product.php
0027     shared/receiver.php
0028     shared/restdispatcher.php
0029     shared/restexception.php
0030     shared/sample.php
0031     shared/schema.json
0032     shared/schemaentry.php
0033     shared/schemaentryelement.php
0034     shared/survey.php
0035     shared/utils.php
0036 )
0037 
0038 set(server_receiver_srcs
0039     receiver/index.php
0040     receiver/.htaccess
0041 )
0042 
0043 php_lint(${server_admin_srcs})
0044 php_lint(${server_analytics_srcs})
0045 php_lint(${server_config_srcs})
0046 php_lint(${server_shared_srcs})
0047 php_lint(${server_receiver_srcs})
0048 
0049 if (SERVER_DEPLOY_HOST AND SERVER_DEPLOY_PATH)
0050     set(SERVER_DEPLOY_DESTINATION ${SERVER_DEPLOY_HOST}:${SERVER_DEPLOY_PATH})
0051     add_custom_target(deploy
0052         COMMAND ssh ${SERVER_DEPLOY_HOST} "mkdir -p ${SERVER_DEPLOY_PATH}"
0053         COMMAND scp ${server_top_srcs} ${SERVER_DEPLOY_DESTINATION}/
0054         COMMAND ssh ${SERVER_DEPLOY_HOST} "mkdir -p ${SERVER_DEPLOY_PATH}/admin"
0055         COMMAND scp ${server_admin_srcs} ${SERVER_DEPLOY_DESTINATION}/admin
0056         COMMAND ssh ${SERVER_DEPLOY_HOST} "mkdir -p ${SERVER_DEPLOY_PATH}/analytics"
0057         COMMAND scp ${server_analytics_srcs} ${SERVER_DEPLOY_DESTINATION}/analytics
0058         COMMAND ssh ${SERVER_DEPLOY_HOST} "mkdir -p ${SERVER_DEPLOY_PATH}/config"
0059         COMMAND scp ${server_config_srcs} ${SERVER_DEPLOY_DESTINATION}/config
0060         COMMAND ssh ${SERVER_DEPLOY_HOST} "mkdir -p ${SERVER_DEPLOY_PATH}/receiver"
0061         COMMAND scp ${server_receiver_srcs} ${SERVER_DEPLOY_DESTINATION}/receiver
0062         COMMAND ssh ${SERVER_DEPLOY_HOST} "mkdir -p ${SERVER_DEPLOY_PATH}/shared"
0063         COMMAND scp ${server_shared_srcs} ${SERVER_DEPLOY_DESTINATION}/shared
0064         WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
0065     )
0066 endif()