diff options
author | Max Kellermann <max@musicpd.org> | 2020-01-18 19:45:56 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-01-18 19:56:16 +0100 |
commit | 75518672498504872322ad8b6a4abb564e298dd8 (patch) | |
tree | 969a92c8b2ae4317c43f5800ecca90a8079a9afe /src | |
parent | bdd316749514c353d7d46812f60c8dfa46b97f13 (diff) |
meson.build: move Log.cxx and LogBackend.cxx into a static library
Prevents compiling those sources many times, once for each debug
program using it.
Diffstat (limited to 'src')
-rw-r--r-- | src/config/meson.build | 3 | ||||
-rw-r--r-- | src/db/meson.build | 1 | ||||
-rw-r--r-- | src/decoder/meson.build | 3 | ||||
-rw-r--r-- | src/event/meson.build | 1 | ||||
-rw-r--r-- | src/fs/meson.build | 1 | ||||
-rw-r--r-- | src/input/plugins/meson.build | 1 | ||||
-rw-r--r-- | src/lib/curl/meson.build | 1 | ||||
-rw-r--r-- | src/output/plugins/meson.build | 1 | ||||
-rw-r--r-- | src/zeroconf/meson.build | 2 |
9 files changed, 14 insertions, 0 deletions
diff --git a/src/config/meson.build b/src/config/meson.build index 21a2068b2..a07d98663 100644 --- a/src/config/meson.build +++ b/src/config/meson.build @@ -12,6 +12,9 @@ config = static_library( 'Domain.cxx', 'Net.cxx', include_directories: inc, + dependencies: [ + log_dep, + ], ) config_dep = declare_dependency( diff --git a/src/db/meson.build b/src/db/meson.build index 73f8bdc57..2a0c8a5bd 100644 --- a/src/db/meson.build +++ b/src/db/meson.build @@ -54,6 +54,7 @@ db_glue = static_library( include_directories: inc, dependencies: [ boost_dep, + log_dep, ], ) diff --git a/src/decoder/meson.build b/src/decoder/meson.build index 39aecbb91..072240cd0 100644 --- a/src/decoder/meson.build +++ b/src/decoder/meson.build @@ -5,6 +5,9 @@ decoder_api = static_library( 'DecoderBuffer.cxx', 'DecoderPlugin.cxx', include_directories: inc, + dependencies: [ + log_dep, + ], ) decoder_api_dep = declare_dependency( diff --git a/src/event/meson.build b/src/event/meson.build index bc13bbcd2..268734f5a 100644 --- a/src/event/meson.build +++ b/src/event/meson.build @@ -18,6 +18,7 @@ event = static_library( include_directories: inc, dependencies: [ boost_dep, + log_dep, ], ) diff --git a/src/fs/meson.build b/src/fs/meson.build index 8e49728cd..daf14a201 100644 --- a/src/fs/meson.build +++ b/src/fs/meson.build @@ -40,6 +40,7 @@ fs = static_library( include_directories: inc, dependencies: [ zlib_dep, + log_dep, ], ) diff --git a/src/input/plugins/meson.build b/src/input/plugins/meson.build index 77db192e3..95b9c6af5 100644 --- a/src/input/plugins/meson.build +++ b/src/input/plugins/meson.build @@ -85,6 +85,7 @@ input_plugins = static_library( input_plugins_sources, include_directories: inc, dependencies: [ + log_dep, alsa_dep, curl_dep, ffmpeg_dep, diff --git a/src/lib/curl/meson.build b/src/lib/curl/meson.build index 2b38957b4..08afd659b 100644 --- a/src/lib/curl/meson.build +++ b/src/lib/curl/meson.build @@ -15,6 +15,7 @@ curl = static_library( 'Form.cxx', include_directories: inc, dependencies: [ + log_dep, curl_dep, ], ) diff --git a/src/output/plugins/meson.build b/src/output/plugins/meson.build index bdfd47130..bb45576e3 100644 --- a/src/output/plugins/meson.build +++ b/src/output/plugins/meson.build @@ -6,6 +6,7 @@ output_plugins_deps = [ output_api_dep, config_dep, tag_dep, + log_dep, ] need_encoder = false diff --git a/src/zeroconf/meson.build b/src/zeroconf/meson.build index c2853b344..e1ca38e24 100644 --- a/src/zeroconf/meson.build +++ b/src/zeroconf/meson.build @@ -49,6 +49,7 @@ if zeroconf_option == 'bonjour' link_with: zeroconf, dependencies: [ bonjour_dep, + log_dep, ], ) else @@ -68,6 +69,7 @@ else libavahi_client_dep, dbus_dep, time_dep, + log_dep, ], ) |