×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Oct 2006
    Location
    Espoo-Finland
    Posts
    71

    How to add source file which is out of project root

    Hi,

    I have created project at location \projects\phone\s60\app1.

    I should use source files which are located out of project root \projects\phone\generic\observers

    How to add source files to project?

    mmp editor source browser starts at root of the project. If I add files manualy to mmp file, mmp editor displays warning that files are not found in project.

    Zdenko

  2. #2
    Registered User
    Join Date
    May 2006
    Location
    Budapest
    Posts
    21

    Re: How to add source file which is out of project root

    If you're using Carbide, switch to the view which displays the content of the MMP file as it is and edit it manually.
    You can use both relative or direct SOURCEPATH entries in the MMP. The root is where the MMP file is kept.

    For instance, if you have your MMP in c:\project1\group and you want to compile source.cpp which is located in c:\project2\src then you must add:

    Code:
    SOURCEPATH ..\..\project2\src
    SOURCE source.cpp
    You could also use direct path entries but then you'd lose portability.
    Last edited by kenley; 2007-09-02 at 14:41.
    Imre Kelényi

  3. #3
    Regular Contributor
    Join Date
    Oct 2006
    Location
    Espoo-Finland
    Posts
    71

    Re: How to add source file which is out of project root

    It is how I am doing. Problem with this approach is that files are not shown in project explorer and I can not edit it.
    I have added "new source folder" as external link. Now I am able to modify source.

    Zdenko

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. [newbie here] Link error
    By xitpu in forum Symbian
    Replies: 3
    Last Post: 2007-01-24, 16:53
  3. Replies: 1
    Last Post: 2005-05-26, 14:22
  4. problem in adding project to Visual Source Safe.
    By abhinav in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2005-04-01, 13:43
  5. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×