Skip to content

Commit f5a855a

Browse files
committed
fixed:build error and delete isadmin json for inforeport module
1 parent 0cfeefa commit f5a855a

File tree

4 files changed

+24
-10
lines changed

4 files changed

+24
-10
lines changed

XEngine_Source/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ BASE_SESSION_PATH = ./StorageModule_Session
1111
BASE_APIHELP_PATH = ./StorageModule_APIHelp
1212
BASE_PROTOCOL_PATH = ./StorageModule_Protocol
1313
BASE_BTORRENT_PATH = ./StorageModule_BTorrent
14+
BASE_INFOREPORT_PATH = ./StorageModule_InfoReport
1415

1516
APPSERVICE_STORAGE_PATH = ./XEngine_StorageApp
1617

1718
XENGINE_MODULES = libjsoncpp.so \
18-
libStorageModule_Database.so libStorageModule_Config.so libStorageModule_Session.so libStorageModule_APIHelp.so libStorageModule_Protocol.so libStorageModule_BTorrent.so \
19+
libStorageModule_Database.so libStorageModule_Config.so libStorageModule_Session.so libStorageModule_APIHelp.so libStorageModule_Protocol.so libStorageModule_BTorrent.so libStorageModule_InfoReport.so \
1920
XEngine_StorageApp.exe
2021

2122
.PHONY:MakeAll
@@ -36,6 +37,8 @@ libStorageModule_Protocol.so:
3637
make -C $(BASE_PROTOCOL_PATH) PLATFORM=$(PLATFORM) $(FLAGS)
3738
libStorageModule_BTorrent.so:
3839
make -C $(BASE_BTORRENT_PATH) PLATFORM=$(PLATFORM) $(FLAGS)
39-
40+
libStorageModule_InfoReport.so:
41+
make -C $(BASE_INFOREPORT_PATH) PLATFORM=$(PLATFORM) $(FLAGS)
42+
4043
XEngine_StorageApp.exe:
4144
make -C $(APPSERVICE_STORAGE_PATH) PLATFORM=$(PLATFORM) $(FLAGS)

XEngine_Source/StorageModule_InfoReport/InfoReport_APIMachine/InfoReport_APIMachine.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,9 @@ bool CInfoReport_APIMachine::InfoReport_APIMachine_GetText(XCHAR* ptszMSGBuffer)
112112
st_JsonOSObject["OSVersion"] = tszOSVersion;
113113
st_JsonOSObject["tszOSBuild"] = tszOSBuild;
114114

115-
st_JsonMEMObject["nTotal"] = st_MemoryInfo.dwMemory_Total;
116-
st_JsonMEMObject["nFree"] = st_MemoryInfo.dwMemory_Free;
115+
st_JsonMEMObject["nTotal"] = (Json::Value::UInt64)st_MemoryInfo.dwMemory_Total;
116+
st_JsonMEMObject["nFree"] = (Json::Value::UInt64)st_MemoryInfo.dwMemory_Free;
117117

118-
st_JsonRoot["bAdmin"] = SystemApi_Process_IsAdmin();
119118
st_JsonRoot["nProcessCount"] = nProcessCount;
120119
st_JsonRoot["st_CPUObject"] = st_JsonCPUObject;
121120
st_JsonRoot["st_OSObject"] = st_JsonOSObject;

XEngine_Source/StorageModule_InfoReport/StorageModule_InfoReport.vcxproj

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@
7474
<IncludePath>$(XEngine_Include);../XEngine_ThirdPart/jsoncpp;$(IncludePath)</IncludePath>
7575
<LibraryPath>$(XEngine_Lib32);$(LibraryPath)</LibraryPath>
7676
</PropertyGroup>
77+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
78+
<IncludePath>$(XEngine_Include);../XEngine_ThirdPart/jsoncpp;$(IncludePath)</IncludePath>
79+
<LibraryPath>$(XEngine_Lib32);$(LibraryPath)</LibraryPath>
80+
</PropertyGroup>
81+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
82+
<IncludePath>$(XEngine_Include);../XEngine_ThirdPart/jsoncpp;$(IncludePath)</IncludePath>
83+
<LibraryPath>$(XEngine_Lib64);$(LibraryPath)</LibraryPath>
84+
</PropertyGroup>
85+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
86+
<IncludePath>$(XEngine_Include);../XEngine_ThirdPart/jsoncpp;$(IncludePath)</IncludePath>
87+
<LibraryPath>$(XEngine_Lib64);$(LibraryPath)</LibraryPath>
88+
</PropertyGroup>
7789
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
7890
<ClCompile>
7991
<WarningLevel>Level3</WarningLevel>
@@ -96,7 +108,7 @@
96108
<FunctionLevelLinking>true</FunctionLevelLinking>
97109
<IntrinsicFunctions>true</IntrinsicFunctions>
98110
<SDLCheck>true</SDLCheck>
99-
<PreprocessorDefinitions>WIN32;NDEBUG;STORAGEMODULEINFOREPORT_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
111+
<PreprocessorDefinitions>WIN32;NDEBUG;STORAGEMODULEINFOREPORT_EXPORTS;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
100112
<ConformanceMode>true</ConformanceMode>
101113
<PrecompiledHeader>Use</PrecompiledHeader>
102114
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
@@ -114,7 +126,7 @@
114126
<ClCompile>
115127
<WarningLevel>Level3</WarningLevel>
116128
<SDLCheck>true</SDLCheck>
117-
<PreprocessorDefinitions>_DEBUG;STORAGEMODULEINFOREPORT_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
129+
<PreprocessorDefinitions>_DEBUG;STORAGEMODULEINFOREPORT_EXPORTS;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
118130
<ConformanceMode>true</ConformanceMode>
119131
<PrecompiledHeader>Use</PrecompiledHeader>
120132
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
@@ -132,7 +144,7 @@
132144
<FunctionLevelLinking>true</FunctionLevelLinking>
133145
<IntrinsicFunctions>true</IntrinsicFunctions>
134146
<SDLCheck>true</SDLCheck>
135-
<PreprocessorDefinitions>NDEBUG;STORAGEMODULEINFOREPORT_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
147+
<PreprocessorDefinitions>NDEBUG;STORAGEMODULEINFOREPORT_EXPORTS;_WINDOWS;_USRDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
136148
<ConformanceMode>true</ConformanceMode>
137149
<PrecompiledHeader>Use</PrecompiledHeader>
138150
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>

XEngine_Source/XEngine_StorageApp/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ PLATDIR =
55
RELEASE = 0
66
UNICODE = 0
77
LOADHDR = -I ./ -I ../XEngine_ThirdPart/jsoncpp
8-
LOADSO = -L ../StorageModule_Database -L ../StorageModule_Config -L ../StorageModule_Session -L ../StorageModule_APIHelp -L ../StorageModule_Protocol -L ../XEngine_ThirdPart/jsoncpp
8+
LOADSO = -L ../StorageModule_Database -L ../StorageModule_Config -L ../StorageModule_Session -L ../StorageModule_APIHelp -L ../StorageModule_Protocol -L ../StorageModule_BTorrent -L ../StorageModule_InfoReport -L ../XEngine_ThirdPart/jsoncpp
99
LIB = -lXEngine_BaseLib -lXEngine_Algorithm -lXEngine_Core -lXEngine_ManagePool -lXEngine_OPenSsl -lXClient_APIHelp -lXEngine_ProcFile -lXEngine_SystemApi -lHelpComponents_XLog -lHelpComponents_Packets -lRfcComponents_HttpProtocol \
10-
-lStorageModule_Database -lStorageModule_Config -lStorageModule_Session -lStorageModule_APIHelp -lStorageModule_Protocol \
10+
-lStorageModule_Database -lStorageModule_Config -lStorageModule_Session -lStorageModule_APIHelp -lStorageModule_Protocol -lStorageModule_BTorrent -lStorageModule_InfoReport \
1111
-ljsoncpp
1212
LIBEX =
1313
OBJECTS = StorageApp_Config.o StorageApp_Download.o StorageApp_Network.o StorageApp_Center.o StorageApp_UPLoader.o Storage_TaskPass.o Storage_TaskManage.o Storage_TaskP2p.o XEngine_StorageApp.o

0 commit comments

Comments
 (0)