All pre-built binaries removed from the project.
Building is now done with CMake.
PPDs are have to be built from shipped driver sources (however couple
of defaults are still placed in sources as a fallback).
CMake also includes install instructions (so after build 'sudo make
install' will give you working solution both on Linux and on Mac Os).
By default cmake build type is set to 'Release'
Added generation of ppd from drv if ppdc is available
Added installation stuff.
so, now 'make install' and 'make package' should work
That is both for mac and for linux
First, now cmake project manages either to use debugging or not (use
cmake-gui or ccmake to determine what is customizable, or just read
CMakeLists.txt, is is really short).
Second, small changes like 'static inline' instead of just 'inline'
and a bit of the same changes, like changing 'if' into ternary stmt
applied.
'Pure proof-of-concept' project like this usually written from scratch
using most primitive and wide-spread tools like 'make'. I've started
this project by disassembling original chinese filter which was
distributed with printer itself, and originally it is a kind of
reversed code 'just force it to work anyway', which is essentially is
just a working piece of shit.
Now I see dozen of bugs reported and even pull-requests, so I think I
can spend a bit of my time to this pet.
First, I use Jetbrains Clion for my main project where I work. CLion
projects are actually CMake projects, so let's add a rudimental
CMakeList to make it piece buildable from normal IDE.
Also pre-built filter I've considered as not so significant to keep it in this open-source proj (anyone can rebuild it anytime from scratch)
If need changes, edit this file instead of .ppd (it is not only more
right, but also more clear in syntax ane easier).
Then run
ppdc zj-58.drv
and it will create zj58.ppd (or whatever filename you've pointed
inside).