forked from conan-io/conan-center-index
-
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.
(conan-io#14138) libev: msvc support
* libev for msvc * * remove cmake from patch * Apply suggestions from code review Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> * * remove config from patch * * conanfile depended export * * remove patches * do not copy CMakeLists to src folder * Apply suggestions from code review Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com> Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
- Loading branch information
1 parent
bf7beae
commit a308ef4
Showing
3 changed files
with
181 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
cmake_minimum_required(VERSION 3.14) | ||
project(ev C) | ||
|
||
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||
|
||
set(EV_PUBLIC_HEADERS | ||
"${EV_SRC_DIR}/ev.h" | ||
"${EV_SRC_DIR}/config.h") | ||
add_library(ev "${EV_SRC_DIR}/ev.c") | ||
target_link_libraries(ev PUBLIC ws2_32) | ||
target_compile_definitions(ev PRIVATE HAVE_CONFIG_H=1) | ||
target_include_directories(ev PUBLIC ${EV_SRC_DIR}) | ||
|
||
set_target_properties(ev PROPERTIES PUBLIC_HEADER "${EV_PUBLIC_HEADERS}") | ||
include(GNUInstallDirs) | ||
|
||
install(TARGETS ev | ||
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} | ||
) |
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 |
---|---|---|
@@ -0,0 +1,128 @@ | ||
/* config.h.in. Generated from configure.ac by autoheader. */ | ||
|
||
/* Define to 1 if you have the `clock_gettime' function. */ | ||
#undef HAVE_CLOCK_GETTIME | ||
|
||
/* Define to 1 to use the syscall interface for clock_gettime */ | ||
#undef HAVE_CLOCK_SYSCALL | ||
|
||
/* Define to 1 if you have the <dlfcn.h> header file. */ | ||
#undef HAVE_DLFCN_H | ||
|
||
/* Define to 1 if you have the `epoll_ctl' function. */ | ||
#undef HAVE_EPOLL_CTL | ||
|
||
/* Define to 1 if you have the `eventfd' function. */ | ||
#undef HAVE_EVENTFD | ||
|
||
/* Define to 1 if the floor function is available */ | ||
#undef HAVE_FLOOR | ||
|
||
/* Define to 1 if you have the `inotify_init' function. */ | ||
#undef HAVE_INOTIFY_INIT | ||
|
||
/* Define to 1 if you have the <inttypes.h> header file. */ | ||
#undef HAVE_INTTYPES_H | ||
|
||
/* Define to 1 if you have the `kqueue' function. */ | ||
#undef HAVE_KQUEUE | ||
|
||
/* Define to 1 if you have the `rt' library (-lrt). */ | ||
#undef HAVE_LIBRT | ||
|
||
/* Define to 1 if you have the <memory.h> header file. */ | ||
#undef HAVE_MEMORY_H | ||
|
||
/* Define to 1 if you have the `nanosleep' function. */ | ||
#undef HAVE_NANOSLEEP | ||
|
||
/* Define to 1 if you have the `poll' function. */ | ||
#undef HAVE_POLL | ||
|
||
/* Define to 1 if you have the <poll.h> header file. */ | ||
#undef HAVE_POLL_H | ||
|
||
/* Define to 1 if you have the `port_create' function. */ | ||
#undef HAVE_PORT_CREATE | ||
|
||
/* Define to 1 if you have the <port.h> header file. */ | ||
#undef HAVE_PORT_H | ||
|
||
/* Define to 1 if you have the `select' function. */ | ||
#undef HAVE_SELECT | ||
|
||
/* Define to 1 if you have the `signalfd' function. */ | ||
#undef HAVE_SIGNALFD | ||
|
||
/* Define to 1 if you have the <stdint.h> header file. */ | ||
#undef HAVE_STDINT_H | ||
|
||
/* Define to 1 if you have the <stdlib.h> header file. */ | ||
#undef HAVE_STDLIB_H | ||
|
||
/* Define to 1 if you have the <strings.h> header file. */ | ||
#undef HAVE_STRINGS_H | ||
|
||
/* Define to 1 if you have the <string.h> header file. */ | ||
#undef HAVE_STRING_H | ||
|
||
/* Define to 1 if you have the <sys/epoll.h> header file. */ | ||
#undef HAVE_SYS_EPOLL_H | ||
|
||
/* Define to 1 if you have the <sys/eventfd.h> header file. */ | ||
#undef HAVE_SYS_EVENTFD_H | ||
|
||
/* Define to 1 if you have the <sys/event.h> header file. */ | ||
#undef HAVE_SYS_EVENT_H | ||
|
||
/* Define to 1 if you have the <sys/inotify.h> header file. */ | ||
#undef HAVE_SYS_INOTIFY_H | ||
|
||
/* Define to 1 if you have the <sys/select.h> header file. */ | ||
#undef HAVE_SYS_SELECT_H | ||
|
||
/* Define to 1 if you have the <sys/signalfd.h> header file. */ | ||
#undef HAVE_SYS_SIGNALFD_H | ||
|
||
/* Define to 1 if you have the <sys/stat.h> header file. */ | ||
#undef HAVE_SYS_STAT_H | ||
|
||
/* Define to 1 if you have the <sys/types.h> header file. */ | ||
#undef HAVE_SYS_TYPES_H | ||
|
||
/* Define to 1 if you have the <unistd.h> header file. */ | ||
#undef HAVE_UNISTD_H | ||
|
||
/* Define to the sub-directory in which libtool stores uninstalled libraries. | ||
*/ | ||
#undef LT_OBJDIR | ||
|
||
/* Name of package */ | ||
#undef PACKAGE | ||
|
||
/* Define to the address where bug reports for this package should be sent. */ | ||
#undef PACKAGE_BUGREPORT | ||
|
||
/* Define to the full name of this package. */ | ||
#undef PACKAGE_NAME | ||
|
||
/* Define to the full name and version of this package. */ | ||
#undef PACKAGE_STRING | ||
|
||
/* Define to the one symbol short name of this package. */ | ||
#undef PACKAGE_TARNAME | ||
|
||
/* Define to the home page for this package. */ | ||
#undef PACKAGE_URL | ||
|
||
/* Define to the version of this package. */ | ||
#undef PACKAGE_VERSION | ||
|
||
/* Define to 1 if you have the ANSI C header files. */ | ||
#undef STDC_HEADERS | ||
|
||
/* Version number of package */ | ||
#undef VERSION | ||
|
||
#define HAVE_SELECT 1 | ||
#define HAVE_SYS_SELECT_H 1 |