|
![]() Keil 8051 Tools
![]() Settings include-Paths with subfolders?
|
| next newest topic | next oldest topic |
| Author | Topic: Settings include-Paths with subfolders? |
|
Scotty Member |
Hi, anyone knows if it's possible to set a include-Path which also uses subfolders? Regards, Scotty IP: Logged |
|
worknhard9062 Member |
Scotty, In PC development environments (I'm familiar with Borland Builder but maybe also applies to VC++, etc) there seems to be some dialog box whereby include paths can be specified. One or more paths can be specified, separated by semi colons. My Zilog IDE supports this but I don't think the Silabs IDE does. Not directly anyway. That seems to leave you with whatever mechanisms are available with the tools themselves. I know Keil supports some form of command line include file specification but what you're talking about could be cumbersome to do that way. Erik M may recommend batch (BAT) files, which are perfectly acceptable but still requiring command line specification. I think there is also a way to set "environment variables" that the tools can query at assemble/ compile time and I've used this method succesfully within batch files before, for the Keil tools though. I can't speak for SDCC et al. Hope that helps a little. ------------------ IP: Logged |
|
erikm Member |
Erik M may recommend batch (BAT) files, which are perfectly acceptable but still requiring command line specification I only recommend .bat for things the IDE can not do, if you are happy living with the limitations of the IDE, stay happy. With a .bat file you can do any selection to a build directory with or without wildcards. I have projects that grab files from here, files from there and a specific file only from somewhere else, try that with the IDE. My 'conversion' to .bat happened when I were to build 47 different builds from the same group of files and the "IDE answer" was "make 47 project fies". That would be acceptable in a static environment, but making the same change n 47 projects (and rememebering to do it in them all) is not acceptable. Erik [This message has been edited by erikm (edited August 24, 2010).] IP: Logged |
|
Scotty Member |
Hi, @Steve: I think there is also a way to set "environment variables" that the tools can query at assemble/ compile time and I've used this method succesfully within batch files before, for the Keil tools though. @Erik: Regards, Scotty IP: Logged |
|
erikm Member |
here is a fairly simple example: @echo off del *.lst if "%1" == "L" goto l1 :g1 :notyp :common call Scmp _WDinit :exit cd ..\mk
:e1 Erik IP: Logged |
|
Scotty Member |
Hi Erik, thank you for the bat example. I will go through it. Regards, Scotty IP: Logged |
|
foleypm New Member |
if you use the incdir(..\subfoldername) compiler directive you can have the compiler search through subfolders within your project directory structure. IP: Logged |
|
Scotty Member |
Hi foleypm, if you use the incdir(..\subfoldername) compiler directive you can have the compiler search through subfolders within your project directory structure. Regards, Scotty IP: Logged |
|
erikm Member |
always project dependent one of my reasons to not use the IDE. with a well built .bat file, you can have everyting controlled by ONE file e.g. if %1 == '1' goto project 1 etc can maintain the commonality while allowing the project dependent stuff to be so. Erik IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
Have you seen our MCU Knowledge Base?