diff --git a/common.py b/common.py index 48be88eb..9c5d5b76 100644 --- a/common.py +++ b/common.py @@ -954,7 +954,7 @@ def scan_source(build_dir, root_dir, thisbuild): # Presence of a jni directory without buildjni=yes might # indicate a problem... if (os.path.exists(os.path.join(root_dir, 'jni')) and - thisbuild.get('buildjni', 'no') != 'yes'): + thisbuild.get('buildjni', 'no') == 'no'): msg = 'Found jni directory, but buildjni is not enabled' problems.append(msg) diff --git a/docs/fdroid.html b/docs/fdroid.html index 670722f5..bc672005 100644 --- a/docs/fdroid.html +++ b/docs/fdroid.html @@ -613,8 +613,14 @@ tools.
initfun=yes
Enables a selection of mad hacks to make com.funambol.android build. Probably not useful for any other application. -
buildjni=yes
Enables building of native code via the ndk-build script before doing -the main ant build. +
buildjni=[no|yes|force]
Enables building of native code via the ndk-build script before doing +the main ant build. The default is no. + +

The build and scan processes will complain (refuse to build) if this is set +to no, but there is a jni directory present. If the native code +is being built by other means, you can specify manual here to avoid +that. However, if the native code is actually not required, remove the +directory instead.

submodules=yes
Use if the project (git only) has submodules - causes git submodule init and update to be executed after the source is cloned. diff --git a/docs/fdroid.texi b/docs/fdroid.texi index a6643b36..561a6866 100644 --- a/docs/fdroid.texi +++ b/docs/fdroid.texi @@ -505,9 +505,15 @@ Be aware of any customisations in build.xml when using update=force. Enables a selection of mad hacks to make com.funambol.android build. Probably not useful for any other application. -@item buildjni=yes +@item buildjni=[no|yes|force] Enables building of native code via the ndk-build script before doing -the main ant build. +the main ant build. The default is @code{no}. + +The build and scan processes will complain (refuse to build) if this is set +to @code{no}, but there is a @code{jni} directory present. If the native code +is being built by other means, you can specify @code{manual} here to avoid +that. However, if the native code is actually not required, remove the +directory instead. @item submodules=yes Use if the project (git only) has submodules - causes git submodule