Umakefil
上传用户:zhongxx05
上传日期:2007-06-06
资源大小:33641k
文件大小:6k
源码类别:

Symbian

开发平台:

C/C++

  1. # ***** BEGIN LICENSE BLOCK ***** 
  2. # Version: RCSL 1.0/RPSL 1.0 
  3. #  
  4. # Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. 
  5. #      
  6. # The contents of this file, and the files included with this file, are 
  7. # subject to the current version of the RealNetworks Public Source License 
  8. # Version 1.0 (the "RPSL") available at 
  9. # http://www.helixcommunity.org/content/rpsl unless you have licensed 
  10. # the file under the RealNetworks Community Source License Version 1.0 
  11. # (the "RCSL") available at http://www.helixcommunity.org/content/rcsl, 
  12. # in which case the RCSL will apply. You may also obtain the license terms 
  13. # directly from RealNetworks.  You may not use this file except in 
  14. # compliance with the RPSL or, if you have a valid RCSL with RealNetworks 
  15. # applicable to this file, the RCSL.  Please see the applicable RPSL or 
  16. # RCSL for the rights, obligations and limitations governing use of the 
  17. # contents of the file.  
  18. #  
  19. # This file is part of the Helix DNA Technology. RealNetworks is the 
  20. # developer of the Original Code and owns the copyrights in the portions 
  21. # it created. 
  22. #  
  23. # This file, and the files included with this file, is distributed and made 
  24. # available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 
  25. # EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES, 
  26. # INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS 
  27. # FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 
  28. # Technology Compatibility Kit Test Suite(s) Location: 
  29. #    http://www.helixcommunity.org/content/tck 
  30. # Contributor(s): 
  31. #  
  32. # ***** END LICENSE BLOCK ***** 
  33. UmakefileVersion(2,2)
  34. # codec general
  35. project.AddModuleIncludes("common/include",
  36.                           "datatype/include",
  37.                           "datatype/rm/include",
  38.                           "datatype/rm/audio/common/pub",
  39.   "datatype/rm/audio/codec/sipro/pub")
  40. project.ExportFunction("RAOpenCodec",
  41.                        "RACODEC* pCodecRef",
  42.                        "datatype/rm/include",
  43.                        "racodec.h")
  44. project.ExportFunction("RAOpenCodec2",
  45.                        "RACODEC* pCodecRef, const char* pCodecPath",
  46.                        "datatype/rm/include",
  47.                        "racodec.h")
  48. project.ExportFunction("RAGetNumberOfFlavors",
  49.                        "RACODEC codecRef",
  50.                        "datatype/rm/include",
  51.                        "racodec.h")
  52. project.ExportFunction("RAGetFlavorProperty",
  53.                        "RACODEC codecRef, UINT16 flvIndex, UINT16 propIndex, UINT16* pSize",
  54.                        "datatype/rm/include",
  55.                        "racodec.h")
  56. project.ExportFunction("RASetFlavor",
  57.                        "RACODEC codecRef, UINT16 flvIndex",
  58.                        "datatype/rm/include",
  59.                        "racodec.h")
  60. project.ExportFunction("RASetPwd",
  61.                        "RACODEC codecRef, const char* pPwd",
  62.                        "datatype/rm/include",
  63.                        "racodec.h")
  64. project.ExportFunction("RACloseCodec",
  65.                        "RACODEC codecRef",
  66.                        "datatype/rm/include",
  67.                        "racodec.h")
  68. project.ExportFunction("RAGetBackend",
  69.                        "RACODEC codecRef, void*** pFuncList",
  70.                        "datatype/rm/include",
  71.                        "racodec.h")
  72. project.ExportFunction("RASetComMode",
  73.                        "RACODEC codecRef",
  74.                        "datatype/rm/include",
  75.                        "racodec.h")
  76. project.ExportFunction("RAGetDecoderBackendGUID",
  77.                        "RACODEC codecRef, UCHAR* pGUID",
  78.                        "datatype/rm/include",
  79.                        "racodec.h")
  80. project.ExportFunction("RAGetGUID",
  81.                        "UCHAR* pGUID",
  82.                        "datatype/rm/include",
  83.                        "racodec.h")
  84. project.AddSources("rasipr.cpp")
  85. if not project.IsDefined("HELIX_CONFIG_FIXEDPOINT"):
  86. project.AddLibraries(GetSDKPath("sipro_lib"))
  87. else:
  88. project.AddLibraries(GetSDKPath("sipro_fix_lib"))
  89. project.AddModuleLibraries("common/system[syslib]")
  90. project.AddModuleLibraries("common/dbgtool[debuglib]",
  91.                            "common/util[utillib]",
  92.                            "common/container[contlib]",
  93.                            "common/runtime[runtlib]")
  94. # encoder
  95. if project.IsDefined("HELIX_FEATURE_AUDIO_CODEC_ENCODER"):
  96. project.AddDefines("_ENCODER")
  97.         project.ExportFunction("RAInitEncoder",
  98.                                "RACODEC codecRef, void* pParam",
  99.                                "datatype/rm/include",
  100.                                "racodec.h")
  101.         project.ExportFunction("RAEncode",
  102.                                "RACODEC codecRef, UINT16* inBuf, Byte* outBuf",
  103.                                "datatype/rm/include",
  104.                                "racodec.h")
  105.         project.ExportFunction("RAFreeEncoder",
  106.                                "RACODEC codecRef",
  107.                                "datatype/rm/include",
  108.                                "racodec.h")
  109.         if not project.BuildOption("nodll"):
  110.                 project.AddModuleIncludes("datatype/rm/audio/codec/common/pub")
  111.          project.AddModuleLibraries("datatype/rm/audio/codec/common[racompat]")
  112.                 project.ExportFunction("RACreateEncoderInstance",
  113.                                        "const CLSID &clsid, IUnknown** ppUnknown",
  114.                                        "datatype/include",
  115.                                        "hxacodec.h")
  116. # decoder
  117. project.AddDefines("_DECODER")
  118. project.ExportFunction("RAInitDecoder",
  119.                        "RACODEC codecRef, void* pParam",
  120.                        "datatype/rm/include",
  121.                        "racodec.h")
  122. project.ExportFunction("RADecode",
  123.                        "RACODEC codecRef, Byte* in, UINT32 inLength, Byte* out, UINT32* pOutLength, UINT32 userData",
  124.                        "datatype/rm/include",
  125.                        "racodec.h")
  126. project.ExportFunction("RAFlush",
  127.                        "RACODEC codecRef, Byte* outBuf, UINT32* pOutLength",
  128.                        "datatype/rm/include",
  129.                        "racodec.h")
  130. project.ExportFunction("RAFreeDecoder",
  131.                        "RACODEC codecRef",
  132.                        "datatype/rm/include",
  133.                        "racodec.h")
  134. project.SetDLLTypeCodec()
  135. DLLTarget("sipr")
  136. DependTarget()