Advertisement
Guest User

Liang Qi

a guest
Jul 26th, 2011
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 27.34 KB | None | 0 0
  1. From 03171e55132e8cc64e500b3be640583b02b752b8 Mon Sep 17 00:00:00 2001
  2. From: Liang Qi <cavendish.qi@nokia.com>
  3. Date: Tue, 26 Jul 2011 16:43:00 +0200
  4. Subject: [PATCH] Patch Symbian3 PDK 3.0.4 to support makefile build system
  5.  
  6. ---
  7.  epoc32/include/bldqt.hrh                     |   10 +++++
  8.  epoc32/include/mw/AiwVariant.h               |    2 +-
  9.  epoc32/include/mw/Aknvolumecontrol.h         |    2 +-
  10.  epoc32/include/mw/cmdefconnvalues.h          |    8 ++--
  11.  epoc32/include/platform/mw/schemehandler.h   |    2 +-
  12.  epoc32/include/platform/mw/schemehandler.inl |    2 +-
  13.  epoc32/include/variant/Symbian_OS.hrh        |    5 +++
  14.  epoc32/tools/bmconv                          |   27 ++++++++++++++
  15.  epoc32/tools/cjpeg                           |   27 ++++++++++++++
  16.  epoc32/tools/elf2e32                         |   37 +++++++++++++++++++
  17.  epoc32/tools/elftran                         |   27 ++++++++++++++
  18.  epoc32/tools/extmake                         |   27 ++++++++++++++
  19.  epoc32/tools/genstubs                        |   27 ++++++++++++++
  20.  epoc32/tools/getexports                      |   27 ++++++++++++++
  21.  epoc32/tools/makekeys                        |   27 ++++++++++++++
  22.  epoc32/tools/makesis                         |   27 ++++++++++++++
  23.  epoc32/tools/mifconv                         |   51 ++++++++++++++++++++++++++
  24.  epoc32/tools/petran                          |   27 ++++++++++++++
  25.  epoc32/tools/pfsdump                         |   27 ++++++++++++++
  26.  epoc32/tools/rcomp                           |   27 ++++++++++++++
  27.  epoc32/tools/rtf2ptml                        |   27 ++++++++++++++
  28.  epoc32/tools/signsis                         |   27 ++++++++++++++
  29.  22 files changed, 462 insertions(+), 8 deletions(-)
  30.  create mode 100644 epoc32/include/bldqt.hrh
  31.  create mode 100755 epoc32/tools/bmconv
  32.  create mode 100755 epoc32/tools/cjpeg
  33.  create mode 100755 epoc32/tools/elf2e32
  34.  create mode 100755 epoc32/tools/elftran
  35.  create mode 100755 epoc32/tools/extmake
  36.  create mode 100755 epoc32/tools/genstubs
  37.  create mode 100755 epoc32/tools/getexports
  38.  create mode 100755 epoc32/tools/makekeys
  39.  create mode 100755 epoc32/tools/makesis
  40.  create mode 100755 epoc32/tools/mifconv
  41.  create mode 100755 epoc32/tools/petran
  42.  create mode 100755 epoc32/tools/pfsdump
  43.  create mode 100755 epoc32/tools/rcomp
  44.  create mode 100755 epoc32/tools/rtf2ptml
  45.  create mode 100755 epoc32/tools/signsis
  46.  
  47. diff --git a/epoc32/include/bldqt.hrh b/epoc32/include/bldqt.hrh
  48. new file mode 100644
  49. index 0000000..ac3ca37
  50. --- /dev/null
  51. +++ b/epoc32/include/bldqt.hrh
  52. @@ -0,0 +1,10 @@
  53. +/*
  54. + * This file contains macro definitions required to build Qt against this
  55. + * SDK.
  56. + */
  57. +
  58. +/**
  59. +QtOpenVG requires OpenVG 1.1
  60. +*/
  61. +#define __OPENVGHEADERS_USE_VG_1_1
  62. +
  63. diff --git a/epoc32/include/mw/AiwVariant.h b/epoc32/include/mw/AiwVariant.h
  64. index 9906bb3..4b5514f 100644
  65. --- a/epoc32/include/mw/AiwVariant.h
  66. +++ b/epoc32/include/mw/AiwVariant.h
  67. @@ -112,7 +112,7 @@ class TAiwVariant
  68.          *
  69.          * @param aValue The source object.
  70.          */
  71. -        IMPORT_C TAiwVariant& TAiwVariant::operator=(const TAiwVariant& aValue);
  72. +        IMPORT_C TAiwVariant& operator=(const TAiwVariant& aValue);
  73.  
  74.          // This class does not need a destructor because memory allocation
  75.          // policy for variant class has been implemented by TAiwGenericParam
  76. diff --git a/epoc32/include/mw/Aknvolumecontrol.h b/epoc32/include/mw/Aknvolumecontrol.h
  77. index ac6d55d..99344c0 100644
  78. --- a/epoc32/include/mw/Aknvolumecontrol.h
  79. +++ b/epoc32/include/mw/Aknvolumecontrol.h
  80. @@ -270,7 +270,7 @@ class CAknVolumeControl : public CAknControl, public MAknNaviDecoratorObserver
  81.          *
  82.          * @return Colume value scaled to range of [0-10].
  83.          */
  84. -        TInt CAknVolumeControl::ScaledValue() const;
  85. +        TInt ScaledValue() const;
  86.  
  87.         /*
  88.          * Set extended touch area to be used
  89. diff --git a/epoc32/include/mw/cmdefconnvalues.h b/epoc32/include/mw/cmdefconnvalues.h
  90. index 9cb6cee..d7bb990 100644
  91. --- a/epoc32/include/mw/cmdefconnvalues.h
  92. +++ b/epoc32/include/mw/cmdefconnvalues.h
  93. @@ -56,18 +56,18 @@ struct TCmDefConnValue
  94.      // TCmDefConnValue::operator==
  95.      // -----------------------------------------------------------------------------
  96.      //
  97. -    inline TBool TCmDefConnValue::operator==( TCmDefConnValue& aDCSettingSelection ) const
  98. +    inline TBool operator==( TCmDefConnValue& aDCSettingSelection ) const
  99.          {
  100.          return ( (iType == aDCSettingSelection.iType) && ( iId == aDCSettingSelection.iId ) );
  101. -        };
  102. +        }
  103.  
  104.      // -----------------------------------------------------------------------------
  105.      // TCmDefConnValue::operator!=
  106.      // -----------------------------------------------------------------------------
  107.      //
  108. -    inline TBool TCmDefConnValue::operator!=( TCmDefConnValue& aDCSettingSelection ) const
  109. +    inline TBool operator!=( TCmDefConnValue& aDCSettingSelection ) const
  110.          {
  111.          return (!( (iType == aDCSettingSelection.iType) && ( iId == aDCSettingSelection.iId ) ));
  112. -        };    
  113. +        }
  114.      };    
  115.  #endif // C_CMDEFCONNVALUES_H
  116. diff --git a/epoc32/include/platform/mw/schemehandler.h b/epoc32/include/platform/mw/schemehandler.h
  117. index 883e0e2..f926d9b 100644
  118. --- a/epoc32/include/platform/mw/schemehandler.h
  119. +++ b/epoc32/include/platform/mw/schemehandler.h
  120. @@ -95,6 +95,6 @@ class CSchemeHandler : public CBase
  121.          CAiwGenericParamList* iParamList; ///< OWNS
  122.     };
  123.  
  124. -#include <SchemeHandler.inl>
  125. +#include <schemehandler.inl>
  126.  
  127.  #endif /* def SCHEME_HANDLER_H */
  128. diff --git a/epoc32/include/platform/mw/schemehandler.inl b/epoc32/include/platform/mw/schemehandler.inl
  129. index b092d28..bf015e0 100644
  130. --- a/epoc32/include/platform/mw/schemehandler.inl
  131. +++ b/epoc32/include/platform/mw/schemehandler.inl
  132. @@ -20,7 +20,7 @@
  133.  
  134.  // INCLUDE FILES
  135.  
  136. -#include <SchemeDefs.hrh>
  137. +#include <schemedefs.hrh>
  138.  #include <ecom/ecom.h>     // For REComSession
  139.  
  140.  // ================= CONSTANTS =======================
  141. diff --git a/epoc32/include/variant/Symbian_OS.hrh b/epoc32/include/variant/Symbian_OS.hrh
  142. index 6c7215f..ee911a9 100644
  143. --- a/epoc32/include/variant/Symbian_OS.hrh
  144. +++ b/epoc32/include/variant/Symbian_OS.hrh
  145. @@ -2106,3 +2106,8 @@ If SYMBIAN_GRAPHICS_BUILD_OPENWF_WSERV, the windowserver component is built to u
  146.  */
  147.  #define SYMBIAN_GRAPHICS_BUILD_OPENWF_WSERV
  148.  
  149. +/**
  150. +Include macro definitions required to build Qt
  151. +*/
  152. +#include "bldqt.hrh"
  153. +
  154. diff --git a/epoc32/tools/bmconv b/epoc32/tools/bmconv
  155. new file mode 100755
  156. index 0000000..0801735
  157. --- /dev/null
  158. +++ b/epoc32/tools/bmconv
  159. @@ -0,0 +1,27 @@
  160. +#!/bin/sh
  161. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  162. +# All rights reserved.
  163. +# Contact: Nokia Corporation ([email protected])
  164. +#
  165. +# This file is part of the S60 SDK
  166. +#
  167. +# This library is free software; you can redistribute it and/or
  168. +# modify it under the terms of the GNU Library General Public
  169. +# License as published by the Free Software Foundation; either
  170. +# version 2.1 of the License, or (at your option) any later version.
  171. +#
  172. +# This library is distributed in the hope that it will be useful,
  173. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  174. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  175. +# Library General Public License for more details.
  176. +#
  177. +# You should have received a copy of the GNU Library General Public License
  178. +# along with this library; see the file COPYING.LIB.  If not, write to
  179. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  180. +# Boston, MA 02110-1301, USA.
  181. +#
  182. +#############################################################################
  183. +
  184. +tool="`basename $0`.exe"
  185. +echo "Calling $tool"
  186. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  187. diff --git a/epoc32/tools/cjpeg b/epoc32/tools/cjpeg
  188. new file mode 100755
  189. index 0000000..0801735
  190. --- /dev/null
  191. +++ b/epoc32/tools/cjpeg
  192. @@ -0,0 +1,27 @@
  193. +#!/bin/sh
  194. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  195. +# All rights reserved.
  196. +# Contact: Nokia Corporation ([email protected])
  197. +#
  198. +# This file is part of the S60 SDK
  199. +#
  200. +# This library is free software; you can redistribute it and/or
  201. +# modify it under the terms of the GNU Library General Public
  202. +# License as published by the Free Software Foundation; either
  203. +# version 2.1 of the License, or (at your option) any later version.
  204. +#
  205. +# This library is distributed in the hope that it will be useful,
  206. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  207. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  208. +# Library General Public License for more details.
  209. +#
  210. +# You should have received a copy of the GNU Library General Public License
  211. +# along with this library; see the file COPYING.LIB.  If not, write to
  212. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  213. +# Boston, MA 02110-1301, USA.
  214. +#
  215. +#############################################################################
  216. +
  217. +tool="`basename $0`.exe"
  218. +echo "Calling $tool"
  219. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  220. diff --git a/epoc32/tools/elf2e32 b/epoc32/tools/elf2e32
  221. new file mode 100755
  222. index 0000000..ae4f600
  223. --- /dev/null
  224. +++ b/epoc32/tools/elf2e32
  225. @@ -0,0 +1,37 @@
  226. +#!/bin/sh
  227. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  228. +# All rights reserved.
  229. +# Contact: Nokia Corporation ([email protected])
  230. +#
  231. +# This file is part of the S60 SDK
  232. +#
  233. +# This library is free software; you can redistribute it and/or
  234. +# modify it under the terms of the GNU Library General Public
  235. +# License as published by the Free Software Foundation; either
  236. +# version 2.1 of the License, or (at your option) any later version.
  237. +#
  238. +# This library is distributed in the hope that it will be useful,
  239. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  240. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  241. +# Library General Public License for more details.
  242. +#
  243. +# You should have received a copy of the GNU Library General Public License
  244. +# along with this library; see the file COPYING.LIB.  If not, write to
  245. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  246. +# Boston, MA 02110-1301, USA.
  247. +#
  248. +#############################################################################
  249. +
  250. +# Work around a bug in wine if the process stack size is unlimited. It makes
  251. +# elf2e32 misbehave and report too many missing symbols in DEF files.
  252. +# GNU make usually sets this size.
  253. +# Note that this fix does not always work. The fix has been verified working
  254. +# with wine-1.2.2 and verified *not* working with wine-1.3.17.
  255. +# 64-bit platforms seem to be unaffected by the bug.
  256. +if [ `ulimit -S -s` == "unlimited" ]; then
  257. +    ulimit -S -s 8192
  258. +fi
  259. +
  260. +tool="`basename $0`.exe"
  261. +echo "Calling $tool"
  262. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  263. diff --git a/epoc32/tools/elftran b/epoc32/tools/elftran
  264. new file mode 100755
  265. index 0000000..0801735
  266. --- /dev/null
  267. +++ b/epoc32/tools/elftran
  268. @@ -0,0 +1,27 @@
  269. +#!/bin/sh
  270. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  271. +# All rights reserved.
  272. +# Contact: Nokia Corporation ([email protected])
  273. +#
  274. +# This file is part of the S60 SDK
  275. +#
  276. +# This library is free software; you can redistribute it and/or
  277. +# modify it under the terms of the GNU Library General Public
  278. +# License as published by the Free Software Foundation; either
  279. +# version 2.1 of the License, or (at your option) any later version.
  280. +#
  281. +# This library is distributed in the hope that it will be useful,
  282. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  283. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  284. +# Library General Public License for more details.
  285. +#
  286. +# You should have received a copy of the GNU Library General Public License
  287. +# along with this library; see the file COPYING.LIB.  If not, write to
  288. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  289. +# Boston, MA 02110-1301, USA.
  290. +#
  291. +#############################################################################
  292. +
  293. +tool="`basename $0`.exe"
  294. +echo "Calling $tool"
  295. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  296. diff --git a/epoc32/tools/extmake b/epoc32/tools/extmake
  297. new file mode 100755
  298. index 0000000..0801735
  299. --- /dev/null
  300. +++ b/epoc32/tools/extmake
  301. @@ -0,0 +1,27 @@
  302. +#!/bin/sh
  303. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  304. +# All rights reserved.
  305. +# Contact: Nokia Corporation ([email protected])
  306. +#
  307. +# This file is part of the S60 SDK
  308. +#
  309. +# This library is free software; you can redistribute it and/or
  310. +# modify it under the terms of the GNU Library General Public
  311. +# License as published by the Free Software Foundation; either
  312. +# version 2.1 of the License, or (at your option) any later version.
  313. +#
  314. +# This library is distributed in the hope that it will be useful,
  315. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  316. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  317. +# Library General Public License for more details.
  318. +#
  319. +# You should have received a copy of the GNU Library General Public License
  320. +# along with this library; see the file COPYING.LIB.  If not, write to
  321. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  322. +# Boston, MA 02110-1301, USA.
  323. +#
  324. +#############################################################################
  325. +
  326. +tool="`basename $0`.exe"
  327. +echo "Calling $tool"
  328. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  329. diff --git a/epoc32/tools/genstubs b/epoc32/tools/genstubs
  330. new file mode 100755
  331. index 0000000..0801735
  332. --- /dev/null
  333. +++ b/epoc32/tools/genstubs
  334. @@ -0,0 +1,27 @@
  335. +#!/bin/sh
  336. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  337. +# All rights reserved.
  338. +# Contact: Nokia Corporation ([email protected])
  339. +#
  340. +# This file is part of the S60 SDK
  341. +#
  342. +# This library is free software; you can redistribute it and/or
  343. +# modify it under the terms of the GNU Library General Public
  344. +# License as published by the Free Software Foundation; either
  345. +# version 2.1 of the License, or (at your option) any later version.
  346. +#
  347. +# This library is distributed in the hope that it will be useful,
  348. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  349. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  350. +# Library General Public License for more details.
  351. +#
  352. +# You should have received a copy of the GNU Library General Public License
  353. +# along with this library; see the file COPYING.LIB.  If not, write to
  354. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  355. +# Boston, MA 02110-1301, USA.
  356. +#
  357. +#############################################################################
  358. +
  359. +tool="`basename $0`.exe"
  360. +echo "Calling $tool"
  361. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  362. diff --git a/epoc32/tools/getexports b/epoc32/tools/getexports
  363. new file mode 100755
  364. index 0000000..0801735
  365. --- /dev/null
  366. +++ b/epoc32/tools/getexports
  367. @@ -0,0 +1,27 @@
  368. +#!/bin/sh
  369. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  370. +# All rights reserved.
  371. +# Contact: Nokia Corporation ([email protected])
  372. +#
  373. +# This file is part of the S60 SDK
  374. +#
  375. +# This library is free software; you can redistribute it and/or
  376. +# modify it under the terms of the GNU Library General Public
  377. +# License as published by the Free Software Foundation; either
  378. +# version 2.1 of the License, or (at your option) any later version.
  379. +#
  380. +# This library is distributed in the hope that it will be useful,
  381. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  382. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  383. +# Library General Public License for more details.
  384. +#
  385. +# You should have received a copy of the GNU Library General Public License
  386. +# along with this library; see the file COPYING.LIB.  If not, write to
  387. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  388. +# Boston, MA 02110-1301, USA.
  389. +#
  390. +#############################################################################
  391. +
  392. +tool="`basename $0`.exe"
  393. +echo "Calling $tool"
  394. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  395. diff --git a/epoc32/tools/makekeys b/epoc32/tools/makekeys
  396. new file mode 100755
  397. index 0000000..0801735
  398. --- /dev/null
  399. +++ b/epoc32/tools/makekeys
  400. @@ -0,0 +1,27 @@
  401. +#!/bin/sh
  402. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  403. +# All rights reserved.
  404. +# Contact: Nokia Corporation ([email protected])
  405. +#
  406. +# This file is part of the S60 SDK
  407. +#
  408. +# This library is free software; you can redistribute it and/or
  409. +# modify it under the terms of the GNU Library General Public
  410. +# License as published by the Free Software Foundation; either
  411. +# version 2.1 of the License, or (at your option) any later version.
  412. +#
  413. +# This library is distributed in the hope that it will be useful,
  414. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  415. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  416. +# Library General Public License for more details.
  417. +#
  418. +# You should have received a copy of the GNU Library General Public License
  419. +# along with this library; see the file COPYING.LIB.  If not, write to
  420. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  421. +# Boston, MA 02110-1301, USA.
  422. +#
  423. +#############################################################################
  424. +
  425. +tool="`basename $0`.exe"
  426. +echo "Calling $tool"
  427. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  428. diff --git a/epoc32/tools/makesis b/epoc32/tools/makesis
  429. new file mode 100755
  430. index 0000000..0801735
  431. --- /dev/null
  432. +++ b/epoc32/tools/makesis
  433. @@ -0,0 +1,27 @@
  434. +#!/bin/sh
  435. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  436. +# All rights reserved.
  437. +# Contact: Nokia Corporation ([email protected])
  438. +#
  439. +# This file is part of the S60 SDK
  440. +#
  441. +# This library is free software; you can redistribute it and/or
  442. +# modify it under the terms of the GNU Library General Public
  443. +# License as published by the Free Software Foundation; either
  444. +# version 2.1 of the License, or (at your option) any later version.
  445. +#
  446. +# This library is distributed in the hope that it will be useful,
  447. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  448. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  449. +# Library General Public License for more details.
  450. +#
  451. +# You should have received a copy of the GNU Library General Public License
  452. +# along with this library; see the file COPYING.LIB.  If not, write to
  453. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  454. +# Boston, MA 02110-1301, USA.
  455. +#
  456. +#############################################################################
  457. +
  458. +tool="`basename $0`.exe"
  459. +echo "Calling $tool"
  460. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  461. diff --git a/epoc32/tools/mifconv b/epoc32/tools/mifconv
  462. new file mode 100755
  463. index 0000000..6f97be3
  464. --- /dev/null
  465. +++ b/epoc32/tools/mifconv
  466. @@ -0,0 +1,51 @@
  467. +#!/usr/bin/env perl
  468. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  469. +# All rights reserved.
  470. +# Contact: Nokia Corporation ([email protected])
  471. +#
  472. +# This file is part of the S60 SDK
  473. +#
  474. +# This library is free software; you can redistribute it and/or
  475. +# modify it under the terms of the GNU Library General Public
  476. +# License as published by the Free Software Foundation; either
  477. +# version 2.1 of the License, or (at your option) any later version.
  478. +#
  479. +# This library is distributed in the hope that it will be useful,
  480. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  481. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  482. +# Library General Public License for more details.
  483. +#
  484. +# You should have received a copy of the GNU Library General Public License
  485. +# along with this library; see the file COPYING.LIB.  If not, write to
  486. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  487. +# Boston, MA 02110-1301, USA.
  488. +#
  489. +#############################################################################
  490. +# call wine mifconv.exe
  491. +# export EPOCROOT with backslashes instead of normal slashes
  492. +# and convert all slashes in the arguments to be backslashes, except for
  493. +# slashes starting options.
  494. +
  495. +my $epocroot = $ENV{"EPOCROOT"};
  496. +$epocroot =~ s/\\/\//g;
  497. +$command = "wine ". $epocroot . "/epoc32/tools/mifconv.exe";
  498. +
  499. +push (@ARGV, "-t/tmp");
  500. +for my $arg (@ARGV) {
  501. +    my $isOption = $arg=~/^\/[HEPTBSVFAC1-8].*/i;
  502. +    $isOption = 0 if -e $arg; # If this is an existing file name, don't treat it as an option.
  503. +    $isOption = 0 if ($arg =~ /\.mif$/); # If this is the output file name, don't treat it as an option.
  504. +    $arg=~s/\//\\\\/g; # replace all
  505. +    if ($isOption) {
  506. +        $arg=~s/^\\\\/\//; # replace first backslashes back to a slash
  507. +    }
  508. +    $command="$command \"$arg\"";
  509. +}
  510. +
  511. +# Set EPOCROOT to a version with backslashes, for mifconv
  512. +my $epocroot = $ENV{"EPOCROOT"};
  513. +$epocroot=~s/\//\\/g; # replace all
  514. +$ENV{"EPOCROOT"} = $epocroot;
  515. +
  516. +my $ret = system ($command) >> 8;
  517. +exit($ret);
  518. diff --git a/epoc32/tools/petran b/epoc32/tools/petran
  519. new file mode 100755
  520. index 0000000..0801735
  521. --- /dev/null
  522. +++ b/epoc32/tools/petran
  523. @@ -0,0 +1,27 @@
  524. +#!/bin/sh
  525. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  526. +# All rights reserved.
  527. +# Contact: Nokia Corporation ([email protected])
  528. +#
  529. +# This file is part of the S60 SDK
  530. +#
  531. +# This library is free software; you can redistribute it and/or
  532. +# modify it under the terms of the GNU Library General Public
  533. +# License as published by the Free Software Foundation; either
  534. +# version 2.1 of the License, or (at your option) any later version.
  535. +#
  536. +# This library is distributed in the hope that it will be useful,
  537. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  538. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  539. +# Library General Public License for more details.
  540. +#
  541. +# You should have received a copy of the GNU Library General Public License
  542. +# along with this library; see the file COPYING.LIB.  If not, write to
  543. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  544. +# Boston, MA 02110-1301, USA.
  545. +#
  546. +#############################################################################
  547. +
  548. +tool="`basename $0`.exe"
  549. +echo "Calling $tool"
  550. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  551. diff --git a/epoc32/tools/pfsdump b/epoc32/tools/pfsdump
  552. new file mode 100755
  553. index 0000000..0801735
  554. --- /dev/null
  555. +++ b/epoc32/tools/pfsdump
  556. @@ -0,0 +1,27 @@
  557. +#!/bin/sh
  558. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  559. +# All rights reserved.
  560. +# Contact: Nokia Corporation ([email protected])
  561. +#
  562. +# This file is part of the S60 SDK
  563. +#
  564. +# This library is free software; you can redistribute it and/or
  565. +# modify it under the terms of the GNU Library General Public
  566. +# License as published by the Free Software Foundation; either
  567. +# version 2.1 of the License, or (at your option) any later version.
  568. +#
  569. +# This library is distributed in the hope that it will be useful,
  570. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  571. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  572. +# Library General Public License for more details.
  573. +#
  574. +# You should have received a copy of the GNU Library General Public License
  575. +# along with this library; see the file COPYING.LIB.  If not, write to
  576. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  577. +# Boston, MA 02110-1301, USA.
  578. +#
  579. +#############################################################################
  580. +
  581. +tool="`basename $0`.exe"
  582. +echo "Calling $tool"
  583. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  584. diff --git a/epoc32/tools/rcomp b/epoc32/tools/rcomp
  585. new file mode 100755
  586. index 0000000..0801735
  587. --- /dev/null
  588. +++ b/epoc32/tools/rcomp
  589. @@ -0,0 +1,27 @@
  590. +#!/bin/sh
  591. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  592. +# All rights reserved.
  593. +# Contact: Nokia Corporation ([email protected])
  594. +#
  595. +# This file is part of the S60 SDK
  596. +#
  597. +# This library is free software; you can redistribute it and/or
  598. +# modify it under the terms of the GNU Library General Public
  599. +# License as published by the Free Software Foundation; either
  600. +# version 2.1 of the License, or (at your option) any later version.
  601. +#
  602. +# This library is distributed in the hope that it will be useful,
  603. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  604. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  605. +# Library General Public License for more details.
  606. +#
  607. +# You should have received a copy of the GNU Library General Public License
  608. +# along with this library; see the file COPYING.LIB.  If not, write to
  609. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  610. +# Boston, MA 02110-1301, USA.
  611. +#
  612. +#############################################################################
  613. +
  614. +tool="`basename $0`.exe"
  615. +echo "Calling $tool"
  616. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  617. diff --git a/epoc32/tools/rtf2ptml b/epoc32/tools/rtf2ptml
  618. new file mode 100755
  619. index 0000000..0801735
  620. --- /dev/null
  621. +++ b/epoc32/tools/rtf2ptml
  622. @@ -0,0 +1,27 @@
  623. +#!/bin/sh
  624. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  625. +# All rights reserved.
  626. +# Contact: Nokia Corporation ([email protected])
  627. +#
  628. +# This file is part of the S60 SDK
  629. +#
  630. +# This library is free software; you can redistribute it and/or
  631. +# modify it under the terms of the GNU Library General Public
  632. +# License as published by the Free Software Foundation; either
  633. +# version 2.1 of the License, or (at your option) any later version.
  634. +#
  635. +# This library is distributed in the hope that it will be useful,
  636. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  637. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  638. +# Library General Public License for more details.
  639. +#
  640. +# You should have received a copy of the GNU Library General Public License
  641. +# along with this library; see the file COPYING.LIB.  If not, write to
  642. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  643. +# Boston, MA 02110-1301, USA.
  644. +#
  645. +#############################################################################
  646. +
  647. +tool="`basename $0`.exe"
  648. +echo "Calling $tool"
  649. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  650. diff --git a/epoc32/tools/signsis b/epoc32/tools/signsis
  651. new file mode 100755
  652. index 0000000..0801735
  653. --- /dev/null
  654. +++ b/epoc32/tools/signsis
  655. @@ -0,0 +1,27 @@
  656. +#!/bin/sh
  657. +# Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  658. +# All rights reserved.
  659. +# Contact: Nokia Corporation ([email protected])
  660. +#
  661. +# This file is part of the S60 SDK
  662. +#
  663. +# This library is free software; you can redistribute it and/or
  664. +# modify it under the terms of the GNU Library General Public
  665. +# License as published by the Free Software Foundation; either
  666. +# version 2.1 of the License, or (at your option) any later version.
  667. +#
  668. +# This library is distributed in the hope that it will be useful,
  669. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  670. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  671. +# Library General Public License for more details.
  672. +#
  673. +# You should have received a copy of the GNU Library General Public License
  674. +# along with this library; see the file COPYING.LIB.  If not, write to
  675. +# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  676. +# Boston, MA 02110-1301, USA.
  677. +#
  678. +#############################################################################
  679. +
  680. +tool="`basename $0`.exe"
  681. +echo "Calling $tool"
  682. +wine $EPOCROOT/epoc32/tools/$tool "$@"
  683. --
  684. 1.7.5.4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement