Bug 42508

Summary: Support for building on Android
Product: Telepathy Reporter: Alvaro Soliverez <alvaro.soliverez>
Component: mission-controlAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium Keywords: patch
Version: git master   
Hardware: Other   
OS: other   
Whiteboard:
i915 platform: i915 features:
Attachments: Build on systems without gettext
Suppport for Android
Build on systems without gettext - fixed
Support for Android - fixed
Support for Android - fixed
Support for Android - fixed

Description Alvaro Soliverez 2011-11-02 05:08:25 UTC
Created attachment 53043 [details] [review]
Build on systems without gettext

These two patches enable building on Android using Android NDK and androgenizer.

The first patch enables building on systems without gettext. This is probably the most difficult one to merge, and will require most tweakings.

The second one adds the Android-specific bits
Comment 1 Alvaro Soliverez 2011-11-02 05:09:11 UTC
Created attachment 53044 [details] [review]
Suppport for Android
Comment 2 Will Thompson 2011-11-02 11:35:00 UTC
Comment on attachment 53043 [details] [review]
Build on systems without gettext

Review of attachment 53043 [details] [review]:
-----------------------------------------------------------------

MC isn't really localized, so we should be able to drop the gettext dependency entirely I think?

::: configure.ac
@@ +314,5 @@
> +AM_GNU_GETTEXT([external])
> +
> +dnl docs/Makefile.am needs to know whether it's an out of tree build
> +dnl (srcdir != builddir)
> +AM_CONDITIONAL([OUT_OF_TREE_BUILD], [test "z$ac_srcdir" != z.])

Looks like you're reintroducing this by mistake; it was removed since it's unnecessary.
Comment 3 Alvaro Soliverez 2011-11-02 11:59:02 UTC
Created attachment 53074 [details] [review]
Build on systems without gettext - fixed
Comment 4 Will Thompson 2011-11-10 07:24:39 UTC
Comment on attachment 53074 [details] [review]
Build on systems without gettext - fixed

Review of attachment 53074 [details] [review]:
-----------------------------------------------------------------

Looks good.
Comment 5 Will Thompson 2011-11-10 07:27:02 UTC
Comment on attachment 53044 [details] [review]
Suppport for Android

Review of attachment 53044 [details] [review]:
-----------------------------------------------------------------

::: Android.mk
@@ +4,5 @@
> +
> +TELEPATHY_MISSION_CONTROL_BUILT_SOURCES := \
> +	mission-control.pc \
> +	src/Android.mk \
> +	libmcclient/Android.mk \

libmcclient has been removed; so this patch will need updating.

@@ +35,5 @@
> +
> +#include all the subdirs...
> +-include $(TELEPATHY_MISSION_CONTROL_TOP)/src/Android.mk
> +-include $(TELEPATHY_MISSION_CONTROL_TOP)/util/Android.mk
> +-include $(TELEPATHY_MISSION_CONTROL_TOP)/libmcclient/Android.mk

Ditto

::: server/Makefile.am
@@ +49,5 @@
> +	  -DBUILD_AS_ANDROID_SERVICE \
> +	 -:LDFLAGS $(mission_control_5_LDADD) -ldbus-1 -ldbus-glib-1 \
> +	  -lmcclient \
> +	 -:LIBFILTER_STATIC missioncontrol-server mission-control-plugins \
> +	  mcclient \

ditto

::: server/mc-server.c
@@ +34,5 @@
>  static TpDebugSender *debug_sender;
>  
> +#ifdef BUILD_AS_ANDROID_SERVICE
> +int telepathy_mission_control_main (int argc, char **argv);
> +#endif

Doesn't having a non-static prototype in a .c file trigger a warning from the compiler?
Comment 6 Alvaro Soliverez 2011-11-11 10:40:06 UTC
Created attachment 53418 [details] [review]
Support for Android - fixed

Fixed the issues found
Comment 7 Alvaro Soliverez 2011-11-14 12:21:04 UTC
Created attachment 53557 [details] [review]
Support for Android - fixed

Fixed the libs hardcoding
Comment 8 Will Thompson 2011-11-21 09:00:31 UTC
(In reply to comment #7)
> Created attachment 53557 [details] [review] [review]
> Support for Android - fixed
> 
> Fixed the libs hardcoding

This is the patch for Gabble, not MC.
Comment 9 Will Thompson 2011-11-21 09:04:01 UTC
Comment on attachment 53074 [details] [review]
Build on systems without gettext - fixed

Committed.
Comment 10 Alvaro Soliverez 2011-11-21 09:42:13 UTC
Created attachment 53743 [details] [review]
Support for Android - fixed

This is the correct patch

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.