views:

42

answers:

1

Hello,

I use premake to build solutions for Visual Studio and Xcode. Does anybody knows the equivalent environment variables in Xcode for Visual Studio $(ConfigurationName) and $(SolutionName)?

Thank you

+1  A: 

$(SolutionName) -> $(PROJECT_NAME)
$(ConfigurationName) -> $(TARGET_NAME)

See e.g. here how to retrieve a list of all enviroment variables:

  • make a new empty xcode cocoa project
  • add a new “run script build phase phase” to the app target
  • add this as the script: env > ENV
  • build the project.
Georg Fritzsche
Thank you! I'll try to use them:)
Felics