constants.pas 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. { Constants and types for the SDK version }
  32. type
  33. TSDKVersion = (sdkUIQ21, sdkUIQ3);
  34. const
  35. Str_UIQ21 = 'UIQ 2.1';
  36. Str_UIQ3 = 'UIQ 3';
  37. { Commands }
  38. const
  39. paramBuild = 'build';
  40. paramBindings = 'bindings';
  41. paramShowPath = 'showpath';
  42. { Paths on the SDK }
  43. const
  44. { UIQ 2 Paths }
  45. Str_Path_UIQ2_ARM_BINUTILS = 'epoc32\gcc\bin\';
  46. Str_Path_UIQ2_Makmake = 'epoc32\tools\makmake.pl';
  47. { UIQ 3 Paths }
  48. Str_Path_CWTools = 'epoc32\tools\nokia_compiler\Symbian_Tools\Command_Line_Tools\';
  49. Str_Path_RComp = 'epoc32\tools\rcomp.exe';
  50. Str_Path_Cpp = 'epoc32\tools\scpp.exe';
  51. Str_Path_Resource_Files = 'epoc32\release\winscw\udeb\Z\resource\apps\';
  52. Str_Path_Emulator_Registration = 'epoc32\release\winscw\udeb\Z\private\10003a3f\apps\';
  53. { Other constants }
  54. const
  55. UID_SOURCE_FILENAME = 'QUID.cpp';
  56. UID_OBJECT_FILENAME = 'QUID.o';
  57. STR_ASSEMBLER_EXT = '.S';
  58. STR_OBJECT_EXT = '.o';
  59. STR_RESOURCE_TMP_EXT = '.pprsc';
  60. STR_RESOURCE_EXT = '.rsc';
  61. { Strings from the project file }
  62. const
  63. { Sections }
  64. STR_PRJ_Main = 'Main';
  65. STR_PRJ_FPC = 'FPC';
  66. STR_PRJ_UIDs = 'UIDs';
  67. STR_PRJ_Files = 'Files';
  68. STR_PRJ_Objects = 'Objects';
  69. STR_PRJ_RTLObjects = 'RTLObjects';
  70. { Identifiers }
  71. STR_PRJ_EXEName = 'EXEName';
  72. STR_PRJ_Language = 'Language';
  73. STR_PRJ_CompilerDir = 'CompilerDir';
  74. STR_PRJ_ProjectType = 'ProjectType';
  75. STR_PRJ_SDK = 'SDK';
  76. STR_PRJ_SDKVersion = 'SDKVersion';
  77. STR_PRJ_Emulator = 'Emulator';
  78. STR_PRJ_CompilerPath = 'CompilerPath';
  79. STR_PRJ_AssemblerPath = 'AssemblerPath';
  80. STR_PRJ_RTLUnitsDir = 'RTLUnitsDir';
  81. STR_PRJ_UID2 = 'UID2';
  82. STR_PRJ_UID3 = 'UID3';
  83. STR_PRJ_MainSource = 'mainsource';
  84. STR_PRJ_MainResource = 'mainresource';
  85. STR_PRJ_RegResource = 'regresource';
  86. STR_PRJ_File = 'file';
  87. { Options }
  88. STR_OPT_Cpp = 'C++';
  89. STR_OPT_Pascal = 'Pascal';
  90. implementation
  91. end.