Skip to content

Commit f1e40b7

Browse files
committed
Add libsecret dependency to the closed source build
Also removing invites PiperOrigin-RevId: 246436759
1 parent 2af7dc2 commit f1e40b7

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

release_build_files/CMakeLists.txt

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,26 @@ add_firebase_target(firebase_database)
7575
add_firebase_target(firebase_dynamic_links)
7676
add_firebase_target(firebase_functions)
7777
add_firebase_target(firebase_instance_id)
78-
add_firebase_target(firebase_invites)
7978
add_firebase_target(firebase_messaging)
8079
add_firebase_target(firebase_remote_config)
8180
add_firebase_target(firebase_storage)
81+
82+
# Auth on Linux desktop has an additional dependency on libsecret,
83+
# which needs to be added. If it cannot be found, we don't want to
84+
# error, since the user might not be using auth, and the user will
85+
# get a linker error if it is needed.
86+
if(NOT APPLE AND UNIX)
87+
pkg_check_modules(LIBSECRET libsecret-1)
88+
89+
if(NOT LIBSECRET_FOUND)
90+
message(WARNING "Unable to find libsecret, which is needed by \
91+
Authentication's desktop implementation. \
92+
It can be installed on supported systems via: \
93+
apt-get install libsecret-1-dev")
94+
else()
95+
set_target_properties(firebase_auth PROPERTIES
96+
INTERFACE_INCLUDE_DIRECTORIES "${LIBSECRET_INCLUDE_DIRS}"
97+
INTERFACE_LINK_LIBRARIES "${LIBSECRET_LIBRARIES}"
98+
)
99+
endif()
100+
endif()

0 commit comments

Comments
 (0)