Old 12th June 2006, 09:41   #1
quest
Junior Member
 
Join Date: Jun 2006
Posts: 2
Detecting build platform

Certain parts of my installer script do build time operations that can only be done on windows boxen, most notably gathering registration info from shared DLLs. However, I would like to be able to build installers on Linux anyway, without e.g. DLL registration. Therefore, I'd like to be able to do conditional compilation based on build platform. I can't find out how to access build platform. Can anyone give me a clue?
quest is offline   Reply With Quote
Old 12th June 2006, 11:58   #2
{_trueparuex^}
Senior Member
 
{_trueparuex^}'s Avatar
 
Join Date: Dec 2005
Location: Glow
Posts: 285
Wink

Since NSIS v2.16 there is NSIS_WIN32_MAKENSIS define for just that

!ifdef NSIS_WIN32_MAKENSIS
; Do your win32 thing
!else
; Do your linux thing
!endif
{_trueparuex^} is offline   Reply With Quote
Old 13th June 2006, 10:18   #3
quest
Junior Member
 
Join Date: Jun 2006
Posts: 2
Verily. Thanks.
quest is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump