Re: building ada with xcode
Re: building ada with xcode
- Subject: Re: building ada with xcode
- From: Glen Low <email@hidden>
- Date: Thu, 11 Dec 2003 15:18:53 +0800
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?
The Xcode build rule feature seems excessively finicky, otherwise it
would be an excellent replacement for make. Anyway, some suggestions
which worked for me, YMMV:
1. Is your Xcode 1.0.1?
2. Try using the alternate shell style variables, standard brackets
instead of curly brackets: $(DERIVED_FILES_DIR) instead of
${DERIVED_FILES_DIR}
3. Try using an actual regex expression for the full path rather than a
make/shell-style wildcard e.g. .*\.ui would probably qualify, but you
have to hunt around for what sort of regex the field takes.
4. Make sure the source files are listed in the Sources build phase.
5. It may be that files in the DERIVED_FILES_DIR are only compiled if
they weren't originally matched by a regex. You could try finding the
resulting file in the file system and adding it to your sources. No
doubt this is somewhat "chicken and egg", but if Xcode could not find
the original *.ui file e.g. during a clean build, it would be listed in
"red" in the system but it should still work OK if it is indeed
generated by the build before it is needed.
Cheers, Glen Low
---
pixelglow software | simply brilliant stuff
www.pixelglow.com
_______________________________________________
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.