build rule script problem
build rule script problem
- Subject: build rule script problem
- From: "Dr. Andres Kruse" <email@hidden>
- Date: Mon, 4 Apr 2005 17:28:45 +0100
- Importance: Normal
Hi,
ok, not giving up on this one.. I have found a few examples on the net that
explain how to use a script to build files.. and I still have the problem
that Xcode 1.5 tries to compile code that has not been generated yet..
here is the rule for *.ui files:
/usr/bin/uic $(INPUT_FILE_PATH) -o $(DERIVED_FILE_DIR)/$(INPUT_FILE_BASE).h
/usr/bin/uic $(INPUT_FILE_PATH) -i
$(DERIVED_FILE_DIR)/$(INPUT_FILE_BASE).h -o
$(DERIVED_FILE_DIR)/$(INPUT_FILE_BASE).cpp
/usr/bin/moc $(DERIVED_FILE_DIR)/$(INPUT_FILE_BASE).h -o
$(DERIVED_FILE_DIR)/moc_$(INPUT_FILE_BASE).cpp
with output files:
$(DERIVED_FILE_DIR)/$(INPUT_FILE_BASE).cpp
$(DERIVED_FILE_DIR)/moc_$(INPUT_FILE_BASE).cpp
I expect the above rule to generate two .cpp files, both should be compiled.
I add my *.ui files to the "Sources" and launch the build. For most of the
files this seems to work, Xcode first launches the script to generate the
.cpp code and then it will actually compile the cpp code.
However, at some point it seems to completely go beserk and try to compile
some source that hasn't been generated yet, in fact, the log file shows that
the PhaseScriptExecution has "jumped ahead" in generating the cpp code while
the next CompileC command expects that the previous script has generated
certain cpp code which it hasnt. The build obviously aborts.
So.. again, anybody here familiar with script build rules can tell me if
there is something I could look for to fix this? Or is this just something
thats broken in Xcode 1.5?
Thanks,
Andres
_______________________________________________
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