# HG changeset patch # User Tassilo Philipp # Date 1663598291 -7200 # Node ID 01a5762c6fba27c6704491b4b6153696eb295174 # Parent 9d5945683e30e49169ee6b2d955f0882b6924a6d - relaxed cmake's c++ compiler check for test suite a bit by just checking if compiler string is set (existing CMAKE_CXX_COMPILER_WORKS fails on some platforms) - cmake name fix for plain_c++ test - changelog cosmetics for consistency diff -r 9d5945683e30 -r 01a5762c6fba ChangeLog --- a/ChangeLog Mon Sep 19 11:41:42 2022 +0200 +++ b/ChangeLog Mon Sep 19 16:38:11 2022 +0200 @@ -263,7 +263,7 @@ o added subproject: autovar - predefined macro framework (was dyncall_macros.h) o added support for Solaris and SunPro compiler for i386, x86_64, sparc and sparc64 o improved auto-detection via preprocessor defines -dyncall updates: +dyncall: o uses portasm (GNU,Apple,Microsoft) common sources for x86,x64,ppc32,arm32_arm o added support for sparc (32-bit) (tested on linux/debian,openbsd,solaris) o added support for sparc (64-bit) (tested on linux/debian,openbsd,solaris) @@ -278,13 +278,13 @@ o bug fix for ppc32/sysv: ellipsis calls work now o updated API, introduced DC_CALL_C_ELLIPSIS_VARARGS o changed interface: dcMode does not reset internally anymore -dyncallback updates: +dyncallback: o uses portasm for x86,x64 o added Solaris/x86/sunpro port (stable) o added Minix port (unstable) o callback support for Darwin/ppc32 o updates source, uses relative includes -dynload updates: +dynload: o fixes for missing includes (dyncall_alloc.h) o fixes for self-resolving symbols on windows o removed Dbghelf.lib dependency @@ -314,7 +314,7 @@ o fixes for universal builds on Mac OS X o supports SunPro with *.S files. o added experimental 'dynMake' portable make-based build-system (not stable, yet) -documentation updates: +doc: o added dyncallback documentation o updated dyncall documentation o minor updates @@ -322,21 +322,20 @@ o added flexible test suite for calls (call_suite) based on Lua and C o added syscall test o updates to resolve-self test (adding additional link flags to export symbols) - o improved dir name portability (renamed plain_c++ -> plain_cxx) o renamed *.cpp -> *.cc files (OpenBSD/Sun make has no implicit rules for cpp) Version 0.6 (2010/09/25) -building: +buildsys: o new build systems: CMake and Plan9's mk o buildsys/gmake tool chain update: pcc and iphone sdk o x64 bugfix: added "-fPIC" even for static libs -dynload updates: +dynload: o enum symbols update: Mach-O and Win64 (thanks Olivier) o numerous convenience changes to dynload interface (thanks Olivier) o added support for resolving application images itself -dyncall updates: +dyncall: o new platform support: arm/iphone (armv6), x86/Plan9 o new MIPS calling conventions: o32, n64 (both endian models) o cleanup: unexported functions in MASM files, b/c export not needed (thanks Olivier) diff -r 9d5945683e30 -r 01a5762c6fba test/CMakeLists.txt --- a/test/CMakeLists.txt Mon Sep 19 11:41:42 2022 +0200 +++ b/test/CMakeLists.txt Mon Sep 19 16:38:11 2022 +0200 @@ -4,14 +4,14 @@ ${PROJECT_SOURCE_DIR}/dyncallback ) -if (CMAKE_CXX_COMPILER_WORKS) +if(CMAKE_CXX_COMPILER) add_subdirectory(plain_c++) add_subdirectory(callback_plain_c++) add_subdirectory(suite2) add_subdirectory(suite3) add_subdirectory(suite_floats) add_subdirectory(ellipsis) -endif () +endif() add_subdirectory(call_suite) add_subdirectory(call_suite_aggrs) @@ -28,7 +28,7 @@ add_subdirectory(callback_plain) add_subdirectory(sharedlib) -if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86" AND CMAKE_CXX_COMPILER_WORKS) +if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86" AND CMAKE_CXX_COMPILER) add_subdirectory(suite_x86win32fast) add_subdirectory(suite_x86win32std) add_subdirectory(suite2_x86win32fast) diff -r 9d5945683e30 -r 01a5762c6fba test/plain_c++/CMakeLists.txt --- a/test/plain_c++/CMakeLists.txt Mon Sep 19 11:41:42 2022 +0200 +++ b/test/plain_c++/CMakeLists.txt Mon Sep 19 16:38:11 2022 +0200 @@ -1,4 +1,4 @@ -add_executable(plain_cxx test_main.cc) -target_link_libraries(plain_cxx dyncall_s) +add_executable(plain_c++ test_main.cc) +target_link_libraries(plain_c++ dyncall_s)