Re: building ada with xcode
Re: building ada with xcode
- Subject: Re: building ada with xcode
- From: Trenton Schulz <email@hidden>
- Date: Tue, 9 Dec 2003 14:11:20 +0100
On Dec 9, 2003, at 12:34 PM, Glen Low wrote:
You have at least 2 choices:
1. Make a custom shell script stage to compile your .adb files
2. You can add a build rule that has
Process: Source files with names matching: .*\.adb
Custom Script: your Ada compile script
With Output files: the expected output file(s) using appropriate Xcode
vars e.g. $(DERIVED_FILES_DIR)
Then add your .adb file to the Sources build stage.
The tricky bit is that you have to enter in a regular expression in
the "names matching" bit, and it sees the entire path of the input
file not just the file name, I think the regex I put in is correct,
you may have to adjust it.
Perversely though, Xcode will insist on compiling these build rules
*after* every other build rule affecting Sources, so you'd better not
have any source dependencies on the .adb file compilation results.
I've tried a similar thing with uic and Qt Designer ui files.
Source files with names matching: *.ui
using: Custom script:
/Users/twschulz/troll/qt/3.3/bin/uic $INPUT_FILE_PATH -o
${DERIVED_FILES_DIR}/${INPUT_FILE_BASE}.h
/Users/twschulz/troll/qt/3.3/bin/uic -impl
${DERIVED_FILES_DIR}/${INPUT_FILE_BASE}.h $INPUT_FILE_PATH -o
${DERIVED_FILES_DIR}/${INPUT_FILE_BASE}.cpp
with output files:
${DERIVED_FILES_DIR}/${INPUT_FILE_BASE}.h
${DERIVED_FILES_DIR}/${INPUT_FILE_BASE}.cpp
And the files are generated just fine. But then all it does is copy the
files. It would be great if Xcode would build them and link them into
the application, since they are C++ files. I can, of course, add these
files to the project myself, but then you have some sort of chicken and
egg problem. How can I tell Xcode what to do?
Any help would be appreciated,
-- Trenton
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.