Skip to content

Commit 53d3ca1

Browse files
authored
CMake: Upgrade nanopb to 0.3.9.2 (#2985)
* Update nanopb to 0.3.9.2 This matches google3, even though 0.3.9.3 is out * Regenerate protos with nanopb 0.3.9.2
1 parent 3177d8d commit 53d3ca1

40 files changed

+52
-50
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,12 +202,12 @@ set(nanopb_MSVC_STATIC_RUNTIME OFF CACHE BOOL "Link static runtime libraries")
202202
add_external_subdirectory(nanopb)
203203

204204
target_compile_definitions(
205-
protobuf-nanopb
205+
protobuf-nanopb-static
206206
PUBLIC -DPB_FIELD_32BIT -DPB_ENABLE_MALLOC
207207
)
208208

209209
target_include_directories(
210-
protobuf-nanopb
210+
protobuf-nanopb-static
211211
INTERFACE $<BUILD_INTERFACE:${FIREBASE_EXTERNAL_SOURCE_DIR}/nanopb>
212212
)
213213

Firestore/Protos/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ cc_library(
144144
SOURCES
145145
${NANOPB_GENERATED_SOURCES}
146146
DEPENDS
147-
protobuf-nanopb
147+
protobuf-nanopb-static
148148
)
149149

150150
target_include_directories(

Firestore/Protos/nanopb/firestore/local/maybe_document.nanopb.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
/* Automatically generated nanopb constant definitions */
18-
/* Generated by nanopb-0.3.9.1 */
18+
/* Generated by nanopb-0.3.9.2 */
1919

2020
#include "maybe_document.nanopb.h"
2121

Firestore/Protos/nanopb/firestore/local/maybe_document.nanopb.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
/* Automatically generated nanopb header */
18-
/* Generated by nanopb-0.3.9.1 */
18+
/* Generated by nanopb-0.3.9.2 */
1919

2020
#ifndef PB_FIRESTORE_CLIENT_MAYBE_DOCUMENT_NANOPB_H_INCLUDED
2121
#define PB_FIRESTORE_CLIENT_MAYBE_DOCUMENT_NANOPB_H_INCLUDED
@@ -86,7 +86,7 @@ extern const pb_field_t firestore_client_MaybeDocument_fields[5];
8686
/* Maximum encoded size of messages (where known) */
8787
/* firestore_client_NoDocument_size depends on runtime parameters */
8888
/* firestore_client_UnknownDocument_size depends on runtime parameters */
89-
#define firestore_client_MaybeDocument_size (2 + (((firestore_client_NoDocument_size > firestore_client_UnknownDocument_size ? firestore_client_NoDocument_size : firestore_client_UnknownDocument_size) > google_firestore_v1_Document_size ? (firestore_client_NoDocument_size > firestore_client_UnknownDocument_size ? firestore_client_NoDocument_size : firestore_client_UnknownDocument_size) : google_firestore_v1_Document_size) > 0 ? ((firestore_client_NoDocument_size > firestore_client_UnknownDocument_size ? firestore_client_NoDocument_size : firestore_client_UnknownDocument_size) > google_firestore_v1_Document_size ? (firestore_client_NoDocument_size > firestore_client_UnknownDocument_size ? firestore_client_NoDocument_size : firestore_client_UnknownDocument_size) : google_firestore_v1_Document_size) : 0))
89+
/* firestore_client_MaybeDocument_size depends on runtime parameters */
9090

9191
/* Message IDs (where set with "msgid" option) */
9292
#ifdef PB_MSGID

Firestore/Protos/nanopb/firestore/local/mutation.nanopb.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
/* Automatically generated nanopb constant definitions */
18-
/* Generated by nanopb-0.3.9.1 */
18+
/* Generated by nanopb-0.3.9.2 */
1919

2020
#include "mutation.nanopb.h"
2121

Firestore/Protos/nanopb/firestore/local/mutation.nanopb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
/* Automatically generated nanopb header */
18-
/* Generated by nanopb-0.3.9.1 */
18+
/* Generated by nanopb-0.3.9.2 */
1919

2020
#ifndef PB_FIRESTORE_CLIENT_MUTATION_NANOPB_H_INCLUDED
2121
#define PB_FIRESTORE_CLIENT_MUTATION_NANOPB_H_INCLUDED

Firestore/Protos/nanopb/firestore/local/target.nanopb.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
/* Automatically generated nanopb constant definitions */
18-
/* Generated by nanopb-0.3.9.1 */
18+
/* Generated by nanopb-0.3.9.2 */
1919

2020
#include "target.nanopb.h"
2121

Firestore/Protos/nanopb/firestore/local/target.nanopb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
/* Automatically generated nanopb header */
18-
/* Generated by nanopb-0.3.9.1 */
18+
/* Generated by nanopb-0.3.9.2 */
1919

2020
#ifndef PB_FIRESTORE_CLIENT_TARGET_NANOPB_H_INCLUDED
2121
#define PB_FIRESTORE_CLIENT_TARGET_NANOPB_H_INCLUDED

Firestore/Protos/nanopb/google/api/annotations.nanopb.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
/* Automatically generated nanopb constant definitions */
18-
/* Generated by nanopb-0.3.9.1 */
18+
/* Generated by nanopb-0.3.9.2 */
1919

2020
#include "annotations.nanopb.h"
2121

Firestore/Protos/nanopb/google/api/annotations.nanopb.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*/
1616

1717
/* Automatically generated nanopb header */
18-
/* Generated by nanopb-0.3.9.1 */
18+
/* Generated by nanopb-0.3.9.2 */
1919

2020
#ifndef PB_GOOGLE_API_ANNOTATIONS_NANOPB_H_INCLUDED
2121
#define PB_GOOGLE_API_ANNOTATIONS_NANOPB_H_INCLUDED

0 commit comments

Comments
 (0)