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
d9cbec6a
Commit
d9cbec6a
authored
Jun 11, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added boost.context
parent
732d3f1d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
2 deletions
+37
-2
CMakeLists.txt
CMakeLists.txt
+36
-2
third_party/boost_context
third_party/boost_context
+1
-0
No files found.
CMakeLists.txt
View file @
d9cbec6a
...
@@ -3,7 +3,7 @@ project(cppa)
...
@@ -3,7 +3,7 @@ project(cppa)
set
(
CMAKE_MODULE_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_CURRENT_SOURCE_DIR
}
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11 -Wextra -Wall -
Werror -
pedantic"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11 -Wextra -Wall -pedantic"
)
set
(
LIBCPPA_SRC
set
(
LIBCPPA_SRC
src/abstract_event_based_actor.cpp
src/abstract_event_based_actor.cpp
...
@@ -63,10 +63,44 @@ set(LIBCPPA_SRC
...
@@ -63,10 +63,44 @@ set(LIBCPPA_SRC
src/yielding_actor.cpp
src/yielding_actor.cpp
)
)
set
(
boost_context third_party/boost_context/
)
# add third_party boost_context sources
if
(
APPLE
)
set_property
(
SOURCE
${
boost_context
}
/src/asm/fcontext_x86_64_sysv_macho_gas.S
PROPERTY LANGUAGE C
)
set
(
LIBCPPA_SRC
${
LIBCPPA_SRC
}
${
boost_context
}
/src/stack_utils_posix.cpp
${
boost_context
}
/src/stack_allocator_posix.cpp
${
boost_context
}
/src/fcontext.cpp
${
boost_context
}
/src/asm/fcontext_x86_64_sysv_macho_gas.S
)
elseif
(
UNIX
)
if
(
CMAKE_SIZEOF_VOID_P EQUAL 4
)
set_property
(
SOURCE
${
boost_context
}
/src/asm/fcontext_i386_sysv_elf_gas.S
PROPERTY LANGUAGE C
)
set
(
fcontext_asm
${
boost_context
}
/src/asm/fcontext_i386_sysv_elf_gas.S
)
else
()
set_property
(
SOURCE
${
boost_context
}
/src/asm/fcontext_x86_64_sysv_elf_gas.S
PROPERTY LANGUAGE C
)
set
(
fcontext_asm
${
boost_context
}
/src/asm/fcontext_x86_64_sysv_elf_gas.S
)
endif
()
set
(
LIBCPPA_SRC
${
LIBCPPA_SRC
}
${
boost_context
}
/src/stack_utils_posix.cpp
${
boost_context
}
/src/stack_allocator_posix.cpp
${
boost_context
}
/src/fcontext.cpp
)
endif
()
find_package
(
Boost COMPONENTS thread REQUIRED
)
find_package
(
Boost COMPONENTS thread REQUIRED
)
link_directories
(
${
Boost_LIBRARY_DIRS
}
)
link_directories
(
${
Boost_LIBRARY_DIRS
}
)
include_directories
(
.
${
Boost_INCLUDE_DIRS
}
)
include_directories
(
.
${
Boost_INCLUDE_DIRS
}
${
boost_context
}
/include
)
add_library
(
libcppa SHARED
${
LIBCPPA_SRC
}
)
add_library
(
libcppa SHARED
${
LIBCPPA_SRC
}
)
...
...
boost_context
@
578563a0
Subproject commit 578563a07fa51eef5ed29d920440aa1b47b3321a
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