test_AWSGameLiftServer.cpp 752 B

12345678910111213141516171819202122232425262728
  1. /*
  2. Copyright (c) Contributors to the Open 3D Engine Project.
  3. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. SPDX-License-Identifier: Apache-2.0 OR MIT
  5. */
  6. #include <stdio.h>
  7. #include <string.h>
  8. #include <aws/gamelift/server/GameLiftServerAPI.h>
  9. int main(int argc, char* argv[])
  10. {
  11. printf("Testing AWSGameliftServerSDK package...\n");
  12. auto serverVersionResult = Aws::GameLift::Server::GetSdkVersion();
  13. if (!serverVersionResult.IsSuccess())
  14. {
  15. printf("Failed to get AWSGameliftServerSDK version\n");
  16. return 1;
  17. }
  18. auto game_lift_version = serverVersionResult.GetResult();
  19. printf("AWSGameLiftSDK version %s\n", game_lift_version.c_str());
  20. return 0;
  21. }