Remove PythonCoverage runtime component
Signed-off-by: John <jonawals@amazon.com>monroegm-disable-blank-issue-2
parent
0e0f266fdd
commit
478ffeeac6
@ -1,21 +1,12 @@
|
|||||||
|
#
|
||||||
set(o3de_gem_path ${CMAKE_CURRENT_LIST_DIR})
|
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||||
set(o3de_gem_json ${o3de_gem_path}/gem.json)
|
# its licensors.
|
||||||
o3de_read_json_key(o3de_gem_name ${o3de_gem_json} "gem_name")
|
#
|
||||||
o3de_restricted_path(${o3de_gem_json} o3de_gem_restricted_path)
|
# For complete copyright and license terms please see the LICENSE at the root of this
|
||||||
|
# distribution (the "License"). All use of this software is governed by the License,
|
||||||
# Currently we are in the DefaultProjectSource folder: ${CMAKE_CURRENT_LIST_DIR}
|
# or, if provided, by the license below or the license accompanying this file. Do not
|
||||||
# Get the platform specific folder ${pal_dir} for the current folder: ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME}
|
# remove or modify any license notices. This file is distributed on an "AS IS" BASIS,
|
||||||
# Note: ly_get_list_relative_pal_filename will take care of the details for us, as this may be a restricted platform
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
# in which case it will see if that platform is present here or in the restricted folder.
|
#
|
||||||
# i.e. It could here: DefaultProjectSource/Platform/<platorm_name> or
|
|
||||||
# <restricted_folder>/<platform_name>/DefaultProjectSource
|
|
||||||
ly_get_list_relative_pal_filename(pal_dir ${CMAKE_CURRENT_LIST_DIR}/Platform/${PAL_PLATFORM_NAME} ${o3de_gem_restricted_path} ${o3de_gem_path} ${o3de_gem_name})
|
|
||||||
|
|
||||||
# Now that we have the platform abstraction layer (PAL) folder for this folder, thats where we will find the
|
|
||||||
# project cmake for this platform.
|
|
||||||
include(${pal_dir}/${PAL_PLATFORM_NAME_LOWERCASE}_gem.cmake)
|
|
||||||
|
|
||||||
ly_add_external_target_path(${CMAKE_CURRENT_LIST_DIR}/3rdParty)
|
|
||||||
|
|
||||||
add_subdirectory(Code)
|
add_subdirectory(Code)
|
||||||
|
|||||||
@ -1,4 +1,12 @@
|
|||||||
|
#
|
||||||
|
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||||
|
# its licensors.
|
||||||
|
#
|
||||||
|
# For complete copyright and license terms please see the LICENSE at the root of this
|
||||||
|
# distribution (the "License"). All use of this software is governed by the License,
|
||||||
|
# or, if provided, by the license below or the license accompanying this file. Do not
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_SUPPORTED TRUE)
|
set(PAL_TRAIT_PYTHONCOVERAGE_SUPPORTED FALSE)
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_TEST_SUPPORTED TRUE)
|
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_EDITOR_TEST_SUPPORTED TRUE)
|
|
||||||
|
|||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for Android
|
|
||||||
# i.e. ../Source/Android/PythonCoverageAndroid.cpp
|
|
||||||
# ../Source/Android/PythonCoverageAndroid.h
|
|
||||||
# ../Include/Android/PythonCoverageAndroid.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for Android
|
|
||||||
# i.e. ../Source/Android/PythonCoverageAndroid.cpp
|
|
||||||
# ../Source/Android/PythonCoverageAndroid.h
|
|
||||||
# ../Include/Android/PythonCoverageAndroid.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for Android
|
|
||||||
# i.e. ../Source/Android/PythonCoverageAndroid.cpp
|
|
||||||
# ../Source/Android/PythonCoverageAndroid.h
|
|
||||||
# ../Include/Android/PythonCoverageAndroid.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,4 +1,12 @@
|
|||||||
|
#
|
||||||
|
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||||
|
# its licensors.
|
||||||
|
#
|
||||||
|
# For complete copyright and license terms please see the LICENSE at the root of this
|
||||||
|
# distribution (the "License"). All use of this software is governed by the License,
|
||||||
|
# or, if provided, by the license below or the license accompanying this file. Do not
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_SUPPORTED TRUE)
|
set(PAL_TRAIT_PYTHONCOVERAGE_SUPPORTED FALSE)
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_TEST_SUPPORTED TRUE)
|
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_EDITOR_TEST_SUPPORTED TRUE)
|
|
||||||
|
|||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for Linux
|
|
||||||
# i.e. ../Source/Linux/PythonCoverageLinux.cpp
|
|
||||||
# ../Source/Linux/PythonCoverageLinux.h
|
|
||||||
# ../Include/Linux/PythonCoverageLinux.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for Linux
|
|
||||||
# i.e. ../Source/Linux/PythonCoverageLinux.cpp
|
|
||||||
# ../Source/Linux/PythonCoverageLinux.h
|
|
||||||
# ../Include/Linux/PythonCoverageLinux.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for Linux
|
|
||||||
# i.e. ../Source/Linux/PythonCoverageLinux.cpp
|
|
||||||
# ../Source/Linux/PythonCoverageLinux.h
|
|
||||||
# ../Include/Linux/PythonCoverageLinux.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,4 +1,12 @@
|
|||||||
|
#
|
||||||
|
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||||
|
# its licensors.
|
||||||
|
#
|
||||||
|
# For complete copyright and license terms please see the LICENSE at the root of this
|
||||||
|
# distribution (the "License"). All use of this software is governed by the License,
|
||||||
|
# or, if provided, by the license below or the license accompanying this file. Do not
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_SUPPORTED TRUE)
|
set(PAL_TRAIT_PYTHONCOVERAGE_SUPPORTED FALSE)
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_TEST_SUPPORTED TRUE)
|
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_EDITOR_TEST_SUPPORTED TRUE)
|
|
||||||
|
|||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for Mac
|
|
||||||
# i.e. ../Source/Mac/PythonCoverageMac.cpp
|
|
||||||
# ../Source/Mac/PythonCoverageMac.h
|
|
||||||
# ../Include/Mac/PythonCoverageMac.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for Mac
|
|
||||||
# i.e. ../Source/Mac/PythonCoverageMac.cpp
|
|
||||||
# ../Source/Mac/PythonCoverageMac.h
|
|
||||||
# ../Include/Mac/PythonCoverageMac.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for Mac
|
|
||||||
# i.e. ../Source/Mac/PythonCoverageMac.cpp
|
|
||||||
# ../Source/Mac/PythonCoverageMac.h
|
|
||||||
# ../Include/Mac/PythonCoverageMac.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,4 +1,12 @@
|
|||||||
|
#
|
||||||
|
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||||
|
# its licensors.
|
||||||
|
#
|
||||||
|
# For complete copyright and license terms please see the LICENSE at the root of this
|
||||||
|
# distribution (the "License"). All use of this software is governed by the License,
|
||||||
|
# or, if provided, by the license below or the license accompanying this file. Do not
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_SUPPORTED TRUE)
|
set(PAL_TRAIT_PYTHONCOVERAGE_SUPPORTED TRUE)
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_TEST_SUPPORTED TRUE)
|
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_EDITOR_TEST_SUPPORTED TRUE)
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for Windows
|
|
||||||
# i.e. ../Source/Windows/PythonCoverageWindows.cpp
|
|
||||||
# ../Source/Windows/PythonCoverageWindows.h
|
|
||||||
# ../Include/Windows/PythonCoverageWindows.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for Windows
|
|
||||||
# i.e. ../Source/Windows/PythonCoverageWindows.cpp
|
|
||||||
# ../Source/Windows/PythonCoverageWindows.h
|
|
||||||
# ../Include/Windows/PythonCoverageWindows.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for Windows
|
|
||||||
# i.e. ../Source/Windows/PythonCoverageWindows.cpp
|
|
||||||
# ../Source/Windows/PythonCoverageWindows.h
|
|
||||||
# ../Include/Windows/PythonCoverageWindows.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,4 +1,12 @@
|
|||||||
|
#
|
||||||
|
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||||
|
# its licensors.
|
||||||
|
#
|
||||||
|
# For complete copyright and license terms please see the LICENSE at the root of this
|
||||||
|
# distribution (the "License"). All use of this software is governed by the License,
|
||||||
|
# or, if provided, by the license below or the license accompanying this file. Do not
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_SUPPORTED TRUE)
|
set(PAL_TRAIT_PYTHONCOVERAGE_SUPPORTED FALSE)
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_TEST_SUPPORTED TRUE)
|
|
||||||
set(PAL_TRAIT_PYTHONCOVERAGE_EDITOR_TEST_SUPPORTED TRUE)
|
|
||||||
|
|||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for iOS
|
|
||||||
# i.e. ../Source/iOS/PythonCoverageiOS.cpp
|
|
||||||
# ../Source/iOS/PythonCoverageiOS.h
|
|
||||||
# ../Include/iOS/PythonCoverageiOS.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for iOS
|
|
||||||
# i.e. ../Source/iOS/PythonCoverageiOS.cpp
|
|
||||||
# ../Source/iOS/PythonCoverageiOS.h
|
|
||||||
# ../Include/iOS/PythonCoverageiOS.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
|
|
||||||
# Platform specific files for iOS
|
|
||||||
# i.e. ../Source/iOS/PythonCoverageiOS.cpp
|
|
||||||
# ../Source/iOS/PythonCoverageiOS.h
|
|
||||||
# ../Include/iOS/PythonCoverageiOS.h
|
|
||||||
|
|
||||||
set(FILES
|
|
||||||
)
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
#include <PythonCoverageModule.h>
|
|
||||||
|
|
||||||
#pragma optimize("", off)
|
|
||||||
|
|
||||||
namespace PythonCoverage
|
|
||||||
{
|
|
||||||
PythonCoverageModule::PythonCoverageModule()
|
|
||||||
: AZ::Module()
|
|
||||||
{
|
|
||||||
// Push results of [MyComponent]::CreateDescriptor() into m_descriptors here.
|
|
||||||
m_descriptors.insert(
|
|
||||||
m_descriptors.end(),
|
|
||||||
{ PythonCoverageSystemComponent::CreateDescriptor() });
|
|
||||||
}
|
|
||||||
|
|
||||||
AZ::ComponentTypeList PythonCoverageModule::GetRequiredSystemComponents() const
|
|
||||||
{
|
|
||||||
return AZ::ComponentTypeList{
|
|
||||||
azrtti_typeid<PythonCoverageSystemComponent>(),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}// namespace PythonCoverage
|
|
||||||
|
|
||||||
#if !defined(PYTHON_COVERAGE_EDITOR)
|
|
||||||
AZ_DECLARE_MODULE_CLASS(Gem_PythonCoverage, PythonCoverage::PythonCoverageModule)
|
|
||||||
#endif // !defined(PYTHON_COVERAGE_EDITOR)
|
|
||||||
@ -1,26 +0,0 @@
|
|||||||
|
|
||||||
#include <AzCore/Memory/SystemAllocator.h>
|
|
||||||
#include <AzCore/Module/Module.h>
|
|
||||||
|
|
||||||
#include <PythonCoverageSystemComponent.h>
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#pragma optimize("", off)
|
|
||||||
|
|
||||||
namespace PythonCoverage
|
|
||||||
{
|
|
||||||
class PythonCoverageModule : public AZ::Module
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
AZ_RTTI(PythonCoverageModule, "{dc706de0-22c4-4b05-9b99-438692afc082}", AZ::Module);
|
|
||||||
AZ_CLASS_ALLOCATOR(PythonCoverageModule, AZ::SystemAllocator, 0);
|
|
||||||
|
|
||||||
PythonCoverageModule();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add required SystemComponents to the SystemEntity.
|
|
||||||
*/
|
|
||||||
AZ::ComponentTypeList GetRequiredSystemComponents() const override;
|
|
||||||
};
|
|
||||||
} // namespace PythonCoverage
|
|
||||||
@ -1,70 +0,0 @@
|
|||||||
|
|
||||||
#include <PythonCoverageSystemComponent.h>
|
|
||||||
|
|
||||||
#include <AzCore/Serialization/SerializeContext.h>
|
|
||||||
#include <AzCore/Serialization/EditContext.h>
|
|
||||||
#include <AzCore/Serialization/EditContextConstants.inl>
|
|
||||||
|
|
||||||
namespace PythonCoverage
|
|
||||||
{
|
|
||||||
void PythonCoverageSystemComponent::Reflect(AZ::ReflectContext* context)
|
|
||||||
{
|
|
||||||
if (AZ::SerializeContext* serialize = azrtti_cast<AZ::SerializeContext*>(context))
|
|
||||||
{
|
|
||||||
serialize->Class<PythonCoverageSystemComponent, AZ::Component>()
|
|
||||||
->Version(0)
|
|
||||||
;
|
|
||||||
|
|
||||||
if (AZ::EditContext* ec = serialize->GetEditContext())
|
|
||||||
{
|
|
||||||
ec->Class<PythonCoverageSystemComponent>("PythonCoverage", "[Description of functionality provided by this System Component]")
|
|
||||||
->ClassElement(AZ::Edit::ClassElements::EditorData, "")
|
|
||||||
->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC("System"))
|
|
||||||
->Attribute(AZ::Edit::Attributes::AutoExpand, true)
|
|
||||||
;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void PythonCoverageSystemComponent::GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided)
|
|
||||||
{
|
|
||||||
provided.push_back(AZ_CRC("PythonCoverageService"));
|
|
||||||
}
|
|
||||||
|
|
||||||
void PythonCoverageSystemComponent::GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible)
|
|
||||||
{
|
|
||||||
incompatible.push_back(AZ_CRC("PythonCoverageService"));
|
|
||||||
}
|
|
||||||
|
|
||||||
void PythonCoverageSystemComponent::GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required)
|
|
||||||
{
|
|
||||||
AZ_UNUSED(required);
|
|
||||||
}
|
|
||||||
|
|
||||||
void PythonCoverageSystemComponent::GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent)
|
|
||||||
{
|
|
||||||
AZ_UNUSED(dependent);
|
|
||||||
}
|
|
||||||
|
|
||||||
void PythonCoverageSystemComponent::Init()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void PythonCoverageSystemComponent::Activate()
|
|
||||||
{
|
|
||||||
PythonCoverageRequestBus::Handler::BusConnect();
|
|
||||||
AZ::TickBus::Handler::BusConnect();
|
|
||||||
}
|
|
||||||
|
|
||||||
void PythonCoverageSystemComponent::Deactivate()
|
|
||||||
{
|
|
||||||
AZ::TickBus::Handler::BusDisconnect();
|
|
||||||
PythonCoverageRequestBus::Handler::BusDisconnect();
|
|
||||||
}
|
|
||||||
|
|
||||||
void PythonCoverageSystemComponent::OnTick(float /*deltaTime*/, AZ::ScriptTimePoint /*time*/)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace PythonCoverage
|
|
||||||
@ -1,44 +0,0 @@
|
|||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include <AzCore/Component/Component.h>
|
|
||||||
#include <AzCore/Component/TickBus.h>
|
|
||||||
#include <PythonCoverage/PythonCoverageBus.h>
|
|
||||||
|
|
||||||
namespace PythonCoverage
|
|
||||||
{
|
|
||||||
class PythonCoverageSystemComponent
|
|
||||||
: public AZ::Component
|
|
||||||
, protected PythonCoverageRequestBus::Handler
|
|
||||||
, public AZ::TickBus::Handler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
AZ_COMPONENT(PythonCoverageSystemComponent, "{b2f692ae-1047-4a6d-a4ed-27b1aac40ba5}");
|
|
||||||
|
|
||||||
static void Reflect(AZ::ReflectContext* context);
|
|
||||||
|
|
||||||
static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
|
|
||||||
static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
|
|
||||||
static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
|
|
||||||
static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
|
||||||
// PythonCoverageRequestBus interface implementation
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
|
||||||
// AZ::Component interface implementation
|
|
||||||
void Init() override;
|
|
||||||
void Activate() override;
|
|
||||||
void Deactivate() override;
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
|
||||||
// AZTickBus interface implementation
|
|
||||||
void OnTick(float deltaTime, AZ::ScriptTimePoint time) override;
|
|
||||||
////////////////////////////////////////////////////////////////////////
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace PythonCoverage
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
|
|
||||||
#include <AzTest/AzTest.h>
|
|
||||||
|
|
||||||
class PythonCoverageTest
|
|
||||||
: public ::testing::Test
|
|
||||||
{
|
|
||||||
protected:
|
|
||||||
void SetUp() override
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void TearDown() override
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
TEST_F(PythonCoverageTest, SanityTest)
|
|
||||||
{
|
|
||||||
ASSERT_TRUE(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
AZ_UNIT_TEST_HOOK(DEFAULT_UNIT_TEST_ENV);
|
|
||||||
@ -1,7 +1,15 @@
|
|||||||
|
#
|
||||||
|
# All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||||
|
# its licensors.
|
||||||
|
#
|
||||||
|
# For complete copyright and license terms please see the LICENSE at the root of this
|
||||||
|
# distribution (the "License"). All use of this software is governed by the License,
|
||||||
|
# or, if provided, by the license below or the license accompanying this file. Do not
|
||||||
|
# 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.
|
||||||
|
#
|
||||||
|
|
||||||
set(FILES
|
set(FILES
|
||||||
Source/PythonCoverageModule.cpp
|
Source/PythonCoverageEditorModule.cpp
|
||||||
Source/PythonCoverageModule.h
|
Source/PythonCoverageEditorModule.h
|
||||||
Source/PythonCoverageEditorModule.cpp
|
|
||||||
Source/PythonCoverageEditorModule.h
|
|
||||||
)
|
)
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
|
|
||||||
set(FILES
|
|
||||||
Source/PythonCoverageSystemComponent.cpp
|
|
||||||
Source/PythonCoverageSystemComponent.h
|
|
||||||
)
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
|
|
||||||
set(FILES
|
|
||||||
Source/PythonCoverageModule.cpp
|
|
||||||
Source/PythonCoverageModule.h
|
|
||||||
)
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
|
|
||||||
set(FILES
|
|
||||||
Tests/PythonCoverageTest.cpp
|
|
||||||
)
|
|
||||||
@ -1 +0,0 @@
|
|||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"Tags": ["Android"],
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"Tags": ["Linux"]
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"Tags": ["Mac"]
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"Tags": ["Windows"]
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"Tags": ["iOS"]
|
|
||||||
}
|
|
||||||
@ -0,0 +1,46 @@
|
|||||||
|
/*
|
||||||
|
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
|
||||||
|
* its licensors.
|
||||||
|
*
|
||||||
|
* For complete copyright and license terms please see the LICENSE at the root of this
|
||||||
|
* distribution (the "License"). All use of this software is governed by the License,
|
||||||
|
* or, if provided, by the license below or the license accompanying this file. Do not
|
||||||
|
* 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.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <AzCore/EBus/EBus.h>
|
||||||
|
|
||||||
|
namespace AzToolsFramework
|
||||||
|
{
|
||||||
|
//! Provides a bus to notify when Python scripts are about to run.
|
||||||
|
class EditorPythonRunnerNotification
|
||||||
|
: public AZ::EBusTraits
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
// EBusTraits overrides
|
||||||
|
static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Multiple;
|
||||||
|
static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single;
|
||||||
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
//! Notifies the execution of a Python script using a string.
|
||||||
|
virtual void ExecuteByString([[maybe_unused]] AZStd::string_view script) {}
|
||||||
|
|
||||||
|
//! Notifies the execution of a Python script using a filename.
|
||||||
|
virtual void ExecuteByFilename([[maybe_unused]] AZStd::string_view filename) {}
|
||||||
|
|
||||||
|
//! Notifies the execution of a Python script using a filename and args.
|
||||||
|
virtual void ExecuteByFilenameWithArgs(
|
||||||
|
[[maybe_unused]] AZStd::string_view filename, [[maybe_unused]] const AZStd::vector<AZStd::string_view>& args) {}
|
||||||
|
|
||||||
|
//! Notifies the execution of a Python script as a test.
|
||||||
|
virtual void ExecuteByFilenameAsTest(
|
||||||
|
[[maybe_unused]] AZStd::string_view filename, [[maybe_unused]] const AZStd::vector<AZStd::string_view>& args) {}
|
||||||
|
};
|
||||||
|
using EditorPythonRunnerNotificationBus = AZ::EBus<EditorPythonRunnerNotification>;
|
||||||
|
|
||||||
|
} // namespace AzToolsFramework
|
||||||
|
|
||||||
Loading…
Reference in New Issue