Re: Can we create chromium library instead of chrome.apk for android.

187 views
Skip to first unread message

Shiladkumar Devaramani

unread,
Aug 24, 2016, 10:36:09 AM8/24/16
to Chromium-dev
Hi,

I would like to create an apk in which I would like to use the chromium code as a library and create an apk out of it. So I would like to know is there any way to create an library file from the chromium code. If yes how can we create it. 

Looking forward for your kind reply.

Thanks and Regards
Shilad Kumar D

Holger

unread,
Aug 24, 2016, 10:53:27 AM8/24/16
to Chromium-dev
ninja -C out/MyOutDirectory chrome_public_apk

This will generate ChromePublic.apk, which should be exactly what you want :)
While I don't have access to the Chrome code, I assume it's just on top of Chromium and I doubt the Chromium ninja targets have been removed from it.

If ninja says that's an unknown target, you might need a pure Chromium workspace
fetch android
(rather than I assume "fetch chrome_android" or whatever you used)
Message has been deleted

Shiladkumar Devaramani

unread,
Aug 25, 2016, 3:31:31 AM8/25/16
to Chromium-dev
Hi,

Thanks for your kind reply.

I would like to create a library file not an apk file. Just like how we create static library or frame work in iOS. 

Primiano Tucci

unread,
Aug 25, 2016, 4:11:59 AM8/25/16
to shilad...@gmail.com, Chromium-dev

when you build the apk a libchrome.so is built as well.  honestly, though, I am not sure how useful that will be. without the Java code which handles all the ui and some system integration classes the libchrome.so is quite useless.
it is not clear from your message what guy mean with "a library"?
have you considered looking at Webview . I suspect that is what you are really looking for.


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Jeremy Roman

unread,
Aug 25, 2016, 10:36:55 AM8/25/16
to Primiano Tucci, shilad...@gmail.com, Chromium-dev
On Thu, Aug 25, 2016 at 4:10 AM, Primiano Tucci <prim...@chromium.org> wrote:

when you build the apk a libchrome.so is built as well.  honestly, though, I am not sure how useful that will be. without the Java code which handles all the ui and some system integration classes the libchrome.so is quite useless.
it is not clear from your message what guy mean with "a library"?
have you considered looking at Webview . I suspect that is what you are really looking for.


On Thu, Aug 25, 2016, 08:32 Shiladkumar Devaramani <shilad...@gmail.com> wrote:
Hi,

Thanks for your kind reply.

I would like to create a library file not an apk file. Just like how we create static library or frame work in iOS. 

I don't think Chromium itself supports such a configuration, though such features are available with the framework's WebView API (which is now auto-updated), and there's a separate project called Crosswalk that I believe packages Chromium in a library-ish way.
Reply all
Reply to author
Forward
0 new messages