1)从PSoC设计器IDE中,执行以下操作:
Project & Gt;OpenOral.Mk用于“YouProject名称”项目
这将打开文件“本地.MK”2的文本编辑窗口,向该文件添加以下行:
“--------------------------------”
添加到PoC设计器IDE手册中的方法,在B.2.3.2节中,MyAyPixDeDIr= C::/WordVyOrthDirecyYyPATHORION包含Debug路径:= $(包含Debug路径);$(MyOxIndiDydir)需要对新的包含目录VVPATE.%.H$(MyOxInDyDyDIR)进行VPATH
“--------------------------------”
3)做一个“文件&保存所有”
4)做一个“构建&生成/构建”你的项目名称
就是这样-你的项目现在可以包括来自外部目录的*.h文件。
最好的问候,
汤姆莫克森
HTTP://www. WestMaCou.com
HTTP://www. MOXON.O.
以上来自于百度翻译
以下为原文
1) From the PSoC Designer IDE, do the following :
Project -> Open local.mk for 'YourProjectName' Project
This will open a text edit window for the file "local.mk"
2) Add the following lines to that file :
#------------------------------------------------
#
# Add to the include path the way PSoC Designer IDE manual says in section B.2.3.2
#
MY_INCLUDE_DIR= C:/whatever_your_directory_path_is
INCLUDE_PATH:=$(INCLUDE_PATH);$(MY_INCLUDE_DIR)
#
# Need to vpath the new include directory
#
vpath %.h $(MY_INCLUDE_DIR)
#------------------------------------------------
3) Do a "File -> Save All"
4) Do a "Build -> Generate/Build 'YourProjectName"
That's it - your project can now include *.h files from an external directory.
best regards,
Tom Moxon
http://www.westmarkco.com
http://www.moxon.com
1)从PSoC设计器IDE中,执行以下操作:
Project & Gt;OpenOral.Mk用于“YouProject名称”项目
这将打开文件“本地.MK”2的文本编辑窗口,向该文件添加以下行:
“--------------------------------”
添加到PoC设计器IDE手册中的方法,在B.2.3.2节中,MyAyPixDeDIr= C::/WordVyOrthDirecyYyPATHORION包含Debug路径:= $(包含Debug路径);$(MyOxIndiDydir)需要对新的包含目录VVPATE.%.H$(MyOxInDyDyDIR)进行VPATH
“--------------------------------”
3)做一个“文件&保存所有”
4)做一个“构建&生成/构建”你的项目名称
就是这样-你的项目现在可以包括来自外部目录的*.h文件。
最好的问候,
汤姆莫克森
HTTP://www. WestMaCou.com
HTTP://www. MOXON.O.
以上来自于百度翻译
以下为原文
1) From the PSoC Designer IDE, do the following :
Project -> Open local.mk for 'YourProjectName' Project
This will open a text edit window for the file "local.mk"
2) Add the following lines to that file :
#------------------------------------------------
#
# Add to the include path the way PSoC Designer IDE manual says in section B.2.3.2
#
MY_INCLUDE_DIR= C:/whatever_your_directory_path_is
INCLUDE_PATH:=$(INCLUDE_PATH);$(MY_INCLUDE_DIR)
#
# Need to vpath the new include directory
#
vpath %.h $(MY_INCLUDE_DIR)
#------------------------------------------------
3) Do a "File -> Save All"
4) Do a "Build -> Generate/Build 'YourProjectName"
That's it - your project can now include *.h files from an external directory.
best regards,
Tom Moxon
http://www.westmarkco.com
http://www.moxon.com
举报