Matthieu Gautier
bebec0702c
CMakeBuilder and MesonBuilder respect the force_native_build flag.
...
We must not use crossfile if we are building a native dependency.
2017-07-12 14:31:37 +02:00
Matthieu Gautier
4f0b2ec376
Set the right env variable when necessary.
...
The `cross_path_only` option used in `cmake` and `meson` builder where
mainly here to avoid kiwix-build to set the env with `CC` and `CXX`
variable set.
This is needed as `cmake` and `meson` will find the correct compiler
from the cross-config file.
However, even for them, we need to set some environment variables
(especially PKG_CONFIG_LIBDIR)
So we need another level a configuration to be able to set a cross_env
without setting the compiler's env variables.
2017-06-26 14:32:04 +02:00
Matthieu Gautier
22fffcee51
Add script to build customapp
2017-06-25 15:49:49 +02:00
Matthieu Gautier
c2ad927f80
Add a `SvnSource`.
...
This is needed to get source from svn.
2017-05-09 14:02:37 +02:00
Matthieu Gautier
f942c5951f
Move `_patch` method in `Source` class.
...
The patch method is not specific to a `RealeaseDownload` source.
2017-05-09 14:02:37 +02:00
Matthieu Gautier
39c2e67b80
Make GradleBuilder configurable.
...
A dependency (future kiwix-android-custom app) may want to use the gradle
builder for something else than `build` with the default options.
2017-05-02 17:30:07 +02:00
Matthieu Gautier
86c1547f88
Allow kiwix-build to build android APK.
...
Previous script (from kiwix repository) created a APK with all architecture embeded.
Now, we generated a APK per architecture. It simplify the build process and
generate smaller APKs.
2017-04-24 15:26:51 +02:00
Matthieu Gautier
a49fb15964
BuildEnv.run_command now take a str as input instead of a file object.
...
We can get a str from a file object. The contrary is more difficult.
2017-04-24 14:53:50 +02:00
Matthieu Gautier
0199092f62
Clone git repository with a depth of one.
...
This avoid downloading all the history.
With recent git, a `git fetch --unshallow` allow a user to get all
the history if needed.
2017-04-24 14:13:01 +02:00
Matthieu Gautier
6d13ee8a4e
Use the git_dir to clone the repository in the right directory.
2017-04-24 14:13:01 +02:00
Matthieu Gautier
308cfa6986
Use dependency names as reference instead of class names.
...
Class names are implementation names.
Using the dependency names is better as it surprise less the user.
2017-04-08 18:19:17 +02:00
Matthieu Gautier
a212ec622b
Allow a dependency to have _post_prepare_script in this GitClone source.
2017-03-28 10:10:12 +02:00
Matthieu Gautier
29bba313bc
[API change] Use just one option to specify the build target.
...
There is no more option for static or share build. This value is
integrated in the build-target.
2017-03-13 13:18:14 +01:00
Matthieu Gautier
dd7a0660c0
Allow the use of pre/post build script in dependencies.
2017-03-13 13:18:14 +01:00
Matthieu Gautier
92c1a5513a
Move some variables definition in a property instead of classic calculus.
2017-03-13 13:18:14 +01:00
Matthieu Gautier
bd4e7d3550
Move some common options for static/shared libs in the common class.
2017-03-13 13:18:14 +01:00
Matthieu Gautier
00acba9ee9
Add the notion of toolschain.
...
- For now, only the win32 is here.
- There no more nativeBuilEnv as the buildEnv can launch command without
using the toolschain.
2017-03-13 13:18:14 +01:00
Matthieu Gautier
ffee068fd0
Split the too long kiwix-build.py file into several smaller ones.
2017-03-13 13:18:14 +01:00