{"id":19633979,"url":"https://github.com/bilibili/jni4android","last_synced_at":"2025-09-09T08:45:32.735Z","repository":{"id":67623199,"uuid":"49267049","full_name":"bilibili/jni4android","owner":"bilibili","description":"JNI Generater for Android","archived":false,"fork":false,"pushed_at":"2018-09-29T09:38:21.000Z","size":226,"stargazers_count":310,"open_issues_count":6,"forks_count":83,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-05-20T06:04:35.803Z","etag":null,"topics":["android","bison","c","code-generator","cpp","flex","java","jni","ndk","yacc","yylex"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bilibili.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING.LGPLv2.1","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-08T10:53:58.000Z","updated_at":"2025-05-18T14:43:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"47ef1d03-bdf2-4310-974f-0dc1e58da103","html_url":"https://github.com/bilibili/jni4android","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/bilibili/jni4android","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilibili%2Fjni4android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilibili%2Fjni4android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilibili%2Fjni4android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilibili%2Fjni4android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bilibili","download_url":"https://codeload.github.com/bilibili/jni4android/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bilibili%2Fjni4android/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261844814,"owners_count":23218440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","bison","c","code-generator","cpp","flex","java","jni","ndk","yacc","yylex"],"created_at":"2024-11-11T12:19:14.062Z","updated_at":"2025-06-25T09:33:58.181Z","avatar_url":"https://github.com/bilibili.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jni4android\n\n[![Build Status](https://travis-ci.org/Bilibili/jni4android.svg?branch=master)](https://travis-ci.org/Bilibili/jni4android)\n\nGenerate C wrapper from Pseudo-Java\n\n### My Build Environment\n- Common\n - Mac OS X 10.10.5\n - Xcode 7.2 (7C68)\n - flex 2.5.35 Apple(flex-31)\n - bison (GNU Bison) 3.0.4\n- [HomeBrew](http://brew.sh)\n - ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"\n - brew install git\n - brew install flex\n - brew install bison\n\n### Build\n\n```\ngit clone https://github.com/Bilibili/jni4android.git jni4android\ncd jni4android\n\n# build dependencies\n# you don't have to run this if you have bison 3.x installed\n./get-deps.sh\n\n./configure\nmake\n```\n\n### Usage\n\n```\nUsage:\n    j4a -h\n    j4a -c [-o \u003coutput_file\u003e] \u003cinput_file\u003e\n\nStartup:\n    -c, --compile         compile file.\n    -h, --help            print this help.\n    -o, --output          output file.\n```\n\n### Example\n\n- input https://github.com/Bilibili/jni4android/blob/master/test/i_java/android/media/AudioTrack.java\n- output https://github.com/Bilibili/jni4android/blob/master/test/ref_c/android/media/AudioTrack.h\n- output https://github.com/Bilibili/jni4android/blob/master/test/ref_c/android/media/AudioTrack.c\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilibili%2Fjni4android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbilibili%2Fjni4android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilibili%2Fjni4android/lists"}