diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c2610bb5a..b8e779188f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,21 +1,10 @@ cmake_minimum_required(VERSION 3.24) project(bde) -# BDE build system selector -if (BBS_BUILD_SYSTEM) - enable_testing() +enable_testing() - find_package(BdeBuildSystem REQUIRED) +find_package(BdeBuildSystem REQUIRED) - add_subdirectory(thirdparty) - add_subdirectory(groups) - add_subdirectory(standalones) -else() - if (NOT CMAKE_MODULE_PATH) - message(FATAL "Please specify path to BDE cmake modules.") - endif() - - include(bde_workspace) - - bde_process_workspace(${CMAKE_CURRENT_LIST_DIR}) -endif() +add_subdirectory(thirdparty) +add_subdirectory(groups) +add_subdirectory(standalones) diff --git a/groups/bal/baljsn/package/baljsn.cmake b/groups/bal/baljsn/package/baljsn.cmake deleted file mode 100644 index 54d48277ea..0000000000 --- a/groups/bal/baljsn/package/baljsn.cmake +++ /dev/null @@ -1,15 +0,0 @@ -include(bde_package) - -bde_prefixed_override(baljsn package_setup_interface) -function(baljsn_package_setup_interface package) - package_setup_interface_base("" ${ARGV}) - - bde_struct_get_field(testInterface ${package} TEST_INTERFACE_TARGET) - bde_interface_target_compile_options( - ${testInterface} - PRIVATE - $<$: - /bigobj - > - ) -endfunction() diff --git a/groups/bal/baltzo/package/baltzo.cmake b/groups/bal/baltzo/package/baltzo.cmake deleted file mode 100644 index 0874c512dd..0000000000 --- a/groups/bal/baltzo/package/baltzo.cmake +++ /dev/null @@ -1,16 +0,0 @@ -include(bde_interface_target) -include(bde_struct) - -bde_prefixed_override(baltzo process_package) -function(baltzo_process_package retPackage) - process_package_base("" package ${ARGN}) - - bde_struct_get_field(interfaceTarget ${package} INTERFACE_TARGET) - bde_interface_target_link_libraries( - ${interfaceTarget} - INTERFACE - $<$:advapi32> - ) - - bde_return(${package}) -endfunction() diff --git a/groups/bal/balxml/package/balxml.cmake b/groups/bal/balxml/package/balxml.cmake deleted file mode 100644 index 69327c6560..0000000000 --- a/groups/bal/balxml/package/balxml.cmake +++ /dev/null @@ -1,15 +0,0 @@ -include(bde_package) - -bde_prefixed_override(balxml package_setup_interface) -function(balxml_package_setup_interface package) - package_setup_interface_base("" ${ARGV}) - - bde_struct_get_field(testInterface ${package} TEST_INTERFACE_TARGET) - bde_interface_target_compile_options( - ${testInterface} - PRIVATE - $<$: - /bigobj - > - ) -endfunction() diff --git a/groups/bdl/bdlcc/package/bdlcc.cmake b/groups/bdl/bdlcc/package/bdlcc.cmake deleted file mode 100644 index 7811b1a522..0000000000 --- a/groups/bdl/bdlcc/package/bdlcc.cmake +++ /dev/null @@ -1,15 +0,0 @@ -include(bde_package) - -bde_prefixed_override(bdlcc package_setup_interface) -function(bdlcc_package_setup_interface package) - package_setup_interface_base("" ${ARGV}) - - bde_struct_get_field(testInterface ${package} TEST_INTERFACE_TARGET) - bde_interface_target_compile_options( - ${testInterface} - PRIVATE - $<$: - /bigobj - > - ) -endfunction() diff --git a/groups/bdl/bdlde/package/bdlde.cmake b/groups/bdl/bdlde/package/bdlde.cmake deleted file mode 100644 index a243071a10..0000000000 --- a/groups/bdl/bdlde/package/bdlde.cmake +++ /dev/null @@ -1,17 +0,0 @@ -include(bde_interface_target) -include(bde_package) -include(bde_struct) - -bde_prefixed_override(bdlde process_package) -function(bdlde_process_package retPackage) - process_package_base("" package ${ARGN}) - bde_struct_get_field(interfaceTarget ${package} INTERFACE_TARGET) - bde_interface_target_compile_options( - ${interfaceTarget} - PRIVATE - $<$,$>:-msse4.2> - $<$:-msse4.2> - $<$:-xarch=sparc4> - ) - bde_return(${package}) -endfunction() diff --git a/groups/bdl/bdlf/package/bdlf.cmake b/groups/bdl/bdlf/package/bdlf.cmake deleted file mode 100644 index 30cb876ccd..0000000000 --- a/groups/bdl/bdlf/package/bdlf.cmake +++ /dev/null @@ -1,18 +0,0 @@ -include(bde_interface_target) -include(bde_struct) - -bde_prefixed_override(bdlf process_package) -function(bdlf_process_package retPackage) - process_package_base("" package ${ARGN}) - - bde_struct_get_field(testInterface ${package} TEST_INTERFACE_TARGET) - bde_interface_target_compile_options( - ${testInterface} - PRIVATE - $<$: - /bigobj - > - ) - - bde_return(${package}) -endfunction() \ No newline at end of file diff --git a/groups/bdl/bdls/package/bdls.cmake b/groups/bdl/bdls/package/bdls.cmake deleted file mode 100644 index 7e5b218610..0000000000 --- a/groups/bdl/bdls/package/bdls.cmake +++ /dev/null @@ -1,19 +0,0 @@ -include(bde_interface_target) -include(bde_package) -include(bde_struct) - -bde_prefixed_override(bdls process_package) -function(bdls_process_package retPackage) - process_package_base("" package ${ARGN}) - - if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS") - bde_struct_get_field(interfaceTarget ${package} INTERFACE_TARGET) - bde_interface_target_link_libraries( - ${interfaceTarget} - PUBLIC - socket - ) - endif() - - bde_return(${package}) -endfunction() diff --git a/groups/bsl/bsl+bslhdrs/package/bsl+bslhdrs.cmake b/groups/bsl/bsl+bslhdrs/package/bsl+bslhdrs.cmake deleted file mode 100644 index bdf6304c81..0000000000 --- a/groups/bsl/bsl+bslhdrs/package/bsl+bslhdrs.cmake +++ /dev/null @@ -1,14 +0,0 @@ -include(bde_struct) -include(bde_utils) - -bde_prefixed_override(bslhdrs package_process_components) -function(bslhdrs_package_process_components package listFile) - get_filename_component(packageName ${listFile} NAME_WE) - get_filename_component(listDir ${listFile} DIRECTORY) - get_filename_component(rootDir ${listDir} DIRECTORY) - - bde_utils_add_meta_file("${listDir}/${packageName}.pub" headers TRACK) - bde_utils_list_template_substitute(headers "%" "${rootDir}/%" ${headers}) - bde_struct_set_field(${package} HEADERS ${headers}) - # Custom header logic -endfunction() \ No newline at end of file diff --git a/groups/bsl/bslma/package/bslma.cmake b/groups/bsl/bslma/package/bslma.cmake deleted file mode 100644 index 257ac1aab7..0000000000 --- a/groups/bsl/bslma/package/bslma.cmake +++ /dev/null @@ -1,15 +0,0 @@ -include(bde_package) - -bde_prefixed_override(bslma package_setup_interface) -function(bslma_package_setup_interface package) - package_setup_interface_base("" ${ARGV}) - - bde_struct_get_field(testInterface ${package} TEST_INTERFACE_TARGET) - bde_interface_target_compile_options( - ${testInterface} - PRIVATE - $<$: - /bigobj - > - ) -endfunction() diff --git a/groups/bsl/bslstl/package/bslstl.cmake b/groups/bsl/bslstl/package/bslstl.cmake deleted file mode 100644 index 8c3c503db6..0000000000 --- a/groups/bsl/bslstl/package/bslstl.cmake +++ /dev/null @@ -1,15 +0,0 @@ -include(bde_package) - -bde_prefixed_override(bslstl package_setup_interface) -function(bslstl_package_setup_interface package) - package_setup_interface_base("" ${ARGV}) - - bde_struct_get_field(testInterface ${package} TEST_INTERFACE_TARGET) - bde_interface_target_compile_options( - ${testInterface} - PRIVATE - $<$: - /bigobj - > - ) -endfunction() \ No newline at end of file diff --git a/groups/bsl/bsltf/package/bsltf.cmake b/groups/bsl/bsltf/package/bsltf.cmake deleted file mode 100644 index 31bd7f761d..0000000000 --- a/groups/bsl/bsltf/package/bsltf.cmake +++ /dev/null @@ -1,15 +0,0 @@ -bde_prefixed_override(bsltf process_package) -function(bsltf_process_package retPackage) - process_package_base("" package ${ARGN}) - - bde_struct_get_field(testInterface ${package} TEST_INTERFACE_TARGET) - bde_interface_target_compile_options( - ${testInterface} - PRIVATE - $<$: - /bigobj - > - ) - - bde_return(${package}) -endfunction() \ No newline at end of file diff --git a/project.cmake b/project.cmake deleted file mode 100644 index 17b707c131..0000000000 --- a/project.cmake +++ /dev/null @@ -1,51 +0,0 @@ -include(legacy/wafstyleout) - -include(bde_project) -include(bde_utils) - -include(layers/package_libs) -include(layers/ufid) -include(layers/install_pkg_config) -include(layers/install_cmake_config) - -function(bdeproj_package_setup_interface package) - package_setup_interface_base(bdeproj_package_setup_interface ${ARGV}) - - bde_struct_get_field(pkgName ${package} NAME) - - #[[ - set(noOverrideStdPackages bslstl bslstp) - if(NOT ${pkgName} IN_LIST noOverrideStdPackages) - bde_struct_get_field(interfaceTarget ${package} INTERFACE_TARGET) - bde_interface_target_compile_definitions( - ${interfaceTarget} PRIVATE BSL_OVERRIDES_STD - ) - endif() - ]] -endfunction() - -bde_prefixed_override(bdeproj project_process_uors) -function(bdeproj_project_process_uors proj listDir) - bde_assert_no_extra_args() - - bde_record_overrides() - bde_prefixed_override(bdeproj package_setup_interface) - - bde_project_process_package_groups( - ${proj} - ${listDir}/groups/bal - ${listDir}/groups/bbl - ${listDir}/groups/bdl - ${listDir}/groups/bsl - ) - - bde_remove_recorded_overrides() - - bde_project_process_standalone_packages( - ${proj} - ${listDir}/thirdparty/inteldfp - ${listDir}/thirdparty/pcre2 - ${listDir}/thirdparty/ryu - ${listDir}/standalones/s_baltst - ) -endfunction() diff --git a/thirdparty/inteldfp/package/inteldfp.cmake b/thirdparty/inteldfp/package/inteldfp.cmake deleted file mode 100644 index 74441e08e3..0000000000 --- a/thirdparty/inteldfp/package/inteldfp.cmake +++ /dev/null @@ -1,453 +0,0 @@ -include(bde_package) -include(bde_utils) -include(bde_struct) -include(bde_uor) -include(bde_ufid) - -bde_prefixed_override(inteldfp process_standalone_package) -function(inteldfp_process_standalone_package retUOR listFile installOpts) - bde_assert_no_extra_args() - - get_filename_component(listDir ${listFile} DIRECTORY) - get_filename_component(rootDir ${listDir} DIRECTORY) - - set(TARGET inteldfp) - - set(headers - ${rootDir}/LIBRARY/src/inteldfp/bid128_2_str.h - ${rootDir}/LIBRARY/src/inteldfp/bid128_2_str_macros.h - ${rootDir}/LIBRARY/src/inteldfp/bid_b2d.h - ${rootDir}/LIBRARY/src/inteldfp/bid_conf.h - ${rootDir}/LIBRARY/src/inteldfp/bid_div_macros.h - ${rootDir}/LIBRARY/src/inteldfp/bid_functions.h - ${rootDir}/LIBRARY/src/inteldfp/bid_gcc_intrinsics.h - ${rootDir}/LIBRARY/src/inteldfp/bid_inline_add.h - ${rootDir}/LIBRARY/src/inteldfp/bid_internal.h - ${rootDir}/LIBRARY/src/inteldfp/bid_sqrt_macros.h - ${rootDir}/LIBRARY/src/inteldfp/bid_strtod.h - ${rootDir}/LIBRARY/src/inteldfp/bid_trans.h - ${rootDir}/LIBRARY/src/inteldfp/bid_wrap_names.h - ${rootDir}/LIBRARY/src/inteldfp/dfp754.h - ) - - set(sources - ${rootDir}/LIBRARY/src/inteldfp/bid64_acos.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_acosh.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_asin.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_asinh.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_atan.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_atan2.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_atanh.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_cbrt.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_cos.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_cosh.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_erf.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_erfc.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_exp.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_exp10.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_exp2.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_expm1.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_hypot.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_lgamma.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_log.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_log10.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_log1p.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_log2.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_pow.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_sin.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_sinh.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_tan.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_tanh.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_tgamma.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_acos.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_acosh.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_asin.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_asinh.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_atan.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_atan2.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_atanh.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_cbrt.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_cos.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_cosh.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_erf.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_erfc.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_exp.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_exp10.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_exp2.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_expm1.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_hypot.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_lgamma.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_log.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_log10.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_log1p.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_log2.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_pow.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_sin.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_sinh.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_tan.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_tanh.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_tgamma.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_add.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_compare.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_div.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_fdimd.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_fma.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_fmod.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_frexp.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_ldexp.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_llrintd.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_logb.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_logbd.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_lrintd.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_lround.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_minmax.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_modf.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_mul.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_nearbyintd.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_next.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_nexttowardd.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_noncomp.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_quantexpd.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_quantize.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_rem.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_round_integral.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_scalb.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_scalbl.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_sqrt.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_string.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_to_int16.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_to_int32.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_to_int64.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_to_int8.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_to_uint16.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_to_uint32.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_to_uint64.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_to_uint8.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_add.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_compare.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_div.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_fdimd.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_fma.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_fmod.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_frexp.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_ldexp.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_llrintd.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_logb.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_logbd.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_lrintd.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_lround.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_minmax.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_modf.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_mul.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_nearbyintd.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_next.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_nexttowardd.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_noncomp.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_quantexpd.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_quantize.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_rem.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_round_integral.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_scalb.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_scalbl.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_sqrt.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_string.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_to_int16.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_to_int32.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_to_int64.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_to_int8.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_to_uint16.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_to_uint32.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_to_uint64.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_to_uint8.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_add.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_compare.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_div.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_fdimd.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_fma.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_fmod.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_frexp.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_ldexp.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_llrintd.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_logb.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_logbd.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_lrintd.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_lround.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_minmax.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_modf.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_mul.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_nearbyintd.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_next.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_nexttowardd.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_noncomp.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_quantexpd.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_quantize.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_rem.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_round_integral.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_scalb.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_scalbl.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_sqrt.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_string.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_to_int16.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_to_int32.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_to_int64.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_to_int8.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_to_uint16.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_to_uint32.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_to_uint64.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_to_uint8.c - ${rootDir}/LIBRARY/src/inteldfp/strtod32.c - ${rootDir}/LIBRARY/src/inteldfp/strtod64.c - ${rootDir}/LIBRARY/src/inteldfp/strtod128.c - ${rootDir}/LIBRARY/src/inteldfp/wcstod32.c - ${rootDir}/LIBRARY/src/inteldfp/wcstod64.c - ${rootDir}/LIBRARY/src/inteldfp/wcstod128.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_acos.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_acosh.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_asin.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_asinh.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_atan.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_atan2.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_atanh.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_cbrt.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_cos.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_cosh.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_erf.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_erfc.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_exp.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_exp10.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_exp2.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_expm1.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_hypot.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_lgamma.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_log.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_log10.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_log1p.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_log2.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_pow.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_sin.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_sinh.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_tan.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_tanh.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_tgamma.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_sub.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_to_bid128.c - ${rootDir}/LIBRARY/src/inteldfp/bid32_to_bid64.c - ${rootDir}/LIBRARY/src/inteldfp/bid64_to_bid128.c - ${rootDir}/LIBRARY/src/inteldfp/bid128_2_str_tables.c - ${rootDir}/LIBRARY/src/inteldfp/bid_binarydecimal.c - ${rootDir}/LIBRARY/src/inteldfp/bid_convert_data.c - ${rootDir}/LIBRARY/src/inteldfp/bid_decimal_data.c - ${rootDir}/LIBRARY/src/inteldfp/bid_decimal_globals.c - ${rootDir}/LIBRARY/src/inteldfp/bid_dpd.c - ${rootDir}/LIBRARY/src/inteldfp/bid_feclearexcept.c - ${rootDir}/LIBRARY/src/inteldfp/bid_fegetexceptflag.c - ${rootDir}/LIBRARY/src/inteldfp/bid_feraiseexcept.c - ${rootDir}/LIBRARY/src/inteldfp/bid_fesetexceptflag.c - ${rootDir}/LIBRARY/src/inteldfp/bid_fetestexcept.c - ${rootDir}/LIBRARY/src/inteldfp/bid_flag_operations.c - ${rootDir}/LIBRARY/src/inteldfp/bid_from_int.c - ${rootDir}/LIBRARY/src/inteldfp/bid_round.c - ${rootDir}/LIBRARY/src/inteldfp/bid128.c - ${rootDir}/LIBRARY/float128/dpml_ux_bid.c - ${rootDir}/LIBRARY/float128/dpml_ux_bessel.c - ${rootDir}/LIBRARY/float128/dpml_ux_cbrt.c - ${rootDir}/LIBRARY/float128/dpml_ux_erf.c - ${rootDir}/LIBRARY/float128/dpml_ux_exp.c - ${rootDir}/LIBRARY/float128/dpml_ux_int.c - ${rootDir}/LIBRARY/float128/dpml_ux_inv_hyper.c - ${rootDir}/LIBRARY/float128/dpml_ux_inv_trig.c - ${rootDir}/LIBRARY/float128/dpml_ux_lgamma.c - ${rootDir}/LIBRARY/float128/dpml_ux_log.c - ${rootDir}/LIBRARY/float128/dpml_ux_mod.c - ${rootDir}/LIBRARY/float128/dpml_ux_powi.c - ${rootDir}/LIBRARY/float128/dpml_ux_pow.c - ${rootDir}/LIBRARY/float128/dpml_ux_sqrt.c - ${rootDir}/LIBRARY/float128/dpml_ux_trig.c - ${rootDir}/LIBRARY/float128/dpml_ux_ops.c - ${rootDir}/LIBRARY/float128/dpml_ux_ops_64.c - ${rootDir}/LIBRARY/float128/dpml_four_over_pi.c - ${rootDir}/LIBRARY/float128/dpml_exception.c - ${rootDir}/LIBRARY/float128/sqrt_tab_t.c - ${rootDir}/LIBRARY/float128/architecture.h - ${rootDir}/LIBRARY/float128/assert.h - ${rootDir}/LIBRARY/float128/build.h - ${rootDir}/LIBRARY/float128/compiler.h - ${rootDir}/LIBRARY/float128/dpml_acosh_t.h - ${rootDir}/LIBRARY/float128/dpml_asinh_t.h - ${rootDir}/LIBRARY/float128/dpml_bessel_x.h - ${rootDir}/LIBRARY/float128/dpml_bid_x.h - ${rootDir}/LIBRARY/float128/dpml_cbrt_x.h - ${rootDir}/LIBRARY/float128/dpml_cons_x.h - ${rootDir}/LIBRARY/float128/dpml_erf_t.h - ${rootDir}/LIBRARY/float128/dpml_erf_x.h - ${rootDir}/LIBRARY/float128/dpml_error_codes.h - ${rootDir}/LIBRARY/float128/dpml_error_codes_enum.h - ${rootDir}/LIBRARY/float128/dpml_exception.h - ${rootDir}/LIBRARY/float128/dpml_exp_x.h - ${rootDir}/LIBRARY/float128/dpml_function_info.h - ${rootDir}/LIBRARY/float128/dpml_globals.h - ${rootDir}/LIBRARY/float128/dpml_int_x.h - ${rootDir}/LIBRARY/float128/dpml_inv_hyper_x.h - ${rootDir}/LIBRARY/float128/dpml_inv_trig_x.h - ${rootDir}/LIBRARY/float128/dpml_lgamma_t.h - ${rootDir}/LIBRARY/float128/dpml_lgamma_x.h - ${rootDir}/LIBRARY/float128/dpml_log2_t.h - ${rootDir}/LIBRARY/float128/dpml_log_t.h - ${rootDir}/LIBRARY/float128/dpml_log_x.h - ${rootDir}/LIBRARY/float128/dpml_mod_x.h - ${rootDir}/LIBRARY/float128/dpml_names.h - ${rootDir}/LIBRARY/float128/dpml_pow.h - ${rootDir}/LIBRARY/float128/dpml_pow_x.h - ${rootDir}/LIBRARY/float128/dpml_powi_x.h - ${rootDir}/LIBRARY/float128/dpml_private.h - ${rootDir}/LIBRARY/float128/dpml_rdx_x.h - ${rootDir}/LIBRARY/float128/dpml_special_exp.h - ${rootDir}/LIBRARY/float128/dpml_sqrt_x.h - ${rootDir}/LIBRARY/float128/dpml_trig_x.h - ${rootDir}/LIBRARY/float128/dpml_ux.h - ${rootDir}/LIBRARY/float128/dpml_ux_32_64.h - ${rootDir}/LIBRARY/float128/dpml_ux_alpha_macros.h - ${rootDir}/LIBRARY/float128/endian.h - ${rootDir}/LIBRARY/float128/f_format.h - ${rootDir}/LIBRARY/float128/i_format.h - ${rootDir}/LIBRARY/float128/ix86_macros.h - ${rootDir}/LIBRARY/float128/mphoc_functions.h - ${rootDir}/LIBRARY/float128/mphoc_macros.h - ${rootDir}/LIBRARY/float128/mtc_macros.h - ${rootDir}/LIBRARY/float128/op_system.h - ${rootDir}/LIBRARY/float128/poly_macros.h - ${rootDir}/LIBRARY/float128/sqrt_macros.h - ) - - bde_ufid_add_library(${TARGET} ${sources} ${headers}) - - # Set up PIC - # This code does not work in 3.8, but will be fixed in later versions. - # The -fPIC flag is set explicitely in the compile options for now. - if(${bde_ufid_is_shr} OR ${bde_ufid_is_pic}) - set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE 1) - endif() - - # Common compile definitions. - target_compile_definitions( - ${TARGET} - PRIVATE - "DECIMAL_CALL_BY_REFERENCE=0" - "DECIMAL_GLOBAL_ROUNDING=1" - "DECIMAL_GLOBAL_EXCEPTION_FLAGS=0" - ) - - target_compile_options( - ${TARGET} - PRIVATE - $<$: - $<$: -fPIC> - > - $<$: - $<$: -fPIC> - > - $<$: - -std=gnu99 - $<$: -fPIC> - > - $<$: - -temp=/bb/data/tmp - $<$: -xcode=pic32> - > - $<$: - $<$: -qpic> - $<${bde_ufid_is_mt}: -qthreaded> - > - ) - - # Detecting platform endianess. - include (TestBigEndian) - test_big_endian(IS_BIG_ENDIAN) - - target_compile_definitions( - ${TARGET} - PRIVATE - "BID_BIG_ENDIAN=$" - ) - - target_compile_definitions( - ${TARGET} - PRIVATE - $<${bde_ufid_is_mt}: _REENTRANT> - $<$: - "LINUX" - "efi2" - > - $<$: - "USE_REAL_MALLOC" - "LINUX" - "efi2" - > - $<$: - "USE_REAL_MALLOC" - "LINUX" - "efi2" - > - $<$: - "WINNT" - "WINDOWS" - "WNT" - $<${CMAKE_CL_64}: - "ia32" - > - > - $<$: - "SUNOS" - "efi2" - "__linux" - "__float80=double" - "BID_THREAD=" - > - $<$: - "LINUX" - "efi2" - "__linux" - "__QNX__" - "__thread=" - > - ) - - target_include_directories( - ${TARGET} - PUBLIC - $ - ) - - bde_struct_get_field(component ${installOpts} COMPONENT) - bde_struct_get_field(includeInstallDir ${installOpts} INCLUDE_DIR) - install( - FILES ${headers} - COMPONENT "${component}-headers" - DESTINATION "${includeInstallDir}/${TARGET}" - ) - - target_include_directories( - ${TARGET} - PUBLIC - $ - ) - - # Don't create interfaces to only use our own build/usage reqiurements - bde_struct_create( - uor - BDE_UOR_TYPE - NAME "${TARGET}" - TARGET "${TARGET}" - ) - standalone_package_install(${uor} ${listFile} ${installOpts}) - - # Meta data install - install( - DIRECTORY ${listDir} - COMPONENT "${component}-meta" - DESTINATION "share/bdemeta/thirdparty/${component}" - EXCLUDE_FROM_ALL - ) - - bde_return(${uor}) -endfunction() diff --git a/thirdparty/pcre2/package/pcre2.cmake b/thirdparty/pcre2/package/pcre2.cmake deleted file mode 100644 index 9b57ccca77..0000000000 --- a/thirdparty/pcre2/package/pcre2.cmake +++ /dev/null @@ -1,164 +0,0 @@ -include(bde_utils) -include(bde_struct) -include(bde_uor) - -bde_prefixed_override(pcre2 process_standalone_package) -function(pcre2_process_standalone_package retUOR listFile installOpts) - bde_assert_no_extra_args() - - get_filename_component(listDir ${listFile} DIRECTORY) - get_filename_component(rootDir ${listDir} DIRECTORY) - - set(TARGET pcre2) - - set(public_headers - ${rootDir}/pcre2.h - ${rootDir}/pcre2_internal.h - ${rootDir}/pcre2_intmodedep.h - ${rootDir}/pcre2_ucp.h - ) - - set(all_headers - ${rootDir}/config.h - ${public_headers} - ) - - set(sources - ${rootDir}/pcre2_auto_possess.c - ${rootDir}/pcre2_chartables.c - ${rootDir}/pcre2_compile.c - ${rootDir}/pcre2_config.c - ${rootDir}/pcre2_context.c - ${rootDir}/pcre2_convert.c - ${rootDir}/pcre2_dfa_match.c - ${rootDir}/pcre2_error.c - ${rootDir}/pcre2_extuni.c - ${rootDir}/pcre2_find_bracket.c - ${rootDir}/pcre2_jit_compile.c - ${rootDir}/pcre2_maketables.c - ${rootDir}/pcre2_match.c - ${rootDir}/pcre2_match_data.c - ${rootDir}/pcre2_newline.c - ${rootDir}/pcre2_ord2utf.c - ${rootDir}/pcre2_pattern_info.c - ${rootDir}/pcre2_script_run.c - ${rootDir}/pcre2_serialize.c - ${rootDir}/pcre2_string_utils.c - ${rootDir}/pcre2_study.c - ${rootDir}/pcre2_substitute.c - ${rootDir}/pcre2_substring.c - ${rootDir}/pcre2_tables.c - ${rootDir}/pcre2_ucd.c - ${rootDir}/pcre2_valid_utf.c - ${rootDir}/pcre2_xclass.c - ) - - bde_ufid_add_library(${TARGET} ${sources} ${all_headers}) - - # Set up PIC - # This code does not work in 3.8, but will be fixed in later versions. - # The -fPIC flag is set explicitely in the compile options for now. - if(${bde_ufid_is_shr} OR ${bde_ufid_is_pic}) - set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE 1) - endif() - - # Compile options and definitions. - target_compile_definitions( - ${TARGET} - PRIVATE - "PCRE2_CODE_UNIT_WIDTH=8" - "HAVE_CONFIG_H" - "SUPPORT_UNICODE" - ) - - # JIT support. Supported except 64-bit sparc. - if(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND ${bde_ufid_is_64}) - message(STATUS "JIT support is disabled for " ${CMAKE_SYSTEM_NAME}) - else() - target_compile_definitions( - ${TARGET} - PRIVATE - "SUPPORT_JIT" - ) - bde_log(VERBOSE "JIT support is enabled.") - endif() - - target_compile_options( - ${TARGET} - PRIVATE - # Compiler specific compile options. - $<$: - $<$: -fPIC> - > - $<$: - $<$: -fPIC> - > - $<$: - -fdiagnostics-show-option - -fno-strict-aliasing - -std=gnu99 - $<$: -fPIC> - > - $<$: - -temp=/bb/data/tmp - $<$: -xcode=pic32> - > - $<$: - $<$: -qpic> - $<${bde_ufid_is_mt}: -qthreaded> - > - ) - - target_compile_definitions( - ${TARGET} - PRIVATE - $<${bde_ufid_is_mt}: _REENTRANT> - $<$: - USE_REAL_MALLOC - > - ) - - get_filename_component( - EXTERNAL_INCLUDE_DIR - ${rootDir} DIRECTORY - ) - - target_include_directories( - ${TARGET} - PUBLIC - $ - ) - - bde_struct_get_field(component ${installOpts} COMPONENT) - bde_struct_get_field(includeInstallDir ${installOpts} INCLUDE_DIR) - install( - FILES ${public_headers} - COMPONENT "${component}-headers" - DESTINATION "${includeInstallDir}/${TARGET}" - ) - - target_include_directories( - ${TARGET} - PUBLIC - $ - ) - - # Don't create interfaces to only use our own build/usage reqiurements - bde_struct_create( - uor - BDE_UOR_TYPE - NAME "${TARGET}" - TARGET "${TARGET}" - ) - standalone_package_install(${uor} ${listFile} ${installOpts}) - - # Meta data install - install( - DIRECTORY ${listDir} - COMPONENT "${component}-meta" - DESTINATION "share/bdemeta/thirdparty/${component}" - EXCLUDE_FROM_ALL - ) - - bde_return(${uor}) -endfunction() diff --git a/thirdparty/ryu/package/ryu.cmake b/thirdparty/ryu/package/ryu.cmake deleted file mode 100644 index f1b9e70863..0000000000 --- a/thirdparty/ryu/package/ryu.cmake +++ /dev/null @@ -1,91 +0,0 @@ -include(bde_utils) -include(bde_struct) -include(bde_uor) - -bde_prefixed_override(ryu process_standalone_package) -function(ryu_process_standalone_package retUOR listFile installOpts) - bde_assert_no_extra_args() - - get_filename_component(listDir ${listFile} DIRECTORY) - get_filename_component(rootDir ${listDir} DIRECTORY) - - set(TARGET ryu) - - set(headers - ${rootDir}/blp_common.h - ${rootDir}/blp_common32.h - ${rootDir}/blp_common64.h - ${rootDir}/blp_ryu.h - ${rootDir}/common.h - ${rootDir}/d2fixed_full_table.h - ${rootDir}/d2s_full_table.h - ${rootDir}/d2s_intrinsics.h - ${rootDir}/d2s_small_table.h - ${rootDir}/digit_table.h - ${rootDir}/f2s_full_table.h - ${rootDir}/f2s_intrinsics.h - ${rootDir}/ryu.h - ) - - set(sources - ${rootDir}/blp_d2cpp.c - ${rootDir}/blp_f2cpp.c - ${rootDir}/blp_d2fixed_cpp.c - ${rootDir}/d2fixed.c - ${rootDir}/d2s.c - ${rootDir}/f2s.c - ) - - bde_ufid_add_library(${TARGET} ${sources} ${headers}) - - # Set up PIC - # This code does not work in 3.8, but will be fixed in later versions. - # The -fPIC flag is set explicitely in the compile options for now. - if(${bde_ufid_is_shr} OR ${bde_ufid_is_pic}) - set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE 1) - endif() - - get_filename_component( - EXTERNAL_INCLUDE_DIR - ${rootDir} DIRECTORY - ) - - target_include_directories( - ${TARGET} - PUBLIC - $ - ) - - bde_struct_get_field(component ${installOpts} COMPONENT) - bde_struct_get_field(includeInstallDir ${installOpts} INCLUDE_DIR) - install( - FILES ${headers} - COMPONENT "${component}-headers" - DESTINATION "${includeInstallDir}/${TARGET}" - ) - - target_include_directories( - ${TARGET} - PUBLIC - $ - ) - - # Don't create interfaces to only use our own build/usage reqiurements - bde_struct_create( - uor - BDE_UOR_TYPE - NAME "${TARGET}" - TARGET "${TARGET}" - ) - standalone_package_install(${uor} ${listFile} ${installOpts}) - - # Meta data install - install( - DIRECTORY ${listDir} - COMPONENT "${component}-meta" - DESTINATION "share/bdemeta/thirdparty/${component}" - EXCLUDE_FROM_ALL - ) - - bde_return(${uor}) -endfunction()