Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-08

How to make a project automatically crossplatform

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Frank Church

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.freepascal.org/pipermail/lazarus/attachments/20110812/2321fdd0/attachment.html>

Reply by email