Skip to content

Erlang / Elixir runtimes for Android and iOS

License

Notifications You must be signed in to change notification settings

assembleco/ex-mobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

liberlang

Currently has two build modes:

  1. Build on your native platform for testing / debugging
  2. Build for android using docker

How we create liberlang.so from the otp git source

Current plan to create liberlang:

  1. Replace erl_main.c in sys/unix/

  2. Export some symbols either

    • Find DEXPORT or similiar to export from beam.smp
    • or add -shared flags somehow and create beam.smp.so

Current:

  • ENV CFLAGS="-O2 -fPIC" CXXFLAGS="-O2 -fPIC"
  • Deleted main() from erl_main.c in sys/unix/
  • Replace $(ERLLD) with '$(CXX) -shared' => Can't use beam.smp for compilation anymore...

Approach:

  • ENV CFLAGS="-O2 -fPIC" CXXFLAGS="-O2 -fPIC"

About

Erlang / Elixir runtimes for Android and iOS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 53.5%
  • Elixir 33.3%
  • Dockerfile 5.9%
  • C++ 4.1%
  • Shell 3.2%