@@ -33,7 +33,7 @@ requirements:
3333
3434outputs :
3535 - name : libgoogle-cloud
36- script : build-libgoogle-cloud.sh # [not win ]
36+ script : build-libgoogle-cloud.sh # [unix ]
3737 script : build-libgoogle-cloud.bat # [win]
3838 build :
3939 run_exports :
@@ -58,24 +58,24 @@ outputs:
5858 - google-cloud-cpp {{ version }} *_{{ PKG_BUILDNUM }}
5959 test :
6060 commands :
61- - test -f $PREFIX/lib/libgoogle_cloud_cpp_storage.{{ version }}.dylib # [osx]
62- - test -f $PREFIX/lib/libgoogle_cloud_cpp_storage.so.{{ version }} # [linux]
63- - test ! -f $PREFIX/lib/pkgconfig/google_cloud_cpp_storage.pc # [not win ]
64- - test ! -f $PREFIX/lib/cmake/google_cloud_cpp_storage/google_cloud_cpp_storage-config.cmake # [not win ]
65- - test ! -f $PREFIX/include/google/cloud/storage/version.h # [not win]
66- - test -f $PREFIX/lib/libgoogle_cloud_cpp_bigtable.{{ version }}.dylib # [osx]
67- - test -f $PREFIX/lib/libgoogle_cloud_cpp_bigtable.so. {{ version }} # [linux ]
68- - test ! -f $PREFIX/lib/cmake/google_cloud_cpp_bigtable/google_cloud_cpp_bigtable-config.cmake # [not win]
69- - test ! -f $PREFIX/include/google/cloud/bigtable/version.h # [not win]
70- - if not exist %LIBRARY_PREFIX%\\bin\\libgoogle_cloud_cpp_storage.dll exit 1 # [win ]
71- - if not exist %LIBRARY_PREFIX%\\lib\\pkgconfig\\google_cloud_cpp_storage .pc exit 1 # [win]
72- - if exist %LIBRARY_PREFIX%\\lib\\cmake\\google_cloud_cpp_storage\\google_cloud_cpp_storage-config.cmake exit 1 # [win]
73- - if exist %LIBRARY_PREFIX%\\include\\google\\cloud\\storage\\version.h exit 1 # [win ]
74- - if not exist %LIBRARY_PREFIX%\\bin\\libgoogle_cloud_cpp_bigtable.dll exit 1 # [win]
75- - if exist %LIBRARY_PREFIX%\\lib\\cmake\\google_cloud_cpp_bigtable\\google_cloud_cpp_bigtable-config.cmake exit 1 # [win]
76- - if exist %LIBRARY_PREFIX%\\include\\google\\cloud\\bigtable\\version.h exit 1 # [win]
61+ {% for component in ["bigtable", "storage"] %}
62+ # shared libs
63+ - test -f $PREFIX/lib/libgoogle_cloud_cpp_{{ component }}.so.{{ version }} # [linux ]
64+ - test -f $PREFIX/lib/libgoogle_cloud_cpp_{{ component }}.{{ version }}.dylib # [osx ]
65+ - if not exist %LIBRARY_PREFIX%\\bin\\libgoogle_cloud_cpp_{{ component }}.dll exit 1 # [win]
66+ # absence of headers
67+ - test ! -f $PREFIX/include/google/cloud/ {{ component }}/version.h # [unix ]
68+ - if exist %LIBRARY_PREFIX%\\include\\google\\cloud\\{{ component }}\\version.h exit 1 # [win]
69+ # absence of metadata (pkgconfig)
70+ - test ! -f $PREFIX/lib/pkgconfig/google_cloud_cpp_{{ component }}.pc # [unix ]
71+ - if exist %LIBRARY_PREFIX%\\lib\\pkgconfig\\google_cloud_cpp_{{ component }} .pc exit 1 # [win]
72+ # absence of metadata (CMake)
73+ - test ! -f $PREFIX/lib/cmake/google_cloud_cpp_{{ component }}/google_cloud_cpp_{{ component }}-config.cmake # [unix ]
74+ - if exist %LIBRARY_PREFIX%\\lib\\cmake\\google_cloud_cpp_{{ component }}\\google_cloud_cpp_{{ component }}-config.cmake exit 1 # [win]
75+ {% endfor %}
76+
7777 - name : google-cloud-cpp
78- script : build-libgoogle-cloud.sh # [not win ]
78+ script : build-libgoogle-cloud.sh # [unix ]
7979 script : build-libgoogle-cloud.bat # [win]
8080 build :
8181 run_exports :
@@ -104,17 +104,6 @@ outputs:
104104 # as required; if possible, this should be removed upstream
105105 - zlib
106106 test :
107- commands :
108- - ./run_test_google_cloud_cpp.sh # [not win]
109- - ./run_test_google_cloud_cpp.bat # [win]
110- - test -f $PREFIX/lib/cmake/google_cloud_cpp_storage/google_cloud_cpp_storage-config.cmake # [not win]
111- - test -f $PREFIX/include/google/cloud/storage/version.h # [not win]
112- - test -f $PREFIX/lib/cmake/google_cloud_cpp_bigtable/google_cloud_cpp_bigtable-config.cmake # [not win]
113- - test -f $PREFIX/include/google/cloud/bigtable/version.h # [not win]
114- - if not exist %LIBRARY_PREFIX%\\lib\\cmake\\google_cloud_cpp_storage\\google_cloud_cpp_storage-config.cmake exit 1 # [win]
115- - if not exist %LIBRARY_PREFIX%\\include\\google\\cloud\\storage\\version.h exit 1 # [win]
116- - if not exist %LIBRARY_PREFIX%\\lib\\cmake\\google_cloud_cpp_bigtable\\google_cloud_cpp_bigtable-config.cmake exit 1 # [win]
117- - if not exist %LIBRARY_PREFIX%\\include\\google\\cloud\\bigtable\\version.h exit 1 # [win]
118107 requires :
119108 - {{ compiler('cxx') }}
120109 - cmake
@@ -125,6 +114,20 @@ outputs:
125114 source_files :
126115 - google/cloud/storage/quickstart/*.cc
127116 - google/cloud/storage/quickstart/CMakeLists.txt
117+ commands :
118+ - ./run_test_google_cloud_cpp.sh # [unix]
119+ - ./run_test_google_cloud_cpp.bat # [win]
120+ {% for component in ["bigtable", "storage"] %}
121+ # headers
122+ - test -f $PREFIX/include/google/cloud/{{ component }}/version.h # [unix]
123+ - if not exist %LIBRARY_PREFIX%\\include\\google\\cloud\\{{ component }}\\version.h exit 1 # [win]
124+ # pkgconfig
125+ - test -f $PREFIX/lib/pkgconfig/google_cloud_cpp_{{ component }}.pc # [unix]
126+ - if not exist %LIBRARY_PREFIX%\\lib\\pkgconfig\\google_cloud_cpp_{{ component }}.pc exit 1 # [win]
127+ # CMake
128+ - test -f $PREFIX/lib/cmake/google_cloud_cpp_{{ component }}/google_cloud_cpp_{{ component }}-config.cmake # [unix]
129+ - if not exist %LIBRARY_PREFIX%\\lib\\cmake\\google_cloud_cpp_{{ component }}\\google_cloud_cpp_{{ component }}-config.cmake exit 1 # [win]
130+ {% endfor %}
128131
129132about :
130133 home : https://github.com/googleapis/google-cloud-cpp
0 commit comments