Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ steps:
arguments: -Path $(Build.SourcesDirectory)\dev\common\TerminalVelocityFeatures-AppNotifications.xml -Channel $(channel) -Language C++ -Namespace Microsoft.Windows.AppNotifications -Output $(Build.SourcesDirectory)\dev\common\TerminalVelocityFeatures-AppNotifications.h
workingDirectory: '$(Build.SourcesDirectory)'

- task: powershell@2
displayName: 'Create CallingPreviewSupport TerminalVelocity features'
Comment thread
codendone marked this conversation as resolved.
inputs:
targetType: filePath
filePath: tools\TerminalVelocity\Generate-TerminalVelocityFeatures.ps1
arguments: -Path $(Build.SourcesDirectory)\dev\common\TerminalVelocityFeatures-AppNotifications.xml -Channel $(channel) -Language C++ -Namespace Microsoft.Windows.CallingPreviewSupport -Output $(Build.SourcesDirectory)\dev\common\TerminalVelocityFeatures-CallingPreviewSupport.h
Comment thread
codendone marked this conversation as resolved.
workingDirectory: '$(Build.SourcesDirectory)'

- task: powershell@2
displayName: 'Create PushNotifications TerminalVelocity features'
inputs:
Expand Down
13 changes: 13 additions & 0 deletions dev/AppNotifications/AppNotificationConferencingConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "AppNotificationConferencingConfig.h"
#include "Microsoft.Windows.AppNotifications.AppNotificationConferencingConfig.g.cpp"
#include <IsWindowsVersion.h>
#include "TerminalVelocityFeatures-CallingPreviewSupport.h"

namespace winrt::Microsoft::Windows::AppNotifications::implementation
{
Expand Down Expand Up @@ -48,3 +49,15 @@ namespace winrt::Microsoft::Windows::AppNotifications::implementation
return false;
}
}

// This function (not in the "implementation" namespace) is not defined when the feature is disabled,
// resulting in a linker error. Define the function for that scenario.
#if WINDOWSAPPRUNTIME_MICROSOFT_WINDOWS_CALLINGPREVIEWSUPPORT_FEATURE_CALLINGPREVIEWSUPPORT_ENABLED != 1
namespace winrt::Microsoft::Windows::AppNotifications
{
bool AppNotificationConferencingConfig::IsCallingPreviewSupported()
{
return false;
}
}
#endif