Compilation time improvements. (#52)

* Precompiled header for all common library headers (with cmake 3.16rc3).
* Divided cmake build into shared libraries.
* Added gold linker support.
* Separated websockets lambda expressions to an independent file.
This commit is contained in:
Ravin Perera
2019-11-02 14:46:21 +05:30
committed by GitHub
parent 7b78387cef
commit cb364cc420
49 changed files with 476 additions and 377 deletions

View File

@@ -2,19 +2,14 @@
Entry point for HP Core
**/
// This will direct all boost exceptions to our error handler.
#define BOOST_NO_EXCEPTIONS
#include <cstdio>
#include <iostream>
#include <thread>
#include <unistd.h>
#include "pchheader.hpp"
#include "util.hpp"
#include "conf.hpp"
#include "crypto.hpp"
#include "usr/usr.hpp"
#include "proc.hpp"
#include "hplog.hpp"
#include "usr/usr.hpp"
#include "p2p/p2p.hpp"
#include "cons/cons.hpp"
/**