Hi,
Where should I put my compiled enterprise plugin .so files in order to get them into a Corona deployment build for Android devices?
Up until now I have only built dylib plugin files for the simulator and put them into “./Library/Application Support/Corona/Simulator/Plugins/” and the simulator finds them happily. In order to build the dylib files I skipped the Xcode build stuff and wrote a 20 row Makefile which generate the dylib file.
I would prefer to build the corresponding .so plugin files (for the Android device) using my own short Makefile as well instead of using Android Studio and gradle build inferno.
So the question is: Where should I put compiled plugin .so files so that the Corona build support adds them into the Android device build?
Kind regards
/Joakim
This is how I build own of my plugins for the simulator:
spock:sodium jocke$ ls -l total 8 drwxr-xr-x 22 jocke staff 748 22 Nov 20:44 Corona -rw-r--r-- 1 jocke staff 2307 18 Nov 20:22 Readme.markdown drwxr-xr-x 12 jocke staff 408 18 Nov 20:22 android drwxr-xr-x 13 jocke staff 442 18 Nov 20:22 ios drwxr-xr-x 5 jocke staff 170 14 Jan 09:51 mac drwxr-xr-x 3 jocke staff 102 22 Nov 11:43 shared drwxr-xr-x 8 jocke staff 272 18 Nov 20:22 tvos drwxr-xr-x 4 jocke staff 136 18 Nov 20:22 win32 spock:sodium jocke$ cd mac/ spock:mac jocke$ ls -l total 40 lrwxr-xr-x 1 jocke staff 30 18 Nov 20:22 CoronaEnterprise -\> /Applications/CoronaEnterprise -rw-r--r-- 1 jocke staff 521 1 Dec 10:45 Makefile -rwxr-xr-x 1 jocke staff 9468 14 Jan 09:51 plugin\_sodium.dylib spock:mac jocke$ make gcc -I../../../../vendor/include -I./CoronaEnterprise/Corona/shared/include/Corona -I./CoronaEnterprise/Corona/shared/include/lua -pedantic -L../../../../vendor/lib -undefined dynamic\_lookup -dynamiclib -lsodium -o plugin\_sodium.dylib ../shared/sodium.c spock:mac jocke$ ls -l plugin\_sodium.dylib -rwxr-xr-x 1 jocke staff 9468 14 Jan 20:12 plugin\_sodium.dylib spock:mac jocke$ cat Makefile INSTALLDIR="/Users/jocke/Library/Application Support/Corona/Simulator/Plugins" CFLAGS=-I../../../../vendor/include -I./CoronaEnterprise/Corona/shared/include/Corona -I./CoronaEnterprise/Corona/shared/include/lua -pedantic LFLAGS=-L../../../../vendor/lib -undefined dynamic\_lookup -dynamiclib LIBS=-lsodium LIBFILE=plugin\_sodium.dylib all: gcc $(CFLAGS) $(LFLAGS) $(LIBS) -o $(LIBFILE) ../shared/sodium.c install: install $(LIBFILE) $(INSTALLDIR) uninstall: rm -f $(INSTALLDIR)/$(LIBFILE) clean: @rm -f $(LIBFILE)