RE: [EDK DEV] build with the vs 2005 chinese edition

Subject: RE: [EDK DEV] build with the vs 2005 chinese edition

From: Hot Tian <hot.tian@intel.com>

To: dev@edk.tianocore.org

Date: 2009-08-08 00:09:25

There are two ways to generated dependency file for C source. When EFI_USE_CL_FOR_DEP is set, Makedep will parse .cl file to generate the 
dependency file. .cl is generated from cl command line output with /showIncludes. When EFI_USE_CL_FOR_DEP is not set, Makedep will parse C source file directly to generate the dependency file. You may find the build rule difference in Edk\Sample\Platform\Common.dsc:
$(DEST_DIR)\$(FILE).obj : $(SOURCE_FILE_NAME) $(INF_FILENAME) $(ALL_DEPS)
!IF "$(EFI_USE_CL_FOR_DEP)" != "YES"
  $(CC) $(C_FLAGS) $(SOURCE_FILE_NAME)
!ELSE
  -$(CC) $(C_FLAGS) $(SOURCE_FILE_NAME) /showIncludes > $(DEST_DIR)\$(FILE).cl
  @$(MAKEDEPS) -f $(DEST_DIR)\$(FILE).cl $(DEP_FLAGS2)
!ENDIF

In latest EDK, the default set for EFI_USE_CL_FOR_DEP is NO.

Thanks,
Hot

The content of this message is my personal opinion only and although I am an employee of Intel, the statements I make here in no way represent Intel's position on the issue, nor am I authorized to speak on behalf of Intel on this matter.

-----Original Message-----
From: James Liu [mailto:liujsh@cn.ibm.com] 
Sent: 200987 15:59
To: dev@edk.tianocore.org; Tian, Hot
Subject: RE: [EDK DEV] build with the vs 2005 chinese edition

Thanks a lot. I am trying to rebuild...
Besides, I have some other questions.
What's the exact meaning of the flag EFI_USE_CL_FOR_DEP?
As I turn off the flag EFI_USE_CL_FOR_DEP, 
will the default dependency control of the VS work instead? ( I am not familar with VS )
In my understanding, the cl files are used to record the dependency of the source files. Do the cl files have other usages in the EDK build process? 

Thanks
/James

------------------------------------------------------
https://edk.tianocore.org/ds/viewMessage.do?dsForumId=39&dsMessageId=47729

 [ URL]