[Ohrrpgce] SVN: teeemcee/8222 scons: Pass CXXFLAGS to android build script. Requires latest version of

James Paige Bob at hamsterrepublic.com
Wed Dec 7 08:31:32 PST 2016


On Wed, Dec 7, 2016 at 12:05 AM, Ralph Versteegen <teeemcee at gmail.com>
wrote:

> When I mentioned git reset --hard, that was only in the case that you had
> already pulled my branches before I rewrote my history and re-pushed.
> Sorry, I see that was confusing.
>
> You didn't have to manually pick any changes. It should have been
> something along the lines of
> git checkout ohrrpgce
> git pull tmc   # or whatever you've called the remote for my repo
> git push
> git checkout sdl-android
> git pull tmc
> git push
> (All this can probably be written in many other ways)
>

Got it! Thanks for the help! My repo is caught up with yours now.



> You can still do this to get all the other changes I made. You can keep
> the commits that you just made if you want; when you pull git should have
> no problem merging duplicate commits.
>
> BTW, a much friendlier way to rewrite history (throw away commits, edit
> them, reword them, combine, or reorder them) is to use "git rebase -i
> <ancestor>". -i for interactive. This will show a list of commits one per
> line in a text editor and you can indicate which to edit, delete, etc. It's
> probably a bad idea to use it to rewrite merge commits; actually I don't
> even know what happens when you try.
>
> Uncommitted files are ignored by all git operations including git reset
> -hard; they are only a problem if a commit also adds a file by that name.
>

That eases my mind -- although by moving them somewhere else, I can check
them into a different private repository and version them.



> I think that I upgraded the Android SDK recently, and had to update my
> version of ant to get it to work again.
>
> I don't know what you mean by the symlink to extraconfig.cfg. Maybe it's
> something that should be fixed in the ohrrpgce svn repo. It does sound
> vaguely familar. I'm in Mexico and don't have access to my desktop, so
> can't look at how I set it up.
>

I have a separate folder for each apk project underneath
project/jni/application (for example, project/jni/application/voidpyramid)
and each of those has a AndroidAppSettings.cfg

To each of these AndroidAppSettings.cfg I append a line to include
extraconfig.cfg

So I have an extraconfig.cfg symlink in each of these apk project
directories that points to /home/james/src/ohr/wip/android/extraconfig.cfg
so that my AndroidAppSettings.cfg doesn't have to point to that location
that is only valid on my current machine.

---
James




> On 6 December 2016 at 13:28, James Paige <Bob at hamsterrepublic.com> wrote:
>
>> Okay, good news. I mostly figured it out
>>
>> 1) I manually merged the "Add APPLICATION_ADDITIONAL_CPPFLAGS" patch to
>> my sdl-android
>>
>> 2) I remembered that I had to add a symlink to extraconfig.cfg and modify
>> AndroidAppSettings.cfg to reference it
>>
>> 3) I solved some ohrrpgce-unrelated breakage of zipalign that happened
>> when Unity decided it wanted to update my Android SDK for me.
>>
>> So now I am able to build working apk files using the latest source.
>>
>> I will still need your help getting my git tree properly rebased or
>> whatever so I can merge more of your fixes (I still don't have the any of
>> e-mail stuff, the other-targets stuff, or the more recent pelya stuff that
>> you merged)
>>
>> Right now I am working on moving all the apk project folders out of my
>> sdl-android working copy. I can symlink them in there instead. Then I will
>> feel a little bit safer about messing around in there.
>>
>> ---
>> James
>>
>>
>>
>> On Tue, Dec 6, 2016 at 8:52 AM, James Paige <Bob at hamsterrepublic.com>
>> wrote:
>>
>>> On Sat, Nov 26, 2016 at 2:21 PM, Ralph Versteegen <teeemcee at gmail.com>
>>> wrote:
>>>
>>>> Pull my ohrrpgce branch (and also pull my sdl_android branch to your
>>>> sdl_android branch). Note, I just rewrote my branches since it appeared you
>>>> hadn't pulled them yet (or at least hadn't pushed your branches back to
>>>> github) and I realised I hadn't kept sdl_android and ohrrpgce separate; if
>>>> that's a problem just do "git checkout ohrrpgce; git reset --hard
>>>> tmc/ohrrpgce" etc *assuming* you've made no additional commits which would
>>>> get wiped
>>>>
>>>
>>> I am going to need some help with this.
>>>
>>> I had indeed been keeping sdl_android and ohrrpgce separate.
>>>
>>> sdl_android had all the actual important changes on it.
>>>
>>> my ohrrpgce branch was kept the same as my sdl_android branch, with the
>>> addition of:
>>> * replacing the splash screen
>>> * replacing the default button images
>>> * removing the non-ohrrpgce related stuff in projects/jni/application
>>>
>>> I am very hesitant to do a git reset --hard because I don't even know
>>> how to check and verify whether or not I have additional commits that would
>>> get wiped, nor do I know how to un-do it if it goes awry.
>>>
>>> I also have a ton of un-committed project folders inside my working
>>> copy's projects/jni/application/ which I *cannot* commit because doing so
>>> would expose the game's keystore files to anybody on github.
>>>
>>> (Right now I am just trying to re-build an apk for A Hagen's Void
>>> Pyramid 1.4)
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>> Keeping sdl_android and ohrrpgce separate might well turn out to be a
>>>> good thing for merging upstream changes back in. For now I've had to
>>>> manually cherry-pick certain commits to support x86 and newer ndks.
>>>>
>>>> On 27 November 2016 at 10:14, James Paige <Bob at hamsterrepublic.com>
>>>> wrote:
>>>>
>>>>> What do I need to merge to my commandergenius ohrrpgce branch?
>>>>> Everything?
>>>>>
>>>>>
>>>>> On Saturday, November 26, 2016, <subversion at hamsterrepublic.com>
>>>>> wrote:
>>>>>
>>>>>> teeemcee
>>>>>> 2016-11-26 02:55:38 -0800 (Sat, 26 Nov 2016)
>>>>>> 109
>>>>>> scons: Pass CXXFLAGS to android build script. Requires latest version
>>>>>> of my commandergenius "ohrrpgce" branch
>>>>>> ---
>>>>>> U   wip/SConscript
>>>>>> U   wip/android/AndroidAppSettings.cfg
>>>>>> _______________________________________________
>>>>>> Ohrrpgce mailing list
>>>>>> ohrrpgce at lists.motherhamster.org
>>>>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherh
>>>>>> amster.org
>>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Ohrrpgce mailing list
>>>>> ohrrpgce at lists.motherhamster.org
>>>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>>>
>>>>>
>>>>
>>>> _______________________________________________
>>>> Ohrrpgce mailing list
>>>> ohrrpgce at lists.motherhamster.org
>>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> Ohrrpgce mailing list
>> ohrrpgce at lists.motherhamster.org
>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>
>>
>
> _______________________________________________
> Ohrrpgce mailing list
> ohrrpgce at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20161207/e1c3cfa9/attachment-0001.htm>


More information about the Ohrrpgce mailing list