Skip to content

Commit 9bd3e9c

Browse files
committed
vlmcsd-1105-2016-11-28-Hotbird64
1 parent b8fdaf9 commit 9bd3e9c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+7645
-2250
lines changed

GNUmakefile

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ help:
149149
@echo "Options"
150150
@echo " CONFIG=<x> Compile <x> as instead of config.h."
151151
@echo " INI=<x> Compile $(BASE_PROGRAM_NAME) with default ini file <x>"
152+
@echo " DATA=<x> Compile $(BASE_PROGRAM_NAME) and $(BASE_CLIENT_NAME) with default KMS data file <x>"
152153
@echo " PROGRAM_NAME=<x> Use <x> as output file name for the KMS server. Defaults to vlmcsd."
153154
@echo " CLIENT_NAME=<x> Use <x> as output file name for the KMS client. Defaults to vlmcs."
154155
@echo " MULTI_NAME=<x> Use <x> as output file name for the multi-call binary. Defaults to vlmcsdmulti."
@@ -173,10 +174,6 @@ help:
173174
@echo " VERBOSE=1 Be verbose when making targets."
174175
@echo " VERBOSE=3 Show name of compiler."
175176
@echo " THREADS=1 Use threads instead of fork(). Automatically set for native Windows. Recommended for Cygwin."
176-
@echo " WINDOWS=<x> Use <x> as the default ePID for Windows (when using $(BASE_PROGRAM_NAME) with -r 0)."
177-
@echo " OFFICE2010=<x> Use <x> as the default ePID for Office2010 (when using $(BASE_PROGRAM_NAME) with -r 0)."
178-
@echo " OFFICE2013=<x> Use <x> as the default ePID for Office2013 (when using $(BASE_PROGRAM_NAME) with -r 0)."
179-
@echo " OFFICE2016=<x> Use <x> as the default ePID for Office2016 (when using $(BASE_PROGRAM_NAME) with -r 0)."
180177
@echo " HWID=<x> Use <x> as the default HWID (when it can't be found in an ini file)."
181178
@echo " FEATURES=full Compile $(BASE_PROGRAM_NAME) with all features (default)."
182179
@echo " FEATURES=most Compile $(BASE_PROGRAM_NAME) without rarely used features."
@@ -187,12 +184,10 @@ help:
187184
@echo " FEATURES=fixedepids $(BASE_PROGRAM_NAME) only uses bultin internal ePIDs."
188185
@echo ""
189186
@echo "Useful CFLAGS to save memory when running $(BASE_PROGRAM_NAME) on very small embedded devices (finer control than FEATURES=)"
190-
@echo " -DNO_EXTENDED_PRODUCT_LIST Don't compile the detailed product list."
191-
@echo " -DNO_BASIC_PRODUCT_LIST Don't compile the basic product list."
192187
@echo " -DNO_STRICT_MODES Don't support enhanced emulator detection prevention."
193-
@echo " -DNO_CLIENT_LIST Don't support maintaining a client list (CMIDs)."
188+
@echo " -DNO_CLIENT_LIST Don't support maintaining a client list (CMIDs)."
194189
@echo " -DNO_VERBOSE_LOG Don't support verbose logging. Removes -v option."
195-
@echo " -DNO_LOG Don't add support for logging. Implies -DNO_VERBOSE_LOG -DNO_EXTENDED_PRODUCT_LIST and -DNO_BASIC_PRODUCT_LIST."
190+
@echo " -DNO_LOG Don't add support for logging. Implies -DNO_VERBOSE_LOG."
196191
@echo " -DNO_RANDOM_EPID Don't support random ePIDs."
197192
@echo " -DNO_INI_FILE Don't support reading ePIDs/HWIDs from a file."
198193
@echo " -DNO_PID_FILE Don't support writing a PID file. Removes -p option."
@@ -201,15 +196,17 @@ help:
201196
@echo " -DNO_CUSTOM_INTERVALS Don't support custom intervals for retry and refresh activation. Removes -A and -R options."
202197
@echo " -DNO_FREEBIND Don't support binding to foreign IP addresses. Removes -F0 and -F1 options. Only affects FreeBSD and Linux."
203198
@echo " -DNO_SOCKETS Don't support standalone operation. Requires an internet superserver to start $(BASE_PROGRAM_NAME)."
204-
@echo " -DSIMPLE_SOCKETS Don't support listening on explicit IP addresses. Always listens on all IP addresses."
199+
@echo " -DSIMPLE_SOCKETS Compile $(BASE_PROGRAM_NAME) with basic socket support only. Removes -L option."
205200
@echo " -DSIMPLE_RPC Don't support RPC with NDR64 and BTFN in $(BASE_PROGRAM_NAME) (but do in $(BASE_CLIENT_NAME)). Makes emulator detection easy."
206201
@echo " -DNO_CL_PIDS Don't support specifying ePIDs and HwId from the command line in $(BASE_PROGRAM_NAME)."
207202
@echo " -DNO_LIMIT Don't support limiting concurrent clients in $(BASE_PROGRAM_NAME)."
208203
@echo " -DNO_SIGHUP Don't support SIGHUP handling in $(BASE_PROGRAM_NAME)."
209204
@echo " -DNO_VERSION_INFORMATION Don't support displaying version information in $(BASE_PROGRAM_NAME) and $(BASE_CLIENT_NAME). Removes -V option."
210205
@echo " -DNO_PRIVATE_IP_DETECT Don't support protection against clients with public IP addresses in $(BASE_PROGRAM_NAME)"
211-
@echo " -DSIMPLE_SOCKETS Compile $(BASE_PROGRAM_NAME) with basic socket support only. Removes -L option."
212206
@echo " -DSMALL_AES Use a smaller (saves about 200 bytes) but slower implementation of AES."
207+
@echo " -DNO_EXTERNAL_DATA Don't support loading an external database. Mutually exclusive with -DNO_INTERNAL_DATA"
208+
@echo " -DNO_INTERNAL_DATA Don't compile an internal database. Mutually exclusive with -DNO_EXTERNAL_DATA"
209+
@echo " -DUNSAFE_DATA_LOAD Don't check the KMS data file for integrity. Saves some bytes but is dangerous."
213210
@echo ""
214211
@echo "Troubleshooting options"
215212
@echo " CAT=1 Combine all sources in a single in-memory file and compile directly to target."
@@ -227,6 +224,7 @@ help:
227224
@echo " DNS_PARSER=internal Use $(BASE_CLIENT_NAME) internal DNS parsing routines. No effect on MingW (native Windows)."
228225
@echo ""
229226
@echo "Other useful CFLAGS"
227+
@echo " -DFULL_INTERNAL_DATA Embed full internal KMS data in $(BASE_PROGRAM_NAME)."
230228
@echo " -DSUPPORT_WINE Add code that the Windows version of $(BASE_PROGRAM_NAME) runs on Wine if MSRPC=1"
231229
@echo " -D_PEDANTIC Report rare error/warning conditions instead of silently ignoring them."
232230
@echo " -DINCLUDE_BETAS Include SKU / activation IDs for obsolete beta/preview products."

VisualStudio/libkms/libkms.vcxproj

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,26 @@
3131
<PlatformToolset>v140_xp</PlatformToolset>
3232
<CharacterSet>MultiByte</CharacterSet>
3333
</PropertyGroup>
34+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="Configuration">
35+
<ConfigurationType>DynamicLibrary</ConfigurationType>
36+
<UseDebugLibraries>true</UseDebugLibraries>
37+
<PlatformToolset>v140_xp</PlatformToolset>
38+
<CharacterSet>MultiByte</CharacterSet>
39+
</PropertyGroup>
3440
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
3541
<ConfigurationType>DynamicLibrary</ConfigurationType>
3642
<UseDebugLibraries>false</UseDebugLibraries>
3743
<PlatformToolset>v120_xp</PlatformToolset>
3844
<WholeProgramOptimization>true</WholeProgramOptimization>
3945
<CharacterSet>MultiByte</CharacterSet>
4046
</PropertyGroup>
47+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="Configuration">
48+
<ConfigurationType>DynamicLibrary</ConfigurationType>
49+
<UseDebugLibraries>false</UseDebugLibraries>
50+
<PlatformToolset>v120_xp</PlatformToolset>
51+
<WholeProgramOptimization>true</WholeProgramOptimization>
52+
<CharacterSet>MultiByte</CharacterSet>
53+
</PropertyGroup>
4154
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
4255
<ConfigurationType>DynamicLibrary</ConfigurationType>
4356
<UseDebugLibraries>true</UseDebugLibraries>
@@ -59,9 +72,15 @@
5972
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
6073
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
6174
</ImportGroup>
75+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'" Label="PropertySheets">
76+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
77+
</ImportGroup>
6278
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
6379
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
6480
</ImportGroup>
81+
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'" Label="PropertySheets">
82+
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
83+
</ImportGroup>
6584
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
6685
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
6786
</ImportGroup>
@@ -75,6 +94,11 @@
7594
<GenerateManifest>false</GenerateManifest>
7695
<TargetExt>.dll</TargetExt>
7796
</PropertyGroup>
97+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
98+
<TargetName>libkms32</TargetName>
99+
<GenerateManifest>false</GenerateManifest>
100+
<TargetExt>.dll</TargetExt>
101+
</PropertyGroup>
78102
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
79103
<OutDir>$(SolutionDir)..\bin\</OutDir>
80104
<TargetName>libkms64</TargetName>
@@ -91,6 +115,11 @@
91115
<TargetExt>.dll</TargetExt>
92116
<TargetName>$(ProjectName)32</TargetName>
93117
</PropertyGroup>
118+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
119+
<GenerateManifest>false</GenerateManifest>
120+
<TargetExt>.dll</TargetExt>
121+
<TargetName>$(ProjectName)32</TargetName>
122+
</PropertyGroup>
94123
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
95124
<ClCompile>
96125
<WarningLevel>Level3</WarningLevel>
@@ -108,6 +137,24 @@
108137
<MinimumRequiredVersion />
109138
</Link>
110139
</ItemDefinitionGroup>
140+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM'">
141+
<ClCompile>
142+
<WarningLevel>Level3</WarningLevel>
143+
<Optimization>Disabled</Optimization>
144+
<SDLCheck>true</SDLCheck>
145+
<CompileAs>Default</CompileAs>
146+
<MultiProcessorCompilation>true</MultiProcessorCompilation>
147+
<PreprocessorDefinitions>_USING_V110_SDK71_;_MBCS;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;_PEDANTIC;SIMPLE_SOCKETS;NO_TIMEOUT;NO_SIGHUP;NO_CL_PIDS;NO_EXTENDED_PRODUCT_LIST;NO_BASIC_PRODUCT_LIST;NO_LOG;NO_RANDOM_EPID;NO_INI_FILE;NO_HELP;NO_CUSTOM_INTERVALS;NO_PID_FILE;NO_USER_SWITCH;NO_VERBOSE_LOG;NO_LIMIT;NO_VERSION_INFORMATION;NO_PRIVATE_IP_DETECT;IS_LIBRARY=1</PreprocessorDefinitions>
148+
<MinimalRebuild>false</MinimalRebuild>
149+
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
150+
</ClCompile>
151+
<Link>
152+
<AdditionalDependencies>shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
153+
<SubSystem>NotSet</SubSystem>
154+
<MinimumRequiredVersion>
155+
</MinimumRequiredVersion>
156+
</Link>
157+
</ItemDefinitionGroup>
111158
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
112159
<ClCompile>
113160
<WarningLevel>Level3</WarningLevel>
@@ -165,6 +212,48 @@
165212
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
166213
</Link>
167214
</ItemDefinitionGroup>
215+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM'">
216+
<ClCompile>
217+
<WarningLevel>Level3</WarningLevel>
218+
<Optimization>MinSpace</Optimization>
219+
<FunctionLevelLinking>true</FunctionLevelLinking>
220+
<IntrinsicFunctions>true</IntrinsicFunctions>
221+
<SDLCheck>
222+
</SDLCheck>
223+
<CallingConvention>Cdecl</CallingConvention>
224+
<DebugInformationFormat>None</DebugInformationFormat>
225+
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
226+
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
227+
<OmitFramePointers>true</OmitFramePointers>
228+
<StringPooling>true</StringPooling>
229+
<ExceptionHandling>false</ExceptionHandling>
230+
<BufferSecurityCheck>false</BufferSecurityCheck>
231+
<FloatingPointModel>Fast</FloatingPointModel>
232+
<FloatingPointExceptions>false</FloatingPointExceptions>
233+
<CreateHotpatchableImage>false</CreateHotpatchableImage>
234+
<RuntimeTypeInfo>false</RuntimeTypeInfo>
235+
<OpenMPSupport>false</OpenMPSupport>
236+
<MultiProcessorCompilation>true</MultiProcessorCompilation>
237+
<PreprocessorDefinitions>_X86_=1;i386=1;STD_CALL;%(PreprocessorDefinitions);_CRYPTO_WINDOWS;SIMPLE_SOCKETS;NO_TIMEOUT;NO_SIGHUP;NO_CL_PIDS;NO_EXTENDED_PRODUCT_LIST;NO_BASIC_PRODUCT_LIST;NO_LOG;NO_RANDOM_EPID;NO_INI_FILE;NO_HELP;NO_CUSTOM_INTERVALS;NO_PID_FILE;NO_USER_SWITCH;NO_VERBOSE_LOG;NO_LIMIT;NO_VERSION_INFORMATION;NO_PRIVATE_IP_DETECT;IS_LIBRARY=1</PreprocessorDefinitions>
238+
<AdditionalOptions>$(ExternalCompilerOptions) %(AdditionalOptions)</AdditionalOptions>
239+
</ClCompile>
240+
<Link>
241+
<EnableCOMDATFolding>true</EnableCOMDATFolding>
242+
<OptimizeReferences>true</OptimizeReferences>
243+
<AdditionalDependencies>$(SolutionDir)\msvcrt.lib;Shlwapi.lib;Iphlpapi.lib;Dnsapi.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
244+
<GenerateDebugInformation>false</GenerateDebugInformation>
245+
<SubSystem>NotSet</SubSystem>
246+
<IgnoreAllDefaultLibraries>true</IgnoreAllDefaultLibraries>
247+
<LargeAddressAware>true</LargeAddressAware>
248+
<TerminalServerAware>
249+
</TerminalServerAware>
250+
<SwapRunFromCD>true</SwapRunFromCD>
251+
<SwapRunFromNET>true</SwapRunFromNET>
252+
<MinimumRequiredVersion>
253+
</MinimumRequiredVersion>
254+
<ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary>
255+
</Link>
256+
</ItemDefinitionGroup>
168257
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
169258
<ClCompile>
170259
<WarningLevel>Level3</WarningLevel>

0 commit comments

Comments
 (0)