Skip to content

Commit

Permalink
Merge branch 'master' into development/plugin-deinitialize-notification
Browse files Browse the repository at this point in the history
  • Loading branch information
pwielders authored Feb 21, 2025
2 parents 503df8a + 344c40f commit 85e734b
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/Linux build template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ jobs:
-DWARNING_REPORTING=ON \
-DPROCESSCONTAINERS=ON \
-DPROCESSCONTAINERS_RUNC=ON \
-DBROADCAST=ON \
${{steps.regexthunder.outputs.first_match}}
cmake --build ${{matrix.build_type}}/build/Thunder --target install
Expand Down
6 changes: 5 additions & 1 deletion Source/extensions/broadcast/Module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@

#include "Module.h"

MODULE_NAME_DECLARATION(BUILD_REFERENCE)
#ifdef BUILD_SHARED_LIBS
MODULE_NAME_DECLARATION(BUILD_REFERENCE)
#else
MODULE_NAME_ARCHIVE_DECLARATION
#endif
1 change: 1 addition & 0 deletions Source/extensions/broadcast/broadcast.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#error "Please define a MODULE_NAME that describes the binary/library you are building."
#endif

#include "Module.h"
#include "Definitions.h"
#include "Descriptors.h"
#include "MPEGDescriptor.h"
Expand Down
6 changes: 1 addition & 5 deletions Source/extensions/broadcast/test/BroadcastTester.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,8 @@
* limitations under the License.
*/

#define MODULE_NAME BroadcastTest
#include "Module.h"

#include <broadcast/broadcast.h>
#include <core/core.h>

MODULE_NAME_DECLARATION(BUILD_REFERENCE)
using namespace Thunder;

void printHelp(){
Expand Down
9 changes: 6 additions & 3 deletions Source/extensions/broadcast/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@
include_directories(${CMAKE_CURRENT_LIST_DIR}/../../broadcast)
include_directories($<INSTALL_INTERFACE:include/${NAMESPACE}>)

add_executable(BroadcastTester BroadcastTester.cpp)
add_executable(BroadcastTester
Module.cpp
BroadcastTester.cpp)

target_link_libraries(BroadcastTester
PRIVATE
${NAMESPACE}Broadcast::${NAMESPACE}Broadcast
CompileSettingsDebug::CompileSettingsDebug
${NAMESPACE}Core::${NAMESPACE}Core
)
${NAMESPACE}Broadcast::${NAMESPACE}Broadcast
)

install(TARGETS BroadcastTester DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${NAMESPACE}_Test)
22 changes: 22 additions & 0 deletions Source/extensions/broadcast/test/Module.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2021 Metrological
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#include "Module.h"

MODULE_NAME_DECLARATION(BUILD_REFERENCE)
32 changes: 32 additions & 0 deletions Source/extensions/broadcast/test/Module.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2021 Metrological
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#pragma once

#ifndef MODULE_NAME
#define MODULE_NAME BroadcastTest
#endif

#include <core/core.h>
#include <broadcast/broadcast.h>

#if defined(__WINDOWS__) && defined(BROADCAST_EXPORTS)
#undef EXTERNAL
#define EXTERNAL EXTERNAL_EXPORT
#endif

0 comments on commit 85e734b

Please sign in to comment.