[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: allegro-developers@xxxxxxxxxx
- Subject: Re: [AD] android example
- From: Thomas Fjellstrom <thomas@xxxxxxxxxx>
- Date: Fri, 04 Dec 2015 16:39:59 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=fjellstrom.ca; s=mail; t=1449272401; bh=ipMiK7wQXnHxEEFQSZTQrod1cMQJPpPA0eICmZxCpmI=; h=From:To:Reply-To:Subject:Date:In-Reply-To:References:From; b=hUjqhGmsRIfdl874UjX3HUC0cTDezYJcjAC/Cfa5zIlS7EGYkAedlTxh+nRQQwDmi sA+Kikd6Oy/QTrP3qYRF3qRqA8MQ9xt3RQO/kkGJ2zRw3pR4fle28dePugPzHYJBAv iCKrUA6R5gzZ1Vd0zm3FdA9dvcK1NlxXXjyDUnjs=
On Fri 04 Dec 2015 06:34:43 PM Elias Pschernig wrote:
> On Fri, Dec 4, 2015 at 5:48 PM, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> > I think it’s just because it used to be the only example, and we didn’t
> > have CMake able to build for Android.
> >
> >
> >
> > IMO it is still useful because you get to see the structure of an Android
> > project. The CMake that builds the examples is simplified, at least I know
> > for my projects I use a special build for Android with a directory like
> > that example. It’s good to know the directory structure so you can use it
> > or set up your own CMake script to build your Android project. Like for
> > example, the examples use a generic AndroidManifest.xml whereas you often
> > need to add things that the tools can’t do via command line. And many
> > other
> > things.
> >
> >
> >
> > If possible I think it’d be better to keep it and set the correct
> > architectures and stuff, or at least put it in misc/ and allow users to
> > build it manually if they want to try it out or something.
>
> Hm, I'd rather make the other examples have that same structure, so we
> avoid all the duplicated cmake code. Once you run cmake, there's an Android
> project for every example in build/examples/ex_*.proj/. To me they look
> very similar, and you can use them as base for your own game just like the
> android/example one - but I may be wrong. The official way to build if you
> download the SDK form Google these days seems to be "gradle"... so maybe at
> some point we could change to that.
The idea behind that one example is to give people something they can
literally just copy and paste into a new project, make a couple modifications
and get a working app.
--
Thomas Fjellstrom
thomas@xxxxxxxxxx