require "LibEventUsage" -- libevent_files = { "LibEventUsage.lua", "LibEventProject.lua", libevent_path .. "/**.h", libevent_path .. "/event.c", libevent_path .. "/buffer.c", libevent_path .. "/bufferevent.c", libevent_path .. "/bufferevent_sock.c", libevent_path .. "/bufferevent_pair.c", libevent_path .. "/listener.c", libevent_path .. "/evmap.c", libevent_path .. "/log.c", libevent_path .. "/evdns.c", libevent_path .. "/evutil.c", libevent_path .. "/strlcpy.c", libevent_path .. "/signal.c", libevent_path .. "/bufferevent_filter.c", libevent_path .. "/evthread.c", libevent_path .. "/bufferevent_ratelim.c", libevent_path .. "/evutil_rand.c" } if os.is( "windows" ) then libevent_files_os = { libevent_path .. "/win32select.c", libevent_path .. "/evthread_win32.c", libevent_path .. "/buffer_iocp.c", libevent_path .. "/event_iocp.c", libevent_path .. "/bufferevent_async.c" } else libevent_files_os = { libevent_path .. "/evthread_pthread.c", libevent_path .. "/kqueue.c", libevent_path .. "/select.c", libevent_path .. "/poll.c" } end -- if active_target( "static" ) then project "LibEvent" location ( _ACTION ) language "C++" kind "StaticLib" if os.is( "windows" ) then defines { "_CRT_SECURE_NO_WARNINGS", "WIN32", "HAVE_CONFIG_H" } buildoptions { "/wd4996", "/wd4018", "/wd4127", "/wd4100", "/wd4706", "/wd4244", "/wd4189" } end files ( libevent_files ) files ( libevent_files_os ) includedirs ( libevent_includes ) links ( libevent_links ) uses { "LibEvent" } build_configs ( os.getcwd() ) end -- if active_target( "dynamic" ) then project "LibEventDll" location ( _ACTION ) language "C++" kind "SharedLib" if os.is( "windows" ) then defines { "_CRT_SECURE_NO_WARNINGS", "WIN32", "HAVE_CONFIG_H" } buildoptions { "/wd4996", "/wd4018" } end files ( libevent_files ) files ( libevent_files_os ) includedirs ( libevent_includes ) links ( libevent_links ) uses "LibEventDll" build_configs ( os.getcwd() ) end