supporting multiple directories

automatically excluding obvious things
cleanup and verification

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-08-23 19:41:57 -07:00
parent a1b59e5e5e
commit b609d5e2cb
13 changed files with 123 additions and 64 deletions
+7 -5
View File
@@ -6,8 +6,10 @@
#
#
add_subdirectory(bundler)
add_subdirectory(detect_file_changes)
add_subdirectory(commit_validation)
add_subdirectory(o3de)
add_subdirectory(ctest)
if(PAL_TRAIT_BUILD_HOST_TOOLS)
add_subdirectory(bundler)
add_subdirectory(detect_file_changes)
add_subdirectory(commit_validation)
add_subdirectory(o3de)
add_subdirectory(ctest)
endif()
+2 -4
View File
@@ -6,8 +6,6 @@
#
#
ly_install_directory(DIRECTORY .
EXCLUDE_PATTERNS
__pycache__
CMakeLists.txt
ly_install_directory(DIRECTORIES .
EXCLUDE_PATTERNS tests
)
+16 -9
View File
@@ -8,15 +8,22 @@
add_subdirectory(tests)
file(GLOB o3de_scripts "${LY_ROOT_FOLDER}/scripts/o3de.*")
ly_install_files(FILES ${o3de_scripts}
PROGRAMS
DESTINATION ./scripts
ly_get_list_relative_pal_filename(pal_dir ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME})
include(${pal_dir}/o3de_install_${PAL_PLATFORM_NAME_LOWERCASE}.cmake)
ly_install_files(FILES ../o3de.py
DESTINATION scripts
)
ly_install_directory(DIRECTORY .
EXCLUDE_PATTERNS
__pycache__
CMakeLists.txt
tests
ly_install_files(FILES setup.py PROGRAMS
DESTINATION scripts/o3de
)
ly_install_files(FILES README.txt
DESTINATION scripts/o3de
)
ly_install_directory(DIRECTORIES .
EXCLUDE_PATTERNS
tests
Platform
)
@@ -0,0 +1,12 @@
#
# Copyright (c) Contributors to the Open 3D Engine Project.
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
#
ly_install_files(FILES ../o3de.sh PROGRAMS
DESTINATION scripts
)
@@ -0,0 +1,11 @@
#
# Copyright (c) Contributors to the Open 3D Engine Project.
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
#
ly_install_files(FILES ../o3de.sh PROGRAMS
DESTINATION scripts
)
@@ -0,0 +1,11 @@
#
# Copyright (c) Contributors to the Open 3D Engine Project.
# For complete copyright and license terms please see the LICENSE at the root of this distribution.
#
# SPDX-License-Identifier: Apache-2.0 OR MIT
#
#
ly_install_files(FILES ../o3de.bat PROGRAMS
DESTINATION scripts
)