Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
c0b9339d
Commit
c0b9339d
authored
Feb 22, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zeroconf/AvahiPoll: move to lib/avahi/
parent
00a17310
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
14 deletions
+32
-14
ZeroconfAvahi.cxx
src/zeroconf/ZeroconfAvahi.cxx
+1
-1
Poll.cxx
src/zeroconf/avahi/Poll.cxx
+1
-1
Poll.hxx
src/zeroconf/avahi/Poll.hxx
+0
-0
meson.build
src/zeroconf/avahi/meson.build
+21
-0
meson.build
src/zeroconf/meson.build
+8
-11
meson.build
test/meson.build
+1
-1
No files found.
src/zeroconf/ZeroconfAvahi.cxx
View file @
c0b9339d
...
...
@@ -18,7 +18,7 @@
*/
#include "ZeroconfAvahi.hxx"
#include "
Avahi
Poll.hxx"
#include "
avahi/
Poll.hxx"
#include "ZeroconfInternal.hxx"
#include "Listen.hxx"
#include "util/Domain.hxx"
...
...
src/zeroconf/
Avahi
Poll.cxx
→
src/zeroconf/
avahi/
Poll.cxx
View file @
c0b9339d
...
...
@@ -17,7 +17,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "
Avahi
Poll.hxx"
#include "Poll.hxx"
#include "event/SocketEvent.hxx"
#include "event/CoarseTimerEvent.hxx"
#include "time/Convert.hxx"
...
...
src/zeroconf/
Avahi
Poll.hxx
→
src/zeroconf/
avahi/
Poll.hxx
View file @
c0b9339d
File moved
src/zeroconf/avahi/meson.build
0 → 100644
View file @
c0b9339d
libavahi_client = dependency('avahi-client', required: get_option('zeroconf') == 'avahi')
if not libavahi_client.found()
avahi_dep = dependency('', required: false)
subdir_done()
endif
avahi = static_library(
'avahi',
'Poll.cxx',
include_directories: inc,
dependencies: [
libavahi_client,
],
)
avahi_dep = declare_dependency(
link_with: avahi,
dependencies: [
event_dep,
],
)
src/zeroconf/meson.build
View file @
c0b9339d
zeroconf_option = get_option('zeroconf')
libavahi_client
_dep = dependency('', required: false)
avahi
_dep = dependency('', required: false)
if zeroconf_option == 'auto'
if is_darwin
...
...
@@ -8,12 +8,7 @@ if zeroconf_option == 'auto'
elif is_android or is_windows
zeroconf_option = 'disabled'
elif dbus_dep.found()
libavahi_client_dep = dependency('avahi-client', required: false)
if libavahi_client_dep.found()
zeroconf_option = 'avahi'
else
zeroconf_option = 'disabled'
endif
zeroconf_option = 'avahi'
else
zeroconf_option = 'disabled'
endif
...
...
@@ -50,8 +45,11 @@ if zeroconf_option == 'bonjour'
dependencies: bonjour_deps,
)
else
if not libavahi_client_dep.found()
libavahi_client_dep = dependency('avahi-client')
subdir('avahi')
if not avahi_dep.found()
zeroconf_dep = dependency('', required: false)
subdir_done()
endif
conf.set('HAVE_AVAHI', true)
...
...
@@ -60,10 +58,9 @@ else
'zeroconf_bonjour',
'ZeroconfGlue.cxx',
'ZeroconfAvahi.cxx',
'AvahiPoll.cxx',
include_directories: inc,
dependencies: [
libavahi_client
_dep,
avahi
_dep,
dbus_dep,
time_dep,
log_dep,
...
...
test/meson.build
View file @
c0b9339d
...
...
@@ -105,7 +105,7 @@ test('TestIcu', executable(
],
))
if
libavahi_client
_dep.found()
if
avahi
_dep.found()
executable(
'run_avahi',
'run_avahi.cxx',
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment