Skip to content

Commit

Permalink
20210118
Browse files Browse the repository at this point in the history
  • Loading branch information
ldcsaa committed Jan 18, 2021
1 parent cc2629e commit 285f755
Show file tree
Hide file tree
Showing 63 changed files with 1,171 additions and 947 deletions.
4 changes: 2 additions & 2 deletions Linux/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ parse_args()

do_build()
{
C_LAN_OPTS="-c -x c -I $DEPT_INC_DIR -Wall -Wswitch -Wno-deprecated-declarations -Wempty-body -Wconversion -Wreturn-type -Wparentheses -Wno-pointer-sign -Wno-format -Wuninitialized -Wunreachable-code -Wunused-function -Wunused-value -Wunused-variable -fno-strict-aliasing -fpic -fvisibility=hidden -fexceptions -std=c11"
CPP_LAN_OPTS="-c -x c++ -I $DEPT_INC_DIR -Wall -Wno-class-memaccess -Wno-reorder -Wswitch -Wno-deprecated-declarations -Wempty-body -Wconversion -Wreturn-type -Wparentheses -Wno-format -Wuninitialized -Wunreachable-code -Wunused-function -Wunused-value -Wunused-variable -fno-strict-aliasing -fpic -fthreadsafe-statics -fvisibility=hidden -fexceptions -frtti -std=c++14"
C_LAN_OPTS="-c -x c -I $DEPT_INC_DIR -Wall -Wswitch -Wno-deprecated-declarations -Wempty-body -Wconversion -Wreturn-type -Wparentheses -Wno-pointer-sign -Wno-format -Wuninitialized -Wunreachable-code -Wunused-function -Wunused-value -Wunused-variable -fno-strict-aliasing -fPIC -fvisibility=hidden -fexceptions -std=c11"
CPP_LAN_OPTS="-c -x c++ -I $DEPT_INC_DIR -Wall -Wno-class-memaccess -Wno-reorder -Wswitch -Wno-deprecated-declarations -Wempty-body -Wconversion -Wreturn-type -Wparentheses -Wno-format -Wuninitialized -Wunreachable-code -Wunused-function -Wunused-value -Wunused-variable -fno-strict-aliasing -fPIC -fthreadsafe-statics -fvisibility=hidden -fexceptions -frtti -std=c++14"
LINK_OPTS="-Wl,--no-undefined -Wl,-L$DEPT_LIB_DIR -L$DEPT_LIB_DIR -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -shared -Wl,-Bsymbolic"
RELEASE_CFG_OPTS="-g0 -O3 -fomit-frame-pointer -DNDEBUG"
DEBUG_CFG_OPTS="-g2 -gdwarf-2 -O0 -fno-omit-frame-pointer -DDEBUG -D_DEBUG"
Expand Down
2 changes: 1 addition & 1 deletion Linux/demo/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ DEPT_LIB_PATH := $(DEPT_PATH)/lib
HP_LIB_PATH := $(LOCAL_PATH)/../lib/android-ndk/$(TARGET_ARCH_ABI)

MY_C_INCLUDES := $(LOCAL_PATH)/../include
MY_CFLAGS := -w -fpic -fvisibility=hidden -fno-strict-aliasing -Wall -Wextra -Wswitch -Wno-deprecated-declarations -Wno-empty-body -Wno-conversion -Wno-sign-conversion -Wno-sign-compare -Wreturn-type -Wparentheses -Wno-pointer-sign -Wno-format -Wno-missing-braces -Wuninitialized -Wunreachable-code -Wunused-function -Wunused-value -Wunused-variable -Wno-unused-parameter -Wno-missing-field-initializers
MY_CFLAGS := -w -fPIC -fvisibility=hidden -fno-strict-aliasing -Wall -Wextra -Wswitch -Wno-deprecated-declarations -Wno-empty-body -Wno-conversion -Wno-sign-conversion -Wno-sign-compare -Wreturn-type -Wparentheses -Wno-pointer-sign -Wno-format -Wno-missing-braces -Wuninitialized -Wunreachable-code -Wunused-function -Wunused-value -Wunused-variable -Wno-unused-parameter -Wno-missing-field-initializers
MY_CPPFLAGS := -fexceptions -frtti -fthreadsafe-statics -Wno-reorder -Wno-inconsistent-missing-override
MY_LDFLAGS := -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-Bsymbolic
MY_WHOLE_STATIC_LIBRARIES := ssl crypto iconv
Expand Down
2 changes: 1 addition & 1 deletion Linux/include/hpsocket/HPTypeDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define HP_VERSION_MAJOR 5 // 主版本号
#define HP_VERSION_MINOR 8 // 子版本号
#define HP_VERSION_REVISE 1 // 修正版本号
#define HP_VERSION_BUILD 1 // 构建编号
#define HP_VERSION_BUILD 2 // 构建编号

//#define _UDP_DISABLED // 禁用 UDP
//#define _SSL_DISABLED // 禁用 SSL
Expand Down
2 changes: 1 addition & 1 deletion Linux/project/Version.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<VER_MAJOR>5</VER_MAJOR>
<VER_MINOR>8</VER_MINOR>
<VER_REVISE>1</VER_REVISE>
<VER_BUILD>1</VER_BUILD>
<VER_BUILD>2</VER_BUILD>
</PropertyGroup>
<PropertyGroup />
<ItemDefinitionGroup />
Expand Down
2 changes: 1 addition & 1 deletion Linux/project/android-ndk/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ MY_SRC_FILES := ../../../src/common/BufferPool.cpp \
../../../src/UdpClient.cpp \
../../../src/UdpServer.cpp
MY_C_INCLUDES := ../../../src
MY_CFLAGS := -fpic -fvisibility=hidden -fno-strict-aliasing -Wall -Wextra -Wswitch -Wno-deprecated-declarations -Wno-empty-body -Wno-conversion -Wno-sign-conversion -Wno-sign-compare -Wreturn-type -Wparentheses -Wno-pointer-sign -Wno-format -Wno-missing-braces -Wuninitialized -Wunreachable-code -Wunused-function -Wunused-value -Wunused-variable -Wno-unused-parameter -Wno-missing-field-initializers
MY_CFLAGS := -fPIC -fvisibility=hidden -fno-strict-aliasing -Wall -Wextra -Wswitch -Wno-deprecated-declarations -Wno-empty-body -Wno-conversion -Wno-sign-conversion -Wno-sign-compare -Wreturn-type -Wparentheses -Wno-pointer-sign -Wno-format -Wno-missing-braces -Wuninitialized -Wunreachable-code -Wunused-function -Wunused-value -Wunused-variable -Wno-unused-parameter -Wno-missing-field-initializers
MY_CPPFLAGS := -fexceptions -frtti -fthreadsafe-statics -Wno-reorder -Wno-inconsistent-missing-override
MY_LDFLAGS := -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-Bsymbolic
MY_LDLIBS := -ldl
Expand Down
Loading

0 comments on commit 285f755

Please sign in to comment.