readpe icon indicating copy to clipboard operation
readpe copied to clipboard

WIP: Add cmake and rework into single executable

Open GoGoOtaku opened this issue 2 years ago • 0 comments

EARLY DRAFT

A bunch of things are missing or broken

  • [x] Rework output plugin so they can be optionally compiled into executable
  • [x] Text output should always be compiled into executable
  • [x] Plugin compilation missing
  • [x] All header output
  • [x] Almost all resources functionality
  • [x] Hashing functionality
  • [x] Scanning functionality
  • [x] Loads of arguments missing
  • [x] Bash completion
  • [x] Mac/Windows compilation (probably just some Makefile stuff)

~~Note: Premake is not required to compile only to change the make system itself. Premake does reduces a lot of Makesystem complexity tho and makes it easy to have static linked debug builds.~~

After wrestling with Makefiles and Premake for a while I decided to give up and add the additional requirement of cmake. Cmake makes a lot of the issues trivial (switching output plugin between shared and static for example) and also makes it easy to move from Cygwin to MSVC in the future as Visual Studio can load cmake projects out of the box.

I also decided on using crazy-complete to be able to auto generate completion scripts. I don't think crazy-complete supports PowerShell but it does export to Bash, Zsh, and Fish.

GoGoOtaku avatar Jun 27 '23 22:06 GoGoOtaku