-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Merge DNSSD into main Poco #3933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 21 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
56e7388
Initial commit
obiltschnig a30ef28
initial commit
obiltschnig 68b4d76
added README.md
obiltschnig a38083e
Update README.md
obiltschnig 6754a4b
Add top level CMakeLists like another project in POCO framework. see #1
b942a10
Add CMakeLists to Avahi and Bonjour. (see #1)
soroshsabz fe1f856
Missing changing in top level CMakeLists correct. (see #1)
soroshsabz 79ccb8d
Add samples CMakeLists. (see #1)
soroshsabz 64f415a
Add temporary cmake find module for Avahi and Bonjour in cmake direct…
soroshsabz f12ab8f
Add mandatory requirement diff for POCO framework to DNSSD cmake can …
soroshsabz 1d4e33e
Update README.md
soroshsabz a6cdd1c
Update README.md
soroshsabz 8f78c1c
Update README.md
soroshsabz 674b83a
Moved files
soroshsabz 682e68d
Add cmake modules
soroshsabz e660d4e
Add cmake modules
soroshsabz 6344a44
Merge remote-tracking branch 'sub/master' into devel
soroshsabz a73861b
Remove modules
soroshsabz 4af6687
Correct linux cmake ci.
soroshsabz 95047c2
Exclude DNSSD from macos, windows.
soroshsabz d4fc7cd
Merge branch 'devel' into devel
soroshsabz 6d04f50
Update CMakeLists.txt
soroshsabz 1e5027a
Remove unused gitignore
soroshsabz 93ff2ed
Merge branch 'devel' of https://github.com/soroshsabz/poco into devel
soroshsabz fae860b
Merge branch 'devel' into devel
aleks-f File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,7 +90,7 @@ jobs: | |
| runs-on: ubuntu-20.04 | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - run: sudo apt -y update && sudo apt -y install cmake ninja-build libssl-dev unixodbc-dev libmysqlclient-dev redis-server | ||
| - run: sudo apt -y update && sudo apt -y install cmake ninja-build libssl-dev unixodbc-dev libmysqlclient-dev redis-server libavahi-client-dev | ||
| - run: cmake -H. -Bcmake-build -GNinja -DENABLE_PDF=OFF -DENABLE_TESTS=ON && cmake --build cmake-build --target all | ||
| - run: >- | ||
| cd cmake-build && | ||
|
|
@@ -126,7 +126,7 @@ jobs: | |
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - run: brew install [email protected] mysql-client unixodbc libpq | ||
| - run: cmake -H. -Bcmake-build -DENABLE_PDF=OFF -DENABLE_TESTS=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/[email protected] -DMYSQL_ROOT_DIR=/usr/local/opt/mysql-client && cmake --build cmake-build --target all | ||
| - run: cmake -H. -Bcmake-build -DENABLE_PDF=OFF -DENABLE_DNSSD=OFF -DENABLE_TESTS=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/[email protected] -DMYSQL_ROOT_DIR=/usr/local/opt/mysql-client && cmake --build cmake-build --target all | ||
| - run: >- | ||
| cd cmake-build && | ||
| sudo -s | ||
|
|
@@ -139,7 +139,7 @@ jobs: | |
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - run: brew install openssl@3 mysql-client unixodbc libpq | ||
| - run: cmake -H. -Bcmake-build -DENABLE_PDF=OFF -DENABLE_TESTS=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl@3 -DMYSQL_ROOT_DIR=/usr/local/opt/mysql-client && cmake --build cmake-build --target all | ||
| - run: cmake -H. -Bcmake-build -DENABLE_PDF=OFF -DENABLE_DNSSD=OFF -DENABLE_TESTS=ON -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl@3 -DMYSQL_ROOT_DIR=/usr/local/opt/mysql-client && cmake --build cmake-build --target all | ||
| - run: >- | ||
| cd cmake-build && | ||
| sudo -s | ||
|
|
@@ -153,7 +153,7 @@ jobs: | |
| CPPUNIT_IGNORE: class CppUnit::TestCaller<class PathTest>.testFind,class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,class CppUnit::TestCaller<class ICMPClientTest>.testPing,class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - run: cmake -S. -Bcmake-build -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA=ON -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON -DCMAKE_CXX_FLAGS="/MP /EHsc" -DCMAKE_C_FLAGS=/MP | ||
| - run: cmake -S. -Bcmake-build -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA=ON -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_DNSSD=OFF -DENABLE_TESTS=ON -DCMAKE_CXX_FLAGS="/MP /EHsc" -DCMAKE_C_FLAGS=/MP | ||
| - run: cmake --build cmake-build --config Release | ||
| - run: >- | ||
| cd cmake-build; | ||
|
|
@@ -197,7 +197,7 @@ jobs: | |
| CPPUNIT_IGNORE: class CppUnit::TestCaller<class PathTest>.testFind,class CppUnit::TestCaller<class ICMPSocketTest>.testSendToReceiveFrom,class CppUnit::TestCaller<class ICMPClientTest>.testPing,class CppUnit::TestCaller<class ICMPClientTest>.testBigPing,class CppUnit::TestCaller<class ICMPSocketTest>.testMTU,class CppUnit::TestCaller<class HTTPSClientSessionTest>.testProxy,class CppUnit::TestCaller<class HTTPSStreamFactoryTest>.testProxy | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - run: cmake -S. -Bcmake-build -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA=ON -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_TESTS=ON -DCMAKE_CXX_FLAGS="/MP /EHsc" -DCMAKE_C_FLAGS=/MP | ||
| - run: cmake -S. -Bcmake-build -DENABLE_NETSSL_WIN=ON -DENABLE_NETSSL=OFF -DENABLE_CRYPTO=OFF -DENABLE_JWT=OFF -DENABLE_DATA=ON -DENABLE_DATA_ODBC=ON -DENABLE_DATA_MYSQL=OFF -DENABLE_DATA_POSTGRESQL=OFF -DENABLE_DNSSD=OFF -DENABLE_TESTS=ON -DCMAKE_CXX_FLAGS="/MP /EHsc" -DCMAKE_C_FLAGS=/MP | ||
| - run: cmake --build cmake-build --config Release | ||
| - run: >- | ||
| cd cmake-build; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,153 @@ | ||
| # Compiled # | ||
soroshsabz marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ############ | ||
| *.com | ||
| *.class | ||
| *.dll | ||
| *.dylib | ||
| *.exe | ||
| *.slo | ||
| *.lo | ||
| *.o | ||
| *.so | ||
| *.lai | ||
| *.la | ||
| *.a | ||
| *.d | ||
| *.vsp | ||
| *.psess | ||
|
|
||
| # Make # | ||
| ######## | ||
| config.build | ||
| config.make | ||
|
|
||
| # CMake # | ||
| ######## | ||
| cmake_install.cmake | ||
| cmake_uninstall.cmake | ||
| CMakeFiles | ||
| CMakeCache.txt | ||
| CPackConfig.cmake | ||
| CPackSourceConfig.cmake | ||
| cmake_* | ||
|
|
||
| # Packages # | ||
| ############ | ||
| # it's better to unpack these files and commit the raw source | ||
| # git has its own built in compression methods | ||
| *.7z | ||
| *.dmg | ||
| *.gz | ||
| *.iso | ||
| *.jar | ||
| *.rar | ||
| *.tar | ||
| *.zip | ||
|
|
||
| # Logs and databases # | ||
| ###################### | ||
| *.log* | ||
| *.sqlite | ||
| *.db | ||
| test*.txt | ||
| XML/testsuite/rss.xml | ||
|
|
||
| # OS generated files # | ||
| ###################### | ||
| .DS_Store | ||
| .DS_Store? | ||
| ._* | ||
| .Spotlight-V100 | ||
| .Trashes | ||
| Icon? | ||
| ehthumbs.db | ||
| Thumbs.db | ||
| *~ | ||
|
|
||
| # VS generated files # | ||
| ###################### | ||
| *.obj | ||
| *.exe | ||
| *.pdb | ||
| *.user | ||
| *.aps | ||
| *.pch | ||
| *.ipch | ||
| *.ncb | ||
| *.suo | ||
| *.sdf | ||
| *.opensdf | ||
| *.opendb | ||
| *.tlb | ||
| *.tlh | ||
| *.ilk | ||
| *.lib | ||
| *.exp | ||
| *.idb | ||
| *.rc | ||
| *.res | ||
| *.manifest | ||
| *.tlog | ||
| *.lastbuildstate | ||
| *.unsuccessfulbuild | ||
| release_shared/ | ||
| debug_shared/ | ||
| release_static/ | ||
| debug_static/ | ||
| release_static_md/ | ||
| debug_static_md/ | ||
| release_static_mt/ | ||
| debug_static_mt/ | ||
| bin/* | ||
| bin64/* | ||
| lib/* | ||
| lib64/* | ||
| pocomsg.h | ||
| */testsuite/bin/* | ||
| Util/testsuite/TestConfiguration/ | ||
|
|
||
| # Eclipse generated files # | ||
| ###################### | ||
| .project | ||
| .cproject | ||
| .settings | ||
| cmake-build/ | ||
|
|
||
| # Temporary files # | ||
| ################### | ||
| *.bak | ||
| CodeGeneration | ||
| RemotingNG | ||
| XSD | ||
| stage/ | ||
| releases/ | ||
| Zip/testsuite/data*.bin | ||
| Foundation/testsuite/globtest/ | ||
| TestConfiguration/ | ||
|
|
||
| # openssl binaries # | ||
| #################### | ||
| openssl/packages/ | ||
|
|
||
| !openssl/Ionic/zip-v1.9/Release/*.dll | ||
| !openssl/Ionic/zlib-v1.9/Release/*.dll | ||
|
|
||
| !openssl/win32/bin/debug/*.dll | ||
| !openssl/win32/bin/debug/*.lib | ||
| !openssl/win32/bin/release/*.dll | ||
| !openssl/win32/bin/release/*.lib | ||
|
|
||
| !openssl/win64/bin/debug/*.dll | ||
| !openssl/win64/bin/debug/*.lib | ||
| !openssl/win64/bin/release/*.dll | ||
| !openssl/win64/bin/release/*.lib | ||
|
|
||
| !openssl/win32/lib/debug/*.lib | ||
| !openssl/win32/lib/debug/*.pdb | ||
| !openssl/win32/lib/release/*.lib | ||
|
|
||
| !openssl/win64/lib/debug/*.lib | ||
| !openssl/win64/lib/debug/*.pdb | ||
| !openssl/win64/lib/release/*.lib | ||
|
|
||
| /Debug | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| set(LIBNAME "DNSSDAvahi") | ||
| set(POCO_LIBNAME "Poco${LIBNAME}") | ||
|
|
||
| # Sources | ||
| file(GLOB SRCS_G "src/*.cpp") | ||
| POCO_SOURCES_AUTO( Avahi_SRCS ${SRCS_G}) | ||
|
|
||
| # Headers | ||
| file(GLOB_RECURSE HDRS_G "include/*.h" ) | ||
| POCO_HEADERS_AUTO( Avahi_SRCS ${HDRS_G}) | ||
|
|
||
| add_definitions( ${Avahi_CFLAGS} -DTHREADSAFE) | ||
|
|
||
| add_library( "${LIBNAME}" ${LIB_MODE} ${Avahi_SRCS} ) | ||
| add_library( "${POCO_LIBNAME}" ALIAS "${LIBNAME}") | ||
| set_target_properties( "${LIBNAME}" | ||
| PROPERTIES | ||
| VERSION ${SHARED_LIBRARY_VERSION} SOVERSION ${SHARED_LIBRARY_VERSION} | ||
| OUTPUT_NAME ${POCO_LIBNAME} | ||
| DEFINE_SYMBOL Avahi_EXPORTS | ||
| ) | ||
|
|
||
| target_link_libraries( "${LIBNAME}" Foundation Net DNSSD ${AVAHI_LIBRARIES}) | ||
| target_include_directories( "${LIBNAME}" | ||
| PUBLIC | ||
| $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> | ||
| $<INSTALL_INTERFACE:include> | ||
| PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src | ||
| ) | ||
| target_compile_definitions("${LIBNAME}" PUBLIC ${LIB_MODE_DEFINITIONS}) | ||
|
|
||
| POCO_INSTALL("${LIBNAME}") | ||
| POCO_GENERATE_PACKAGE("${LIBNAME}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # | ||
| # Makefile | ||
| # | ||
| # $Id: //poco/1.7/DNSSD/Avahi/Makefile#1 $ | ||
| # | ||
| # Makefile for Poco DNSSD Avahi | ||
| # | ||
|
|
||
| include $(POCO_BASE)/build/rules/global | ||
|
|
||
| SYSLIBS += -lavahi-common -lavahi-client | ||
|
|
||
| objects = \ | ||
| AvahiResponderImpl AvahiBrowserImpl | ||
|
|
||
| target = PocoDNSSDAvahi | ||
| target_version = 1 | ||
| target_libs = PocoNet PocoDNSSD PocoFoundation | ||
|
|
||
| include $(POCO_BASE)/build/rules/lib | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| include(CMakeFindDependencyMacro) | ||
| find_dependency(PocoFoundation) | ||
| find_dependency(PocoNet) | ||
| find_dependency(PocoDNSSD) | ||
| include("${CMAKE_CURRENT_LIST_DIR}/PocoDNSSDAvahiTargets.cmake") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Foundation | ||
| Net | ||
| DNSSD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| // | ||
| // Avahi.h | ||
| // | ||
| // $Id: //poco/1.7/DNSSD/Avahi/include/Poco/DNSSD/Avahi/Avahi.h#1 $ | ||
| // | ||
| // Library: DNSSD/Avahi | ||
| // Package: Implementation | ||
| // Module: Avahi | ||
| // | ||
| // Basic definitions for the Poco DNSSD Avahi library. | ||
| // This file must be the first file included by every other DNSSD Avahi | ||
| // header file. | ||
| // | ||
| // Copyright (c) 2006-2016, Applied Informatics Software Engineering GmbH. | ||
| // All rights reserved. | ||
| // | ||
| // SPDX-License-Identifier: BSL-1.0 | ||
| // | ||
|
|
||
|
|
||
| #ifndef DNSSD_Avahi_Avahi_INCLUDED | ||
| #define DNSSD_Avahi_Avahi_INCLUDED | ||
|
|
||
|
|
||
| #include "Poco/DNSSD/DNSSD.h" | ||
|
|
||
|
|
||
| // | ||
| // The following block is the standard way of creating macros which make exporting | ||
| // from a DLL simpler. All files within this DLL are compiled with the Avahi_EXPORTS | ||
| // symbol defined on the command line. This symbol should not be defined on any project | ||
| // that uses this DLL. This way any other project whose source files include this file see | ||
| // POCO_DNSSD_Avahi_API functions as being imported from a DLL, wheras this DLL sees symbols | ||
| // defined with this macro as being exported. | ||
| // | ||
| #if defined(_WIN32) && defined(POCO_DLL) | ||
| #if defined(Avahi_EXPORTS) | ||
| #define POCO_DNSSD_Avahi_API __declspec(dllexport) | ||
| #else | ||
| #define POCO_DNSSD_Avahi_API __declspec(dllimport) | ||
| #endif | ||
| #endif | ||
|
|
||
|
|
||
| #if !defined(POCO_DNSSD_Avahi_API) | ||
| #define POCO_DNSSD_Avahi_API | ||
| #endif | ||
|
|
||
|
|
||
| #if defined(_MSC_VER) | ||
| #if !defined(POCO_NO_AUTOMATIC_LIBS) && !defined(Avahi_EXPORTS) | ||
| #pragma comment(lib, "PocoDNSSDAvahi" POCO_LIB_SUFFIX) | ||
| #endif | ||
| #endif | ||
|
|
||
|
|
||
| namespace Poco { | ||
| namespace DNSSD { | ||
|
|
||
|
|
||
| void POCO_DNSSD_Avahi_API initializeDNSSD(); | ||
| /// Initialize the DNSSD subsystem. | ||
|
|
||
|
|
||
| void POCO_DNSSD_Avahi_API uninitializeDNSSD(); | ||
| /// Uninitialize the DNSSD subsystem. | ||
|
|
||
|
|
||
| } } // namespace Poco::DNSSD | ||
|
|
||
|
|
||
| #endif // DNSSD_Avahi_Avahi_INCLUDED |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.