Commit Graph

161 Commits

Author SHA1 Message Date
Matthieu Gautier cd82a1b117 Add a README 2017-01-04 23:57:48 +01:00
Matthieu Gautier 1d0caa848c Add a LICENSE file 2017-01-04 23:41:14 +01:00
Matthieu Gautier d26d6f46cd Use a buildEnv to handle all kind of configuration stuff.
No real functional change but a first step to have a different buildEnv
to handle crosscompilation.
2017-01-04 23:37:14 +01:00
Matthieu Gautier ea725d0951 Meson compile command (ninja) also need a proper environment.
The ninja command may relaunch meson if meson files have changed.
As we need a proper environment (PKG_CONFIG_PATH, PATH) to let meson
configure properly, we also need to pass the environment to ninja.
2017-01-03 11:50:18 +01:00
Matthieu Gautier c60040e92c Let's meson found the compile_resource.py script.
Add the INSTALL_DIR/bin dir to the path and allow meson to found installed
binaries.
2016-12-23 13:09:24 +01:00
Matthieu Gautier c8e7610ca9 Set the patch paths relative to the script, not the cwd.
This way, we can run the script from everywhere.
2016-12-23 13:08:09 +01:00
Matthieu Gautier 1e97beeafb Meson version of kiwix-lib and kiwix-tools are on master now. 2016-12-22 13:49:56 +01:00
Matthieu Gautier 59ad736645 Add installation of missing hpp when compiling/installing pugixml. 2016-12-22 13:49:56 +01:00
Matthieu Gautier b819c97bf8 Temporary change the git_remote for zimlib.
zimlib doesn't use github but gerrit to handle changes.
As this patches to review, there is no meson branche for now.

Use a personal fork for now. As soon as the meson scripts have been
integrated in openzim repository, we should revert this commit.
2016-12-22 13:49:56 +01:00
Matthieu Gautier feca176523 Install in and use the correct libdir; and other compatibility fixes.
Ubuntu on 64 bits install lib in lib/x86_64-linux-gnu and meson correctly
detect this.
Thus it install libs (zimlib, kiwix) in this directory. However we
look for pkgconfig files in $INTALL_DIR/lib64. And so, the lib is not
found.

We could force meson to install in $INSTALL_DIR/lib64 all the time but
it is just better to follow the correct convention on Ubuntu.

Reuse the algorithm used in meson to correctly detect the libprefix,
use it and force all build script (autotools, cmake, meson) to install there.

In the same way, ninja may be called ninja-build depending of the distribution.
Or depending of how meson is installed, we may have to launch meson or meson.py.
So we detect the command to launch to try to be as most as possible portable.
2016-12-22 13:49:56 +01:00
Matthieu Gautier eb06ca840b Add a script to build all projects and dependencies for kiwix-tools.
This script download and compile all depedencies and subproject for
kiwix-tools.

Ideally it should be as simple as run the script with the install dir as
argument.

This script compile a dynamic or a static build of kiwix-tools (kiwix-serve)

This as been tested on Fedora.
2016-12-22 13:49:56 +01:00