Build: Make it possible to use a system supplied rocksdb

All the rocksdb headers have been moved to the staticlibs folder
to prevent include path conflicts. They have also been removed
from the project file as they are not necessary for building and
when using a system rocksdb the headers are different ones.

Storage.cpp has been changed to include rocksdb from the system
include path first.

In the project there are new feature flags, the first of them
being "staticlibs" and set by default. These can be overridden
from the qmake command line like this:

qmake -makefiles features= Fulcrum.pro

The project now only adds the staticlibs to the include and
library path when the feature is set.
This commit is contained in:
Axel Gembe 2020-01-09 16:50:12 +07:00
parent 620559e266
commit 87f861c4ff
No known key found for this signature in database
GPG key ID: 1CB3AA2143109AAC
86 changed files with 72 additions and 133 deletions

View file

@ -3,9 +3,9 @@
#include <cstdio>
#include <string>
#include <iostream>
#include "rocksdb/db.h"
#include "rocksdb/slice.h"
#include "rocksdb/options.h"
#include <rocksdb/db.h>
#include <rocksdb/slice.h>
#include <rocksdb/options.h>
#ifdef NDEBUG
#undef NDEBUG