-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
meta.yaml
150 lines (143 loc) · 5.67 KB
/
meta.yaml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{% set version = "2.10.1" %}
package:
name: google-cloud-cpp-split
version: {{ version }}
source:
url: https://github.com/googleapis/google-cloud-cpp/archive/v{{ version }}.tar.gz
sha256: dbd8ff9cdda8b991049094c41d9125438098422658c77dc1afab524c589efeda
patches:
# Several libraries do not compile under Conda. Depending on the platform
# and compiler, they need a newer version of Protobuf. That is, they
# compile with older versions of Protobuf on some combinations of platform,
# combpiler, and C++ standard library. For more information, see:
# https://github.com/googleapis/google-cloud-cpp/issues/8125
# https://github.com/googleapis/google-cloud-cpp/issues/8145
# https://github.com/googleapis/google-cloud-cpp/issues/8785
- patches/0001-disable-libraries.patch
build:
number: 1
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- cmake
- ninja
- libgrpc
- libprotobuf
host:
- libabseil
- libcrc32c
- libcurl
- libgrpc
- libprotobuf
- openssl
- nlohmann_json
- zlib
outputs:
- name: libgoogle-cloud
script: build-libgoogle-cloud.sh # [unix]
script: build-libgoogle-cloud.bat # [win]
build:
run_exports:
- {{ pin_subpackage("libgoogle-cloud", max_pin="x.x.x") }}
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- cmake
- ninja
- libgrpc
- libprotobuf
host:
- libabseil
- libcrc32c
- libcurl
- libgrpc
- libprotobuf
- openssl
- nlohmann_json
run_constrained:
- google-cloud-cpp {{ version }} *_{{ PKG_BUILDNUM }}
test:
commands:
- test -f $PREFIX/lib/libgoogle_cloud_cpp_storage.{{ version }}.dylib # [osx]
- test -f $PREFIX/lib/libgoogle_cloud_cpp_storage.so.{{ version }} # [linux]
- test ! -f $PREFIX/lib/pkgconfig/google_cloud_cpp_storage.pc # [not win]
- test ! -f $PREFIX/lib/cmake/google_cloud_cpp_storage/google_cloud_cpp_storage-config.cmake # [not win]
- test ! -f $PREFIX/include/google/cloud/storage/version.h # [not win]
- test -f $PREFIX/lib/libgoogle_cloud_cpp_bigtable.{{ version }}.dylib # [osx]
- test -f $PREFIX/lib/libgoogle_cloud_cpp_bigtable.so.{{ version }} # [linux]
- test ! -f $PREFIX/lib/cmake/google_cloud_cpp_bigtable/google_cloud_cpp_bigtable-config.cmake # [not win]
- test ! -f $PREFIX/include/google/cloud/bigtable/version.h # [not win]
# Currently, the windows build is static.
#- if not exist %LIBRARY_PREFIX%\\bin\\libgoogle_cloud_cpp_storage.dll exit 1 # [win]
#- if not exist %LIBRARY_PREFIX%\\lib\\pkgconfig\\google_cloud_cpp_storage.pc exit 1 # [win]
- if exist %LIBRARY_PREFIX%\\lib\\cmake\\google_cloud_cpp_storage\\google_cloud_cpp_storage-config.cmake exit 1 # [win]
- if exist %LIBRARY_PREFIX%\\include\\google\\cloud\\storage\\version.h exit 1 # [win]
#- if not exist %LIBRARY_PREFIX%\\bin\\libgoogle_cloud_cpp_bigtable.dll exit 1 # [win]
- if exist %LIBRARY_PREFIX%\\lib\\cmake\\google_cloud_cpp_bigtable\\google_cloud_cpp_bigtable-config.cmake exit 1 # [win]
- if exist %LIBRARY_PREFIX%\\include\\google\\cloud\\bigtable\\version.h exit 1 # [win]
- name: google-cloud-cpp
script: build-libgoogle-cloud.sh # [unix]
script: build-libgoogle-cloud.bat # [win]
build:
run_exports:
- {{ pin_subpackage("libgoogle-cloud", max_pin="x.x.x") }}
requirements:
build:
- {{ compiler('c') }}
- {{ compiler('cxx') }}
- cmake
- ninja
- libgrpc
- libprotobuf
host:
- {{ pin_subpackage("libgoogle-cloud", exact=True) }}
- libabseil
- libcrc32c
- libcurl
- libgrpc
- libprotobuf
- openssl
- nlohmann_json
run:
- {{ pin_subpackage("libgoogle-cloud", exact=True) }}
- nlohmann_json
# cannot load package without zlib because it's specified
# as required; if possible, this should be removed upstream
- zlib
test:
commands:
- ./run_test_google_cloud_cpp.sh # [unix]
- ./run_test_google_cloud_cpp.bat # [win]
- test -f $PREFIX/lib/cmake/google_cloud_cpp_storage/google_cloud_cpp_storage-config.cmake # [not win]
- test -f $PREFIX/include/google/cloud/storage/version.h # [not win]
- test -f $PREFIX/lib/cmake/google_cloud_cpp_bigtable/google_cloud_cpp_bigtable-config.cmake # [not win]
- test -f $PREFIX/include/google/cloud/bigtable/version.h # [not win]
- if not exist %LIBRARY_PREFIX%\\lib\\cmake\\google_cloud_cpp_storage\\google_cloud_cpp_storage-config.cmake exit 1 # [win]
- if not exist %LIBRARY_PREFIX%\\include\\google\\cloud\\storage\\version.h exit 1 # [win]
- if not exist %LIBRARY_PREFIX%\\lib\\cmake\\google_cloud_cpp_bigtable\\google_cloud_cpp_bigtable-config.cmake exit 1 # [win]
- if not exist %LIBRARY_PREFIX%\\include\\google\\cloud\\bigtable\\version.h exit 1 # [win]
requires:
- {{ compiler('cxx') }}
- cmake
- ninja
files:
- run_test_google_cloud_cpp.sh
- run_test_google_cloud_cpp.bat
source_files:
- google/cloud/storage/quickstart/*.cc
- google/cloud/storage/quickstart/CMakeLists.txt
about:
home: https://github.com/googleapis/google-cloud-cpp
license: Apache-2.0
license_family: Apache
license_file: LICENSE
summary: Google Cloud Client Library for C++
extra:
feedstock-name: google-cloud-cpp
recipe-maintainers:
- coryan
- davidbrochart
- xhochy
- h-vetinari