forked from vmt/udis86
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD-WINDOWS
90 lines (77 loc) · 2.66 KB
/
BUILD-WINDOWS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Build Instructions for Visual Studio
************************************
Note: it is important to perform the build at least once before
attempting to open the solution in Visual Studio so that the build
process can generate the itab.c/itab.h files from the itab.py Python
script.
Prerequisites
=============
The buildVS2010.bat and build.proj MSBuild project have the following
prerequisites:
1. Visual Studio 2010 with VC++ (full edition is required to compile
for x64). A later compiler can be used however the build batch file
will need to be changed to run the correct vcvarsall.bat.
2. Python 2.7 - although a later version should work, the build script
has been configured to expect "python.exe" to be installed in
"c:\python27\".
How to Build
============
Ensure all prerequisites are in place and then run "buildVS2010.bat".
MSBuild will run the "Clean" target for the "udis86.sln" solution and
then build the following targets for "build.proj" MSBuild project:
1. Clean - (remove the "./Build" directory)
2. BuildRelease_x86 - build the release configuration for x86
3. BuildRelease_x64 - build the release configuration for x64
4. PostBuild - copy license and headers to build directory
If a debug version is required, the batch file can be modified to also
build the BuildDebug_x86 and BuildDebug_x64 targets.
If Visual Studio Express is being used you will need to comment out the
x64 target(s).
Build Output
============
The Build directory has the following structure (if building all
Release and Debug targets):
.
+-- Bin
¦ +-- Debug
¦ ¦ +-- x64
¦ ¦ ¦ +-- libudis86.dll
¦ ¦ ¦ +-- libudis86.ilk
¦ ¦ ¦ +-- libudis86.pdb
¦ ¦ ¦ +-- udcli.exe
¦ ¦ ¦ +-- udcli.ilk
¦ ¦ ¦ +-- udcli.pdb
¦ ¦ +-- x86
¦ ¦ +-- libudis86.dll
¦ ¦ +-- libudis86.ilk
¦ ¦ +-- libudis86.pdb
¦ ¦ +-- udcli.exe
¦ ¦ +-- udcli.ilk
¦ ¦ +-- udcli.pdb
¦ +-- x64
¦ ¦ +-- libudis86.dll
¦ ¦ +-- libudis86.pdb
¦ ¦ +-- udcli.exe
¦ ¦ +-- udcli.pdb
¦ +-- x86
¦ +-- libudis86.dll
¦ +-- libudis86.pdb
¦ +-- udcli.exe
¦ +-- udcli.pdb
+-- Include
¦ +-- libudis86
¦ ¦ +-- itab.h
¦ ¦ +-- types.h
¦ +-- udis86.h
+-- Lib
¦ +-- Debug
¦ ¦ +-- x64
¦ ¦ ¦ +-- libudis86.lib
¦ ¦ +-- x86
¦ ¦ +-- libudis86.lib
¦ +-- x64
¦ ¦ +-- libudis86.lib
¦ +-- x86
¦ +-- libudis86.lib
+-- LICENSE
+-- README