Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ace] copy generated headers files for tao #14768

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ports/ace/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Source: ace
Version: 6.5.12
Homepage: https://www.dre.vanderbilt.edu/~schmidt/ACE.html
Description: The ADAPTIVE Communication Environment
Port-Version: 1

Feature: wchar
Description: Enable extra wide char functions in ACE
Expand Down
22 changes: 14 additions & 8 deletions ports/ace/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ if(VCPKG_TARGET_IS_WINDOWS)
LICENSE_SUBPATH COPYING
PLATFORM ${MSBUILD_PLATFORM}
USE_VCPKG_INTEGRATION
SKIP_CLEAN
)

# ACE itself does not define an install target, so it is not clear which
Expand All @@ -146,6 +147,9 @@ if(VCPKG_TARGET_IS_WINDOWS)
DESTINATION ${CURRENT_PACKAGES_DIR}/include/${RELATIVE_PATH})
endforeach()
endfunction()

get_filename_component(SOURCE_PATH_SUFFIX "${SOURCE_PATH}" NAME)
set(SOURCE_COPY_PATH ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/${SOURCE_PATH_SUFFIX})

# Install headers in subdirectory
set(ACE_INCLUDE_FOLDERS
Expand All @@ -160,22 +164,22 @@ if(VCPKG_TARGET_IS_WINDOWS)
"ace/os_include/net"
"ace/os_include/netinet"
"ace/os_include/sys")
install_includes(${ACE_ROOT} "${ACE_INCLUDE_FOLDERS}")
install_includes(${SOURCE_COPY_PATH} "${ACE_INCLUDE_FOLDERS}")

if("ssl" IN_LIST FEATURES)
install_includes(${ACE_ROOT} "ace/SSL")
install_includes(${SOURCE_COPY_PATH} "ace/SSL")
endif()

if("tao" IN_LIST FEATURES)
set(ACEXML_INCLUDE_FOLDERS "ACEXML/apps/svcconf" "ACEXML/common"
"ACEXML/parser/parser")
install_includes(${ACE_ROOT} "${ACEXML_INCLUDE_FOLDERS}")
install_includes(${SOURCE_COPY_PATH} "${ACEXML_INCLUDE_FOLDERS}")

set(ACE_PROTOCOLS_INCLUDE_FOLDERS "ace/HTBP" "ace/INet" "ace/RMCast"
"ace/TMCast")
install_includes(${ACE_ROOT}/protocols "${ACE_PROTOCOLS_INCLUDE_FOLDERS}")
install_includes(${SOURCE_COPY_PATH}/protocols "${ACE_PROTOCOLS_INCLUDE_FOLDERS}")

install_includes(${ACE_ROOT} "Kokyu")
install_includes(${SOURCE_COPY_PATH} "Kokyu")

set(TAO_ORBSVCS_INCLUDE_FOLDERS
"orbsvcs"
Expand Down Expand Up @@ -209,11 +213,11 @@ if(VCPKG_TARGET_IS_WINDOWS)
if("ssl" IN_LIST FEATURES)
list(APPEND TAO_ORBSVCS_INCLUDE_FOLDERS "orbsvcs/SSLIOP")
endif()
install_includes(${TAO_ROOT}/orbsvcs "${TAO_ORBSVCS_INCLUDE_FOLDERS}")
install_includes(${SOURCE_COPY_PATH}/TAO/orbsvcs "${TAO_ORBSVCS_INCLUDE_FOLDERS}")

set(TAO_ROOT_ORBSVCS_INCLUDE_FOLDERS "orbsvcs/FT_ReplicationManager"
"orbsvcs/Notify_Service")
install_includes(${TAO_ROOT} "${TAO_ROOT_ORBSVCS_INCLUDE_FOLDERS}")
install_includes(${SOURCE_COPY_PATH}/TAO "${TAO_ROOT_ORBSVCS_INCLUDE_FOLDERS}")

set(TAO_INCLUDE_FOLDERS
"tao"
Expand Down Expand Up @@ -255,7 +259,7 @@ if(VCPKG_TARGET_IS_WINDOWS)
if("zlib" IN_LIST FEATURES)
list(APPEND TAO_INCLUDE_FOLDERS "tao/Compression/zlib")
endif()
install_includes(${TAO_ROOT} "${TAO_INCLUDE_FOLDERS}")
install_includes(${SOURCE_COPY_PATH}/TAO "${TAO_INCLUDE_FOLDERS}")
endif()

# Remove dlls without any export
Expand All @@ -268,6 +272,8 @@ if(VCPKG_TARGET_IS_WINDOWS)
${CURRENT_PACKAGES_DIR}/debug/bin/ACEXML_XML_Svc_Conf_Parserd_dll.pdb)
endif()
endif()

vcpkg_clean_msbuild()
elseif(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)
FIND_PROGRAM(MAKE make)
IF (NOT MAKE)
Expand Down