Templates restricted (#6498)
* Templates/Restricted upgrade/fixes: Fixed template storage format: templates now only store true relative paths and no longer save "origin" paths and "optional" has been removed, it was never used. Upgraded all templates to new standard Template system now correctly handles child objects: Child objects no longer have to specify restricted they inherit from parent Restricted now operates at the object level and makes no assumptions about parent Restricted templates can now be combined and seperated on creation ly_get_list_relative_filename has been deprecated for o3de_pal_dir All Gems/Projects/Templates updated to use new code Signed-off-by: byrcolin <byrcolin@amazon.com>
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
"gem_name": "${Name}",
|
||||
"display_name": "${Name}",
|
||||
"license": "What license ${Name} uses goes here: i.e. Apache-2.0 Or MIT",
|
||||
"license_url": "",
|
||||
"origin": "The primary repo for ${Name} goes here: i.e. http://www.mydomain.com",
|
||||
"license_url": "https://github.com/o3de/o3de/blob/development/LICENSE.txt",
|
||||
"origin": "The name of the originator goes here. i.e. XYZ Inc.",
|
||||
"origin_url": "The primary repo for ${Name} goes here: i.e. http://www.mydomain.com",
|
||||
"type": "Code",
|
||||
"summary": "A short description of ${Name}.",
|
||||
"canonical_tags": [
|
||||
@@ -14,6 +15,7 @@
|
||||
],
|
||||
"icon_path": "preview.png",
|
||||
"requirements": "",
|
||||
"documentation_url": "",
|
||||
"dependencies": [
|
||||
"QtForPython"
|
||||
]
|
||||
|
||||
@@ -1,12 +1,18 @@
|
||||
{
|
||||
"template_name": "PythonToolGem",
|
||||
"template_restricted_platform_relative_path": "Templates/PythonToolGem",
|
||||
"restricted_name": "o3de",
|
||||
"restricted_platform_relative_path": "Templates",
|
||||
"origin": "The primary repo for PythonToolGem goes here: i.e. http://www.mydomain.com",
|
||||
"license": "What license PythonToolGem uses goes here: i.e. https://opensource.org/licenses/MIT",
|
||||
"restricted_platform_relative_path": "Templates/PythonToolGem",
|
||||
"origin": "Open 3D Engine - o3de.org",
|
||||
"origin_url": "https://github.com/o3de/o3de",
|
||||
"license": "Apache-2.0 or MIT",
|
||||
"license_url": "https://github.com/o3de/o3de/blob/development/LICENSE.txt",
|
||||
"display_name": "PythonToolGem",
|
||||
"summary": "A gem template for a custom tool in Python that gets registered with the Editor.",
|
||||
"canonical_tags": [],
|
||||
"canonical_tags": [
|
||||
"Python",
|
||||
"Gem"
|
||||
],
|
||||
"user_tags": [
|
||||
"PythonToolGem"
|
||||
],
|
||||
@@ -14,221 +20,153 @@
|
||||
"copyFiles": [
|
||||
{
|
||||
"file": ".gitignore",
|
||||
"origin": ".gitignore",
|
||||
"isTemplated": false,
|
||||
"isOptional": false
|
||||
"isTemplated": false
|
||||
},
|
||||
{
|
||||
"file": "CMakeLists.txt",
|
||||
"origin": "CMakeLists.txt",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/${NameLower}_editor_files.cmake",
|
||||
"origin": "Code/${NameLower}_editor_files.cmake",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/${NameLower}_editor_shared_files.cmake",
|
||||
"origin": "Code/${NameLower}_editor_shared_files.cmake",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/${NameLower}_editor_tests_files.cmake",
|
||||
"origin": "Code/${NameLower}_editor_tests_files.cmake",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/CMakeLists.txt",
|
||||
"origin": "Code/CMakeLists.txt",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Include/${Name}/${Name}Bus.h",
|
||||
"origin": "Code/Include/${Name}/${Name}Bus.h",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Platform/Linux/${NameLower}_linux_files.cmake",
|
||||
"origin": "Code/Platform/Linux/${NameLower}_linux_files.cmake",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Platform/Linux/${NameLower}_shared_linux_files.cmake",
|
||||
"origin": "Code/Platform/Linux/${NameLower}_shared_linux_files.cmake",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Platform/Linux/PAL_linux.cmake",
|
||||
"origin": "Code/Platform/Linux/PAL_linux.cmake",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Platform/Mac/${NameLower}_mac_files.cmake",
|
||||
"origin": "Code/Platform/Mac/${NameLower}_mac_files.cmake",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Platform/Mac/${NameLower}_shared_mac_files.cmake",
|
||||
"origin": "Code/Platform/Mac/${NameLower}_shared_mac_files.cmake",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Platform/Mac/PAL_mac.cmake",
|
||||
"origin": "Code/Platform/Mac/PAL_mac.cmake",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Platform/Windows/${NameLower}_shared_windows_files.cmake",
|
||||
"origin": "Code/Platform/Windows/${NameLower}_shared_windows_files.cmake",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Platform/Windows/${NameLower}_windows_files.cmake",
|
||||
"origin": "Code/Platform/Windows/${NameLower}_windows_files.cmake",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Platform/Windows/PAL_windows.cmake",
|
||||
"origin": "Code/Platform/Windows/PAL_windows.cmake",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Source/${Name}.qrc",
|
||||
"origin": "Code/Source/${Name}.qrc",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Source/${Name}EditorModule.cpp",
|
||||
"origin": "Code/Source/${Name}EditorModule.cpp",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Source/${Name}EditorSystemComponent.cpp",
|
||||
"origin": "Code/Source/${Name}EditorSystemComponent.cpp",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Source/${Name}EditorSystemComponent.h",
|
||||
"origin": "Code/Source/${Name}EditorSystemComponent.h",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Source/${Name}ModuleInterface.h",
|
||||
"origin": "Code/Source/${Name}ModuleInterface.h",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Code/Source/toolbar_icon.svg",
|
||||
"origin": "Code/Source/toolbar_icon.svg",
|
||||
"isTemplated": false,
|
||||
"isOptional": false
|
||||
"isTemplated": false
|
||||
},
|
||||
{
|
||||
"file": "Code/Tests/${Name}EditorTest.cpp",
|
||||
"origin": "Code/Tests/${Name}EditorTest.cpp",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Editor/Scripts/__init__.py",
|
||||
"origin": "Editor/Scripts/__init__.py",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Editor/Scripts/bootstrap.py",
|
||||
"origin": "Editor/Scripts/bootstrap.py",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "Editor/Scripts/${NameLower}_dialog.py",
|
||||
"origin": "Editor/Scripts/${NameLower}_dialog.py",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "gem.json",
|
||||
"origin": "gem.json",
|
||||
"isTemplated": true,
|
||||
"isOptional": false
|
||||
"isTemplated": true
|
||||
},
|
||||
{
|
||||
"file": "preview.png",
|
||||
"origin": "preview.png",
|
||||
"isTemplated": false,
|
||||
"isOptional": false
|
||||
"isTemplated": false
|
||||
}
|
||||
],
|
||||
"createDirectories": [
|
||||
{
|
||||
"dir": "Assets",
|
||||
"origin": "Assets"
|
||||
"dir": "Assets"
|
||||
},
|
||||
{
|
||||
"dir": "Code",
|
||||
"origin": "Code"
|
||||
"dir": "Code"
|
||||
},
|
||||
{
|
||||
"dir": "Editor",
|
||||
"origin": "Editor"
|
||||
"dir": "Editor"
|
||||
},
|
||||
{
|
||||
"dir": "Editor/Scripts",
|
||||
"origin": "Editor/Scripts"
|
||||
"dir": "Editor/Scripts"
|
||||
},
|
||||
{
|
||||
"dir": "Code/Include",
|
||||
"origin": "Code/Include"
|
||||
"dir": "Code/Include"
|
||||
},
|
||||
{
|
||||
"dir": "Code/Include/${Name}",
|
||||
"origin": "Code/Include/${Name}"
|
||||
"dir": "Code/Include/${Name}"
|
||||
},
|
||||
{
|
||||
"dir": "Code/Platform",
|
||||
"origin": "Code/Platform"
|
||||
"dir": "Code/Platform"
|
||||
},
|
||||
{
|
||||
"dir": "Code/Platform/Linux",
|
||||
"origin": "Code/Platform/Linux"
|
||||
"dir": "Code/Platform/Linux"
|
||||
},
|
||||
{
|
||||
"dir": "Code/Platform/Mac",
|
||||
"origin": "Code/Platform/Mac"
|
||||
"dir": "Code/Platform/Mac"
|
||||
},
|
||||
{
|
||||
"dir": "Code/Platform/Windows",
|
||||
"origin": "Code/Platform/Windows"
|
||||
"dir": "Code/Platform/Windows"
|
||||
},
|
||||
{
|
||||
"dir": "Code/Source",
|
||||
"origin": "Code/Source"
|
||||
"dir": "Code/Source"
|
||||
},
|
||||
{
|
||||
"dir": "Code/Tests",
|
||||
"origin": "Code/Tests"
|
||||
"dir": "Code/Tests"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user