{"action":"created","issue":{"url":"https://api.github.com/repos/erkyrath/remglk/issues/8","repository_url":"https://api.github.com/repos/erkyrath/remglk","labels_url":"https://api.github.com/repos/erkyrath/remglk/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/erkyrath/remglk/issues/8/comments","events_url":"https://api.github.com/repos/erkyrath/remglk/issues/8/events","html_url":"https://github.com/erkyrath/remglk/issues/8","id":190960771,"number":8,"title":"Request: Make work (Android.mk & Frotz) for other Interpreters","user":{"login":"BroadcastGames","id":21280156,"avatar_url":"https://avatars.githubusercontent.com/u/21280156?v=3","gravatar_id":"","url":"https://api.github.com/users/BroadcastGames","html_url":"https://github.com/BroadcastGames","followers_url":"https://api.github.com/users/BroadcastGames/followers","following_url":"https://api.github.com/users/BroadcastGames/following{/other_user}","gists_url":"https://api.github.com/users/BroadcastGames/gists{/gist_id}","starred_url":"https://api.github.com/users/BroadcastGames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BroadcastGames/subscriptions","organizations_url":"https://api.github.com/users/BroadcastGames/orgs","repos_url":"https://api.github.com/users/BroadcastGames/repos","events_url":"https://api.github.com/users/BroadcastGames/events{/privacy}","received_events_url":"https://api.github.com/users/BroadcastGames/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-22T10:27:02Z","updated_at":"2016-11-26T13:58:24Z","closed_at":"2016-11-24T04:34:33Z","body":"EDIT: I mean to say 'Frotz' on the subject.\r\n\r\nOpen request to anyone who knows C make conventions more than I do. I will try to hack these, but would also openly invite it done correct instead of my novice results.  There are two general requests:\r\n\r\n1. I would like to be able to build RemGlk with Android.  The 'old' standard for this is an Android.mk file. For an example of this, look at Son of HunkyPunk's Android.mk for garglk: https://github.com/retrobits/son_of_hunkypunk/blob/master/app/src/main/jni/garglk/Android.mk - in that tree you will see side-by-side examples of standard desktop Makefile and Android.mk, for example Git interpreter: https://github.com/retrobits/son_of_hunkypunk/tree/master/app/src/main/jni/git\r\n\r\n2. C Makefile so we link other interpreters to RemGlk on desktop systems.  For alternate Glk example, nanoglk knows how to compile and link Frotz: https://github.com/BroadcastGames/nanoglk/blob/master/Makefile#L57 to link with itself.  So far, I've managed to get Glulxe, Git, and Fizmo to link with RemGlk.   I see that GarGlk has an extensive set, but uses a different make system? https://github.com/garglk/garglk/tree/master/terps/\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/erkyrath/remglk/issues/comments/263064813","html_url":"https://github.com/erkyrath/remglk/issues/8#issuecomment-263064813","issue_url":"https://api.github.com/repos/erkyrath/remglk/issues/8","id":263064813,"user":{"login":"BroadcastGames","id":21280156,"avatar_url":"https://avatars.githubusercontent.com/u/21280156?v=3","gravatar_id":"","url":"https://api.github.com/users/BroadcastGames","html_url":"https://github.com/BroadcastGames","followers_url":"https://api.github.com/users/BroadcastGames/followers","following_url":"https://api.github.com/users/BroadcastGames/following{/other_user}","gists_url":"https://api.github.com/users/BroadcastGames/gists{/gist_id}","starred_url":"https://api.github.com/users/BroadcastGames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BroadcastGames/subscriptions","organizations_url":"https://api.github.com/users/BroadcastGames/orgs","repos_url":"https://api.github.com/users/BroadcastGames/repos","events_url":"https://api.github.com/users/BroadcastGames/events{/privacy}","received_events_url":"https://api.github.com/users/BroadcastGames/received_events","type":"User","site_admin":false},"created_at":"2016-11-26T13:58:23Z","updated_at":"2016-11-26T13:58:23Z","body":"Follow-up, this worked fine for me in Android NDK 12b as a Android.mk makefile that can be inserted into Twisty or Son of Hunky Punk's tree structure with 'remglk' as a parallel directory to the other interpreter file directories and alternate glk options (nanoglk or cheapglk for example).\r\n\r\n`LOCAL_PATH := $(call my-dir)\r\n\r\ninclude $(CLEAR_VARS)\r\n\r\nLOCAL_MODULE    := remglk\r\nLOCAL_SRC_FILES := main.c rgevent.c rgfref.c rggestal.c \\\r\n                     rgdata.c rgmisc.c rgstream.c rgstyle.c \\\r\n                     rgwin_blank.c rgwin_buf.c rgwin_grid.c rgwin_pair.c rgwindow.c \\\r\n                     rgschan.c rgblorb.c cgunicod.c cgdate.c gi_dispa.c gi_blorb.c\r\nLOCAL_CFLAGS\t:= -DANDGLK \r\n\r\ninclude $(BUILD_STATIC_LIBRARY)\r\n`"}}
{"actor":{"display_login":"BroadcastGames"}}