Hi everyone,

I have a problem with the package I am writing. I have some non-pascal source 
code which my package must load at compile or run time into a TStringList. But 
as there is nothing like a $PkgDir macro I don't know how to find the files at 
run time. Include files would be my only option at compile time which I don't 
like as they need at least a token, which means that every source line must be 
in quotes which makes it impossible to use syntax highlighting for the 
non-pascal code.
Of course I could just put the source into my pascal code but that would be 
cumbersome, ugly and not easy to maintain.
So as a last option I wanted to copy my non-pascal source files after 
compilation of the package to a known directory (the plattforms config dir for 
example). So I wrote a little console app to do that just to realize that I 
cannot add a program to my package.
At the moment I am at a loss what to do now.
Is my only option to call fpc myself in the 'after compilation step' of the 
package compilation to compile my copy tool and after that call the tool to 
copy the files?

tia
Satan

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
_______________________________________________
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to