Monolithic.cmake 1014 B

123456789101112131415161718192021222324
  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. set(LY_MONOLITHIC_GAME FALSE CACHE BOOL "Indicates if the game will be built monolithically (other targets are not supported)")
  9. if(LY_MONOLITHIC_GAME)
  10. add_compile_definitions(AZ_MONOLITHIC_BUILD)
  11. ly_set(PAL_TRAIT_MONOLITHIC_DRIVEN_LIBRARY_TYPE STATIC)
  12. ly_set(PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE GEM_STATIC)
  13. ly_set(PAL_TRAIT_MONOLITHIC_DRIVEN_GEM_SHARED_TYPE GEM_STATIC)
  14. # Disable targets that are not supported with monolithic
  15. ly_set(PAL_TRAIT_BUILD_HOST_TOOLS FALSE)
  16. ly_set(PAL_TRAIT_BUILD_HOST_GUI_TOOLS FALSE)
  17. ly_set(PAL_TRAIT_BUILD_TESTS_SUPPORTED FALSE)
  18. else()
  19. ly_set(PAL_TRAIT_MONOLITHIC_DRIVEN_LIBRARY_TYPE SHARED)
  20. ly_set(PAL_TRAIT_MONOLITHIC_DRIVEN_MODULE_TYPE GEM_MODULE)
  21. ly_set(PAL_TRAIT_MONOLITHIC_DRIVEN_GEM_SHARED_TYPE GEM_SHARED)
  22. endif()