Subversion Repositories filter_foundry

Compare Revisions

Regard whitespace Rev 436 → Rev 437

/trunk/wpj/README.md
2,7 → 2,7
Building FilterFoundry with OpenWatcom
======================================
 
Most recently tested with OpenWatcom 1.9 and Adobe Photoshop SDK 2021.
Tested with OpenWatcom 1.9 and OpenWatcom 2.0 together with Adobe Photoshop SDK 2021.
 
 
Prerequisites
26,8 → 26,10
-----------
 
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\".
 
47,6 → 49,7
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
61,18 → 64,31
 
- 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 OpenWatcom
paths is a bit complicated. There are several bugs in older versions of 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
(currently 367). This is the number of bytes of the commands.
and subtract or add them to the number written above the before-instructions.
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/after.bat
0,0 → 1,4
copy filterfoundry.dll FilterFoundry.8bf
cd ..\3264_mixer
call foundry_3264_mixer.bat
cd ..\wpj
/trunk/wpj/before.bat
0,0 → 1,11
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
echo xx > betabeta
 
/trunk/wpj/filterfoundry.tgt
18,15 → 18,12
1
4
MCommand
17
cd ..
 
cd wpj
 
15
call before.bat
5
MCommand
42
copy filterfoundry.dll FilterFoundry.8bf
16
call after.bat
 
6
MItem
/trunk/wpj/filterfoundry.wpj
4,32 → 4,20
VpeMain
1
WRect
1077
711
10704
436
7392
8722
8704
2
MProject
3
MCommand
367
87
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
42,10 → 30,10
VComponent
8
WRect
69
142
6661
6722
64
113
6656
6693
 
 
9
/trunk/wpj/make_watcom.bat
0,0 → 1,20
echo off
 
cd /d "%~dp0"
 
del *.mk *.mk1 *.obj *.lib *.map *.dll *.8bf *.err *.lk1 *.res
ide2make filterfoundry.tgt
 
set PSSDK=..\photoshop_sdk\pluginsdk
set PSAPI=..\photoshop_sdk\pluginsdk\photoshopapi
 
wmake -f project.mk
 
cd /d "%~dp0"
rem dir *.8bf
 
echo.
echo.
echo.
echo Finished. Please check console output.
pause.