@@ -473,8 +473,13 @@ all::
473
473
#
474
474
# If your platform supports a built-in fsmonitor backend, set
475
475
# FSMONITOR_DAEMON_BACKEND to the "<name>" of the corresponding
476
- # `compat/fsmonitor/fsmonitor-fs-listen-<name>.c` that implements the
477
- # `fsmonitor_fs_listen__*()` routines.
476
+ # `compat/fsmonitor/fsm-listen-<name>.c` that implements the
477
+ # `fsm_listen__*()` routines.
478
+ #
479
+ # If your platform has os-specific ways to tell if a repo is incompatible with
480
+ # fsmonitor (whether the hook or ipc daemon version), set FSMONITOR_OS_SETTINGS
481
+ # to the "<name>" of the corresponding `compat/fsmonitor/fsm-settings-<name>.c`
482
+ # that implements the `fsm_os_settings__*()` routines.
478
483
#
479
484
# Define DEVELOPER to enable more compiler warnings. Compiler version
480
485
# and family are auto detected, but could be overridden by defining
@@ -909,6 +914,7 @@ LIB_OBJS += fmt-merge-msg.o
909
914
LIB_OBJS += fsck.o
910
915
LIB_OBJS += fsmonitor.o
911
916
LIB_OBJS += fsmonitor-ipc.o
917
+ LIB_OBJS += fsmonitor-settings.o
912
918
LIB_OBJS += gettext.o
913
919
LIB_OBJS += gpg-interface.o
914
920
LIB_OBJS += graph.o
@@ -1946,7 +1952,12 @@ endif
1946
1952
1947
1953
ifdef FSMONITOR_DAEMON_BACKEND
1948
1954
COMPAT_CFLAGS += -DHAVE_FSMONITOR_DAEMON_BACKEND
1949
- COMPAT_OBJS += compat/fsmonitor/fsmonitor-fs-listen-$(FSMONITOR_DAEMON_BACKEND).o
1955
+ COMPAT_OBJS += compat/fsmonitor/fsm-listen-$(FSMONITOR_DAEMON_BACKEND).o
1956
+ endif
1957
+
1958
+ ifdef FSMONITOR_OS_SETTINGS
1959
+ COMPAT_CFLAGS += -DHAVE_FSMONITOR_OS_SETTINGS
1960
+ COMPAT_OBJS += compat/fsmonitor/fsm-settings-$(FSMONITOR_OS_SETTINGS).o
1950
1961
endif
1951
1962
1952
1963
ifeq ($(TCLTK_PATH ) ,)
@@ -2833,6 +2844,9 @@ GIT-BUILD-OPTIONS: FORCE
2833
2844
ifdef FSMONITOR_DAEMON_BACKEND
2834
2845
@echo FSMONITOR_DAEMON_BACKEND=\''$(subst ','\'',$(subst ','\'',$(FSMONITOR_DAEMON_BACKEND)))'\' >>$@+
2835
2846
endif
2847
+ ifdef FSMONITOR_OS_SETTINGS
2848
+ @echo FSMONITOR_OS_SETTINGS=\''$(subst ','\'',$(subst ','\'',$(FSMONITOR_OS_SETTINGS)))'\' >>$@+
2849
+ endif
2836
2850
ifdef TEST_OUTPUT_DIRECTORY
2837
2851
@echo TEST_OUTPUT_DIRECTORY=\''$(subst ','\'',$(subst ','\'',$(TEST_OUTPUT_DIRECTORY)))'\' >>$@+
2838
2852
endif
0 commit comments