[15:47:39] John Blackburn: Let's move on to the XML files [15:47:47] John Blackburn: https://github.com/gideros/gideros/blob/master/ui/Templates/APK.gexport [15:48:01] John Blackburn: this .gexport file is used to write the APK? [15:48:12] Nico: yes [15:49:12] John Blackburn: so did you make up this "language" yourself? [15:49:15] John Blackburn: [15:49:16] John Blackburn: [15:49:21 | Edited 15:49:22] John Blackburn: are they part of XML? [15:49:49] Nico: nope, I defined it [15:49:59] Nico: it is similar to ant [15:50:10] John Blackburn: OK, so gdrexport parses through this [15:50:36] Nico: yes, it executes the "rules" in sequence [15:50:57] John Blackburn: OK let's go to the first rule [15:51:09] John Blackburn: tmp [15:51:14] John Blackburn: pretty clear! [15:51:20] John Blackburn: makes a directory called tmp [15:51:30] Nico: supposed to be in output dir at start [15:51:46] John Blackburn: OK [15:51:48] John Blackburn: now it says [15:51:49] John Blackburn: [15:51:57] John Blackburn: lots of [[[ ! [15:52:15] Nico: yes, [[[xxx]]] tags says that xxx is some variable [15:52:38] John Blackburn: so what is "condition" [15:52:48] John Blackburn: that's not a variable? [15:53:08] Nico: like in C, if what is in condition is 0 then it is false, else true [15:53:27] John Blackburn: OK, so [15:53:34] John Blackburn: [[[project.autorotation]]] [15:53:39] John Blackburn: is a boolean variable? [15:53:42] ??????? ????????: Nico, do you have a help file for this? Maybe draft? [15:54:07] Nico: it is a number, in fact, value ranging from 0 to 3 [15:54:33] John Blackburn: where is it set? [15:54:49] Nico: Nikolai, no sorry [15:54:58] Nico: in the export properties! [15:55:04] John Blackburn: (the transcript of this talk is the documentation!) [15:55:13] John Blackburn: (I'll be keeping a transcript) [15:55:22] John Blackburn: I see, so gdrexport reads gproj [15:55:32] Nico: it is the autorotation parameter from the gproj, yes [15:55:34] John Blackburn: and fills variables such as project.autorotation [15:56:08] Nico: yes, project.xx are taken from project xml tag variables, ie legacy export settings [15:56:41] John Blackburn: [15:56:47] John Blackburn: so this sets a variable [15:56:58] Nico: yes [15:57:29] John Blackburn: now an even more complex condition [15:57:30] John Blackburn: [15:59:07] Nico: yes, so beside variables [[[ ]]] can be used to evaluate functions [15:59:27] Nico: basically a function has a name followed by : [15:59:45] John Blackburn: where is function band defined? [15:59:53] Nico: and parameters separated by : [16:00:51] Nico: https://github.com/gideros/gideros/blob/master/gdrexport/ExportXml.cpp#L230 [16:01:43 | Edited 16:01:45] John Blackburn: how does the XML know about this C++ function? [16:02:25] John Blackburn: OH I see [16:02:28 | Edited 16:02:33] John Blackburn: op=="band" [16:02:36] Nico: yes [16:03:14] John Blackburn: so its "bit and" [16:03:49] Nico: yes, I kept lua bit names [16:03:59] John Blackburn: so actually [16:04:00] John Blackburn: [16:04:03] John Blackburn: just means [16:04:11] John Blackburn: if project.orientation == 1 [16:04:15] ??????? ????????: Maybe using Lua for templating is better? [16:04:28] Nico: nope, (project.orientation&1)!=0 [16:04:58] John Blackburn: so odd number? [16:05:21] Nico: yes [16:06:33] John Blackburn: OK, we now come to a replacelist block [16:06:34] John Blackburn: