Merge pull request #5580 from JackBoosY/dev/jack/2181

[apr]Add feature to enable option "APR_INSTALL_PRIVATE_H" to build non-standard files.
This commit is contained in:
Griffin Downs 2019-03-12 14:44:51 -07:00 committed by GitHub
commit 77becdc97a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,6 @@
Source: apr
Version: 1.6.5
Version: 1.6.5-1
Description: The Apache Portable Runtime (APR) is a C library that forms a system portability layer that covers many operating systems.
Feature: private-headers
Description: Install non-standard files required for building Apache httpd

View File

@ -14,9 +14,19 @@ vcpkg_download_distfile(ARCHIVE
)
vcpkg_extract_source_archive(${ARCHIVE})
if("private-headers" IN_LIST FEATURES)
set(INSTALL_PRIVATE_H ON)
else()
set(INSTALL_PRIVATE_H OFF)
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS -DINSTALL_PDB=OFF -DMIN_WINDOWS_VER=Windows7 -DAPR_HAVE_IPV6=ON
OPTIONS
-DINSTALL_PDB=OFF
-DMIN_WINDOWS_VER=Windows7
-DAPR_HAVE_IPV6=ON
-DAPR_INSTALL_PRIVATE_H=${INSTALL_PRIVATE_H}
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
# OPTIONS_RELEASE -DOPTIMIZE=1
# OPTIONS_DEBUG -DDEBUGGABLE=1