diff options
| author | Markus87 <Markus87@users.noreply.github.com> | 2020-10-14 00:50:53 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-13 15:50:53 -0700 |
| commit | 98c5261b40b830ac969f062f1569fe75be3e281c (patch) | |
| tree | fa552fa45e0574ac99a317ed535cf581c9840493 /ports/mongo-c-driver | |
| parent | 26279b79d07fd850f61fc5144965994255aff008 (diff) | |
| download | vcpkg-98c5261b40b830ac969f062f1569fe75be3e281c.tar.gz vcpkg-98c5261b40b830ac969f062f1569fe75be3e281c.zip | |
Fixed port of mongo-c-driver/mongo-cxx-driver for android (#13850)
* Fixed port of mongo-c-driver/mongo-cxx-driver for android
* mongo-c-driver - Default value of ENABLE_SHM_COUNTERS is AUTO
* Use vcpkg provided variable VCPKG_TARGET_IS_ANDROID to detect android
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
* Increased port-version of mongo-c-driver
* Increased port-version of mongo-cxx-driver
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Diffstat (limited to 'ports/mongo-c-driver')
| -rw-r--r-- | ports/mongo-c-driver/CONTROL | 1 | ||||
| -rw-r--r-- | ports/mongo-c-driver/portfile.cmake | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/ports/mongo-c-driver/CONTROL b/ports/mongo-c-driver/CONTROL index 17df29f60..7bbddb172 100644 --- a/ports/mongo-c-driver/CONTROL +++ b/ports/mongo-c-driver/CONTROL @@ -1,5 +1,6 @@ Source: mongo-c-driver Version: 1.16.1-1 +Port-Version: 1 Build-Depends: libbson, openssl (!windows), zlib Description: Client library written in C for MongoDB. Homepage: https://github.com/mongodb/mongo-c-driver diff --git a/ports/mongo-c-driver/portfile.cmake b/ports/mongo-c-driver/portfile.cmake index 3516886b1..74a1d8c0d 100644 --- a/ports/mongo-c-driver/portfile.cmake +++ b/ports/mongo-c-driver/portfile.cmake @@ -28,6 +28,14 @@ else() set(ENABLE_SSL "OPENSSL") endif() +if(VCPKG_TARGET_IS_ANDROID) + set(ENABLE_SRV OFF) + set(ENABLE_SHM_COUNTERS OFF) +else() + set(ENABLE_SRV AUTO) + set(ENABLE_SHM_COUNTERS AUTO) +endif() + file(READ ${CMAKE_CURRENT_LIST_DIR}/CONTROL _contents) string(REGEX MATCH "\nVersion:[ ]*[^ \n]+" _contents "${_contents}") string(REGEX REPLACE ".+Version:[ ]*([\\.0-9]+).*" "\\1" BUILD_VERSION "${_contents}") @@ -41,6 +49,8 @@ vcpkg_configure_cmake( -DENABLE_BSON=SYSTEM -DENABLE_TESTS=OFF -DENABLE_EXAMPLES=OFF + -DENABLE_SRV=${ENABLE_SRV} + -DENABLE_SHM_COUNTERS=${ENABLE_SHM_COUNTERS} -DENABLE_SSL=${ENABLE_SSL} -DENABLE_ZLIB=SYSTEM -DENABLE_STATIC=${ENABLE_STATIC} |
