--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
{
# This jar contains the library I need to use.
# This library doesn't contain the resources needed for the library to work.
'target_name': 'my_library_javalib_no_res',
'type' : 'none',
'variables': {
'jar_path': 'path/to/your/library.jar',
},
'includes': ['../../build/java_prebuilt.gypi'],
},
{
# This target contains my library with the resources needed.
'target_name': 'my_library_javalib',
'type': 'none',
'variables': {
'java_in_dir': 'path/to/directory/containing/res/directory',
'R_package': ['my.library.package'],
'R_package_relpath': ['my/library/package'],
'has_java_resources': 1,
'res_v14_skip': 1,
'run_findbugs': 0,
},
'dependencies': [
'my_library_javalib_no_res',
],
'includes': [ '../../build/java.gypi' ]
},
Your directory structure usually would be like this:src/third_party/my_library/my/library/package/
- libs/ # where the .jar file(s) are
- res/ # where the resources are
- src/ # an empty src directory with a hidden .readme file to guarantee directory existence
Note that build/java.gypi requires src/ directory at the same level as the res/ directory.
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
Thanks for the help.
I added jar file of exoplayer in file android_tools.gyp
{
# Exoplayer implementation
'target_name': 'exoplayer_java',
'type' : 'none',
'variables': {
'jar_path': '<(android_sdk_root)/exoplayer.jar',
},
'includes': ['../../build/java_prebuilt.gypi'],
},
Also , I placed the exoplayer.jar file .
Can I now call function of exoplayer in chromium code.
Hi Anton ,I added classpath ( runtime_classpath) of my jar ( exoplayer.jar) in the file: build/gyp/javac.py.After this code is compiling fine.
But the jar is not going to chromium apk.
How would I ensure that exoplayer.jar is also going to apk.
Also do I need to generate .dex and .md5 file for this jar also.
Thanks & RegardsHimanshu