aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Protos/CMakeLists.txt
blob: de33491a599da05051c0d1dd334706ab16aa9b7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
cc_library(
  firebase_firestore_protos_nanopb
  SOURCES
    nanopb/firestore/local/maybe_document.pb.c
    nanopb/firestore/local/maybe_document.pb.h
    nanopb/firestore/local/mutation.pb.c
    nanopb/firestore/local/mutation.pb.h
    nanopb/firestore/local/target.pb.c
    nanopb/firestore/local/target.pb.h
    nanopb/google/api/annotations.pb.c
    nanopb/google/api/annotations.pb.h
    nanopb/google/api/http.pb.c
    nanopb/google/api/http.pb.h
    nanopb/google/firestore/v1beta1/common.pb.c
    nanopb/google/firestore/v1beta1/common.pb.h
    nanopb/google/firestore/v1beta1/document.pb.c
    nanopb/google/firestore/v1beta1/document.pb.h
    nanopb/google/firestore/v1beta1/firestore.pb.c
    nanopb/google/firestore/v1beta1/firestore.pb.h
    nanopb/google/firestore/v1beta1/query.pb.c
    nanopb/google/firestore/v1beta1/query.pb.h
    nanopb/google/firestore/v1beta1/write.pb.c
    nanopb/google/firestore/v1beta1/write.pb.h
    nanopb/google/protobuf/any.pb.c
    nanopb/google/protobuf/any.pb.h
    nanopb/google/protobuf/empty.pb.c
    nanopb/google/protobuf/empty.pb.h
    nanopb/google/protobuf/struct.pb.c
    nanopb/google/protobuf/struct.pb.h
    nanopb/google/protobuf/timestamp.pb.c
    nanopb/google/protobuf/timestamp.pb.h
    nanopb/google/protobuf/wrappers.pb.c
    nanopb/google/protobuf/wrappers.pb.h
    nanopb/google/rpc/status.pb.c
    nanopb/google/rpc/status.pb.h
    nanopb/google/type/latlng.pb.c
    nanopb/google/type/latlng.pb.h
  DEPENDS
    nanopb
)

target_compile_definitions(
  firebase_firestore_protos_nanopb PUBLIC
    -DPB_FIELD_16BIT
)

# TODO(rsgowman): this may be worth moving into cc_library, possibly via an
# INCLUDE_DIRS or similar.
target_include_directories(
  firebase_firestore_protos_nanopb PUBLIC
    ${FIREBASE_SOURCE_DIR}/Firestore/Protos/nanopb
)