WIP: Split SOCI in different outputs depending on the db
@@ -12,20 +12,79 @@ source:
build:
number: 0
+outputs:
+ - name: soci-core
+
requirements:
build:
- {{ compiler('cxx') }}
- cmake
- make # [unix]
+
+ test:
+ commands:
+ # - test -f ${PREFIX}/lib/libsoci_core.so # [unix]
+ # - if exist %LIBRARY_PREFIX%\lib\libsoci_core.dll (exit 0) else (exit 1) # [win]
+
+ about:
+ summary: 'SOCI is a general purpose database written in C++.'
+ doc_source_url: http://soci.sourceforge.net/doc/release/4.0/
+
+ - name: soci-sqlite
+
+ requirements:
+ build:
+ - {{ compiler('cxx') }}
+ - cmake
+ - make # [unix]
+ - sqlite
host:
- sqlite
+
+ test:
+ commands:
+ - test -f ${PREFIX}/lib/libsoci_sqlite.so # [unix]
+ # - if exist %LIBRARY_PREFIX%\lib\libsoci_core.dll (exit 0) else (exit 1) # [win]
+
+ about:
+ summary: 'soci-sqlite3 contains SOCI core and the C++ implementation of SQLite3.'
+ doc_source_url: http://soci.sourceforge.net/doc/release/4.0/
+
+ - name: soci-mysql
+
+ requirements:
+ build:
+ - {{ compiler('cxx') }}
+ - cmake
+ - make # [unix]
- mysql
+
+ test:
+ commands:
+ - test -f ${PREFIX}/lib/libsoci_mysql.so # [unix]
+ # - if exist %LIBRARY_PREFIX%\lib\libsoci_core.dll (exit 0) else (exit 1) # [win]
+
+ about:
+ summary: 'soci-mysql contains SOCI core and the C++ implementation of MySQL.'
+ doc_source_url: http://soci.sourceforge.net/doc/release/4.0/
+
+ - name: soci-postgresql
+
+ requirements:
+ build:
+ - {{ compiler('cxx') }}
+ - cmake
+ - make # [unix]
- postgresql
test:
commands:
- - test -f ${PREFIX}/lib/libsoci_core.so # [unix]
- - if exist %LIBRARY_PREFIX%\lib\libsoci_core.dll (exit 0) else (exit 1) # [win]
+ - test -f ${PREFIX}/lib/libsoci_postgresql.so # [unix]
+ # - if exist %LIBRARY_PREFIX%\lib\libsoci_core.dll (exit 0) else (exit 1) # [win]
+
+ about:
+ summary: 'soci-postgresql contains SOCI core and the C++ implementation of PostgreSQL.'
+ doc_source_url: http://soci.sourceforge.net/doc/release/4.0/
about:
home: http://soci.sourceforge.net/
