Skip to content

setting

Samantha Marshall edited this page Aug 8, 2016 · 4 revisions

setting

The setting keyword is core to the pyconfig DSL. It is used to declare a build setting variable that should be exported to an .xcconfig file.

The expected syntax of setting is that it is followed by the name of the build setting, and then optionally if it should inherit a value or what build setting name should be used as part of variable substitution.

						 Build setting names can only contain [A-Z, a-z, 0-9, and _]
						/
				 ______/_____________________ 
 		  ______/___________		   ______\___________
		 /					\		  /					 \
setting <#build setting name#> (uses <#build setting name#>) (inherits) 
\____________________________/  \_________________________/   \______/
			\__ required			      \__ optional		     \__ optional

Each setting definition requires a scope that is encapulsated in curly braces:

setting HELLO_WORLD {
	...
}

Each setting declaration can either contain if style assignments or for style assignemnts, but not both. If you require two styles of assignment then declare them both separately.

Clone this wiki locally