@ -73,6 +73,21 @@ foreach(project_name project_path IN ZIP_LISTS LY_PROJECTS_TARGET_NAME LY_PROJEC
# I f t h e p r o j e c t _ p a t h i s r e l a t i v e , i t i s e v a l u a t e d r e l a t i v e t o t h e $ { L Y _ R O O T _ F O L D E R }
# O t h e r w i s e t h e t h e a b s o l u t e p r o j e c t _ p a t h i s r e t u r n e d w i t h s y m l i n k s r e s o l v e d
file ( REAL_PATH ${ project_path } project_real_path BASE_DIRECTORY ${ LY_ROOT_FOLDER } )
if ( NOT project_name )
if ( NOT EXISTS ${ project_real_path } /project.json )
message ( FATAL_ERROR "The specified project path of ${project_real_path} does not contain a project.json file with a \" project name\ " entry in it" )
else ( )
# A d d t h e p r o j e c t _ n a m e t o g l o b a l L Y _ P R O J E C T S _ T A R G E T _ N A M E p r o p e r t y
file ( READ "${project_real_path}/project.json" project_json )
string ( JSON project_name ERROR_VARIABLE json_error GET ${ project_json } "project_name" )
if ( json_error )
message ( FATAL_ERROR "There is an error reading the \" project_name\ " key from the '${project_real_path}/project.json' file: ${json_error}" )
endif ( )
message ( WARNING "The project located at path ${project_real_path} has a valid \" project name\ " of '${project_name}' read from it's project.json file."
" T h i s i n d i c a t e s t h a t t h e $ { p r o j e c t _ r e a l _ p a t h } / C M a k e L i s t s . t x t i s n o t p r o p e r l y a p p e n d i n g t h e \ " p r o j e c t n a m e \ " "
" t o t h e L Y _ P R O J E C T S _ T A R G E T _ N A M E g l o b a l p r o p e r t y . O t h e r c o n f i g u r a t i o n e r r o r s m i g h t o c c u r " )
endif ( )
endif ( )
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# M o n o l i t h i c g a m e
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #