36 Commits

Author SHA1 Message Date
Azat Khuzhin
0546744503 Deploy documentation to libevent-doc.github.io
Based-on: 4a86dcb4df.patch (by @ygj6)
2019-09-08 13:43:41 +03:00
yuangongji (A)
b002f04f03
doc: cmake command on Windows
Closes: #825 (cherry-pick)
2019-06-03 23:43:45 +03:00
Sayan Nandan
42cc731b1a
Update documentation [ci skip]
The documentation for building and installing has been moved into a new
Documentation section

Closes: #788 (cherry-picked)
2019-03-11 20:11:44 +03:00
Sayan Nandan
56c9551e2d
Move list of contributors into separate file
Closes: #786 (cherry-picked)
2019-03-08 15:13:19 +03:00
Azat Khuzhin
2fccb967c5
Update link to the appveyor project
Since the migration request has been hanged for a while, let's switch it
for now without beauty API URL.

Fixes: #555
2019-02-24 23:04:24 +03:00
Azat Khuzhin
63c6669fd8
Use the logo from the libevent.org 2019-02-06 00:12:46 +03:00
Azat Khuzhin
90d80ef416
cmake: do not build both (SHARED and STATIC) for MSVC/win32
MSVC does not support SHARED and STATIC libraries with the same name,
so let's just build SHARED libraries by default instead (yes we can add
prefix but let's stick with this).

The reason for this is that in windows shared libraries requires .lib
file too, but this is not static library it is imported library for
shared (doh...), for more info [1] and [2].

  [1]: https://docs.microsoft.com/en-us/windows/desktop/dlls/dynamic-link-library-creation
  [2]: https://blogs.msdn.microsoft.com/oldnewthing/20091013-00/?p=16403

And when we build both static library can and will override shared
library imported part, let's take a look at event_extra.lib:

- before patch [3]:
  $ less libevent-fail/lib/Debug/event_extra.lib | head
  ==> use library:contained_file to view a file in the archive
  rw-rw-rw- 100666/100666  59568 Nov 21 23:55 2018 event_extra_static.dir/Debug/evrpc.obj
  rw-rw-rw- 100666/100666 252219 Nov 21 23:55 2018 event_extra_static.dir/Debug/evdns.obj
  rw-rw-rw- 100666/100666 203850 Nov 21 23:55 2018 event_extra_static.dir/Debug/http.obj
  rw-rw-rw- 100666/100666  25907 Nov 21 23:55 2018 event_extra_static.dir/Debug/event_tagging.obj

  [3]: https://ci.appveyor.com/project/azat/libevent/builds/20472024/job/t0o93v042jai0dj7

- "after patch" [4] (not after but the same effect):
  $ less libevent-ok/lib/Debug/event_extra.lib | head
  ==> use library:contained_file to view a file in the archive
  --------- 0/0    509 Nov 21 23:38 2018 event_extra.dll
  ...

  [4]: https://ci.appveyor.com/project/azat/libevent/builds/20478998/job/ca9k3c76amc4qr76

Refs: #691
2018-11-23 00:41:18 +03:00
Azat Khuzhin
c9a073eae8
cmake: introduce EVENT__LIBRARY_TYPE option
Long time ago in [1] cmake build was forced to compile both libraries
(SHARED and STATIC), since this is how our autotools build works.

  [1]: 7182c2f561570cd9ceb704623ebe9ae3608c7b43 ("cmake: build SHARED and STATIC libraries (like autoconf does)")

And there is no way to configure this (and indeed you need to do this
for MSVC for example), so let's introduce option for this --
EVENT__LIBRARY_TYPE.

Plus now we have INTERFACE libraries, that we can use internally in
libevent's cmake rules to avoid strict to _shared/_static variant of the
libraries to link with samples/tests (we prefer SHARED over STATIC for
linking).

Also bump minimal cmake required version to 3.1 by the following
reasons:
- 3.1 is required for RPATH configuration under APPLE
- 3.0 is required for add_library(INTERFACE) (did not found it in 2.8.x
documentation)
- remove extra conditions
(anyway 3.1 was release 4 years ago, so I guess that most of the systems
will have it)
2018-11-23 00:02:18 +03:00
Aapeli
ee0c57993f
Capitalise project names consistently in README.md 2018-08-01 10:29:43 +10:00
Aapeli
72426ff433
Indent configure flag section to make markdown format them as code 2018-08-01 10:24:50 +10:00
Aapeli
a52bd1e37f
Use https for resources that support it 2018-08-01 10:21:57 +10:00
Aapeli
560d4f3296
Rewords awkward sentences in README.md 2018-08-01 10:20:28 +10:00
Aapeli
e5816df59e
Fix typos in README.md 2018-08-01 10:17:42 +10:00
The Gitter Badger
ba78ba9e8b Add Gitter badge 2018-04-16 02:10:59 +03:00
Azat Khuzhin
62866f98a5 Remove OpenSSL paragram from README
Because it is mauvais ton to use binaries instead of normal packages
(like apt-get in debian, pacman in arch, and others).

