7 |
7 |
8 # On Windows, put the includes into a .inc file which moc will read, if the project |
8 # On Windows, put the includes into a .inc file which moc will read, if the project |
9 # has too many includes. We do this to overcome a command-line limit on Win < XP |
9 # has too many includes. We do this to overcome a command-line limit on Win < XP |
10 INCLUDETEMP= |
10 INCLUDETEMP= |
11 WIN_INCLUDETEMP= |
11 WIN_INCLUDETEMP= |
12 win32:count($$list($$INCPATH), 40, >) { |
12 win32:count($$list($$INCLUDEPATH), 40, >) { |
13 INCLUDETEMP = $$MOC_DIR/mocinclude.tmp |
13 INCLUDETEMP = $$MOC_DIR/mocinclude.tmp |
14 |
14 |
15 WIN_INCLUDETEMP=$$INCLUDETEMP |
15 WIN_INCLUDETEMP=$$INCLUDETEMP |
16 |
16 |
17 EOC = $$escape_expand(\n\t) |
17 EOC = $$escape_expand(\n\t) |
18 |
18 |
19 if(contains(TEMPLATE, "vc.*")|contains(TEMPLATE_PREFIX, "vc")) { |
19 if(contains(TEMPLATE, "vc.*")|contains(TEMPLATE_PREFIX, "vc")) { |
20 # the VCPROJ generator will replace the \r\h with the coded \r\n: 
 |
20 # the VCPROJ generator will replace the \r\h with the coded \r\n: 
 |
21 # No other generator understands the \h |
21 # No other generator understands the \h |
22 if(win32-msvc.net|win32-msvc2*|wince*msvc*): EOC = $$escape_expand(\r\h) |
22 if(win32-msvc2*|wince*msvc*): EOC = $$escape_expand(\r\h) |
23 else: EOC = $$escape_expand(\\)$$escape_expand(\n\t) |
23 else: EOC = $$escape_expand(\\)$$escape_expand(\n\t) |
24 } |
24 } |
25 |
25 |
26 unset(INCFILELIST) |
26 unset(INCFILELIST) |
27 RET = |
27 RET = |
28 for(incfile, $$list($$INCPATH)) { |
28 for(incfile, $$list($$INCLUDEPATH)) { |
29 INCFILELIST = -I$$incfile |
29 INCFILELIST = -I$$incfile |
30 isEmpty(RET): RET += @echo $$INCFILELIST> $$WIN_INCLUDETEMP $$EOC |
30 isEmpty(RET): RET += @echo $$INCFILELIST> $$WIN_INCLUDETEMP $$EOC |
31 else: RET += @echo $$INCFILELIST>> $$WIN_INCLUDETEMP $$EOC |
31 else: RET += @echo $$INCFILELIST>> $$WIN_INCLUDETEMP $$EOC |
32 } |
32 } |
33 !isEmpty(INCFILELIST):RET += @echo $$INCFILELIST>> $$WIN_INCLUDETEMP $$EOC |
33 !isEmpty(INCFILELIST):RET += @echo $$INCFILELIST>> $$WIN_INCLUDETEMP $$EOC |