GLBasic forum

Main forum => GLBasic - en => Topic started by: ampos on 2011-Aug-11

Title: How do I compile to iOS with macros?
Post by: ampos on 2011-Aug-11
Currently to compile to iOS I choose "right mouse button" -> compiler -> build multiplatform -> ios -> OK.

What sentence should I put in the macros to compile for iOS?
Title: Re: How do I compile to iOS with macros?
Post by: Kitty Hello on 2011-Aug-16
what do you want? Compile the gbas files to .cpp ? You would have to kick the GPC - it's in the manual.
Or do you want to start xcode and compile?
Title: Re: How do I compile to iOS with macros?
Post by: ampos on 2011-Aug-16
I just want to press a macro button instead of chosing MENU COMPILE -> BUILD MULTIPLATFORM -> IPHONE -> OK.
Title: Re: How do I compile to iOS with macros?
Post by: Crivens on 2011-Aug-16
Yeah, basically another toolbar with icons of the devices would be great (customisable so can have only devices we are interested in) that then compile for that device instead of having to go into the menu.

Cheers
Title: Re: How do I compile to iOS with macros?
Post by: ampos on 2011-Aug-16
Meanwhile, I will be happy if someone tells me the line I should add in the current macro-thing just to compile for iphone as the menu does.

A great idea would be macros with "target" icons.
Title: Re: How do I compile to iOS with macros?
Post by: mentalthink on 2011-Aug-18
Yes Icons   :enc: :enc: :enc: ...   and ShortsCuts. Like Control//ALT or both at time + Num KEYPAD.
Title: Re: How do I compile to iOS with macros?
Post by: Crivens on 2011-Aug-19
QuoteMeanwhile, I will be happy if someone tells me the line I should add in the current macro-thing just to compile for iphone as the menu does.
I don't think you can.

Cheers
Title: Re: How do I compile to iOS with macros?
Post by: ampos on 2011-Aug-19
There is no way to call the compiler within the macros?
Title: Re: How do I compile to iOS with macros?
Post by: MrTAToad on 2011-Aug-19
This does call GPC from a macro - you just need to get the parameters correct :)

Code (glbasic) Select
"C:\Program Files (x86)\GLBasic\Compiler\platform\gpc.exe" -N"Animation" -O"C:\Fraps" -P"C:\Users\Nicholas\Documents\GLBasic\GLBasic\Samples\3D\Animation"
Title: Re: How do I compile to iOS with macros?
Post by: mentalthink on 2011-Aug-19
And whit a Macro, can compile directly?¿, I want say, can send the file, and run it , into the Apple Machine, auto-Starting the Xcode?¿.    O_O