Rev 197 | Rev 237 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 197 | Rev 221 | ||
---|---|---|---|
Line 1... | Line -... | ||
1 | This file is part of "Filter Foundry", a filter plugin for Adobe Photoshop |
- | |
2 | Copyright (C) 2003-2009 Toby Thain, toby@telegraphics.com.au |
- | |
3 | Copyright (C) 2018-2019 Daniel Marschall, ViaThinkSoft |
- | |
4 | - | ||
5 | This program is free software; you can redistribute it and/or modify |
- | |
6 | it under the terms of the GNU General Public License as published by |
- | |
7 | the Free Software Foundation; either version 2 of the License, or |
- | |
8 | (at your option) any later version. |
- | |
9 | - | ||
10 | This program is distributed in the hope that it will be useful, |
- | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
- | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
- | |
13 | GNU General Public License for more details. |
- | |
14 | - | ||
15 | You should have received a copy of the GNU General Public License |
- | |
16 | along with this program; if not, write to the Free Software |
- | |
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
- | |
18 | - | ||
19 | - | ||
20 | Building the Filter Foundry plugin for Photoshop |
1 | Building the Filter Foundry plugin for Photoshop |
21 | ------------------------------------------------ |
2 | ------------------------------------------------ |
22 | 3 | ||
23 | Notes on source code |
4 | Notes on source code |
24 | -------------------- |
5 | -------------------- |
Line 49... | Line 30... | ||
49 | Before attempting to build, you must edit the makefiles |
30 | Before attempting to build, you must edit the makefiles |
50 | ("FilterFoundry.make" for MPW), or change your |
31 | ("FilterFoundry.make" for MPW), or change your |
51 | CodeWarrior project's access paths, to reflect the SDK's installed location. |
32 | CodeWarrior project's access paths, to reflect the SDK's installed location. |
52 | 33 | ||
53 | To build the Carbon plugin with an SDK prior to version 7.0, |
34 | To build the Carbon plugin with an SDK prior to version 7.0, |
54 | it is necessary to edit the SDK file :PhotoshopAPI:Resources:PIPL.r |
35 | it is necessary to edit the SDK file |
- | 36 | ||
- | 37 | :PhotoshopAPI:Resources:PIPL.r |
|
- | 38 | ||
55 | as follows: |
39 | as follows: |
56 | 1. find the line "case CodePowerPC:" |
40 | 1. find the line "case CodePowerPC:" |
57 | 2. duplicate the next 15 lines |
41 | 2. duplicate the next 15 lines |
58 | 3. in the copy only, change "case CodePowerPC:" to "case CodeCarbonPowerPC:" |
42 | 3. in the copy only, change "case CodePowerPC:" to "case CodeCarbonPowerPC:" |
59 | and change the 5 occurrences of "pwpc" to "ppcb" |
43 | and change the 5 occurrences of "pwpc" to "ppcb" |
Line 77... | Line 61... | ||
77 | 61 | ||
78 | Depending on how the source files were extracted, it may be necessary to set |
62 | Depending on how the source files were extracted, it may be necessary to set |
79 | the correct Mac file types before attempting to build. In MPW, this can |
63 | the correct Mac file types before attempting to build. In MPW, this can |
80 | be done as follows. First set the current directory to the Filter Foundry |
64 | be done as follows. First set the current directory to the Filter Foundry |
81 | source directory, then: |
65 | source directory, then: |
- | 66 | ||
82 | setfile -t TEXT Å.[chrly] Å.make Å.rc ::common:tt:Å ::common:adobeplugin:Å |
67 | setfile -t TEXT Å.[chrly] Å.make Å.rc ::common:tt:Å ::common:adobeplugin:Å |
- | 68 | ||
83 | This can also be necessary after regenerating y.tab.c and lex.yy.c. |
69 | This can also be necessary after regenerating y.tab.c and lex.yy.c. |
84 | These files are generated from the parser and lexical analyzer definitions, |
70 | These files are generated from the parser and lexical analyzer definitions, |
85 | parser.y and lexer.l, by a UNIX Terminal (not MPW!) command such as: |
71 | parser.y and lexer.l, by a UNIX Terminal (not MPW!) command such as: |
- | 72 | ||
86 | make y.tab.c lex.yy.c |
73 | make y.tab.c lex.yy.c |
87 | 74 | ||
88 | If building with MPW, finished binaries are left in the "debug" directory; |
75 | If building with MPW, finished binaries are left in the "debug" directory; |
89 | these are good for testing and debugging, as they can be updated |
76 | these are good for testing and debugging, as they can be updated |
90 | and re-run without having to re-launch Photoshop. |
77 | and re-run without having to re-launch Photoshop. |