Skip to content

Commit

Permalink
Adding libev
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Jan 14, 2018
1 parent f0a2edc commit 415a216
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ deps/clickhouse-cpp
deps/cityhash/cityhash/
deps/lz4/lz4-1.7.5/

#libev
deps/libev/libev-4.24/

test/.vagrant
.DS_Store
proxysql-tests.ini
Expand Down
12 changes: 10 additions & 2 deletions deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@ endif

PROXYSQLCLICKHOUSE := $(shell echo $(PROXYSQLCLICKHOUSE))
ifeq ($(PROXYSQLCLICKHOUSE),1)
default: libconfig libdaemon jemalloc mariadb_client re2 sqlite3 pcre clickhouse-cpp lz4 cityhash microhttpd curl
default: libconfig libdaemon jemalloc mariadb_client re2 sqlite3 pcre clickhouse-cpp lz4 cityhash microhttpd curl libev
else
default: libconfig libdaemon jemalloc mariadb_client re2 sqlite3 pcre microhttpd curl
default: libconfig libdaemon jemalloc mariadb_client re2 sqlite3 pcre microhttpd curl libev
endif
.PHONY: default

libev/libev/.libs/libev.a:
cd libev && rm -rf libev-4.24 || true
cd libev && tar -zxf libev-4.24.tar.gz
cd libev/libev && ./configure
cd libev/libev && CC=${CC} CXX=${CXX} ${MAKE}
libev: libev/libev/.libs/libev.a


curl/curl/lib/.libs/libcurl.a:
cd curl && rm -rf curl-7.57.0 || true
cd curl && tar -zxf curl-7.57.0.tar.gz
Expand Down
37 changes: 37 additions & 0 deletions deps/libev/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
All files in libev are
Copyright (c)2007,2008,2009,2010,2011,2012,2013 Marc Alexander Lehmann.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Alternatively, the contents of this package may be used under the terms
of the GNU General Public License ("GPL") version 2 or any later version,
in which case the provisions of the GPL are applicable instead of the
above. If you wish to allow the use of your version of this package only
under the terms of the GPL and not to allow others to use your version of
this file under the BSD license, indicate your decision by deleting the
provisions above and replace them with the notice and other provisions
required by the GPL in this and the other files of this package. If you do
not delete the provisions above, a recipient may use your version of this
file under either the BSD or the GPL.
1 change: 1 addition & 0 deletions deps/libev/libev
Binary file added deps/libev/libev-4.24.tar.gz
Binary file not shown.

0 comments on commit 415a216

Please sign in to comment.