Skip to content

2. How to build

hasherezade edited this page Dec 20, 2021 · 6 revisions

PE-sieve is dedicated to work on Windows (>= XP). It was tested with multiple versions of Visual Studio.
You need to have git and CMake installed on your system.

Clone the repository

In order to fetch PE-sieve along with it's submodules, you need to use recursive cloning:

git clone --recursive https://github.com/hasherezade/pe-sieve.git

Generate a project

Use CMake to generate a Visual Studio project:

Build as a DLL

  1. Supply the path to the cloned repository as Where is the source code .
  2. Specify the directory where you want to keep your project as Where to build the binaries.
  3. Press Configure to load the build options.
    Choose from the list the version of Visual Studio that you have installed on your machine, and the bitness in which you want to build (32 or 64):

Build as a DLL

If you made a mistake in choosing the environment, you need to delete the cache before redoing this step. Choose from the menu File->Delete cache.

  1. You can configure the PE-sieve to be built in one of the 3 flavors:
  • as an EXE (default)
  • as a DLL (enabled by the option: PESIEVE_AS_DLL)
  • as a static library (enabled by the option: PESIEVE_AS_STATIC_LIB)
  1. After configuring the project, press Generate
  2. Open the created project in Visual Studio and build it.