|
|
Classification: |
C++ |
Category: |
Utilities & Build Tools |
Created: |
04/27/2005 |
Modified: |
05/20/2005 |
Number: |
FAQ-1269 |
Platform: |
Symbian OS v7.0, Symbian OS v7.0s, Symbian OS v8.0, Symbian OS v8.1a, Symbian OS v8.1b, Symbian OS v9 |
|
Question: I want to compile a file in my .mmp file which is in a directory under EPOC32. Can I use a relative path?
Answer: This is possible, although the feature is not supported in OS v6.1. The SOURCEPATH directive in the MMP file allows to reference files relative to the current directory i.e. where the MMP file
is placed. See the Symbian Developer Library for more details. For example, a file under ..\group\src\myfile.cpp can be used as: SOURCEPATH ..\src SOURCE myfile.cpp If you want to include a file which is somewhere under the EPOC32 directory, you can use the '+' or \EPOC32\ option to make the SOURCEPATH relative to EPOC32. For example, a file under %EPOCROOT%\epoc32\build\generated\myfiles\mygeneratedfile.cpp can be pointed to as: SOURCEPATH \epoc32\build\generated\myfiles SOURCEPATH +\build\generated\myfiles SOURCE mygeneratedfile.cpp where EPOCROOT= c:\symbian\6.1\series60\. You can avoid creating absolute paths e.g. ..\..\..\epoc32\.. using the above options.
|
|
|