1
defineReplace(findFile) {
2
    FILE=$$1
3
4
    # LIST=$$(PATH)
5
    # for a reason beyond my knowledge, if i get path list from $$(PATH) and replace all :'s with space,
6
    # i cant iterate the entries with qmake's for loop.
7
    # SO, here's a list of predefined places where to look for executable files..
8
    # Also, i cant rely to find doxygen via system() call since doxygen returns error every time its called
9
    # if it cant find Doxyfile =(
10
11
    LIST  = /scratchbox/devkits/cputransp/bin /scratchbox/devkits/maemo3-tools/bin
12
    LIST += /scratchbox/devkits/debian-etch/bin /scratchbox/devkits/perl/bin /scratchbox/tools/bin
13
    LIST += /targets/links/arch_tools/bin /host_usr/bin /scratchbox/compilers/bin /bin /usr/bin
14
    LIST += /usr/local/bin /usr/X11R6/bin ~/bin .
15
16
    for(path,LIST) {
17
        exists($${path}/$${FILE}):LOCATED = $${path}/$${FILE}
18
    }
19
20
    return($${LOCATED})
21
}