Disable AzTest and AzTestRunner in monolithic builds

main
amzn-sj 5 years ago
parent 43e157035e
commit e6b8dc2ce1

@ -8,25 +8,27 @@
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS, # remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# #
ly_get_list_relative_pal_filename(pal_dir ${CMAKE_CURRENT_LIST_DIR}/AzTest/Platform/${PAL_PLATFORM_NAME})
ly_add_target( if(NOT LY_MONOLITHIC_GAME)
NAME AzTest STATIC ly_get_list_relative_pal_filename(pal_dir ${CMAKE_CURRENT_LIST_DIR}/AzTest/Platform/${PAL_PLATFORM_NAME})
NAMESPACE AZ
FILES_CMAKE ly_add_target(
AzTest/aztest_files.cmake NAME AzTest STATIC
${pal_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake NAMESPACE AZ
INCLUDE_DIRECTORIES FILES_CMAKE
PUBLIC AzTest/aztest_files.cmake
. ${pal_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}_files.cmake
${pal_dir} INCLUDE_DIRECTORIES
BUILD_DEPENDENCIES PUBLIC
PUBLIC .
3rdParty::googletest::GMock ${pal_dir}
3rdParty::googletest::GTest BUILD_DEPENDENCIES
3rdParty::GoogleBenchmark PUBLIC
AZ::AzCore 3rdParty::googletest::GMock
PLATFORM_INCLUDE_FILES 3rdParty::googletest::GTest
3rdParty::GoogleBenchmark
AZ::AzCore
PLATFORM_INCLUDE_FILES
${pal_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}.cmake ${pal_dir}/platform_${PAL_PLATFORM_NAME_LOWERCASE}.cmake
) )
endif()

@ -13,7 +13,7 @@ ly_get_list_relative_pal_filename(pal_dir ${CMAKE_CURRENT_LIST_DIR}/Platform/${P
include(${pal_dir}/platform_traits_${PAL_PLATFORM_NAME_LOWERCASE}.cmake) include(${pal_dir}/platform_traits_${PAL_PLATFORM_NAME_LOWERCASE}.cmake)
if(PAL_TRAIT_AZTESTRUNNER_SUPPORTED) if(PAL_TRAIT_AZTESTRUNNER_SUPPORTED AND NOT LY_MONOLITHIC_GAME)
ly_add_target( ly_add_target(
NAME AzTestRunner ${PAL_TRAIT_AZTESTRUNNER_LAUNCHER_TYPE} NAME AzTestRunner ${PAL_TRAIT_AZTESTRUNNER_LAUNCHER_TYPE}

Loading…
Cancel
Save