NO

Author Topic: Add-In SelCompiler  (Read 6731 times)

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1845
Add-In SelCompiler
« on: August 04, 2010, 07:12:19 pm »
Deprecated
Change compiler setting CC AS LINK RC INCLUDE LIB and ASFLAGS CCFLAGS LINKFLAGS RCFLAGS from SelCompiler.ini settings.
You can change like AS from poasm.exe to JWAsm.exe and back.
Every settings block must have Title that comes to button.

SelCompiler-1.2

Usage:

Copy SelCompiler.dll to PellesC AddIns (AddIns64) folder.
Restart PellesC.
From menu Tools -> Customize... select Add-ins tab.
Check Select compiler from list.
Close dialog with button OK.
New button SEL CC should appear to toolbar.

Press button SEL CC from toolbar with tooltip text Select Compiler
To add new entry:
 - press Options ...
 - Fill Title: field for new button / entry name
 - Fill fields and flags you need
 - Press button New

EDIT 20100805: Added setup dialog and some bug fixes.
EDIT 20100806: Added flags and changed format. (SelCompiler_WS-8.zip)
                      Bug fix CCFLAGS
EDIT 20100807: Added button for new option (SelCompiler_WS-9.zip).
                      Now it's possible create options from setup dialog if you have writing rights to AddIns folder.

EDIT 20100809: Cleaned version uses different ini-file format. (SelCompiler.zip)

EDIT 20110901: This version have delete/copy options and use title as section name. (SelCompilerWS-1.3)
EDIT 20110903: Fix for set options.
EDIT 20110910: Browse file and folder buttons. (SelCompiler-1.2.2.zip)
                       New button saves modified fields.

New:
Code: [Select]
[JWAsm]
Title=JWAsm
AS=c:\code\jahpeth\JWAsm.exe
ASF=-coff -Zi

options:
CC CCF AS ASF LINK LINKF RC RCF INCLUDE LIB
« Last Edit: February 25, 2014, 02:56:38 pm by timovjl »
May the source be with you

blzbb

  • Guest
Re: Add-In SelCompiler
« Reply #1 on: August 05, 2010, 11:38:20 pm »
thank you for you useful add-in  :D
it would be greate if you add support of other option like ASFLAGS in the future
becuase for using assembler like jwasm we have to manually add some parameter to ASFLAGS
jwasm use omf object by default that have conflict with pelesC default object i mean coff

BlZbB

blzbb

  • Guest
Re: Add-In SelCompiler
« Reply #2 on: August 07, 2010, 06:49:54 am »
thank you timovjl

BlZbB

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1845
Re: Add-In SelCompiler
« Reply #3 on: September 10, 2011, 11:30:47 am »
SelCompiler-1.2.1

Usage:

Copy SelCompiler.dll to PellesC AddIns (AddIns64) folder.
Restart PellesC.
From menu Tools -> Customize... select Add-ins tab.
Check Select compiler from list.
Close dialog with button OK.
New button SEL CC should appear to toolbar.

Press button SEL CC from toolbar with tooltip text Select Compiler
To add new entry:
 - press Options ...
 - Fill Title: field for new button / entry name
 - Fill fields and flags you need
 - Press button New

EDIT: New button saves modified fields only.
« Last Edit: September 10, 2011, 10:18:41 pm by timovjl »
May the source be with you

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1845
Re: Add-In SelCompiler
« Reply #4 on: February 07, 2012, 10:07:28 am »
SelCompiler-1.2.3 for PellesC v 6.50

This version use AddIn_SetProjectShells macro to change ppj-file commandline macro.
For example with bcc32/TurboC++ use:
$(CC) $(CCFLAGS) -o"$@" "$!" instead of $(CC) $(CCFLAGS) "$!" -Fo"$@"
$(LINK) $(LINKFLAGS) $** ,"$@" instead of $(LINK) $(LINKFLAGS) -out:"$@" $**

MS rc.exe need this: $(RC) $(RCFLAGS) -Fo"$@" "$!"


EDIT 20120311: Fix missing additional \0 in parameter for AddIn_SetProjectShells() macro
« Last Edit: March 11, 2012, 10:59:30 am by timovjl »
May the source be with you

CLR

  • Guest
Re: Add-In SelCompiler
« Reply #5 on: February 09, 2012, 05:24:00 pm »
Very nice. Thanks.

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1845
Re: Add-In SelCompiler
« Reply #6 on: February 24, 2014, 07:32:49 pm »
Updated:
EDIT: 2014-11-05 Another fix to save, buffer size bigger. SelCompilerWS-1.5_a4.zip

With it these are useful to:
Project options:
http://forum.pellesc.de/index.php?topic=5248.msg20172#msg20172

msvc errorline handler:
http://forum.pellesc.de/index.php?topic=3124.msg11807#msg11807
« Last Edit: November 05, 2014, 01:43:25 pm by TimoVJL »
May the source be with you

Offline TimoVJL

  • Global Moderator
  • Member
  • *****
  • Posts: 1845
Re: Add-In SelCompiler
« Reply #7 on: November 05, 2014, 01:42:57 pm »
Updated:
EDIT: 2014-11-07 fix to save, buffer sizes bigger, setup dialog height in sizing.  SelCompilerWS-1.5_a6.zip

EDIT: 2016-11-08 some fixes for dialogs  SelCompilerWS-1.5_a7.zip
« Last Edit: November 08, 2016, 11:06:41 am by TimoVJL »
May the source be with you