@@ -43,7 +43,7 @@ requirements:
4343
4444outputs :
4545 - name : libgoogle-cloud
46- script : build-libgoogle-cloud.sh # [unix]
46+ script : build-libgoogle-cloud.sh # [unix]
4747 script : build-libgoogle-cloud.bat # [win]
4848 build :
4949 run_exports :
@@ -68,25 +68,25 @@ outputs:
6868 - google-cloud-cpp {{ version }} *_{{ PKG_BUILDNUM }}
6969 test :
7070 commands :
71- - test -f $PREFIX/lib/libgoogle_cloud_cpp_storage.{{ version }}.dylib # [osx]
72- - test -f $PREFIX/lib/libgoogle_cloud_cpp_storage.so.{{ version }} # [linux]
73- - test ! -f $PREFIX/lib/pkgconfig/google_cloud_cpp_storage.pc # [not win ]
74- - test ! -f $PREFIX/lib/cmake/google_cloud_cpp_storage/google_cloud_cpp_storage-config.cmake # [not win ]
75- - test ! -f $PREFIX/include/google/cloud/storage/version.h # [not win]
76- - test -f $PREFIX/lib/libgoogle_cloud_cpp_bigtable. {{ version }}.dylib # [osx ]
77- - test -f $PREFIX/lib/libgoogle_cloud_cpp_bigtable.so.{{ version }} # [linux]
78- - test ! -f $PREFIX/lib/cmake/google_cloud_cpp_bigtable/google_cloud_cpp_bigtable-config.cmake # [not win ]
79- - test ! -f $PREFIX/include/ google/ cloud/bigtable/ version.h # [not win]
80- - if not exist %LIBRARY_PREFIX%\\bin\\libgoogle_cloud_cpp_storage.dll exit 1 # [win]
81- - if not exist %LIBRARY_PREFIX%\\ lib\\ pkgconfig\\google_cloud_cpp_storage .pc exit 1 # [win ]
82- - if exist %LIBRARY_PREFIX %\\lib\\cmake\\google_cloud_cpp_storage\\google_cloud_cpp_storage-config.cmake exit 1 # [win]
83- - if exist %LIBRARY_PREFIX%\\include\\google\\cloud\\storage\\version.h exit 1 # [win]
84- - if not exist %LIBRARY_PREFIX%\\bin\\libgoogle_cloud_cpp_bigtable.dll exit 1 # [win ]
85- - if exist %LIBRARY_PREFIX %\\lib\\ cmake\\google_cloud_cpp_bigtable\\google_cloud_cpp_bigtable -config.cmake exit 1 # [win]
86- - if exist %LIBRARY_PREFIX%\\include\\google\\cloud\\bigtable\\version.h exit 1 # [win]
71+ {% for component in ["bigtable", "storage"] %}
72+ # shared libs
73+ - test -f $PREFIX/lib/libgoogle_cloud_cpp_{{ component }}.so.{{ version }} # [linux ]
74+ - test -f $PREFIX/lib/libgoogle_cloud_cpp_{{ component }}.{{ version }}.dylib # [osx ]
75+ - if not exist %LIBRARY_BIN%\\libgoogle_cloud_cpp_{{ component }}.dll exit 1 # [win]
76+ - if not exist %LIBRARY_LIB%\\libgoogle_cloud_cpp_ {{ component }}.lib exit 1 # [win ]
77+ # absence of headers
78+ - test ! -f $PREFIX/include/google/cloud/{{ component }}/version.h # [unix ]
79+ - if exist %LIBRARY_INC%\\ google\\ cloud\\{{ component }}\\ version.h exit 1 # [win]
80+ # absence of metadata (pkgconfig)
81+ - test ! -f $PREFIX/ lib/ pkgconfig/google_cloud_cpp_{{ component }} .pc # [unix ]
82+ - if exist %LIBRARY_LIB %\\pkgconfig\\google_cloud_cpp_{{ component }}.pc exit 1 # [win]
83+ # absence of metadata (CMake)
84+ - test ! -f $PREFIX/lib/cmake/google_cloud_cpp_{{ component }}/google_cloud_cpp_{{ component }}-config.cmake # [unix ]
85+ - if exist %LIBRARY_LIB %\\cmake\\google_cloud_cpp_{{ component }}\\google_cloud_cpp_{{ component }} -config.cmake exit 1 # [win]
86+ {% endfor %}
8787
8888 - name : google-cloud-cpp
89- script : build-libgoogle-cloud.sh # [unix]
89+ script : build-libgoogle-cloud.sh # [unix]
9090 script : build-libgoogle-cloud.bat # [win]
9191 build :
9292 run_exports :
@@ -115,17 +115,6 @@ outputs:
115115 # as required; if possible, this should be removed upstream
116116 - zlib
117117 test :
118- commands :
119- - ./run_test_google_cloud_cpp.sh # [unix]
120- - ./run_test_google_cloud_cpp.bat # [win]
121- - test -f $PREFIX/lib/cmake/google_cloud_cpp_storage/google_cloud_cpp_storage-config.cmake # [not win]
122- - test -f $PREFIX/include/google/cloud/storage/version.h # [not win]
123- - test -f $PREFIX/lib/cmake/google_cloud_cpp_bigtable/google_cloud_cpp_bigtable-config.cmake # [not win]
124- - test -f $PREFIX/include/google/cloud/bigtable/version.h # [not win]
125- - if not exist %LIBRARY_PREFIX%\\lib\\cmake\\google_cloud_cpp_storage\\google_cloud_cpp_storage-config.cmake exit 1 # [win]
126- - if not exist %LIBRARY_PREFIX%\\include\\google\\cloud\\storage\\version.h exit 1 # [win]
127- - if not exist %LIBRARY_PREFIX%\\lib\\cmake\\google_cloud_cpp_bigtable\\google_cloud_cpp_bigtable-config.cmake exit 1 # [win]
128- - if not exist %LIBRARY_PREFIX%\\include\\google\\cloud\\bigtable\\version.h exit 1 # [win]
129118 requires :
130119 - {{ compiler('cxx') }}
131120 - cmake
@@ -136,6 +125,20 @@ outputs:
136125 source_files :
137126 - google/cloud/storage/quickstart/*.cc
138127 - google/cloud/storage/quickstart/CMakeLists.txt
128+ commands :
129+ - ./run_test_google_cloud_cpp.sh # [unix]
130+ - ./run_test_google_cloud_cpp.bat # [win]
131+ {% for component in ["bigtable", "storage"] %}
132+ # headers
133+ - test -f $PREFIX/include/google/cloud/{{ component }}/version.h # [unix]
134+ - if not exist %LIBRARY_INC%\\google\\cloud\\{{ component }}\\version.h exit 1 # [win]
135+ # pkgconfig
136+ - test -f $PREFIX/lib/pkgconfig/google_cloud_cpp_{{ component }}.pc # [unix]
137+ - if not exist %LIBRARY_LIB%\\pkgconfig\\google_cloud_cpp_{{ component }}.pc exit 1 # [win]
138+ # CMake
139+ - test -f $PREFIX/lib/cmake/google_cloud_cpp_{{ component }}/google_cloud_cpp_{{ component }}-config.cmake # [unix]
140+ - if not exist %LIBRARY_LIB%\\cmake\\google_cloud_cpp_{{ component }}\\google_cloud_cpp_{{ component }}-config.cmake exit 1 # [win]
141+ {% endfor %}
139142
140143about :
141144 home : https://github.com/googleapis/google-cloud-cpp
0 commit comments