Plus that link was borken and according to [1] OpenSSL do not ship
binaries officially.

And personally I don't think that this is not obvious that you need
openssl libraries to build libevent with it's support, and BTW you need
headers too (of course).

[1]: https://www.openssl.org/community/binaries.html
Fixes: #562
2017-09-24 15:14:32 +03:00
Gonçalo Ribeiro
f988c5ca0e Correct URL for the libevent logo 2017-04-29 23:37:20 +03:00
Azat Khuzhin
fd5a3fc036 cmake: fix export absolute path and relative path and cleanup a bit
Remove next vars, since I don't think that somebody want to change it:
- bin
- lib
- include

And fix exports problem:
  CMake Error: INSTALL(EXPORT "LibeventTargets") given absolute DESTINATION "/usr/lib/cmake/libevent" but the export references an installation of target "event_core_static" which has relative DESTINATION "lib".
2017-03-13 16:20:40 +03:00
Azat Khuzhin
7182c2f561 cmake: build SHARED and STATIC libraries (like autoconf does)
Since they are useful for debugging, and if autotools build them then
cmamke has to do this too, to make migration more simple.

And now:
- tests: uses shared libraries (since this is upstreams one)
- other binaries: uses static libraries

This removes next private config:
- EVENT__NEED_DLLIMPORT
2017-03-13 16:20:40 +03:00
Azat Khuzhin
fe2c2622c3 Make EVENT_STAGE_NAME non cached
It did not work before correctly anyway, since cmake do not reset cache
entries by default, so that reset to "beta" didn't work.

But I don't think that making this variable cached is useful, so let's
remove this.
2017-01-29 20:35:57 +03:00
Azat Khuzhin
50824ae2a0 README: update AUTHORS
$ git log --format='%an' HEAD...refs/tags/release-2.1.6-beta | sort -u | xargs -n1 -i bash -c 'fgrep -q "{}" README.md || echo {}'
2017-01-22 16:14:30 +03:00
Breaker
3821cca1a6 Update README.md
The default option of  EVENT__DISABLE_OPENSSL:BOOL is `OFF`
2016-12-23 16:19:35 +08:00
Azat Khuzhin
5904dd53b2 README: update AUTHORS
$ git log --format='%an' HEAD...refs/tags/release-2.1.6-beta | sort -u | xargs -n1 -i bash -c 'fgrep -q "{}" README.md || echo {}'
2016-11-04 03:32:57 +03:00
Azat Khuzhin
9ac000c724 Use coveralls.io via travis 2016-11-02 15:42:16 +03:00
Simone Basso
236161611f README.md: fix typo: ar -> are 2016-10-21 10:49:22 +02:00
Azat Khuzhin
3298c254b7 Update AUTHORS section in README
P.S. "Sebastian Hahn" was declared two times.
2016-08-27 01:28:36 +03:00
Mark Ellzey
b8ec70c461 Update README.md 2015-12-23 02:42:48 -08:00
Mark Ellzey
8b228e27f5 Lot's of cmake updates
This is still not done, cmake here was a horrid mess, but we're
getting our act together now.
2015-12-19 01:47:49 -08:00
Mark Ellzey
80faee9fbb Update README.md 2015-05-13 00:52:40 -04:00
Mark Ellzey
ad4a897a76 Update README.md 2015-05-13 00:51:07 -04:00
Mark Ellzey
a2b2e1e6f7 Update README.md 2015-05-13 00:49:08 -04:00
Mark Ellzey
0dfa5dc671 Update README.md 2015-05-12 15:33:26 -04:00
Nick Mathewson
e6c6f12050 Bring changelog up to date for 2.1.4-alpha 2014-03-16 12:01:44 -04:00
Nick Mathewson
d03b5bf0bc Disclaimerize cmake a little in the README 2014-01-21 14:29:00 -05:00
JoakimSoderberg
8d4cb35dda Clean up the README some. 2014-01-14 18:41:58 +01:00
Joakim Soderberg
604b8cc4d1 Update README with CMake build instructions. 2014-01-14 18:25:07 +01:00
Joakim Soderberg
d2bc39afd0 Rename README to README.md and use markdown to format. 2014-01-14 18:24:43 +01:00