3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 06:29:23 +01:00

build: Move plugin conditionals closer to the daemon sources

This commit is contained in:
Marcel Holtmann 2018-09-14 13:44:40 +02:00
parent a01bbcfc19
commit f2d4b9afbd
2 changed files with 11 additions and 10 deletions

View File

@ -119,6 +119,16 @@ src_iwd_SOURCES = src/main.c linux/nl80211.h \
src_iwd_LDADD = ell/libell-internal.la -ldl src_iwd_LDADD = ell/libell-internal.la -ldl
src_iwd_DEPENDENCIES = ell/libell-internal.la src_iwd_DEPENDENCIES = ell/libell-internal.la
if SIM_HARDCODED
builtin_modules += sim_hardcoded
builtin_sources += plugins/sim_hardcoded.c
endif
if OFONO
builtin_modules += ofono
builtin_sources += plugins/ofono.c
endif
if SYSTEMD_SERVICE if SYSTEMD_SERVICE
src_iwd_DEPENDENCIES += src/iwd.service src_iwd_DEPENDENCIES += src/iwd.service
@ -181,15 +191,6 @@ noinst_PROGRAMS += tools/test-runner
tools_test_runner_SOURCES = tools/test-runner.c tools_test_runner_SOURCES = tools/test-runner.c
tools_test_runner_LDADD = ell/libell-internal.la tools_test_runner_LDADD = ell/libell-internal.la
if SIM_HARDCODED
builtin_modules += sim_hardcoded
builtin_sources += plugins/sim_hardcoded.c
endif
if OFONO
builtin_modules += ofono
builtin_sources += plugins/ofono.c
endif endif
unit_tests = unit/test-cmac-aes \ unit_tests = unit/test-cmac-aes \

View File

@ -9,7 +9,7 @@ fi
--enable-debug \ --enable-debug \
--prefix=/usr \ --prefix=/usr \
--localstatedir=/var \ --localstatedir=/var \
--enable-ofono \
--enable-sim-hardcoded \ --enable-sim-hardcoded \
--enable-ofono \
--disable-dbus-policy \ --disable-dbus-policy \
--disable-systemd-service $* --disable-systemd-service $*