添加测试代码的框架
parent
905eb7ff7e
commit
9cb120b79e
|
@ -12,57 +12,35 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="0facce0d-c642-4d80-b2fb-daf5f3e68dff" name="Default Changelist" comment="">
|
<list default="true" id="0facce0d-c642-4d80-b2fb-daf5f3e68dff" name="Default Changelist" comment="">
|
||||||
<change afterPath="$PROJECT_DIR$/test/CMakeLists.txt" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/test/src/tcpclient_test.cpp" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/include/inc/debug.h" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/include/inc/glad/include/KHR/khrplatform.h" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/include/inc/glad/include/glad/glad.h" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/include/inc/glad/src/glad.c" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/include/inc/loger.h" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/include/inc/utils.h" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/libevent.a" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/libevent.dll.a" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/libevent.la" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/libevent_core.a" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/libevent_core.dll.a" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/libevent_core.la" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/libevent_extra.a" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/libevent_extra.dll.a" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/libevent_extra.la" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/libevent_openssl.a" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/libevent_openssl.dll.a" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/libevent_openssl.la" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/pkgconfig/libevent.pc" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/pkgconfig/libevent_core.pc" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/pkgconfig/libevent_extra.pc" afterDir="false" />
|
||||||
|
<change afterPath="$PROJECT_DIR$/third/lib/pkgconfig/libevent_openssl.pc" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/CMakeLists.txt" beforeDir="false" afterPath="$PROJECT_DIR$/CMakeLists.txt" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/CMakeLists.txt" beforeDir="false" afterPath="$PROJECT_DIR$/CMakeLists.txt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/CMakeLists.txt.user.22" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/CMakeLists.txt.user.4.10-pre1" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/3.15.3/CMakeDetermineCompilerABI_C.bin" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/3.15.3/CMakeDetermineCompilerABI_C.bin" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/3.15.3/CMakeDetermineCompilerABI_CXX.bin" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/3.15.3/CMakeDetermineCompilerABI_CXX.bin" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/CXX.includecache" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/CXX.includecache" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/DependInfo.cmake" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/DependInfo.cmake" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/build.make" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/build.make" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/depend.internal" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/depend.internal" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/depend.make" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/depend.make" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/includes_CXX.rsp" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/General.dir/includes_CXX.rsp" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/clion-log.txt" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/CMakeFiles/clion-log.txt" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/cmake-build-debug/General.cbp" beforeDir="false" afterPath="$PROJECT_DIR$/cmake-build-debug/General.cbp" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/obj/libGeneral.a" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/src/net/TcpClient.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/src/net/TcpClient.cpp" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/net/TcpClient.cpp" beforeDir="false" afterPath="$PROJECT_DIR$/src/net/TcpClient.cpp" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/src/net/TcpClient.h" beforeDir="false" afterPath="$PROJECT_DIR$/src/net/TcpClient.h" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/src/net/TcpClient.h" beforeDir="false" afterPath="$PROJECT_DIR$/src/net/TcpClient.h" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/evdns.h" beforeDir="false" />
|
<change beforePath="$PROJECT_DIR$/test/CMakeLists.txt" beforeDir="false" afterPath="$PROJECT_DIR$/test/CMakeLists.txt" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/buffer.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/buffer_compat.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/bufferevent.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/bufferevent_compat.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/bufferevent_ssl.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/bufferevent_struct.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/dns.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/dns_compat.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/dns_struct.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/event-config.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/event.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/event_compat.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/event_struct.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/http.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/http_compat.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/http_struct.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/keyvalq_struct.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/listener.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/rpc.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/rpc_compat.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/rpc_struct.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/tag.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/tag_compat.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/thread.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/util.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/event2/visibility.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/evhttp.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/evrpc.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/evutil.h" beforeDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/third/inc/libevent/include/include.am" beforeDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
|
@ -112,7 +90,7 @@
|
||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="RunManager">
|
<component name="RunManager">
|
||||||
<configuration name="General" type="CMakeRunConfiguration" factoryName="Application" PASS_PARENT_ENVS_2="true" PROJECT_NAME="General" TARGET_NAME="General" CONFIG_NAME="Debug" RUN_TARGET_PROJECT_NAME="General" RUN_TARGET_NAME="General">
|
<configuration name="General" type="CMakeRunConfiguration" factoryName="Application" PASS_PARENT_ENVS_2="true" PROJECT_NAME="General" TARGET_NAME="General" CONFIG_NAME="Debug">
|
||||||
<method v="2">
|
<method v="2">
|
||||||
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
|
<option name="com.jetbrains.cidr.execution.CidrBuildBeforeRunTaskProvider$BuildBeforeRunTask" enabled="true" />
|
||||||
</method>
|
</method>
|
||||||
|
@ -162,7 +140,7 @@
|
||||||
<workItem from="1587146367315" duration="1596000" />
|
<workItem from="1587146367315" duration="1596000" />
|
||||||
<workItem from="1587183781038" duration="13107000" />
|
<workItem from="1587183781038" duration="13107000" />
|
||||||
<workItem from="1587266163206" duration="2365000" />
|
<workItem from="1587266163206" duration="2365000" />
|
||||||
<workItem from="1587349363612" duration="9478000" />
|
<workItem from="1587349363612" duration="13372000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
|
|
|
@ -45,13 +45,13 @@ file(COPY ${MathINCLUDES} DESTINATION ${LIBRARY_OUTPUT_PATH}/inc/
|
||||||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE GROUP_WRITE GROUP_READ WORLD_READ)
|
FILE_PERMISSIONS OWNER_READ OWNER_WRITE GROUP_WRITE GROUP_READ WORLD_READ)
|
||||||
file(GLOB EIGENLIBS ${PROJECT_SOURCE_DIR}/src/math/eigin/*)
|
file(GLOB EIGENLIBS ${PROJECT_SOURCE_DIR}/src/math/eigin/*)
|
||||||
message( "copy eigen library" ${EIGENLIBS})
|
message( "copy eigen library" ${EIGENLIBS})
|
||||||
|
message( "copy third library")
|
||||||
|
file(GLOB THIRD ${PROJECT_SOURCE_DIR}/third/include/*)
|
||||||
|
file(COPY ${THIRD} DESTINATION ${LIBRARY_OUTPUT_PATH}/inc/third/
|
||||||
|
FILE_PERMISSIONS OWNER_READ OWNER_WRITE GROUP_WRITE GROUP_READ WORLD_READ)
|
||||||
IF (WIN32)
|
IF (WIN32)
|
||||||
|
|
||||||
MESSAGE(STATUS "Now is windows")
|
|
||||||
ELSEIF (UNIX)
|
|
||||||
|
|
||||||
|
ELSEIF (UNIX)
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
TARGET General PRE_BUILD
|
TARGET General PRE_BUILD
|
||||||
COMMAND cp.exe -r
|
COMMAND cp.exe -r
|
||||||
|
|
|
@ -3,6 +3,14 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "TcpClient.h"
|
#include "TcpClient.h"
|
||||||
|
|
||||||
|
#include "third/include/event2/bufferevent.h"
|
||||||
|
#include "third/include/event2/buffer.h"
|
||||||
|
#include "third/include/event2/listener.h"
|
||||||
|
#include "third/include/event2/util.h"
|
||||||
|
#include "third/include/event2/event.h"
|
||||||
|
#include "third/include/event2/thread.h"
|
||||||
|
|
||||||
void conn_writecb(struct bufferevent *, void *);
|
void conn_writecb(struct bufferevent *, void *);
|
||||||
void conn_readcb(struct bufferevent *, void *);
|
void conn_readcb(struct bufferevent *, void *);
|
||||||
void conn_eventcb(struct bufferevent *, short, void *);
|
void conn_eventcb(struct bufferevent *, short, void *);
|
||||||
|
|
|
@ -6,19 +6,11 @@
|
||||||
#define GENERAL_TCPCLIENT_H
|
#define GENERAL_TCPCLIENT_H
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "event2/bufferevent.h"
|
|
||||||
#include <event2/buffer.h>
|
|
||||||
#include <event2/listener.h>
|
|
||||||
#include <event2/util.h>
|
|
||||||
#include <event2/event.h>
|
|
||||||
#include <event2/thread.h>
|
|
||||||
#include "PackageReceiver.h"
|
#include "PackageReceiver.h"
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <thread>
|
#include <thread>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
||||||
class TcpClientLibevent :public PackageReceiver::PackageReceiverObserver{
|
class TcpClientLibevent :public PackageReceiver::PackageReceiverObserver{
|
||||||
public:
|
public:
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
@ -45,7 +37,6 @@ public:
|
||||||
PackageReceiver mPack;
|
PackageReceiver mPack;
|
||||||
TcpClientObserver *mObserver;
|
TcpClientObserver *mObserver;
|
||||||
private:
|
private:
|
||||||
|
|
||||||
bool mReConnect;
|
bool mReConnect;
|
||||||
int sendData(void*,size_t);
|
int sendData(void*,size_t);
|
||||||
struct event_base *mBase;
|
struct event_base *mBase;
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
cmake_minimum_required(VERSION 3.15)
|
||||||
|
project(tcptest)
|
||||||
|
|
||||||
|
message("current dir" ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../obj/inc)
|
||||||
|
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../obj/)
|
||||||
|
|
||||||
|
link_libraries(libGeneral.a)
|
||||||
|
add_executable(tcptest src/tcpclient_test.cpp)
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include "TcpClient.h"
|
||||||
|
|
||||||
|
int main(){
|
||||||
|
TcpClientLibevent mTcp;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
//
|
||||||
|
// Created by admin on 2019/4/11.
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifndef __DEBUG__
|
||||||
|
#define __DEBUG__
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <string>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
int dumpObj(void *dst,int rowNum,int num,bool ifAsii,char *out);
|
||||||
|
int PrintDumpObjvoid (void *dst,int rowNum,int num,bool ifAsii);
|
||||||
|
|
||||||
|
#endif //SHARE_PRT_TEST_DEBUG_H
|
|
@ -0,0 +1,290 @@
|
||||||
|
#ifndef __khrplatform_h_
|
||||||
|
#define __khrplatform_h_
|
||||||
|
|
||||||
|
/*
|
||||||
|
** Copyright (c) 2008-2018 The Khronos Group Inc.
|
||||||
|
**
|
||||||
|
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
** copy of this software and/or associated documentation files (the
|
||||||
|
** "Materials"), to deal in the Materials without restriction, including
|
||||||
|
** without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
** distribute, sublicense, and/or sell copies of the Materials, and to
|
||||||
|
** permit persons to whom the Materials are furnished to do so, subject to
|
||||||
|
** the following conditions:
|
||||||
|
**
|
||||||
|
** The above copyright notice and this permission notice shall be included
|
||||||
|
** in all copies or substantial portions of the Materials.
|
||||||
|
**
|
||||||
|
** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Khronos platform-specific types and definitions.
|
||||||
|
*
|
||||||
|
* The master copy of khrplatform.h is maintained in the Khronos EGL
|
||||||
|
* Registry repository at https://github.com/KhronosGroup/EGL-Registry
|
||||||
|
* The last semantic modification to khrplatform.h was at commit ID:
|
||||||
|
* 67a3e0864c2d75ea5287b9f3d2eb74a745936692
|
||||||
|
*
|
||||||
|
* Adopters may modify this file to suit their platform. Adopters are
|
||||||
|
* encouraged to submit platform specific modifications to the Khronos
|
||||||
|
* group so that they can be included in future versions of this file.
|
||||||
|
* Please submit changes by filing pull requests or issues on
|
||||||
|
* the EGL Registry repository linked above.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* See the Implementer's Guidelines for information about where this file
|
||||||
|
* should be located on your system and for more details of its use:
|
||||||
|
* http://www.khronos.org/registry/implementers_guide.pdf
|
||||||
|
*
|
||||||
|
* This file should be included as
|
||||||
|
* #include <KHR/khrplatform.h>
|
||||||
|
* by Khronos client API header files that use its types and defines.
|
||||||
|
*
|
||||||
|
* The types in khrplatform.h should only be used to define API-specific types.
|
||||||
|
*
|
||||||
|
* Types defined in khrplatform.h:
|
||||||
|
* khronos_int8_t signed 8 bit
|
||||||
|
* khronos_uint8_t unsigned 8 bit
|
||||||
|
* khronos_int16_t signed 16 bit
|
||||||
|
* khronos_uint16_t unsigned 16 bit
|
||||||
|
* khronos_int32_t signed 32 bit
|
||||||
|
* khronos_uint32_t unsigned 32 bit
|
||||||
|
* khronos_int64_t signed 64 bit
|
||||||
|
* khronos_uint64_t unsigned 64 bit
|
||||||
|
* khronos_intptr_t signed same number of bits as a pointer
|
||||||
|
* khronos_uintptr_t unsigned same number of bits as a pointer
|
||||||
|
* khronos_ssize_t signed size
|
||||||
|
* khronos_usize_t unsigned size
|
||||||
|
* khronos_float_t signed 32 bit floating point
|
||||||
|
* khronos_time_ns_t unsigned 64 bit time in nanoseconds
|
||||||
|
* khronos_utime_nanoseconds_t unsigned time interval or absolute time in
|
||||||
|
* nanoseconds
|
||||||
|
* khronos_stime_nanoseconds_t signed time interval in nanoseconds
|
||||||
|
* khronos_boolean_enum_t enumerated boolean type. This should
|
||||||
|
* only be used as a base type when a client API's boolean type is
|
||||||
|
* an enum. Client APIs which use an integer or other type for
|
||||||
|
* booleans cannot use this as the base type for their boolean.
|
||||||
|
*
|
||||||
|
* Tokens defined in khrplatform.h:
|
||||||
|
*
|
||||||
|
* KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values.
|
||||||
|
*
|
||||||
|
* KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0.
|
||||||
|
* KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0.
|
||||||
|
*
|
||||||
|
* Calling convention macros defined in this file:
|
||||||
|
* KHRONOS_APICALL
|
||||||
|
* KHRONOS_APIENTRY
|
||||||
|
* KHRONOS_APIATTRIBUTES
|
||||||
|
*
|
||||||
|
* These may be used in function prototypes as:
|
||||||
|
*
|
||||||
|
* KHRONOS_APICALL void KHRONOS_APIENTRY funcname(
|
||||||
|
* int arg1,
|
||||||
|
* int arg2) KHRONOS_APIATTRIBUTES;
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if defined(__SCITECH_SNAP__) && !defined(KHRONOS_STATIC)
|
||||||
|
# define KHRONOS_STATIC 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*-------------------------------------------------------------------------
|
||||||
|
* Definition of KHRONOS_APICALL
|
||||||
|
*-------------------------------------------------------------------------
|
||||||
|
* This precedes the return type of the function in the function prototype.
|
||||||
|
*/
|
||||||
|
#if defined(KHRONOS_STATIC)
|
||||||
|
/* If the preprocessor constant KHRONOS_STATIC is defined, make the
|
||||||
|
* header compatible with static linking. */
|
||||||
|
# define KHRONOS_APICALL
|
||||||
|
#elif defined(_WIN32)
|
||||||
|
# define KHRONOS_APICALL __declspec(dllimport)
|
||||||
|
#elif defined (__SYMBIAN32__)
|
||||||
|
# define KHRONOS_APICALL IMPORT_C
|
||||||
|
#elif defined(__ANDROID__)
|
||||||
|
# define KHRONOS_APICALL __attribute__((visibility("default")))
|
||||||
|
#else
|
||||||
|
# define KHRONOS_APICALL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*-------------------------------------------------------------------------
|
||||||
|
* Definition of KHRONOS_APIENTRY
|
||||||
|
*-------------------------------------------------------------------------
|
||||||
|
* This follows the return type of the function and precedes the function
|
||||||
|
* name in the function prototype.
|
||||||
|
*/
|
||||||
|
#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(KHRONOS_STATIC)
|
||||||
|
/* Win32 but not WinCE */
|
||||||
|
# define KHRONOS_APIENTRY __stdcall
|
||||||
|
#else
|
||||||
|
# define KHRONOS_APIENTRY
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*-------------------------------------------------------------------------
|
||||||
|
* Definition of KHRONOS_APIATTRIBUTES
|
||||||
|
*-------------------------------------------------------------------------
|
||||||
|
* This follows the closing parenthesis of the function prototype arguments.
|
||||||
|
*/
|
||||||
|
#if defined (__ARMCC_2__)
|
||||||
|
#define KHRONOS_APIATTRIBUTES __softfp
|
||||||
|
#else
|
||||||
|
#define KHRONOS_APIATTRIBUTES
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*-------------------------------------------------------------------------
|
||||||
|
* basic type definitions
|
||||||
|
*-----------------------------------------------------------------------*/
|
||||||
|
#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__)
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Using <stdint.h>
|
||||||
|
*/
|
||||||
|
#include <stdint.h>
|
||||||
|
typedef int32_t khronos_int32_t;
|
||||||
|
typedef uint32_t khronos_uint32_t;
|
||||||
|
typedef int64_t khronos_int64_t;
|
||||||
|
typedef uint64_t khronos_uint64_t;
|
||||||
|
#define KHRONOS_SUPPORT_INT64 1
|
||||||
|
#define KHRONOS_SUPPORT_FLOAT 1
|
||||||
|
|
||||||
|
#elif defined(__VMS ) || defined(__sgi)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Using <inttypes.h>
|
||||||
|
*/
|
||||||
|
#include <inttypes.h>
|
||||||
|
typedef int32_t khronos_int32_t;
|
||||||
|
typedef uint32_t khronos_uint32_t;
|
||||||
|
typedef int64_t khronos_int64_t;
|
||||||
|
typedef uint64_t khronos_uint64_t;
|
||||||
|
#define KHRONOS_SUPPORT_INT64 1
|
||||||
|
#define KHRONOS_SUPPORT_FLOAT 1
|
||||||
|
|
||||||
|
#elif defined(_WIN32) && !defined(__SCITECH_SNAP__)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Win32
|
||||||
|
*/
|
||||||
|
typedef __int32 khronos_int32_t;
|
||||||
|
typedef unsigned __int32 khronos_uint32_t;
|
||||||
|
typedef __int64 khronos_int64_t;
|
||||||
|
typedef unsigned __int64 khronos_uint64_t;
|
||||||
|
#define KHRONOS_SUPPORT_INT64 1
|
||||||
|
#define KHRONOS_SUPPORT_FLOAT 1
|
||||||
|
|
||||||
|
#elif defined(__sun__) || defined(__digital__)
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Sun or Digital
|
||||||
|
*/
|
||||||
|
typedef int khronos_int32_t;
|
||||||
|
typedef unsigned int khronos_uint32_t;
|
||||||
|
#if defined(__arch64__) || defined(_LP64)
|
||||||
|
typedef long int khronos_int64_t;
|
||||||
|
typedef unsigned long int khronos_uint64_t;
|
||||||
|
#else
|
||||||
|
typedef long long int khronos_int64_t;
|
||||||
|
typedef unsigned long long int khronos_uint64_t;
|
||||||
|
#endif /* __arch64__ */
|
||||||
|
#define KHRONOS_SUPPORT_INT64 1
|
||||||
|
#define KHRONOS_SUPPORT_FLOAT 1
|
||||||
|
|
||||||
|
#elif 0
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Hypothetical platform with no float or int64 support
|
||||||
|
*/
|
||||||
|
typedef int khronos_int32_t;
|
||||||
|
typedef unsigned int khronos_uint32_t;
|
||||||
|
#define KHRONOS_SUPPORT_INT64 0
|
||||||
|
#define KHRONOS_SUPPORT_FLOAT 0
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Generic fallback
|
||||||
|
*/
|
||||||
|
#include <stdint.h>
|
||||||
|
typedef int32_t khronos_int32_t;
|
||||||
|
typedef uint32_t khronos_uint32_t;
|
||||||
|
typedef int64_t khronos_int64_t;
|
||||||
|
typedef uint64_t khronos_uint64_t;
|
||||||
|
#define KHRONOS_SUPPORT_INT64 1
|
||||||
|
#define KHRONOS_SUPPORT_FLOAT 1
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Types that are (so far) the same on all platforms
|
||||||
|
*/
|
||||||
|
typedef signed char khronos_int8_t;
|
||||||
|
typedef unsigned char khronos_uint8_t;
|
||||||
|
typedef signed short int khronos_int16_t;
|
||||||
|
typedef unsigned short int khronos_uint16_t;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Types that differ between LLP64 and LP64 architectures - in LLP64,
|
||||||
|
* pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
|
||||||
|
* to be the only LLP64 architecture in current use.
|
||||||
|
*/
|
||||||
|
#ifdef _WIN64
|
||||||
|
typedef signed long long int khronos_intptr_t;
|
||||||
|
typedef unsigned long long int khronos_uintptr_t;
|
||||||
|
typedef signed long long int khronos_ssize_t;
|
||||||
|
typedef unsigned long long int khronos_usize_t;
|
||||||
|
#else
|
||||||
|
typedef signed long int khronos_intptr_t;
|
||||||
|
typedef unsigned long int khronos_uintptr_t;
|
||||||
|
typedef signed long int khronos_ssize_t;
|
||||||
|
typedef unsigned long int khronos_usize_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if KHRONOS_SUPPORT_FLOAT
|
||||||
|
/*
|
||||||
|
* Float type
|
||||||
|
*/
|
||||||
|
typedef float khronos_float_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if KHRONOS_SUPPORT_INT64
|
||||||
|
/* Time types
|
||||||
|
*
|
||||||
|
* These types can be used to represent a time interval in nanoseconds or
|
||||||
|
* an absolute Unadjusted System Time. Unadjusted System Time is the number
|
||||||
|
* of nanoseconds since some arbitrary system event (e.g. since the last
|
||||||
|
* time the system booted). The Unadjusted System Time is an unsigned
|
||||||
|
* 64 bit value that wraps back to 0 every 584 years. Time intervals
|
||||||
|
* may be either signed or unsigned.
|
||||||
|
*/
|
||||||
|
typedef khronos_uint64_t khronos_utime_nanoseconds_t;
|
||||||
|
typedef khronos_int64_t khronos_stime_nanoseconds_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Dummy value used to pad enum types to 32 bits.
|
||||||
|
*/
|
||||||
|
#ifndef KHRONOS_MAX_ENUM
|
||||||
|
#define KHRONOS_MAX_ENUM 0x7FFFFFFF
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Enumerated boolean type
|
||||||
|
*
|
||||||
|
* Values other than zero should be considered to be true. Therefore
|
||||||
|
* comparisons should not be made against KHRONOS_TRUE.
|
||||||
|
*/
|
||||||
|
typedef enum {
|
||||||
|
KHRONOS_FALSE = 0,
|
||||||
|
KHRONOS_TRUE = 1,
|
||||||
|
KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM
|
||||||
|
} khronos_boolean_enum_t;
|
||||||
|
|
||||||
|
#endif /* __khrplatform_h_ */
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,43 @@
|
||||||
|
//
|
||||||
|
// Created by bt110 on 2019/8/19.
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifndef CPP11FEATURETEST_LOGER_H
|
||||||
|
#define CPP11FEATURETEST_LOGER_H
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string>
|
||||||
|
#include <time.h>
|
||||||
|
#include <fstream>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
namespace Loger{
|
||||||
|
typedef enum Mode{
|
||||||
|
Mode_Daily, // 每天保存一次日志
|
||||||
|
MODE_Monthly, // 每个月保存一次日志
|
||||||
|
MODE_Weekly // 每周保存一次日志
|
||||||
|
}ESaveMode;
|
||||||
|
typedef class _C_Loger {
|
||||||
|
private:
|
||||||
|
string mCurrentPath;
|
||||||
|
FILE *mFile; // 日志文件
|
||||||
|
ESaveMode mMode; // 工作模式
|
||||||
|
string mCurrentDate; // 当天
|
||||||
|
int error;
|
||||||
|
|
||||||
|
public:
|
||||||
|
_C_Loger(FILE *p);
|
||||||
|
_C_Loger(string path);
|
||||||
|
|
||||||
|
int Debug();
|
||||||
|
int Log();
|
||||||
|
int LogFile();
|
||||||
|
void operator+(const string&);
|
||||||
|
void operator<<(const string&);
|
||||||
|
}Loger;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endif //CPP11FEATURETEST_LOGER_H
|
|
@ -0,0 +1,25 @@
|
||||||
|
//
|
||||||
|
// Created by 29019 on 2019/5/2.
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifndef CUTILS_UTILS_H
|
||||||
|
#define CUTILS_UTILS_H
|
||||||
|
|
||||||
|
#include "utils.h"
|
||||||
|
#include <string>
|
||||||
|
#include "debug.h"
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
#define RELEASE_MEMORY(x) \
|
||||||
|
if(nullptr == x) \
|
||||||
|
{ \
|
||||||
|
delete(x); \
|
||||||
|
x = nullptr;\
|
||||||
|
}
|
||||||
|
string itos(int x);
|
||||||
|
|
||||||
|
|
||||||
|
#endif //CUTILS_UTILS_H
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,41 @@
|
||||||
|
# libevent.la - a libtool library file
|
||||||
|
# Generated by libtool (GNU libtool) 2.4.6
|
||||||
|
#
|
||||||
|
# Please DO NOT delete this file!
|
||||||
|
# It is necessary for linking the library.
|
||||||
|
|
||||||
|
# The name that we can dlopen(3).
|
||||||
|
dlname='../bin/libevent-2-1-6.dll'
|
||||||
|
|
||||||
|
# Names of this library.
|
||||||
|
library_names='libevent.dll.a'
|
||||||
|
|
||||||
|
# The name of the static archive.
|
||||||
|
old_library='libevent.a'
|
||||||
|
|
||||||
|
# Linker flags that cannot go in dependency_libs.
|
||||||
|
inherited_linker_flags=''
|
||||||
|
|
||||||
|
# Libraries that this one depends upon.
|
||||||
|
dependency_libs=' -lshell32 -ladvapi32 -lcrypto -lws2_32'
|
||||||
|
|
||||||
|
# Names of additional weak libraries provided by this library
|
||||||
|
weak_library_names=''
|
||||||
|
|
||||||
|
# Version information for libevent.
|
||||||
|
current=6
|
||||||
|
age=0
|
||||||
|
revision=2
|
||||||
|
|
||||||
|
# Is this an already installed library?
|
||||||
|
installed=yes
|
||||||
|
|
||||||
|
# Should we warn about portability when linking against -modules?
|
||||||
|
shouldnotlink=no
|
||||||
|
|
||||||
|
# Files to dlopen/dlpreopen
|
||||||
|
dlopen=''
|
||||||
|
dlpreopen=''
|
||||||
|
|
||||||
|
# Directory that this library needs to be installed in:
|
||||||
|
libdir='/d/prebuilt/libevent/mingw/lib'
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,41 @@
|
||||||
|
# libevent_core.la - a libtool library file
|
||||||
|
# Generated by libtool (GNU libtool) 2.4.6
|
||||||
|
#
|
||||||
|
# Please DO NOT delete this file!
|
||||||
|
# It is necessary for linking the library.
|
||||||
|
|
||||||
|
# The name that we can dlopen(3).
|
||||||
|
dlname='../bin/libevent_core-2-1-6.dll'
|
||||||
|
|
||||||
|
# Names of this library.
|
||||||
|
library_names='libevent_core.dll.a'
|
||||||
|
|
||||||
|
# The name of the static archive.
|
||||||
|
old_library='libevent_core.a'
|
||||||
|
|
||||||
|
# Linker flags that cannot go in dependency_libs.
|
||||||
|
inherited_linker_flags=''
|
||||||
|
|
||||||
|
# Libraries that this one depends upon.
|
||||||
|
dependency_libs=' -lshell32 -ladvapi32 -lcrypto -lws2_32'
|
||||||
|
|
||||||
|
# Names of additional weak libraries provided by this library
|
||||||
|
weak_library_names=''
|
||||||
|
|
||||||
|
# Version information for libevent_core.
|
||||||
|
current=6
|
||||||
|
age=0
|
||||||
|
revision=2
|
||||||
|
|
||||||
|
# Is this an already installed library?
|
||||||
|
installed=yes
|
||||||
|
|
||||||
|
# Should we warn about portability when linking against -modules?
|
||||||
|
shouldnotlink=no
|
||||||
|
|
||||||
|
# Files to dlopen/dlpreopen
|
||||||
|
dlopen=''
|
||||||
|
dlpreopen=''
|
||||||
|
|
||||||
|
# Directory that this library needs to be installed in:
|
||||||
|
libdir='/d/prebuilt/libevent/mingw/lib'
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,41 @@
|
||||||
|
# libevent_extra.la - a libtool library file
|
||||||
|
# Generated by libtool (GNU libtool) 2.4.6
|
||||||
|
#
|
||||||
|
# Please DO NOT delete this file!
|
||||||
|
# It is necessary for linking the library.
|
||||||
|
|
||||||
|
# The name that we can dlopen(3).
|
||||||
|
dlname='../bin/libevent_extra-2-1-6.dll'
|
||||||
|
|
||||||
|
# Names of this library.
|
||||||
|
library_names='libevent_extra.dll.a'
|
||||||
|
|
||||||
|
# The name of the static archive.
|
||||||
|
old_library='libevent_extra.a'
|
||||||
|
|
||||||
|
# Linker flags that cannot go in dependency_libs.
|
||||||
|
inherited_linker_flags=''
|
||||||
|
|
||||||
|
# Libraries that this one depends upon.
|
||||||
|
dependency_libs=' /d/prebuilt/libevent/mingw/lib/libevent_core.la -lshell32 -ladvapi32 -lcrypto -lws2_32'
|
||||||
|
|
||||||
|
# Names of additional weak libraries provided by this library
|
||||||
|
weak_library_names=''
|
||||||
|
|
||||||
|
# Version information for libevent_extra.
|
||||||
|
current=6
|
||||||
|
age=0
|
||||||
|
revision=2
|
||||||
|
|
||||||
|
# Is this an already installed library?
|
||||||
|
installed=yes
|
||||||
|
|
||||||
|
# Should we warn about portability when linking against -modules?
|
||||||
|
shouldnotlink=no
|
||||||
|
|
||||||
|
# Files to dlopen/dlpreopen
|
||||||
|
dlopen=''
|
||||||
|
dlpreopen=''
|
||||||
|
|
||||||
|
# Directory that this library needs to be installed in:
|
||||||
|
libdir='/d/prebuilt/libevent/mingw/lib'
|
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,41 @@
|
||||||
|
# libevent_openssl.la - a libtool library file
|
||||||
|
# Generated by libtool (GNU libtool) 2.4.6
|
||||||
|
#
|
||||||
|
# Please DO NOT delete this file!
|
||||||
|
# It is necessary for linking the library.
|
||||||
|
|
||||||
|
# The name that we can dlopen(3).
|
||||||
|
dlname='../bin/libevent_openssl-2-1-6.dll'
|
||||||
|
|
||||||
|
# Names of this library.
|
||||||
|
library_names='libevent_openssl.dll.a'
|
||||||
|
|
||||||
|
# The name of the static archive.
|
||||||
|
old_library='libevent_openssl.a'
|
||||||
|
|
||||||
|
# Linker flags that cannot go in dependency_libs.
|
||||||
|
inherited_linker_flags=''
|
||||||
|
|
||||||
|
# Libraries that this one depends upon.
|
||||||
|
dependency_libs=' /d/prebuilt/libevent/mingw/lib/libevent_core.la -lshell32 -ladvapi32 -L/mingw64/lib -lssl -lcrypt32 -lgdi32 -lcrypto -lws2_32'
|
||||||
|
|
||||||
|
# Names of additional weak libraries provided by this library
|
||||||
|
weak_library_names=''
|
||||||
|
|
||||||
|
# Version information for libevent_openssl.
|
||||||
|
current=6
|
||||||
|
age=0
|
||||||
|
revision=2
|
||||||
|
|
||||||
|
# Is this an already installed library?
|
||||||
|
installed=yes
|
||||||
|
|
||||||
|
# Should we warn about portability when linking against -modules?
|
||||||
|
shouldnotlink=no
|
||||||
|
|
||||||
|
# Files to dlopen/dlpreopen
|
||||||
|
dlopen=''
|
||||||
|
dlpreopen=''
|
||||||
|
|
||||||
|
# Directory that this library needs to be installed in:
|
||||||
|
libdir='/d/prebuilt/libevent/mingw/lib'
|
|
@ -0,0 +1,16 @@
|
||||||
|
#libevent pkg-config source file
|
||||||
|
|
||||||
|
prefix=/d/prebuilt/libevent/mingw
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${exec_prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
Name: libevent
|
||||||
|
Description: libevent is an asynchronous notification event loop library
|
||||||
|
Version: 2.1.8-stable
|
||||||
|
Requires:
|
||||||
|
Conflicts:
|
||||||
|
Libs: -L${libdir} -levent
|
||||||
|
Libs.private: -lcrypto -lws2_32
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
#libevent pkg-config source file
|
||||||
|
|
||||||
|
prefix=/d/prebuilt/libevent/mingw
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${exec_prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
Name: libevent_core
|
||||||
|
Description: libevent_core
|
||||||
|
Version: 2.1.8-stable
|
||||||
|
Requires:
|
||||||
|
Conflicts:
|
||||||
|
Libs: -L${libdir} -levent_core
|
||||||
|
Libs.private: -lcrypto -lws2_32
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
#libevent pkg-config source file
|
||||||
|
|
||||||
|
prefix=/d/prebuilt/libevent/mingw
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${exec_prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
Name: libevent_extra
|
||||||
|
Description: libevent_extra
|
||||||
|
Version: 2.1.8-stable
|
||||||
|
Requires:
|
||||||
|
Conflicts:
|
||||||
|
Libs: -L${libdir} -levent_extra
|
||||||
|
Libs.private: -lcrypto -lws2_32
|
||||||
|
Cflags: -I${includedir}
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
#libevent pkg-config source file
|
||||||
|
|
||||||
|
prefix=/d/prebuilt/libevent/mingw
|
||||||
|
exec_prefix=${prefix}
|
||||||
|
libdir=${exec_prefix}/lib
|
||||||
|
includedir=${prefix}/include
|
||||||
|
|
||||||
|
Name: libevent_openssl
|
||||||
|
Description: libevent_openssl adds openssl-based TLS support to libevent
|
||||||
|
Version: 2.1.8-stable
|
||||||
|
Requires: libevent
|
||||||
|
Conflicts:
|
||||||
|
Libs: -L${libdir} -levent_openssl
|
||||||
|
Libs.private: -lcrypto -lws2_32 -L/mingw64/lib -lssl -lws2_32 -lgdi32 -lcrypt32 -lcrypto -lws2_32 -lgdi32 -lcrypt32 -lgdi32 -lws2_32
|
||||||
|
Cflags: -I${includedir} -I/mingw64/include
|
||||||
|
|
Loading…
Reference in New Issue