forked from owent/libcopp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
235 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,31 @@ | ||
libcopp | ||
======= | ||
> cross-platform coroutine library of c++ | ||
> | ||
|
||
> cross-platform coroutine library in c++ | ||
> | ||
> in developing ... | ||
> | ||
> Build & Run Unit Test in | Linux+OSX(Clang+GCC) | Windows(VC+MinGW) | | ||
> -------------------------|-----------------------|-------------| | ||
> Status | [![Build Status](https://travis-ci.org/owt5008137/libcopp.svg?branch=master)](https://travis-ci.org/owt5008137/libcopp) | [![Build status](https://ci.appveyor.com/api/projects/status/7w6dfnpeahfmgaqj?svg=true)](https://ci.appveyor.com/project/owt5008137/libcopp) | | ||
> Compilers | linux-gcc-4.4 <br /> linux-gcc-4.6 <br /> linux-gcc-4.9 <br /> linux-gcc-6 <br /> linux-clang-3.5 <br /> osx-apple-clang-6.0 <br /> | MSVC 12(Visual Studio 2013) <br /> MSVC 14(Visual Studio 2015) <br /> MinGW64-gcc | ||
> | ||
|
||
Gitter | ||
------ | ||
[![Gitter](https://badges.gitter.im/owt5008137/libcopp.svg)](https://gitter.im/owt5008137/libcopp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) | ||
|
||
LICENSE | ||
------- | ||
|
||
## LICENSE | ||
License under the MIT license | ||
|
||
## Document | ||
Document | ||
-------- | ||
|
||
Generate document with doxygen. | ||
|
||
Doxygen file located at *doc/libcopp.doxyfile* . | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,63 @@ | ||
# INSTALL | ||
INSTALL | ||
======= | ||
|
||
> libcopp use cmake to generate makefile and switch build tools. | ||
## Prerequisites | ||
+ **[required]** GCC or Clang or VC support ISO C++ 98 and upper | ||
+ **[required]** [cmake](www.cmake.org) 2.8.9 and upper | ||
+ **[optional]** [gtest](https://code.google.com/p/googletest/) 1.6.0 and upper (better test supported) | ||
Prerequisites | ||
------------- | ||
|
||
### Unix | ||
* **[required]** ar, as, ld ([binutils](http://www.gnu.org/software/binutils/)) | ||
* **[optional]** if using [gtest](https://code.google.com/p/googletest/), pthread is required. | ||
- **[required]** GCC or Clang or VC support ISO C++ 03 and upper | ||
- **[required]** [cmake](www.cmake.org) 3.1.0 and upper | ||
- **[optional]** [gtest](https://code.google.com/p/googletest/) 1.6.0 and upper (better test supported) | ||
- **[optional]** [Boost.Test](http://www.boost.org/doc/libs/release/libs/test/) (Boost.Test supported) | ||
|
||
### Unix | ||
|
||
- **[required]** ar, as, ld ([binutils](http://www.gnu.org/software/binutils/)) | ||
- **[optional]** if using [gtest](https://code.google.com/p/googletest/), pthread is required. | ||
|
||
### Windows | ||
* **[required]** masm (in vc) | ||
* **[optional]** if using [gtest](https://code.google.com/p/googletest/), pthread is required. | ||
|
||
- **[required]** masm (in vc) | ||
- **[optional]** if using [gtest](https://code.google.com/p/googletest/), pthread is required. | ||
|
||
Build | ||
----- | ||
|
||
## Build | ||
**1. make a build directory** | ||
|
||
mkdir build | ||
|
||
**2. run cmake command** | ||
|
||
cmake <libcopp dir> [options] | ||
> options can be cmake options. such as set compile toolchains, source directory or options of libcopp that control build actions. | ||
> libcopp options are listed below: | ||
|
||
>> -DBUILD_SHARED_LIBS=YES|NO [default=NO] enable build dynamic library. | ||
> options can be cmake options. such as set compile toolchains, source directory or options of libcopp that control build actions. libcopp options are listed below: | ||
> > -DBUILD\_SHARED\_LIBS=YES|NO [default=NO] enable build dynamic library. | ||
>> -DLIBCOPP_ENABLE_SEGMENTED_STACKS=YES|NO [default=NO] enable split stack supported context.(it's only availabe in linux and gcc 4.7.0 or upper) | ||
> > -DLIBCOPP\_ENABLE\_SEGMENTED\_STACKS=YES|NO [default=NO] enable split stack supported context.(it's only availabe in linux and gcc 4.7.0 or upper) | ||
>> -DGTEST_ROOT=[path] set gtest library install prefix path | ||
> > -DLIBCOPP\_ENABLE\_VALGRIND=YES|NO [default=YES] enable valgrind supported context. | ||
> > -DGTEST\_ROOT=[path] set gtest library install prefix path | ||
**3. make libcopp** | ||
|
||
make [options] | ||
|
||
**4. run test** *[optional]* | ||
|
||
test/coroutine_test | ||
make unit_test | ||
|
||
**5. run benchmark** *[optional]* | ||
|
||
make benchmark | ||
|
||
**5. install** *[optional]* | ||
**6. install** *[optional]* | ||
|
||
make install | ||
|
||
> Or you can just copy include directory and libcopp.a in lib or lib64 into your project to use it. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# NOTICE | ||
split stack support: if in Linux and user gcc 4.7.0 or upper, add -DLIBCOPP_ENABLE_SEGMENTED_STACKS=YES to use split stack supported context. | ||
NOTICE | ||
====== | ||
|
||
split stack support: if in Linux and user gcc 4.7.0 or upper, add -DLIBCOPP\_ENABLE\_SEGMENTED\_STACKS=YES to use split stack supported context. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
# DEVELOPER | ||
DEVELOPER | ||
========= | ||
|
||
[basic coroutine object summary](doc/basic_coroutine_class.txt) | ||
|
||
[safe coroutine object summary](doc/safe_basic_coroutine_class.txt) | ||
|
||
|
||
|
Oops, something went wrong.