carbide_vs.inc 3.18 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
#define TARGET_SYMBIAN
#define ARM
#define COMPILER_GCC
#define MSVC_SEE_DEPRECATE
#define CARBIDE_VS

DEVENV = "%VS80COMNTOOLS%..\IDE\devenv.exe"

VSBUILDER = Studio 2005
VSVERSION = 8.00
COMPILERVERSION = 8.00
USE_DLL_RUNTIME = 1

TARGNAME = Win32
TARGCFLAGS = /QIfist /NDSProjectFile "$(ProjectPath)" /NDSSDKShortName %(SDKNAME)
TARGLFLAGS = /FORCE:MULTIPLE,UNRESOLVED
TARGINC = $(EPOCROOT)\epoc32\include
TARGINC += ;"$(EPOCROOT)\epoc32\include\libc"
IF defined(SYMBIAN90)
  TARGINC += ;"$(EPOCROOT)\epoc32\include\ecom"
ENDIF
IF defined(SERIES60)
  IF defined(SYMBIAN90)
    TARGINC += ;"$(EPOCROOT)\epoc32\include\mmf\plugin"
  ENDIF
ENDIF

TARGMACHINE = 1
TARGEXESUBSYSTEM = 2

PRECOMMAND_DEB = RCMake.exe "$(ProjectPath)" %(SDKNAME) WINSCW UDEB
PRECOMMAND_REL = RCMake.exe "$(ProjectPath)" %(SDKNAME) GCCE UREL

TARGDEF += _UNICODE
TARGDEF += __SYMBIAN32__
TARGDEF += __SUPPORT_CPP_EXCEPTIONS__
DEFINE_RELEASE += __EPOC32__
DEFINE_RELEASE += __MARM__
DEFINE_RELEASE += __EABI__
DEFINE_RELEASE += __MARM_ARMV5__
DEFINE_RELEASE += __GCCE__
DEFINE_DEBUG += __WINSCW__
DEFINE_DEBUG += __WINS__
DEFINE_DEBUG += __CW32__

#include "vs.inc"

EXECUTABLE_DEBUG = C:\Nokia\Tools\Carbide_vs30\EpocWrapper.exe
ARGUMENTS_DEBUG = $(EPOCROOT)\\Epoc32\release\winscw\udeb\eshell.exe

#include "symbian.inc"

FOR EACH EXE,DLL,LIB
  FILE %(PATH)%(NAME)-SymbianOS-properties.xml
  PRINTNL <?xml version="1.0" encoding="utf-8"?>
  PRINTNL <NDSProject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0" supplier="Nokia">
  PRINTNL   <activeMmpFile>%(NAME).mmp</activeMmpFile>
  PRINTNL   <updateMmpFile>false</updateMmpFile>
  PRINTNL   <updateUidCppFile>false</updateUidCppFile>
  IF %(TYPE)==EXE
    PRINTNL   <pkgFile>%(NAME).pkg</pkgFile>
    PRINTNL   <pkgUpdate>true</pkgUpdate>
    PRINTNL   <pkgGeneration>true</pkgGeneration>
    PRINTNL   <projectProperty name="uid" label="Application UID" value="%(PROJECT_UID_3RD)" type="input" pattern="UID" role="Symbian9UID" persistedAs="project.uid3" />
  ELIF %(TYPE)==DLL
    PRINTNL   <projectProperty name="engineUid" label="DLL UID" value="%(PROJECT_UID_3RD)" type="input" pattern="UID" role="Symbian9UID" persistedAs="project.uid3" />
  ELIF %(TYPE)==LIB
    PRINTNL   <projectProperty name="libUid" label="Lib UID" value="0xe611bdef" type="input" pattern="UID" role="Symbian9UID" persistedAs="project.uid3" />
  ENDIF
  PRINTNL   <lang>EN</lang>
  PRINTNL   <copyExportsFlag>false</copyExportsFlag>
  PRINTNL </NDSProject>

  FILE %(PATH)%(NAME).uid.cpp
  PRINTNL #include <e32cmn.h>
  PRINTNL #pragma data_seg(".SYMBIAN")
  IF %(TYPE)==EXE
    PRINTNL __EMULATOR_IMAGE_HEADER2(0x1000007a,0x100039ce,%(PROJECT_UID_3RD),EPriorityForeground,0x0u,0x00000000u,%(PROJECT_UID_3RD),0,0,0)
  ELIF %(TYPE)==DLL
    PRINTNL __EMULATOR_IMAGE_HEADER2(0x10000079,0x1000008d,%(PROJECT_UID_3RD),EPriorityForeground,0x0u,0x00000000u,%(PROJECT_UID_3RD),0,0,0)
  ELIF %(TYPE)==LIB
    PRINTNL __EMULATOR_IMAGE_HEADER2(0x00000000,0x0,0xe611bdef,EPriorityForeground,0x0u,0x00000000u,0,0,0,0)
  ENDIF
  PRINTNL #pragma data_seg()
    
  FILE %(PATH)%(NAME).vcproj.user
  #include "vsproj-user.inc"
ENDFOR