kdevelop_qtopia_arm.inc 8.58 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
#define ARM

#define CC arm-none-linux-gnueabi-gcc
#define CXX arm-none-linux-gnueabi-g++
#define AR arm-none-linux-gnueabi-ar
#define LFLAGS

#define TARGET_LINUX
#define TARGET_QTOPIA

// at least to remove the dependency on iconv
#define GLIBC

#define COMPILER_GCC

#define OUTPUT_EXE       %(NAME)
#define OUTPUT_CON       %(NAME)
#define OUTPUT_DLL       lib%(NAME).so
#define OUTPUT_DLL_LIB   lib%(NAME).so
#define OUTPUT_LIB       lib%(NAME).a

CONFIG

IF "%(QPEDIR)"!=""
#define QTDIR %(QPEDIR)/qtopiacore/target
ENDIF

FOR EACH WORKSPACE
  FILE %(PATH)%(NAME).kdevelop
  PRINTNL <?xml version = '1.0'?>
  PRINTNL <kdevelop>
  PRINTNL   <general>
  PRINTNL     <version>$VERSION$</version>
  PRINTNL     <projectmanagement>KDevTrollProject</projectmanagement>
  PRINTNL     <primarylanguage>C++</primarylanguage>
  PRINTNL     <keywords>
  PRINTNL       <keyword>Qt</keyword>
  PRINTNL     </keywords>
  PRINTNL     <ignoreparts/>
  PRINTNL   </general>
  PRINTNL   <kdevfileview>
  PRINTNL     <groups>
  PRINTNL       <group pattern="*.cpp;*.cxx;*.h;*.c" name="Sources" />
  PRINTNL       <group pattern="*.ui" name="User Interface" />
  PRINTNL       <group pattern="*.png" name="Icons" />
  PRINTNL       <group pattern="*.desktop" name="Desktop Entry"/>
  PRINTNL       <group pattern="*.proj" name="CoreMake project"/>
  PRINTNL       <group pattern="*" name="Others" />
  PRINTNL       <hidenonprojectfiles>false</hidenonprojectfiles>
  PRINTNL       <hidenonlocation>false</hidenonlocation>
  PRINTNL     </groups>
  PRINTNL     <tree>
  PRINTNL       <hidenonprojectfiles>false</hidenonprojectfiles>
  PRINTNL       <hidepatterns>*.o,*.lo,CVS</hidepatterns>
  PRINTNL     </tree>
  PRINTNL   </kdevfileview>
  PRINTNL   <kdevdoctreeview>
  PRINTNL     <ignoretocs>
  PRINTNL       <toc>ada</toc>
  PRINTNL       <toc>ada_bugs_gcc</toc>
  PRINTNL       <toc>bash</toc>
  PRINTNL       <toc>bash_bugs</toc>
  PRINTNL       <toc>clanlib</toc>
  PRINTNL       <toc>fortran_bugs_gcc</toc>
  PRINTNL       <toc>gnome1</toc>
  PRINTNL       <toc>gnustep</toc>
  PRINTNL       <toc>gtk</toc>
  PRINTNL       <toc>gtk_bugs</toc>
  PRINTNL       <toc>haskell</toc>
  PRINTNL       <toc>haskell_bugs_ghc</toc>
  PRINTNL       <toc>java_bugs_gcc</toc>
  PRINTNL       <toc>java_bugs_sun</toc>
  PRINTNL       <toc>kde2book</toc>
  PRINTNL       <toc>libstdc++</toc>
  PRINTNL       <toc>opengl</toc>
  PRINTNL       <toc>pascal_bugs_fp</toc>
  PRINTNL       <toc>php</toc>
  PRINTNL       <toc>php_bugs</toc>
  PRINTNL       <toc>perl</toc>
  PRINTNL       <toc>perl_bugs</toc>
  PRINTNL       <toc>python</toc>
  PRINTNL       <toc>python_bugs</toc>
  PRINTNL       <toc>qt-kdev3</toc>
  PRINTNL       <toc>ruby</toc>
  PRINTNL       <toc>ruby_bugs</toc>
  PRINTNL       <toc>sdl</toc>
  PRINTNL       <toc>stl</toc>
  PRINTNL       <toc>sw</toc>
  PRINTNL       <toc>w3c-dom-level2-html</toc>
  PRINTNL       <toc>w3c-svg</toc>
  PRINTNL       <toc>w3c-uaag10</toc>
  PRINTNL       <toc>wxwidgets_bugs</toc>
  PRINTNL     </ignoretocs>
  PRINTNL     <ignoreqt_xml>
  PRINTNL       <toc>Guide to the Qt Translation Tools</toc>
  PRINTNL       <toc>Qt Assistant Manual</toc>
  PRINTNL       <toc>Qt Designer Manual</toc>
  PRINTNL       <toc>Qt Reference Documentation</toc>
  PRINTNL       <toc>qmake User Guide</toc>
  PRINTNL     </ignoreqt_xml>
  PRINTNL     <ignoredoxygen>
  PRINTNL       <toc>KDE Libraries (Doxygen)</toc>
  PRINTNL     </ignoredoxygen>
  PRINTNL   </kdevdoctreeview>
  PRINTNL   <kdevdebugger>
  PRINTNL     <general>
  PRINTNL       <dbgshell>/usr/bin/libtool</dbgshell>
  PRINTNL       <programargs/>
  IF "%(KDEVELOP_GDBPATH)"!=""
    PRINTNL       <gdbpath>%(KDEVELOP_GDBPATH)</gdbpath>
  ELSE
    PRINTNL       <gdbpath>/usr/bin/</gdbpath>
  ENDIF
  PRINTNL       <breakonloadinglibs>true</breakonloadinglibs>
  PRINTNL       <separatetty>false</separatetty>
  PRINTNL       <floatingtoolbar>false</floatingtoolbar>
  IF "%(KDEVELOP_GDBSCRIPT)"!=""
  PRINTNL       <runGdbScript>%(|PATH)%(NAME).kdevelop_gdbscript</runGdbScript>
  ENDIF
  PRINTNL     </general>
  PRINTNL     <display>
  PRINTNL       <staticmembers>false</staticmembers>
  PRINTNL       <demanglenames>true</demanglenames>
  PRINTNL     </display>
  PRINTNL   </kdevdebugger>
  PRINTNL   <kdevtrollproject>
  PRINTNL     <general>
  PRINTNL       <activedir></activedir>
  PRINTNL     </general>
  PRINTNL     <run>
