[Lazarus] How to make a project automatically crossplatform

Frank Church vfclists at gmail.com
Fri Aug 12 12:08:42 CEST 2011


I want to use macros to make my app compatible on both Linux and Windows.



First part is to automatically switch between Win32 and Gtk2 or Qt. On
Windows because it defaults to Win32 I don't have to set it explicitly. Can
the default be changed for each IDE, which I suppose is defined  is stored
in the --pcp configuration, or can it be set in a project or package macro?



Second part is to set some file locations automatically, as the directories
and library source locations will change. Because my custom libraries ppu
output are stored in my --pcp folder I don't see a problem there, but I see
one in the source file and other file locations. My idea is to use macros
based on  Env(EnvironmentVariables)   present in my user account on both
platforms, but it seems they are not stored in the lpi and lpk files.



Am I worrying to much? Will having everything in packages especially my own
utility libraries available on both platforms automatically resolve path
issues?



My main issue is I need to work from the same branch in the git repo, so
setting incompatible switches in the IDE is not acceptable, they are both
pushing and merging from the same git branch


-- 
Frank Church

=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110812/2321fdd0/attachment-0002.html>


More information about the Lazarus mailing list