]> git.saurik.com Git - wxWidgets.git/blame - build/osx/makeprojects.applescript
Implement monitoring of file descriptors in wxMotif event loop.
[wxWidgets.git] / build / osx / makeprojects.applescript
CommitLineData
caec2e78
SC
1global oldDelimiters
2global variables
3global variablesRef
4global bakefilesXML
5global bakefilesXMLRef
6global projectFile
7
8global osxBuildFolder
9
10property test : false
11
12-- retrieves the files from the xml node including optional conditions
13on parseSources(theName, theElement, theVariables, theConditions)
14 set AppleScript's text item delimiters to " "
15 set allElements to {}
16 repeat with currElement in XML contents of theElement
17 if class of currElement is text then
18 set allElements to allElements & (every text item of currElement)
19 else
20 if class of currElement is XML element and XML tag of currElement is "if" then
21 if (cond of XML attributes of currElement is in theConditions) then
22 set allElements to allElements & (every text item of (item 1 of XML contents of currElement))
23 end if
24 end if
25 end if
26 end repeat
27 set AppleScript's text item delimiters to oldDelimiters
28 copy {varname:theName, entries:allElements} to end of theVariables
29end parseSources
30
31on parseEntry(theElement, theVariables, theConditions)
32 set theName to var of XML attributes of theElement
33 parseSources(theName, theElement, theVariables, theConditions)
34end parseEntry
35
36on parseLib(theElement, theVariables, theConditions)
37 set theName to |id| of XML attributes of theElement
38 repeat with currElement in XML contents of theElement
39 if class of currElement is XML element and XML tag of currElement is "sources" then
40 parseSources(theName, currElement, theVariables, theConditions)
41 end if
42 end repeat
43end parseLib
44
45on parseNode(anElement, theVariables, theConditions)
9cb50d3a 46