From 6156b4eeb9a429ccc370782d719d0d6c787a6f72 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Fri, 8 Nov 2019 22:55:56 +0000 Subject: [cmake] Add support to generate arbitrary runtime library configurations Every runtime library can be build with multiple configurations. Replace the Makefile-based setup by cmake one. Currently, we generate 32bit and 64bit libraries simultaneously and can link against them. --- runtime/POSIX/CMakeLists.txt | 26 ++++++++++++++++++++++++++ runtime/POSIX/Makefile.cmake.bitcode | 15 --------------- 2 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 runtime/POSIX/CMakeLists.txt delete mode 100644 runtime/POSIX/Makefile.cmake.bitcode (limited to 'runtime/POSIX') diff --git a/runtime/POSIX/CMakeLists.txt b/runtime/POSIX/CMakeLists.txt new file mode 100644 index 00000000..02d06736 --- /dev/null +++ b/runtime/POSIX/CMakeLists.txt @@ -0,0 +1,26 @@ +#===------------------------------------------------------------------------===# +# +# The KLEE Symbolic Virtual Machine +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +#===------------------------------------------------------------------------===# +# Set up +set(LIB_PREFIX "RuntimePOSIX") +set(SRC_FILES + fd.c + fd_32.c + fd_64.c + fd_init.c + illegal.c + klee_init_env.c + misc.c + selinux.c + stubs.c + ) + +# Build it +include("${CMAKE_SOURCE_DIR}/cmake/compile_bitcode_library.cmake") +prefix_with_path("${SRC_FILES}" "${CMAKE_CURRENT_SOURCE_DIR}/" prefixed_files) +add_bitcode_library_targets("${LIB_PREFIX}" "${prefixed_files}" "-std=gnu89" "") \ No newline at end of file diff --git a/runtime/POSIX/Makefile.cmake.bitcode b/runtime/POSIX/Makefile.cmake.bitcode deleted file mode 100644 index 66e250ff..00000000 --- a/runtime/POSIX/Makefile.cmake.bitcode +++ /dev/null @@ -1,15 +0,0 @@ -#===--------------------------------------------------------*- Makefile -*--===# -# -# The KLEE Symbolic Virtual Machine -# -# This file is distributed under the University of Illinois Open Source -# License. See LICENSE.TXT for details. -# -#===------------------------------------------------------------------------===# -LEVEL := ../ - -include $(LEVEL)/Makefile.cmake.bitcode.config - -ARCHIVE_NAME=kleeRuntimePOSIX - -include $(LEVEL)/Makefile.cmake.bitcode.rules -- cgit 1.4.1