//  PRINTNL       <mainprogram>./kdev2</mainprogram>
  PRINTNL       <programargs/>
  PRINTNL       <envvars>
  PRINTNL         <envvar value="%(QTDIR)" name="QTDIR" />
  IF %(QPEDIR)
    PRINTNL         <envvar value="%(QPEDIR)" name="QPEDIR" />
    PRINTNL         <envvar value="%(QPEDIR)/lib:%(QTDIR)/lib:$LD_LIBRARY_PATH" name="LD_LIBRARY_PATH" />
  ELSE
    PRINTNL         <envvar value="%(QTDIR)/lib:$LD_LIBRARY_PATH" name="LD_LIBRARY_PATH" />
  ENDIF
  PRINTNL       </envvars>
  PRINTNL       <directoryradio>custom</directoryradio>
  PRINTNL       <customdirectory>/</customdirectory>
  FOR EACH USE
    IF %(TYPE)==EXE
      PRINTNL       <mainprogram>%(|OUTPUTPATH)%(NAME)</mainprogram>
    ENDIF
  ENDFOR
  PRINTNL     </run>
  PRINTNL     <envvars/>
  PRINTNL     <make>
  PRINTNL       <abortonerror>true</abortonerror>
  PRINTNL       <runmultiplejobs>false</runmultiplejobs>
  PRINTNL       <numberofjobs>1</numberofjobs>
  PRINTNL       <dontact>false</dontact>
  PRINTNL       <makebin>make -f Makefile</makebin>
  PRINTNL       <prio>0</prio>
  PRINTNL       <envvars>
  IF %(QPEDIR)
    PRINTNL         <envvar value="%(QPEDIR)" name="QPEDIR" />
  ENDIF
  PRINTNL         <envvar value="%(QTDIR)" name="QTDIR" />
  PRINTNL       </envvars>
  PRINTNL     </make>
  PRINTNL   </kdevtrollproject>
  PRINTNL   <kdevfilecreate>
  PRINTNL     <filetypes/>
  PRINTNL     <useglobaltypes/>
  PRINTNL   </kdevfilecreate>
  PRINTNL   <cppsupportpart>
  PRINTNL     <codecompletion>
  PRINTNL       <codehinting outputview="1" enablech="0" selectview="0" />
  PRINTNL     </codecompletion>
  PRINTNL     <classstore>
  PRINTNL       <enablepcs>false</enablepcs>
  PRINTNL       <enablepp>false</enablepp>
  PRINTNL       <preparsing/>
  PRINTNL     </classstore>
  PRINTNL     <filetemplates>
  PRINTNL       <choosefiles>false</choosefiles>
  PRINTNL       <interfaceURL/>
  PRINTNL       <implementationURL/>
  PRINTNL       <interfacesuffix>.h</interfacesuffix>
  PRINTNL       <implementationsuffix>.cpp</implementationsuffix>
  PRINTNL       <lowercasefilenames>true</lowercasefilenames>
  PRINTNL     </filetemplates>
  PRINTNL   </cppsupportpart>
  PRINTNL   <kdevcppsupport>
  PRINTNL     <references/>
  PRINTNL     <codecompletion>
  PRINTNL       <includeGlobalFunctions>true</includeGlobalFunctions>
  PRINTNL       <includeTypes>true</includeTypes>
  PRINTNL       <includeEnums>true</includeEnums>
  PRINTNL       <includeTypedefs>false</includeTypedefs>
  PRINTNL       <automaticCodeCompletion>true</automaticCodeCompletion>
  PRINTNL       <automaticArgumentsHint>true</automaticArgumentsHint>
  PRINTNL       <automaticHeaderCompletion>true</automaticHeaderCompletion>
  PRINTNL       <codeCompletionDelay>250</codeCompletionDelay>
  PRINTNL       <argumentsHintDelay>400</argumentsHintDelay>
  PRINTNL       <headerCompletionDelay>250</headerCompletionDelay>
  PRINTNL     </codecompletion>
  PRINTNL     <qt>
  PRINTNL       <used>true</used>
  PRINTNL       <version>4</version>
  PRINTNL       <root>%(QTDIR)</root>
  PRINTNL     </qt>
  PRINTNL   </kdevcppsupport>
  PRINTNL </kdevelop>

  IF "%(KDEVELOP_GDBSCRIPT)"!=""
    FILE %(PATH)%(NAME).kdevelop_gdbscript
    PRINTNL %(KDEVELOP_GDBSCRIPT)
  ENDIF

  FILE %(PATH)Makefile
  IF %(QPEDIR)
    // needed to run some of the Qtopia/Greenphone (stupid) scripts like gph
    PRINTNL PREFIX?=%(QPEDIR)/image
    PRINTNL DPREFIX?=%(QPEDIR)/dimage/opt/Qtopia
    PRINTNL D="-d"
  ENDIF
  PRINTNL all: %(USE)
  PRINTNL
  FOR EACH USE
    PRINTNL %(NAME): %(USE)
    PRINTNL 	@cd %(!PATH) && $(MAKE) -f %(NAME).mak
  ENDFOR
  PRINTNL
  PRINTNL clean:
  FOR EACH USE
    IF %(TYPE)==EXE
      PRINTNL 	@cd %(!PATH) && $(MAKE) -f %(NAME).mak clean
    ENDIF
  ENDFOR
  PRINTNL 
  PRINTNL install:
  FOR EACH USE
    IF %(TYPE)==EXE
      PRINTNL 	@cd %(!PATH) && $(MAKE) -f %(NAME).mak install
    ENDIF
  ENDFOR
  PRINTNL 
  PRINTNL .phony: all install %(USE)
  PRINTNL

  FOR EACH USE
    #include "qtopia_desktop.inc"
    #include "qtopia_resource.inc"

    FILE %(PATH)%(NAME).mak
    #include "gcc_mak.inc"
  ENDFOR
ENDFOR