mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
New features: * Smart Audio Source Switching. * Fast Pair for BLE-only devices. * Two byte salt size for improved security. Other changes: * Added optional encryption modules based on mbedtls. * Fixed build issues. * More verbose and readable logs.
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# Use MBEDTLS for test SSL implementation instead of OPENSSL
|
|
# Compiles in mbedtls implementation of a number of functions in se.h
|
|
NEARBY_PLATFORM_USE_MBEDTLS ?= 0
|
|
# Use the hardware SE to generate the secp256r1 secret. Alternatively, generate
|
|
# the secret in software.
|
|
NEARBY_PLATFORM_HAS_SE ?= 1
|
|
|
|
CFLAGS_EXTRA ?=
|
|
CFLAGS += -g \
|
|
-MD \
|
|
-Werror \
|
|
-Wno-deprecated-declarations \
|
|
-DARCH_GLINUX \
|
|
-fsanitize=address \
|
|
-fno-omit-frame-pointer \
|
|
-DARCH_GLINUX \
|
|
-DNEARBY_ALL_MODULE_DEBUG \
|
|
-DNEARBY_UNIT_TEST_ENABLED \
|
|
$(CFLAGS_EXTRA)
|
|
|
|
NEARBY_TRACE_LEVEL = VERBOSE
|
|
|
|
ifeq ($(OPTIMIZED_BUILD),1)
|
|
CFLAGS += -O2
|
|
else
|
|
CFLAGS += -O0
|
|
endif
|
|
|
|
ifeq ($(NEARBY_PLATFORM_USE_MBEDTLS),1)
|
|
CFLAGS += -DNEARBY_PLATFORM_USE_MBEDTLS
|
|
endif
|
|
|
|
ifeq ($(NEARBY_PLATFORM_HAS_SE),1)
|
|
CFLAGS += -DNEARBY_PLATFORM_HAS_SE
|
|
endif
|
|
|
|
TEST_INCLUDES = \
|
|
-I$(GTEST_DIR)/include -I$(GTEST_DIR) \
|
|
-I$(GMOCK_DIR)/include -I$(GMOCK_DIR) \
|
|
$(CLIENT_INCLUDES) \
|
|
-Iclient/tests/ \
|
|
-Iclient/tests/$(ARCH)/ \
|
|
-Iclient/tests/mocks/
|
|
|
|
ifeq ($(NEARBY_PLATFORM_USE_MBEDTLS),1)
|
|
TEST_INCLUDES += -I$(MBEDTLS_DIR)/include
|
|
endif |