Subversion Repositories filter_foundry

Rev

Rev 190 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
106 dmarschall 1
    This file is part of "Filter Foundry", a filter plugin for Adobe Photoshop
192 daniel-mar 2
    Copyright (C) 2003-2009 Toby Thain, toby@telegraphics.com.au
3
    Copyright (C) 2018-2019 Daniel Marschall, ViaThinkSoft
2 toby 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
 
69 toby 19
 
2 toby 20
Building the Filter Foundry plugin for Photoshop
21
------------------------------------------------
22
 
23
Notes on source code
64 toby 24
--------------------
69 toby 25
Source code, makefiles and IDE projects under GPL license are provided
26
for MPW (Classic & Carbon PowerPC targets), CodeWarrior 7
192 daniel-mar 27
(Classic & Carbon PowerPC, Win32, 68K targets),
28
Microsoft Visual C++ (Win32 target), OpenWatcom (Win32 target),
29
and mingw32 (Win32 target).
2 toby 30
 
192 daniel-mar 31
A Photoshop SDK is required (available from Adobe Systems,
32
https://www.adobe.com/devnet/photoshop/sdk.html ).
69 toby 33
The SDK was also distributed with Photoshop 6.0 and earlier.
192 daniel-mar 34
The source code has been built with SDK 6.0, CS2, CS3 beta, and 2017 but older
69 toby 35
versions can be used.
2 toby 36
(If building with SDK v4, edit 68k.r, carbon.r, classic.r, and PiMI_68k.r
69 toby 37
to remove references to "PIResDefines.h", "PiPL.r" and "PiMI.r" and replace
38
with a single #include "PIGeneral.r"; also remove "fmtCanWriteTransparency"
39
from PiPL_common.r.)
2 toby 40
 
192 daniel-mar 41
 
42
Mac notes
43
---------
69 toby 44
Before attempting to build, you must edit the makefiles
192 daniel-mar 45
("FilterFoundry.make" for MPW), or change your
69 toby 46
CodeWarrior project's access paths, to reflect the SDK's installed location.
2 toby 47
 
192 daniel-mar 48
To build the Carbon plugin with an SDK prior to version 7.0,
69 toby 49
it is necessary to edit the SDK file :PhotoshopAPI:Resources:PIPL.r
50
as follows:
2 toby 51
1. find the line "case CodePowerPC:"
52
2. duplicate the next 15 lines
69 toby 53
3. in the copy only, change "case CodePowerPC:" to "case CodeCarbonPowerPC:"
2 toby 54
   and change the 5 occurrences of "pwpc" to "ppcb"
55
 
192 daniel-mar 56
Photoshop 7.0, CS, and CS2 will load Carbon/PEF plugins built in this manner.
69 toby 57
Only CodeWarrior and MPW can build these.
2 toby 58
 
69 toby 59
Photoshop CS2 also supports Mach-O format plugins. For details on how
60
these are built, see the Makefile (target "osx"). 
61
 
62
Photoshop CS3 supports "universal" (or "fat") plugins having native code
63
for both PowerPC and Intel architectures. The provided Makefile can build
64
a "universal" plugin if you have the CS3 "Beta" SDK (use target "fat").
65
 
66
Note that building Mach-O plugins requires Apple's Developer Tools
192 daniel-mar 67
to be installed (from the DVD that came with your Mac, or downloaded from
69 toby 68
http://developer.apple.com/ if you have an ADC login).
69
 
2 toby 70
The Mac build requires Apple's MoreFiles library, which can be obtained via
186 dmarschall 71
https://developer.apple.com/library/archive/samplecode/MoreFiles/
2 toby 72
 
73
Depending on how the source files were extracted, it may be necessary to set
69 toby 74
the correct Mac file types before attempting to build. In MPW, this can
75
be done as follows. First set the current directory to the Filter Foundry
76
source directory, then:
77
	setfile -t TEXT Å.[chrly] Å.make Å.rc ::common:tt:Å ::common:adobeplugin:Å
15 toby 78
This can also be necessary after regenerating y.tab.c and lex.yy.c.
192 daniel-mar 79
These files are generated from the parser and lexical analyzer definitions,
69 toby 80
parser.y and lexer.l, by a UNIX Terminal (not MPW!) command such as:
15 toby 81
	make y.tab.c lex.yy.c
2 toby 82
 
69 toby 83
If building with MPW, finished binaries are left in the "debug" directory;
84
these are good for testing and debugging, as they can be updated
85
and re-run without having to re-launch Photoshop.
2 toby 86
 
69 toby 87
The finished binary, which contains executables for Classic and Carbon,
64 toby 88
is left in the "dist" directory.
89
 
192 daniel-mar 90
While a CodeWarrior 7 project is provided, MPW and mingw32 are recommended 
91
as they produce much smaller executables.
64 toby 92
 
192 daniel-mar 93
MPW (Macintosh Programmer's Workshop) runs on PowerPC and
94
68K Macs under Mac OS 9 or earlier, or Classic under OS X.
95
 
96
 
106 dmarschall 97
Windows notes
98
-------------
99
 
172 dmarschall 100
BUILDING WITH VISUAL STUDIO
192 daniel-mar 101
	* For Windows, Visual Studio works best (the community edition is even free),
102
	  and it can compile the 32-bit and 64-bit plugins for Windows.
103
	* Download: https://visualstudio.microsoft.com/de/vs/community/
104
	* To build in Windows with Visual Studio (IDE or command line), see the visual_studio
105
	  subdirectory and notes (README.TXT).
106
	* Most recently tested with Visual C++ 2019 with Adobe Photoshop SDK CC 2017
107 dmarschall 107
 
172 dmarschall 108
BUILDING WITH OPEN WATCOM
192 daniel-mar 109
	* OpenWatcom can also be used, but only for 32 Bit, and it is officially not
110
	  supported by Adobe.
111
	* Download: https://sourceforge.net/projects/openwatcom/files/
112
	* To build in Windows with the OpenWatcom IDE, see the wpj
113
	  subdirectory and notes (README.TXT), kindly provided by Peter Heckert and Daniel Marschall.
114
	* Most recently tested with Open Watcom 1.9 with Adobe Photoshop SDK CC 2017
106 dmarschall 115
 
192 daniel-mar 116
BUILDING WITH MINGW32
117
	* Mingw32 can be hosted on virtually any UNIX or Linux system, or under Windows.
118
	* Download: http://mingw-w64.org/doku.php/download
119
	* Before attempting to build, you must edit the file "Makefile".