AssetProcessorBatchBuildTarget.cpp 693 B

12345678910111213141516171819202122
  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. namespace AssetProcessorBuildTarget
  10. {
  11. //! This file is to be added only to the AssetProcessorBatch build target
  12. //! This function returns the build system target name
  13. AZStd::string_view GetBuildTargetName()
  14. {
  15. #if !defined (LY_CMAKE_TARGET)
  16. #error "LY_CMAKE_TARGET must be defined in order to add this source file to a CMake executable target"
  17. #endif
  18. return AZStd::string_view{ LY_CMAKE_TARGET };
  19. }
  20. }