Signed-off-by: AMZN-Olex <[email protected]>
@@ -6,6 +6,20 @@
#
+# The DebugDraw.API target declares the common interface that users of this gem should depend on in their targets to avoid linking.
+ly_add_target(
+ NAME DebugDraw.API INTERFACE
+ NAMESPACE Gem
+ FILES_CMAKE
+ debugdraw_api_files.cmake
+ INCLUDE_DIRECTORIES
+ INTERFACE
+ Include
+ BUILD_DEPENDENCIES
+ AZ::AzCore
+)
+
ly_add_target(
NAME DebugDraw.Static STATIC
NAMESPACE Gem
@@ -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
+set(FILES
+ Include/DebugDraw/DebugDrawBus.h
@@ -124,7 +124,7 @@ ly_add_target(
RecastNavigation::Detour
RecastNavigation::Recast
Gem::LmbrCentral.Static
- Gem::DebugDraw.Static
+ Gem::DebugDraw.API
)
# Here add RecastNavigation target, it depends on the Private Object library and Public API interface
@@ -194,7 +194,7 @@ if(PAL_TRAIT_BUILD_HOST_TOOLS)
AZ::AzToolsFramework
Gem::RecastNavigation.Private.Object