Subversion Repositories filter_foundry

Compare Revisions

Regard whitespace Rev 437 → Rev 436

/trunk/wpj/make_watcom.bat
File deleted
/trunk/wpj/after.bat
File deleted
/trunk/wpj/before.bat
File deleted
/trunk/wpj/README.md
2,7 → 2,7
Building FilterFoundry with OpenWatcom
======================================
 
Tested with OpenWatcom 1.9 and OpenWatcom 2.0 together with Adobe Photoshop SDK 2021.
Most recently tested with OpenWatcom 1.9 and Adobe Photoshop SDK 2021.
 
 
Prerequisites
26,10 → 26,8
-----------
 
There is no special build setup required.
Just open **wpj\filterfoundry.wpj** in Watcom's IDE and click "Make target".
Just open wpj\filterfoundry.wpj in Watcom's IDE and click "Make target".
 
Alternatively, run **wpj\make_watcom.bat** which should do the same.
 
IMPORTANT: Your path must not contain whitespaces!
For example, you must not use "C:\Users\John Doe\SVN\Filter Foundry\".
 
49,7 → 47,6
The error message has the error code E062.
Creating an empty sdkddkver.h does not work anymore.
You need to comment out the line in PITypes.h.
(Bug will be fixed: https://github.com/open-watcom/open-watcom-v2/issues/770 )
 
- It is important that the correct calling convention is used.
The calling convention needs to be set in
64,31 → 61,18
 
- The path to the Photoshop SDK and to Win Flex/Bison (PreBuild event)
is already set in the project file. Please note that changing these
paths is a bit complicated. There are several bugs in older versions of OpenWatcom
paths is a bit complicated. There are several bugs in OpenWatcom
where you can only make the pre-build-events shorter, but not longer).
You have to edit the WPJ file with a text editor.
Remember how many characters you have added or deleted,
and subtract or add them to the number written above the before-instructions.
This is the number of bytes of the commands.
and subtract or add them to the number written above the before-instructions
(currently 367). This is the number of bytes of the commands.
 
- In the code, it is important that all variables are declared at the
top of the scope (curly brackets) and that there is no executable code or
assignments in between.
 
Wrong:
 
int a;
int b = GetXYZ();
int c;
 
Correct:
 
int a;
int b;
int c;
b = GetXYZ();
 
 
Attention! Some optimizations break the code
--------------------------------------------
 
/trunk/wpj/filterfoundry.tgt
18,12 → 18,15
1
4
MCommand
15
call before.bat
17
cd ..
 
cd wpj
 
5
MCommand
16
call after.bat
42
copy filterfoundry.dll FilterFoundry.8bf
 
6
MItem
/trunk/wpj/filterfoundry.wpj
4,20 → 4,32
VpeMain
1
WRect
10704
436
1077
711
7392
8704
8722
2
MProject
3
MCommand
87
367
set PSSDK=..\photoshop_sdk\pluginsdk
set PSAPI=..\photoshop_sdk\pluginsdk\photoshopapi
cd ..
if exist y_tab.c del y_tab.c
if exist lex_yy.c del lex_yy.c
win_flex_bison\win_bison.exe parser.y -d -y
win_flex_bison\win_flex.exe --never-interactive lexer.l y.tab.c
rem IDE doesnt like multiple dots in filenames
ren y.tab.c y_tab.c
ren lex.yy.c lex_yy.c
cd wpj
4
MCommand
 
56
cd ..\3264_mixer
call foundry_3264_mixer.bat
cd ..\wpj
1
5
WFileName
30,10 → 42,10
VComponent
8
WRect
64
113
6656
6693
69
142
6661
6722
 
 
9