Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use environment variable in xcconfig #include?

in my project, I want to refer to an other xcconfig file, located in InDesign SDK. As this SDK may be installed at different locations, depending upon the machine, I prefer to declare an environment variable for locating it.

Nest step is obviously to use variable (aptly named ID_CS5_SDK_DIR) in my xcconfig include directive.

Unfortunatly, when I try the simple

// InDesign sdk project build settings (based on common build settings)
#include "$(ID_CS5_SDK_ROOT)/build/mac/prj/_shared_build_settings/common.xcconfig"

XCode throws me a

 [WARN]AutocatPlugin.xcconfig line 7: Unable to find included file "$(ID_CS5_SDK_ROOT)/build/mac/prj/_shared_build_settings/common.xcconfig"

How can I make it work ?

like image 200
Riduidel Avatar asked Dec 14 '11 09:12

Riduidel


2 Answers

I've been trying to do this too and also came to the conclusion that it is not possible.

like image 66
Sara Avatar answered Sep 28 '22 06:09

Sara


I once tried to achieve that and came to the conclusion that you can't. I would be happy if someone proves us it's possible though then delete my answer

like image 21
Gregory Pakosz Avatar answered Sep 28 '22 06:09

Gregory Pakosz