constants.pas 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. constants.pas
  3. Constants
  4. Copyright (C) 2006-2007 Felipe Monteiro de Carvalho
  5. This file is part of MkSymbian build tool.
  6. MkSymbian is free software;
  7. you can redistribute it and/or modify it under the
  8. terms of the GNU General Public License version 2
  9. as published by the Free Software Foundation.
  10. MkSymbian is distributed in the hope
  11. that it will be useful, but WITHOUT ANY WARRANTY; without even
  12. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  13. PURPOSE. See the GNU General Public License for more details.
  14. Please note that the General Public License version 2 does not permit
  15. incorporating MkSymbian into proprietary programs.
  16. }
  17. unit constants;
  18. {$ifdef fpc}
  19. {$mode delphi}{$H+}
  20. {$endif}
  21. interface
  22. uses
  23. Classes, SysUtils;
  24. type
  25. { Options from the command line }
  26. TMkSymbianTask = (stNothing, stBuildApp, stBuildBindings);
  27. TMkSymbianOptions = record
  28. Task: TMkSymbianTask;
  29. ProjectFile: string;
  30. end;
  31. { Commands }
  32. const
  33. paramBuild = 'build';
  34. paramBindings = 'bindings';
  35. paramShowPath = 'showpath';
  36. { Paths on the SDK }
  37. const
  38. Str_Path_CWTools = 'epoc32\tools\nokia_compiler\Symbian_Tools\Command_Line_Tools\';
  39. Str_Path_RComp = 'epoc32\tools\rcomp.exe';
  40. Str_Path_Cpp = 'epoc32\tools\scpp.exe';
  41. Str_Path_Emulator_Registration = 'epoc32\release\winscw\udeb\Z\private\10003a3f\apps\';
  42. { Other constants }
  43. const
  44. UID_SOURCE_FILENAME = 'QUID.cpp';
  45. UID_OBJECT_FILENAME = 'QUID.o';
  46. STR_RESOURCE_TMP_EXT = '.pprsc';
  47. STR_RESOURCE_EXT = '.rsc';
  48. { Strings from the project file }
  49. const
  50. { Sections }
  51. STR_PRJ_Main = 'Main';
  52. STR_PRJ_FPC = 'FPC';
  53. STR_PRJ_UIDs = 'UIDs';
  54. STR_PRJ_Files = 'Files';
  55. STR_PRJ_Objects = 'Objects';
  56. STR_PRJ_RTLObjects = 'RTLObjects';
  57. { Identifiers }
  58. STR_PRJ_EXEName = 'EXEName';
  59. STR_PRJ_Language = 'Language';
  60. STR_PRJ_CompilerDir = 'CompilerDir';
  61. STR_PRJ_ProjectType = 'ProjectType';
  62. STR_PRJ_SDK = 'SDK';
  63. STR_PRJ_SDKVersion = 'SDKVersion';
  64. STR_PRJ_Emulator = 'Emulator';
  65. STR_PRJ_CompilerPath = 'CompilerPath';
  66. STR_PRJ_RTLUnitsDir = 'RTLUnitsDir';
  67. STR_PRJ_UID2 = 'UID2';
  68. STR_PRJ_UID3 = 'UID3';
  69. STR_PRJ_MainSource = 'mainsource';
  70. STR_PRJ_MainResource = 'mainresource';
  71. STR_PRJ_File = 'file';
  72. { Options }
  73. STR_OPT_Cpp = 'C++';
  74. STR_OPT_Pascal = 'Pascal';
  75. implementation
  76. end.