3
0

LauncherProject.cpp 1009 B

1234567891011121314151617181920212223242526272829303132333435
  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. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <AzCore/std/string/string_view.h>
  9. #if defined(AZ_MONOLITHIC_BUILD)
  10. #include <StaticModules.inl>
  11. #endif // defined(AZ_MONOLITHIC_BUILD)
  12. namespace O3DELauncher
  13. {
  14. //! This file is to be added only to the ${project}.[Game|Server]Launcher build target
  15. //! This function returns the build system target name
  16. AZStd::string_view GetBuildTargetName()
  17. {
  18. #if !defined (LY_CMAKE_TARGET)
  19. #error "LY_CMAKE_TARGET must be defined in order to add this source file to a CMake executable target"
  20. #endif
  21. return { LY_CMAKE_TARGET };
  22. }
  23. AZStd::string_view GetProjectName()
  24. {
  25. #if !defined (LY_PROJECT_NAME)
  26. #error "LY_PROJECT_NAME must be defined in order to for the Launcher to run using a Game Project"
  27. #endif
  28. return { LY_PROJECT_NAME };
  29. }
  30. }