Skip to content

Commit

Permalink
Add USE_LOG_CALLBACK to Makefiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
KGronek-Pubnub committed Jan 13, 2025
1 parent cb1d302 commit 7f26ea8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion make/common/preprocessing_defaults.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,7 @@ DEFAULT_USE_REVOKE_TOKEN = 0
DEFAULT_USE_SUBSCRIBE_EVENT_ENGINE = 0

# Whether subscribe v2 feature should be enabled or not.
DEFAULT_USE_SUBSCRIBE_V2 = 1
DEFAULT_USE_SUBSCRIBE_V2 = 1

# Whether user defined callback for logging should be enabled or not.
DEFAULT_USE_LOG_CALLBACK = 0
3 changes: 3 additions & 0 deletions make/posix_preprocessing.mk
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ USE_SUBSCRIBE_EVENT_ENGINE ?= $(DEFAULT_USE_SUBSCRIBE_EVENT_ENGINE)
# Whether subscribe v2 feature should be enabled or not.
USE_SUBSCRIBE_V2 ?= $(DEFAULT_USE_SUBSCRIBE_V2)

# Whether user defined callback for logging should be enabled or not.
USE_LOG_CALLBACK ?= $(DEFAULT_USE_LOG_CALLBACK)

# Additional user-provided compiler flags (C/C++).
USER_C_FLAGS ?=
USER_CXX_FLAGS ?=
Expand Down
5 changes: 5 additions & 0 deletions make/windows_preprocessing.mk
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,11 @@ USE_SUBSCRIBE_EVENT_ENGINE = $(DEFAULT_USE_SUBSCRIBE_EVENT_ENGINE)
USE_SUBSCRIBE_V2 = $(DEFAULT_USE_SUBSCRIBE_V2)
!endif

# Whether user defined callback for logging should be enabled or not.
!ifndef USE_LOG_CALLBACK
USE_LOG_CALLBACK = $(DEFAULT_USE_LOG_CALLBACK)
!endif

# Additional user-provided compiler flags (C/C++).
!ifndef USER_C_FLAGS
USER_C_FLAGS =
Expand Down

0 comments on commit 7f26ea8

Please sign in to comment.