@ -100,18 +100,29 @@ function(ly_setup_target OUTPUT_CONFIGURED_TARGET ALIAS_TARGET_NAME absolute_tar
cmake_path ( RELATIVE_PATH target_library_output_directory BASE_DIRECTORY ${ CMAKE_LIBRARY_OUTPUT_DIRECTORY } OUTPUT_VARIABLE target_library_output_subdirectory )
cmake_path ( RELATIVE_PATH target_library_output_directory BASE_DIRECTORY ${ CMAKE_LIBRARY_OUTPUT_DIRECTORY } OUTPUT_VARIABLE target_library_output_subdirectory )
endif ( )
endif ( )
install (
if ( COMMAND ly_install_target_override )
T A R G E T S $ { T A R G E T _ N A M E }
# M a c n e e d s s p e c i a l h a n d l i n g b e c a u s e o f a c m a k e i s s u e
A R C H I V E
ly_install_target_override ( TARGET ${ TARGET_NAME }
D E S T I N A T I O N $ { a r c h i v e _ o u t p u t _ d i r e c t o r y } / $ { P A L _ P L A T F O R M _ N A M E } / $ < C O N F I G >
A R C H I V E _ D I R $ { a r c h i v e _ o u t p u t _ d i r e c t o r y }
C O M P O N E N T $ { i n s t a l l _ c o m p o n e n t }
L I B R A R Y _ D I R $ { l i b r a r y _ o u t p u t _ d i r e c t o r y }
L I B R A R Y
R U N T I M E _ D I R $ { r u n t i m e _ o u t p u t _ d i r e c t o r y }
D E S T I N A T I O N $ { l i b r a r y _ o u t p u t _ d i r e c t o r y } / $ { P A L _ P L A T F O R M _ N A M E } / $ < C O N F I G > / $ { t a r g e t _ l i b r a r y _ o u t p u t _ s u b d i r e c t o r y }
L I B R A R Y _ S U B D I R $ { t a r g e t _ l i b r a r y _ o u t p u t _ s u b d i r e c t o r y }
C O M P O N E N T $ { i n s t a l l _ c o m p o n e n t }
R U N T I M E _ S U B D I R $ { t a r g e t _ r u n t i m e _ o u t p u t _ s u b d i r e c t o r y }
R U N T I M E
)
D E S T I N A T I O N $ { r u n t i m e _ o u t p u t _ d i r e c t o r y } / $ { P A L _ P L A T F O R M _ N A M E } / $ < C O N F I G > / $ { t a r g e t _ r u n t i m e _ o u t p u t _ s u b d i r e c t o r y }
else ( )
C O M P O N E N T $ { i n s t a l l _ c o m p o n e n t }
install (
)
T A R G E T S $ { T A R G E T _ N A M E }
A R C H I V E
D E S T I N A T I O N $ { a r c h i v e _ o u t p u t _ d i r e c t o r y } / $ { P A L _ P L A T F O R M _ N A M E } / $ < C O N F I G >
C O M P O N E N T $ { i n s t a l l _ c o m p o n e n t }
L I B R A R Y
D E S T I N A T I O N $ { l i b r a r y _ o u t p u t _ d i r e c t o r y } / $ { P A L _ P L A T F O R M _ N A M E } / $ < C O N F I G > / $ { t a r g e t _ l i b r a r y _ o u t p u t _ s u b d i r e c t o r y }
C O M P O N E N T $ { i n s t a l l _ c o m p o n e n t }
R U N T I M E
D E S T I N A T I O N $ { r u n t i m e _ o u t p u t _ d i r e c t o r y } / $ { P A L _ P L A T F O R M _ N A M E } / $ < C O N F I G > / $ { t a r g e t _ r u n t i m e _ o u t p u t _ s u b d i r e c t o r y }
C O M P O N E N T $ { i n s t a l l _ c o m p o n e n t }
)
endif ( )
# C M a k e L i s t s . t x t f i l e
# C M a k e L i s t s . t x t f i l e
string ( REGEX MATCH "(.*)::(.*)$" match ${ ALIAS_TARGET_NAME } )
string ( REGEX MATCH "(.*)::(.*)$" match ${ ALIAS_TARGET_NAME } )
@ -487,7 +498,7 @@ function(ly_setup_others)
# S c r i p t s
# S c r i p t s
file ( GLOB o3de_scripts "${LY_ROOT_FOLDER}/scripts/o3de.*" )
file ( GLOB o3de_scripts "${LY_ROOT_FOLDER}/scripts/o3de.*" )
install ( FILE S
install ( PROGRAM S
$ { o 3 d e _ s c r i p t s }
$ { o 3 d e _ s c r i p t s }
D E S T I N A T I O N . / s c r i p t s
D E S T I N A T I O N . / s c r i p t s
)
)
@ -505,6 +516,14 @@ function(ly_setup_others)
D E S T I N A T I O N .
D E S T I N A T I O N .
R E G E X " d o w n l o a d e d _ p a c k a g e s " E X C L U D E
R E G E X " d o w n l o a d e d _ p a c k a g e s " E X C L U D E
R E G E X " r u n t i m e " E X C L U D E
R E G E X " r u n t i m e " E X C L U D E
R E G E X " . * $ \ . s h " E X C L U D E
)
# F o r M a c / L i n u x s h e l l s c r i p t s n e e d t o b e i n s t a l l e d a s P R O G R A M S t o h a v e e x e c u t e p e r m i s s i o n
file ( GLOB python_scripts "${LY_ROOT_FOLDER}/python/*.sh" )
install ( PROGRAMS
$ { p y t h o n _ s c r i p t s }
D E S T I N A T I O N . / p y t h o n
)
)
# R e g i s t r y
# R e g i s t r y