You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.8 KiB

8 years ago
8 years ago
8 years ago
  1. pEp Engine
  2. ==========
  3. 0. What it is and building it
  4. -----------------------------
  5. The pEp Engine encapsulates all real functionality of pEp.
  6. It has an old style Makefile for building it.
  7. The build is configured in Makefile.conf
  8. It supports the common targets
  9. $ make all
  10. $ make install
  11. $ make clean
  12. and additionally
  13. $ make package # for building a .tar.bz2 with the source distribution
  14. To build on platforms without uname(1) use BUILD_ON:
  15. C:\pEpEngine> :for building a .zip with a binary distribution
  16. C:\pEpEngine> set BUILD_ON=Windoze && make -e windist
  17. 1. How to cross-build
  18. ---------------------
  19. For cross-building, BUILD_FOR is being used. I.e.:
  20. $ BUILD_FOR=Windoze make -e windist
  21. Supported platforms are Darwin, Windoze, Linux.
  22. 1. a) Cross-building for Windoze
  23. ................................
  24. Cross-building for Windoze requires mingw-w64.
  25. Easier linking to Visual Studio can be achieved by using Microsoft's LIB.EXE
  26. tool; this command created the needed pEpEngine.lib import library:
  27. C:\pEpEngine> lib /def:pEpEngine.def
  28. 2. How to build the databases
  29. -----------------------------
  30. pEp Engine uses two databases: ~/.pEp_management (on *NIX) or
  31. %LOCALAPPDATA%\pEp\management.db on Windoze respectively, and
  32. /usr/local/share/system.db on *NIX or %ALLUSERSPROFILE%\pEp\system.db
  33. respectively. The latter contains the safewords dbs.
  34. The managment db is being created by the first call of init() of pEp Engine. It
  35. does not need to be created manually. system.db is being created by using the
  36. DDL in db/create_system_db.sql – the content is created by db/
  37. out of hunspell's dictionary packages (or something similar) and then being
  38. imported using sqlite3's .import command.
  39. You can test the safewords in system.db using db/
  40. Both Python tools have a switch --help