Skip to content

Commit f889992

Browse files
authored
Enable Snappy compression support in LevelDb in cmake builds (#885)
1 parent 8e37ccc commit f889992

File tree

8 files changed

+864
-6
lines changed

8 files changed

+864
-6
lines changed

build_scripts/desktop/package.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ readonly deps_hidden_firebase_app="
193193
*/boringssl-build/crypto/${subdir}${prefix}crypto.${ext}
194194
*/boringssl-build/ssl/${subdir}${prefix}ssl.${ext}
195195
*/firestore-build/*/leveldb-build*/${prefix}*.${ext}
196+
*/firestore-build/*/snappy-build*/${prefix}*.${ext}
196197
*/firestore-build/*/nanopb-build*/${prefix}*.${ext}
197198
"
198199
readonly deps_hidden_firebase_database="
@@ -227,7 +228,7 @@ readonly -a rename_namespaces=(flatbuffers flexbuffers reflection ZLib bssl uWS
227228
grpc_ssl_server_credentials grpc_tls_credential_reload_config
228229
grpc_tls_server_authorization_check_config GrpcUdpListener leveldb
229230
leveldb_filterpolicy_create_bloom leveldb_writebatch_iterate strings
230-
TlsCredentials TlsServerCredentials tsi)
231+
TlsCredentials TlsServerCredentials tsi snappy)
231232

232233
# String to prepend to all hidden symbols.
233234
readonly rename_string=f_b_

cmake/external/firestore.cmake

+2
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ function(GetReleasedDep version)
3232
BUILD_COMMAND ""
3333
INSTALL_COMMAND ""
3434
TEST_COMMAND ""
35+
PATCH_COMMAND patch -Np1 -i ${CMAKE_CURRENT_LIST_DIR}/firestore_snappy.patch.txt
3536
HTTP_HEADER "${EXTERNAL_PROJECT_HTTP_HEADER}"
3637
)
3738
endfunction()
@@ -52,6 +53,7 @@ function(GetTag t)
5253
BUILD_COMMAND ""
5354
INSTALL_COMMAND ""
5455
TEST_COMMAND ""
56+
PATCH_COMMAND patch -Np1 -i ${CMAKE_CURRENT_LIST_DIR}/firestore_snappy.patch.txt
5557
HTTP_HEADER "${EXTERNAL_PROJECT_HTTP_HEADER}"
5658
)
5759
endfunction()

0 commit comments

Comments
 (0)