Skip to content

Commit d5f0ae3

Browse files
committed
exclude winkernel from build and update notes on it
1 parent b85b44e commit d5f0ae3

File tree

3 files changed

+19
-25
lines changed

3 files changed

+19
-25
lines changed

COMPILE_MSVC.TXT

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ versions, and Windows Driver Kit 8.1 Update 1 or newer versions are required.
2323
SystemZ, X86 & XCore), if you just need several selected archs, choose the ones
2424
you want to compile in by opening Visual Studio solution "msvc\capstone.sln",
2525
then directly editing the projects "capstone_static" & "capstone_dll" for static
26-
and dynamic libraries, respectively. For compiling Capstone for a driver, reload
27-
"capstone_static_winkernel" first and then edit the project. This must be done
28-
before going to the next steps.
26+
and dynamic libraries, respectively. This must be done before going to the next
27+
steps.
2928

3029
In VisualStudio interface, modify the preprocessor definitions via
3130
"Project Properties" -> "Configuration Propertis" -> "C/C++" -> "Preprocessor"
@@ -62,8 +61,11 @@ versions, and Windows Driver Kit 8.1 Update 1 or newer versions are required.
6261
(1) Compile from source on Windows with Visual Studio
6362

6463
- Choose the configuration and the platform you want: Release/Debug & Win32/Win64.
65-
- Build only the libraries, or the libraries along with all the tests. To build
66-
tests for a driver, reload the "test_winkernel" project first and compile it.
64+
- Build only the libraries, or the libraries along with all the tests.
65+
- "capstone_static_winkernel" is for compiling Capstone for a driver and
66+
"test_winkernel" is a test for a driver, and those are excluded from build by
67+
default. To compile them, open the Configuration Manager through the [Build]
68+
menu and check "Build" check boxes for those project.
6769

6870

6971

msvc/README

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ NOTE:
1616
afterwards.
1717

1818
(3) The capstone_static_winkernel and test_winkernel projects are for Windows
19-
kernel drivers and unloaded from the solution by default. In order to
20-
build them, you need to install Visual Studio 2013 or newer versions, and
21-
Windows Driver Kit 8.1 Update 1 or newer versions, then reload the projects
22-
from the Solution Explorer in Visual Studio.
19+
kernel drivers and excluded from build by default. In order to build them,
20+
you need to install Visual Studio 2013 or newer versions, and Windows Driver
21+
Kit 8.1 Update 1 or newer versions, then check "Build" check boxes for those
22+
projects on the Configuration Manager through the [Build] menu.

msvc/capstone.sln

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,6 @@ Global
168168
{B09819BB-7EF1-4B04-945D-58117E6940A1}.Release|Win32.Build.0 = Release|Win32
169169
{B09819BB-7EF1-4B04-945D-58117E6940A1}.Release|x64.ActiveCfg = Release|x64
170170
{B09819BB-7EF1-4B04-945D-58117E6940A1}.Release|x64.Build.0 = Release|x64
171-
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Debug|Win32.ActiveCfg = Debug|Win32
172-
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Debug|Win32.Build.0 = Debug|Win32
173-
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Debug|x64.ActiveCfg = Debug|x64
174-
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Debug|x64.Build.0 = Debug|x64
175-
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Release|Win32.ActiveCfg = Release|Win32
176-
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Release|Win32.Build.0 = Release|Win32
177-
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Release|x64.ActiveCfg = Release|x64
178-
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Release|x64.Build.0 = Release|x64
179171
{5B880AB5-E54F-11E3-8C65-B8E8563B7BDE}.Debug|Win32.ActiveCfg = Debug|Win32
180172
{5B880AB5-E54F-11E3-8C65-B8E8563B7BDE}.Debug|Win32.Build.0 = Debug|Win32
181173
{5B880AB5-E54F-11E3-8C65-B8E8563B7BDE}.Debug|x64.ActiveCfg = Debug|x64
@@ -192,22 +184,22 @@ Global
192184
{48EB18D5-7060-4C54-B8B1-BFF077329604}.Release|Win32.Build.0 = Release|Win32
193185
{48EB18D5-7060-4C54-B8B1-BFF077329604}.Release|x64.ActiveCfg = Release|x64
194186
{48EB18D5-7060-4C54-B8B1-BFF077329604}.Release|x64.Build.0 = Release|x64
187+
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Debug|Win32.ActiveCfg = Debug|Win32
188+
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Debug|Win32.Build.0 = Debug|Win32
189+
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Debug|x64.ActiveCfg = Debug|x64
190+
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Debug|x64.Build.0 = Debug|x64
191+
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Release|Win32.ActiveCfg = Release|Win32
192+
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Release|Win32.Build.0 = Release|Win32
193+
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Release|x64.ActiveCfg = Release|x64
194+
{2171C0E8-4915-49B9-AC23-A484FA08C126}.Release|x64.Build.0 = Release|x64
195195
{FE197816-EF84-4E8D-B29D-E0A6BA2B144B}.Debug|Win32.ActiveCfg = Debug|Win32
196-
{FE197816-EF84-4E8D-B29D-E0A6BA2B144B}.Debug|Win32.Build.0 = Debug|Win32
197196
{FE197816-EF84-4E8D-B29D-E0A6BA2B144B}.Debug|x64.ActiveCfg = Debug|x64
198-
{FE197816-EF84-4E8D-B29D-E0A6BA2B144B}.Debug|x64.Build.0 = Debug|x64
199197
{FE197816-EF84-4E8D-B29D-E0A6BA2B144B}.Release|Win32.ActiveCfg = Release|Win32
200-
{FE197816-EF84-4E8D-B29D-E0A6BA2B144B}.Release|Win32.Build.0 = Release|Win32
201198
{FE197816-EF84-4E8D-B29D-E0A6BA2B144B}.Release|x64.ActiveCfg = Release|x64
202-
{FE197816-EF84-4E8D-B29D-E0A6BA2B144B}.Release|x64.Build.0 = Release|x64
203199
{C6E4974C-2CAF-499A-802A-FB906F86B4C8}.Debug|Win32.ActiveCfg = Debug|Win32
204-
{C6E4974C-2CAF-499A-802A-FB906F86B4C8}.Debug|Win32.Build.0 = Debug|Win32
205200
{C6E4974C-2CAF-499A-802A-FB906F86B4C8}.Debug|x64.ActiveCfg = Debug|x64
206-
{C6E4974C-2CAF-499A-802A-FB906F86B4C8}.Debug|x64.Build.0 = Debug|x64
207201
{C6E4974C-2CAF-499A-802A-FB906F86B4C8}.Release|Win32.ActiveCfg = Release|Win32
208-
{C6E4974C-2CAF-499A-802A-FB906F86B4C8}.Release|Win32.Build.0 = Release|Win32
209202
{C6E4974C-2CAF-499A-802A-FB906F86B4C8}.Release|x64.ActiveCfg = Release|x64
210-
{C6E4974C-2CAF-499A-802A-FB906F86B4C8}.Release|x64.Build.0 = Release|x64
211203
EndGlobalSection
212204
GlobalSection(SolutionProperties) = preSolution
213205
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)