diff options
author | Tor Lillqvist <tlillqvist@suse.com> | 2011-11-04 18:49:47 +0200 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2011-11-07 20:17:40 +0200 |
commit | 78d2d81fbe811131c4d8b9ccb62ee73034b62f03 (patch) | |
tree | d5d6fd396d8661eeb3d51d775ca3484ca8f97f18 /solenv | |
parent | f3a78f52f1099545f204e8fa3eb992081abe14b4 (diff) |
For Android, we don't actually want to build programs, but shared libraries
That's what the NativeActivity stuff wants.
For now the name of the produced shared library does not follow the
normal libfoo.so convention, but is the name of the corresponding
program on normal Unixes. To be fixed later. Or then, when
constructing an app .apk, just rename "foo" to
"libnative-foo.so".
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/inc/unxandr.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/solenv/inc/unxandr.mk b/solenv/inc/unxandr.mk index 070db53af6c9..56ed49d155a4 100644 --- a/solenv/inc/unxandr.mk +++ b/solenv/inc/unxandr.mk @@ -31,3 +31,20 @@ CDEFAULTOPT=-Os .INCLUDE : unxgcc.mk CDEFS+=-DARM32 CFLAGS+=-fno-omit-frame-pointer + +# Override some macros set by unxgcc.mk + +# We don't build any "tool" style programs for non-desktop OSes like +# Android. Just unit tests and GUI programs. (Well, that is in +# theory. In reality any actual "app" with a GUI for Android would be +# written and built in a totally Android-specific way, of course.) + +# Thus for Android we never build executable programs, just shared +# libraries that the NativeActivity Java code will load. + +LINKFLAGSAPPGUI=-shared +LINKFLAGSAPPCUI=-shared + +STDLIBGUIMT+=-llog -landroid +STDLIBCUIMT+=-llog -landroid + |