Is it possible to set the MODULE_NAME and MODULE_VERSION for a kernel extension target from external source?
Is it possible to set the MODULE_NAME and MODULE_VERSION for a kernel extension target from external source?
- Subject: Is it possible to set the MODULE_NAME and MODULE_VERSION for a kernel extension target from external source?
- From: Motti Shneor <email@hidden>
- Date: Thu, 29 Jul 2010 03:25:37 -0400
- Acceptlanguage: en-US
- Thread-topic: Is it possible to set the MODULE_NAME and MODULE_VERSION for a kernel extension target from external source?
Hello everyone.
We're building a kernel extension (an Audio device driver). However, in our company, many of the build settings are predefined OUTSIDE the build system, to allow us construct a consistent cross-platform (Windows/VS, Mac-XCode, Linux CodeForge etc.) central builds.
Usually, we do this using complex Pre-Build and Post-Build script-build-steps, and our own .xcconfig files that override many of the build settings.
However, in the Kernel-Extension target there's something special. the MODULE_NAME and MODULE_EXTENSION build settings are being used to auto-generate a "stub" c source file, and so, must be set-up in advance, meaning, before build starts.
My question:
1. Is there a way for a custom script build-step to alter the build-settings for next steps?
2. Can an .xcconfig file used for a Kernel-Extension refer to data in some external temporary text file, that will be generated by a pre-build script step? I don't know when is the .xcconfig file parsed and when are its settings evaluated.
3. Is there a way to do this via environment variables? Meaning, can I set up my own specific environment variable in a script-step, and have the .xcconfig file refer to that env. var in a later build step?
In general, what is the right way to go about it?
Motti Shneor
------------------------------------------
Senior Software Engineer
Waves Audio ltd.
[mailto: email@hidden]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden