Add a new script to compile resources.

- No more dependency to reswrap binary (everything is done in python)
- Resource strings can be directly accessed.
  As side effect, it add a check at compilation if the resource is
  declared and compiled in the binary.
- The resource content can be overwritten at runtime with a env variable.

There is also few clean in the static as some files shoul be in the tools
directory.

The compile_resource script is install to let other project use it.
This commit is contained in:
Matthieu Gautier
2016-12-23 13:06:12 +01:00
parent 8b34414458
commit cba71b4e75
39 changed files with 186 additions and 49336 deletions

File diff suppressed because it is too large Load Diff

View File

@ -34,7 +34,6 @@
#include <stdio.h>
#include <stdlib.h>
// #include <common/resourceTools.h>
#include <iostream>
#include <string>

View File

@ -31,7 +31,6 @@
#include <pthread.h>
#include "common/stringTools.h"
#include "common/otherTools.h"
#include "common/resourceTools.h"
#include <zim/file.h>
#include <zim/article.h>
#include <zim/fileiterator.h>

View File

@ -18,7 +18,6 @@ install_headers(
'common/otherTools.h',
'common/pathTools.h',
'common/regexTools.h',
'common/resourceTools.h',
'common/stringTools.h',
'common/tree.h',
subdir:'kiwix/common'

View File

@ -28,7 +28,6 @@
#include <locale>
#include <cctype>
#include <vector>
#include "common/resourceTools.h"
#include "common/pathTools.h"
#include "common/stringTools.h"
#include <unicode/putil.h>