diff options
Diffstat (limited to 'en/devices/architecture/hidl-java')
-rw-r--r-- | en/devices/architecture/hidl-java/index.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/en/devices/architecture/hidl-java/index.html b/en/devices/architecture/hidl-java/index.html index 45eefc7d..d56fd1cc 100644 --- a/en/devices/architecture/hidl-java/index.html +++ b/en/devices/architecture/hidl-java/index.html @@ -48,20 +48,19 @@ version 1.0 that is registered as service name <code>foo-bar</code>:</p> <ul> <li>Add the following to Android.mk: -<pre class="prettyprint">LOCAL_JAVA_LIBRARIES += android.hardware.foo-V1.0-java</pre> +<pre class="prettyprint">LOCAL_STATIC_JAVA_LIBRARIES += android.hardware.foo-V1.0-java</pre> <strong>OR</strong><br> </li> <li>Add the following to Android.bp: <pre class="prettyprint"> -shared_libs: [ +static_libs: [ /* … */ "android.hardware.foo-V1.0-java", ], </pre> -The static version of the library is also available as -<code>android.hardware.foo-V1.0-java-static</code>.</li> +</li> </ul> </li> <li>Add the following to your Java file: @@ -117,7 +116,7 @@ stubs conform to the interface).</p> <p><code>-Lmakefile</code> generates the rules that run this command at build time and allow you to include -<code>android.hardware.foo-V1.0-java(-static)?</code> and link against the +<code>android.hardware.foo-V1.0-java</code> and link against the appropriate files. A script that automatically does this for a project full of interfaces can be found at <code>hardware/interfaces/update-makefiles.sh</code>. The paths in this example are relative; hardware/interfaces can be a temporary |