Commandline compile

Nickelgrass

Active Member
Licensed User
Longtime User
Hi,
is there any way of compiling a program via the command line and getting the result also on the command line?
I would need this to integrate the compiler in a webservice that makes it possible to do in-field modifications to the app via a webpage (upload the source modified on the phone and download the compiled app). That would come really handy because the app could be changed without having to take a laptop. I would just let a little netbook run at home that would do the serving of the webpage over DynDNS and compiling.
A neat web based solution is better than doing it over teamviewer. Or an Texteditor app that could also do the syntax highlighting and process all the up and downloading...
 

airblaster

Active Member
Licensed User
Longtime User
Hi Erel,

I would also be interested in this kind of functionality.
Any chance this will make it into one of the future versions?
 
Upvote 0

EduardoElias

Well-Known Member
Licensed User
Longtime User
Erel,

Just giving an idea and reason for it:

I was searching on the forum for the same stuff, command line compiling.

The fact is that when the language gets more complex the projects also gets more complex.

With the compile to library a problem a great solution for packaging and code organization came to reality.

However a new problem that soon will be each time more evident: library dependencies.

For what I can see right now the b4a project file is somewhat simple. That is fine, the IDE is growing.

A command line option could be a simple way to solve more complex project needs without getting the IDE more complex. This is a way to create Make files, for example, get souce code from SVN, compile the libraries in the right order for dependency, generate apk builds (including versioning of the apk).

This way you even open the door to someone (i would do that for sure) a tool to handle this make file and control all dependencies and versions.

So we develop and test on the IDE and build ande deploy using the make files. You could also add on the IDE menu (on project) a way to add command line options for build and other for deploy (that increments the version).

My 2 cents.

Regards,

Eduardo Elias
 
Upvote 0
Top