So I have a crazy project setup (well, it's only 1 file that needs this crazyness). First, I'll explain the setup.
So I have a file on my dropbox. I want to include that file in a Kdevelop project, but the rest of the project source code is located on a virtual machine, as well as the Kdevelop environment itself where I'm working.
So what I've done is in the project directory tree for the kdevelop project, I've put a symlink to the file in my dropbox. To summarize.
host:~$ ls Dropbox/ Dropbox/pxaregsmodule.c
vm:~$ mount Dropbox on /home/user/Dropbox/ type vboxsf (uid=1000,gid=1000,rw)
vm:~$ ls Dropbox/ Dropbox/pxaregsmodule.c
vm:~/projectroot/modules$ ls -la puremodule.c pwdmodule.c pxaregsmodule.c -> /home/dknapp/Dropbox/pxaregsmodule.c
vm:~/projectroot/modules$ cat ../.kdev_include_paths /home/user/projectroot/Include
So as you can see. I have a symlink in a subdirectory of kdevelop that's linked outside of the project tree. And I have an include directory at the project root for my include files.
Now the problem is that when I open pxaregsmodule.c in the kdevelop editor, it doesn't recognize the custom include arguments because it thinks it's opening in /home/user/Dropbox. Of course this only affects the editor, where it can't code complete and it thinks it's missing include files. But doesn't have to do with the makefile and compilation.
But is there any way to make kdevelop not dereference symbolic links and think the file is opening in
projectroot/modules so it can see the include path? I can't use a hardlink because the file is on my shared partition, which crosses partition boundaries.
Any solutions? Was that clear?