Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
fbcc262e
Commit
fbcc262e
authored
Sep 22, 2017
by
Dominik Charousset
Committed by
GitHub
Sep 22, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #590
Support for static runtime
parents
7755e88b
974515f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
25 deletions
+59
-25
CMakeLists.txt
CMakeLists.txt
+55
-25
configure
configure
+4
-0
No files found.
CMakeLists.txt
View file @
fbcc262e
...
@@ -15,6 +15,35 @@ if(WIN32 AND NOT CAF_BUILD_STATIC_ONLY)
...
@@ -15,6 +15,35 @@ if(WIN32 AND NOT CAF_BUILD_STATIC_ONLY)
set
(
CAF_BUILD_STATIC_ONLY yes
)
set
(
CAF_BUILD_STATIC_ONLY yes
)
endif
()
endif
()
if
(
CAF_BUILD_STATIC_RUNTIME
)
set
(
flags_configs
CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_C_FLAGS
CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_MINSIZEREL
)
foreach
(
flags
${
flags_configs
}
)
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"GNU"
OR CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
if
(
NOT
${
flags
}
MATCHES
"-static-libstdc
\\
+
\\
+"
)
set
(
${
flags
}
"
${${
flags
}}
-static-libstdc++"
)
endif
()
if
(
NOT
${
flags
}
MATCHES
"-static-libgcc"
)
set
(
${
flags
}
"
${${
flags
}}
-static-libgcc"
)
endif
()
elseif
(
MSVC
)
if
(
${
flags
}
MATCHES
"/MD"
)
string
(
REGEX REPLACE
"/MD"
"/MT"
${
flags
}
"
${${
flags
}}
"
)
endif
()
endif
()
endforeach
()
endif
()
# add helper target that simplifies re-running configure
# add helper target that simplifies re-running configure
add_custom_target
(
configure COMMAND
${
CMAKE_CURRENT_BINARY_DIR
}
/config.status
)
add_custom_target
(
configure COMMAND
${
CMAKE_CURRENT_BINARY_DIR
}
/config.status
)
...
@@ -714,35 +743,36 @@ if(NOT CAF_NO_SUMMARY)
...
@@ -714,35 +743,36 @@ if(NOT CAF_NO_SUMMARY)
message
(
STATUS
message
(
STATUS
"
\n
====================| Build Summary |===================="
"
\n
====================| Build Summary |===================="
"
\n
"
"
\n
"
"
\n
Libcaf version:
${
CAF_VERSION
}
"
"
\n
Libcaf version:
${
CAF_VERSION
}
"
"
\n
"
"
\n
"
"
\n
Build type:
${
CMAKE_BUILD_TYPE
}
"
"
\n
Build type:
${
CMAKE_BUILD_TYPE
}
"
"
\n
Build static:
${
CAF_BUILD_STATIC
}
"
"
\n
Build static:
${
CAF_BUILD_STATIC
}
"
"
\n
Build static only:
${
CAF_BUILD_STATIC_ONLY
}
"
"
\n
Build static only:
${
CAF_BUILD_STATIC_ONLY
}
"
"
\n
Runtime checks:
${
CAF_ENABLE_RUNTIME_CHECKS
}
"
"
\n
Build static runtime:
${
CAF_BUILD_STATIC_RUNTIME
}
"
"
\n
Log level:
${
LOG_LEVEL_STR
}
"
"
\n
Runtime checks:
${
CAF_ENABLE_RUNTIME_CHECKS
}
"
"
\n
With mem. mgmt.:
${
CAF_BUILD_MEM_MANAGEMENT
}
"
"
\n
Log level:
${
LOG_LEVEL_STR
}
"
"
\n
With exceptions:
${
CAF_BUILD_WITH_EXCEPTIONS
}
"
"
\n
With mem. mgmt.:
${
CAF_BUILD_MEM_MANAGEMENT
}
"
"
\n
With exceptions:
${
CAF_BUILD_WITH_EXCEPTIONS
}
"
"
\n
"
"
\n
"
"
\n
Build I/O module:
${
CAF_BUILD_IO
}
"
"
\n
Build I/O module:
${
CAF_BUILD_IO
}
"
"
\n
Build tools:
${
CAF_BUILD_TOOLS
}
"
"
\n
Build tools:
${
CAF_BUILD_TOOLS
}
"
"
\n
Build examples:
${
CAF_BUILD_EXAMPLES
}
"
"
\n
Build examples:
${
CAF_BUILD_EXAMPLES
}
"
"
\n
Build unit tests:
${
CAF_BUILD_UNIT_TESTS
}
"
"
\n
Build unit tests:
${
CAF_BUILD_UNIT_TESTS
}
"
"
\n
Build benchmarks:
${
CAF_BUILD_BENCHMARKS
}
"
"
\n
Build benchmarks:
${
CAF_BUILD_BENCHMARKS
}
"
"
\n
Build OpenCL:
${
CAF_BUILD_OPENCL
}
"
"
\n
Build OpenCL:
${
CAF_BUILD_OPENCL
}
"
"
\n
Build OpenSSL:
${
CAF_BUILD_OPENSSL
}
"
"
\n
Build OpenSSL:
${
CAF_BUILD_OPENSSL
}
"
"
\n
Build Python:
${
CAF_BUILD_PYTHON
}
"
"
\n
Build Python:
${
CAF_BUILD_PYTHON
}
"
"
\n
"
"
\n
"
"
\n
CXX:
${
CMAKE_CXX_COMPILER
}
"
"
\n
CXX:
${
CMAKE_CXX_COMPILER
}
"
"
\n
CXXFLAGS:
${
ALL_CXX_FLAGS
}
"
"
\n
CXXFLAGS:
${
ALL_CXX_FLAGS
}
"
"
\n
LIBRARIES:
${
LD_FLAGS
}
"
"
\n
LIBRARIES:
${
LD_FLAGS
}
"
"
\n
"
"
\n
"
"
\n
Source directory:
${
CMAKE_CURRENT_SOURCE_DIR
}
"
"
\n
Source directory:
${
CMAKE_CURRENT_SOURCE_DIR
}
"
"
\n
Build directory:
${
CMAKE_CURRENT_BINARY_DIR
}
"
"
\n
Build directory:
${
CMAKE_CURRENT_BINARY_DIR
}
"
"
\n
Executable path:
${
EXECUTABLE_OUTPUT_PATH
}
"
"
\n
Executable path:
${
EXECUTABLE_OUTPUT_PATH
}
"
"
\n
Library path:
${
LIBRARY_OUTPUT_PATH
}
"
"
\n
Library path:
${
LIBRARY_OUTPUT_PATH
}
"
"
\n
Install prefix:
${
CMAKE_INSTALL_PREFIX
}
"
"
\n
Install prefix:
${
CMAKE_INSTALL_PREFIX
}
"
"
\n
Generator:
${
CMAKE_GENERATOR
}
"
"
\n
Generator:
${
CMAKE_GENERATOR
}
"
"
\n
"
"
\n
"
"
\n
===========================================================
\n
"
)
"
\n
===========================================================
\n
"
)
endif
()
endif
()
configure
View file @
fbcc262e
...
@@ -47,6 +47,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
...
@@ -47,6 +47,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--dual-build build using both gcc and clang
--dual-build build using both gcc and clang
--build-static build as static and shared library
--build-static build as static and shared library
--build-static-only build as static library only
--build-static-only build as static library only
--static-runtime build with static C++ runtime
--more-warnings enables most warnings
--more-warnings enables most warnings
--no-compiler-check disable compiler version check
--no-compiler-check disable compiler version check
--no-auto-libc++ do not automatically enable libc++ for Clang
--no-auto-libc++ do not automatically enable libc++ for Clang
...
@@ -353,6 +354,9 @@ while [ $# -ne 0 ]; do
...
@@ -353,6 +354,9 @@ while [ $# -ne 0 ]; do
--build-static-only
)
--build-static-only
)
append_cache_entry CAF_BUILD_STATIC_ONLY BOOL
yes
append_cache_entry CAF_BUILD_STATIC_ONLY BOOL
yes
;;
;;
--static-runtime
)
append_cache_entry CAF_BUILD_STATIC_RUNTIME BOOL
yes
;;
--with-javac
=
*
)
--with-javac
=
*
)
append_cache_entry CAF_JAVA_COMPILER FILEPATH
"
$optarg
"
append_cache_entry CAF_JAVA_COMPILER FILEPATH
"
$optarg
"
;;
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment