Skip to content

Commit d149591

Browse files
committed
Update build scripts and tools (2/2)
1 parent fe3cee5 commit d149591

29 files changed

+2184
-14
lines changed

.gitignore

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,7 @@ tools/fixlib/bin/Debug/
136136
tools/fixlib/bin/Release/*
137137
!tools/fixlib/bin/Release/fixlib.exe
138138

139-
!tools/GenerateHeader/GenerateHeader/bin/
140-
tools/GenerateHeader/GenerateHeader/bin/Debug/
141-
tools/GenerateHeader/GenerateHeader/bin/Release/*
142-
!tools/GenerateHeader/GenerateHeader/bin/Release/GenerateHeader.exe
143-
144139
!tools/GenerateZw/GenerateZw/bin/
145140
tools/GenerateZw/GenerateZw/bin/Debug/
146141
tools/GenerateZw/GenerateZw/bin/Release/*
147142
!tools/GenerateZw/GenerateZw/bin/Release/GenerateZw.exe
148-
149-
!tools/UpdateGitRevision/UpdateGitRevision/bin/
150-
tools/UpdateGitRevision/UpdateGitRevision/bin/Debug/
151-
tools/UpdateGitRevision/UpdateGitRevision/bin/Release/*
152-
!tools/UpdateGitRevision/UpdateGitRevision/bin/Release/UpdateGitRevision.exe

ProcessHacker/ProcessHacker.vcxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<ModuleDefinitionFile>ProcessHacker.def</ModuleDefinitionFile>
105105
</Link>
106106
<PreBuildEvent>
107-
<Command>..\build\internal\update_rev.bat</Command>
107+
<Command>..\build\build_updaterev.bat</Command>
108108
</PreBuildEvent>
109109
<PreBuildEvent>
110110
<Message>Generating revision number...</Message>
@@ -133,7 +133,7 @@
133133
<ModuleDefinitionFile>ProcessHacker.def</ModuleDefinitionFile>
134134
</Link>
135135
<PreBuildEvent>
136-
<Command>..\build\internal\update_rev.bat</Command>
136+
<Command>..\build\build_updaterev.bat</Command>
137137
</PreBuildEvent>
138138
<PreBuildEvent>
139139
<Message>Generating revision number...</Message>
@@ -169,7 +169,7 @@
169169
<ModuleDefinitionFile>ProcessHacker.def</ModuleDefinitionFile>
170170
</Link>
171171
<PreBuildEvent>
172-
<Command>..\build\internal\update_rev.bat</Command>
172+
<Command>..\build\build_updaterev.bat</Command>
173173
</PreBuildEvent>
174174
<PreBuildEvent>
175175
<Message>Generating revision number...</Message>
@@ -204,7 +204,7 @@
204204
<ModuleDefinitionFile>ProcessHacker.def</ModuleDefinitionFile>
205205
</Link>
206206
<PreBuildEvent>
207-
<Command>..\build\internal\update_rev.bat</Command>
207+
<Command>..\build\build_updaterev.bat</Command>
208208
</PreBuildEvent>
209209
<PreBuildEvent>
210210
<Message>Generating revision number...</Message>

build/build_debug.cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@echo off
2+
chdir ..\
3+
tools\CustomBuildTool\CustomBuildTool\bin\Debug\CustomBuildTool.exe -debug
4+
5+
pause

build/build_release.cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@echo off
2+
chdir ..\
3+
tools\CustomBuildTool\CustomBuildTool\bin\Debug\CustomBuildTool.exe -release
4+
5+
pause

build/build_sdk.cmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@echo off
2+
chdir ..\
3+
tools\CustomBuildTool\CustomBuildTool\bin\Debug\CustomBuildTool.exe -sdk
4+
5+
pause

build/build_updaterev.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@echo off
2+
chdir ..\
3+
tools\CustomBuildTool\CustomBuildTool\bin\Debug\CustomBuildTool.exe -updaterev

build/kph.s

112 Bytes
Binary file not shown.

build/nightly.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mxqÍñ<Ë?oÓeæU7Ñ]ô^A¢hø¼(¿y©ªa%H4æ„Ô'‹Œ¥ç`^óÚsTæ0ÜèQ²/M?³Ðé団¨*zWÕz74+A{ö‰†6>'R© ¬Ð0_S~ž5ÝÄôˆiŠ1Þ

build/phapppub_options.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
base=ProcessHacker\include
2+
modes=phapppub
3+
in=phapp.h;appsup.h;phfwddef.h;procprv.h;srvprv.h;netprv.h;modprv.h;thrdprv.h;hndlprv.h;memprv.h;phuisup.h;colmgr.h;proctree.h;srvlist.h;netlist.h;thrdlist.h;modlist.h;hndllist.h;memlist.h;extmgr.h;mainwnd.h;notifico.h;settings.h;phplug.h;actions.h;procprp.h;procprpp.h;phsvccl.h;sysinfo.h;procgrp.h;miniinfo.h
4+
out=..\sdk\phapppub.h
5+
header=#ifndef _PH_PHAPPPUB_H\r\n#define _PH_PHAPPPUB_H\r\n\r\n// This file was automatically generated. Do not edit.\r\n\r\n#ifdef __cplusplus\r\nextern "C" {\r\n#endif\r\n
6+
footer=\r\n#ifdef __cplusplus\r\n}\r\n#endif\r\n\r\n#endif\r\n
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.26403.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomBuildTool", "CustomBuildTool\CustomBuildTool.csproj", "{CD644DF2-A658-4CBC-9497-CA5DD13CFEC3}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{CD644DF2-A658-4CBC-9497-CA5DD13CFEC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{CD644DF2-A658-4CBC-9497-CA5DD13CFEC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
16+
{CD644DF2-A658-4CBC-9497-CA5DD13CFEC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
17+
{CD644DF2-A658-4CBC-9497-CA5DD13CFEC3}.Release|Any CPU.Build.0 = Release|Any CPU
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
EndGlobal
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{CD644DF2-A658-4CBC-9497-CA5DD13CFEC3}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>CustomBuildTool</RootNamespace>
11+
<AssemblyName>CustomBuildTool</AssemblyName>
12+
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
13+
<FileAlignment>512</FileAlignment>
14+
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
15+
<TargetFrameworkProfile />
16+
<PublishUrl>publish\</PublishUrl>
17+
<Install>true</Install>
18+
<InstallFrom>Disk</InstallFrom>
19+
<UpdateEnabled>false</UpdateEnabled>
20+
<UpdateMode>Foreground</UpdateMode>
21+
<UpdateInterval>7</UpdateInterval>
22+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
23+
<UpdatePeriodically>false</UpdatePeriodically>
24+
<UpdateRequired>false</UpdateRequired>
25+
<MapFileExtensions>true</MapFileExtensions>
26+
<ApplicationRevision>0</ApplicationRevision>
27+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
28+
<IsWebBootstrapper>false</IsWebBootstrapper>
29+
<UseApplicationTrust>false</UseApplicationTrust>
30+
<BootstrapperEnabled>true</BootstrapperEnabled>
31+
</PropertyGroup>
32+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
33+
<PlatformTarget>AnyCPU</PlatformTarget>
34+
<DebugSymbols>true</DebugSymbols>
35+
<DebugType>full</DebugType>
36+
<Optimize>false</Optimize>
37+
<OutputPath>bin\Debug\</OutputPath>
38+
<DefineConstants>TRACE;DEBUG</DefineConstants>
39+
<ErrorReport>prompt</ErrorReport>
40+
<WarningLevel>4</WarningLevel>
41+
<Prefer32Bit>false</Prefer32Bit>
42+
<UseVSHostingProcess>false</UseVSHostingProcess>
43+
</PropertyGroup>
44+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
45+
<PlatformTarget>AnyCPU</PlatformTarget>
46+
<DebugType>pdbonly</DebugType>
47+
<Optimize>true</Optimize>
48+
<OutputPath>bin\Release\</OutputPath>
49+
<DefineConstants>TRACE</DefineConstants>
50+
<ErrorReport>prompt</ErrorReport>
51+
<WarningLevel>4</WarningLevel>
52+
</PropertyGroup>
53+
<PropertyGroup>
54+
<StartupObject>CustomBuildTool.Program</StartupObject>
55+
</PropertyGroup>
56+
<PropertyGroup>
57+
<ApplicationManifest>Resource Files\app.manifest</ApplicationManifest>
58+
</PropertyGroup>
59+
<PropertyGroup>
60+
<ApplicationIcon>Resource Files\ProcessHacker.ico</ApplicationIcon>
61+
</PropertyGroup>
62+
<ItemGroup>
63+
<Reference Include="ICSharpCode.SharpZipLib, Version=0.86.0.518, Culture=neutral, PublicKeyToken=1b03e6acf1164f73, processorArchitecture=MSIL">
64+
<HintPath>..\packages\SharpZipLib.0.86.0\lib\20\ICSharpCode.SharpZipLib.dll</HintPath>
65+
</Reference>
66+
<Reference Include="System" />
67+
<Reference Include="System.Core" />
68+
<Reference Include="Microsoft.CSharp" />
69+
<Reference Include="System.Net" />
70+
<Reference Include="System.Net.Http" />
71+
<Reference Include="System.Net.Http.WebRequest" />
72+
<Reference Include="System.Runtime.Serialization" />
73+
<Reference Include="System.Web" />
74+
<Reference Include="System.Xml" />
75+
</ItemGroup>
76+
<ItemGroup>
77+
<Compile Include="Source Files\Build.cs" />
78+
<Compile Include="Source Files\HeaderGen.cs" />
79+
<Compile Include="Source Files\Json.cs" />
80+
<Compile Include="Source Files\NativeMethods.cs" />
81+
<Compile Include="Source Files\Nightly.cs" />
82+
<Compile Include="Source Files\Program.cs" />
83+
<Compile Include="Properties\AssemblyInfo.cs" />
84+
<Compile Include="Source Files\Verify.cs" />
85+
<Compile Include="Source Files\VisualStudio.cs" />
86+
<Compile Include="Source Files\Zip.cs" />
87+
</ItemGroup>
88+
<ItemGroup>
89+
<None Include="app.config" />
90+
<None Include="Resource Files\App.config" />
91+
<None Include="Resource Files\app.manifest">
92+
<SubType>Designer</SubType>
93+
</None>
94+
<None Include="Resource Files\packages.config" />
95+
</ItemGroup>
96+
<ItemGroup>
97+
<BootstrapperPackage Include=".NETFramework,Version=v4.6">
98+
<Visible>False</Visible>
99+
<ProductName>Microsoft .NET Framework 4.6 %28x86 and x64%29</ProductName>
100+
<Install>true</Install>
101+
</BootstrapperPackage>
102+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
103+
<Visible>False</Visible>
104+
<ProductName>.NET Framework 3.5 SP1</ProductName>
105+
<Install>false</Install>
106+
</BootstrapperPackage>
107+
</ItemGroup>
108+
<ItemGroup>
109+
<Content Include="Resource Files\ProcessHacker.ico" />
110+
</ItemGroup>
111+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
112+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
113+
Other similar extension points exist, see Microsoft.Common.targets.
114+
<Target Name="BeforeBuild">
115+
</Target>
116+
<Target Name="AfterBuild">
117+
</Target>
118+
-->
119+
</Project>
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
using System.Runtime.InteropServices;
4+
5+
// General Information about an assembly is controlled through the following
6+
// set of attributes. Change these attribute values to modify the information
7+
// associated with an assembly.
8+
[assembly: AssemblyTitle("CustomBuildTool")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("CustomBuildTool")]
13+
[assembly: AssemblyCopyright("Copyright © 2017")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
19+
// COM, set the ComVisible attribute to true on that type.
20+
[assembly: ComVisible(false)]
21+
22+
// The following GUID is for the ID of the typelib if this project is exposed to COM
23+
[assembly: Guid("cd644df2-a658-4cbc-9497-ca5dd13cfec3")]
24+
25+
// Version information for an assembly consists of the following four values:
26+
//
27+
// Major Version
28+
// Minor Version
29+
// Build Number
30+
// Revision
31+
//
32+
// You can specify all the values or you can default the Build and Revision Numbers
33+
// by using the '*' as shown below:
34+
// [assembly: AssemblyVersion("1.0.*")]
35+
[assembly: AssemblyVersion("1.0.0.0")]
36+
[assembly: AssemblyFileVersion("1.0.0.0")]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
5+
</startup>
6+
</configuration>
Binary file not shown.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3+
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
4+
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
5+
<security>
6+
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
7+
<requestedExecutionLevel level="asInvoker" uiAccess="false" />
8+
</requestedPrivileges>
9+
</security>
10+
</trustInfo>
11+
12+
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
13+
<application>
14+
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />
15+
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />
16+
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />
17+
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />
18+
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
19+
</application>
20+
</compatibility>
21+
22+
<application xmlns="urn:schemas-microsoft-com:asm.v3">
23+
<windowsSettings>
24+
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
25+
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
26+
</windowsSettings>
27+
</application>
28+
29+
<dependency>
30+
<dependentAssembly>
31+
<assemblyIdentity
32+
type="win32"
33+
name="Microsoft.Windows.Common-Controls"
34+
version="6.0.0.0"
35+
processorArchitecture="*"
36+
publicKeyToken="6595b64144ccf1df"
37+
language="*"
38+
/>
39+
</dependentAssembly>
40+
</dependency>
41+
42+
</assembly>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="SharpZipLib" version="0.86.0" targetFramework="net462" />
4+
</packages>

0 commit comments

Comments
 (0)