[Scons-users] SCons integration with IAR

Bill Deegan bill at baddogconsulting.com
Mon Jan 20 11:37:59 EST 2020


Arjuman,

Is that intended to be a SConstruct?
It's just plain python..

-Bill

On Mon, Jan 20, 2020 at 2:25 AM Akumalla Arjuman Banu via Scons-users <
scons-users at scons.org> wrote:

> Hi,
>
> currently I am working with scons with is integrated with cces IDE.
> cces: CrossCore Embedded Studio (CCES) is a world-class integrated
> development environment (IDE) for the Analog Devices Blackfin and SHARC
> processor families. It actually builds, compiles the c code. it provides
> command line interface. So, there are commands to build and clean through
> command line.
>
> I have written a sconstruct file, to invoke those commands. Here i will
> share you the code which I have written:
> import os
> import subprocess
> import threading
> import time
> choice1 = ("make all")
> choice2 = ("make clean")
> project_path1 =
> (r"C:\Users\akumallaarjuman\Desktop\pune_git_training\Test_Core_0_Core0\Debug")
>
> #performing make all for all files
> def make_all(project_path1):
>     t= time.time()
>     def proj1_th_all(project_path1):
>         os.chdir(project_path1)
>         subprocess.call("make all", shell = True)
>         files = [f for f in glob.glob(project_path1 + "**/*.dxe",
> recursive=True)]
>         for f in files:
>             print(f)
>             os.chdir(r"D:\doxygen\bin")
>             subprocess.call("doxygen project1", shell = True)
>
>     t1_all = threading.Thread(target=proj1_th_all, args=(project_path1,))
>     t1_all.start()
>     t1_all.join()
>     print("seconds:", time.time() - t)
>
> #performing make clean for all files
> def make_clean(project_path1):
>     t= time.time()
>     def proj1_th_clean(project_path1):
>         os.chdir(project_path1)
>         subprocess.call("make clean", shell = True)
>         files = [f for f in glob.glob(project_path1 + "**/*.dxe",
> recursive=True)]
>         for f in files:
>             print(f)
>             os.chdir(r"D:\doxygen\bin")
>             subprocess.call("doxygen project1", shell = True)
>
>     t1_clean = threading.Thread(target=proj1_th_clean,
> args=(project_path1,))
>     t1_clean.start()
>     t1_clean.join()
>     print("seconds:", time.time() - t)
>
>
> print ("\n BUILD AUTOMATION HELP COMMANDS")
> user_input = input ("\n Enter your command: ")
>
>     if user_input == "build all":
>         print ("\n Option Selected is build all \n")
>         t1=threading.Thread(target=make_all, args=(project_path1,))
>         t1.start()
>         t1.join()
>    if user_input=="build clean":
>         t1=threading.Thread(target=make_clean, args=(project_path1,))
>         t1.start()
>         t1.join()
>
> [1].Please help me to know whether this is the way we use scons for any IDE
> [2]. Now i want to do the same for IAR IDE, but I am not sure, as there is
> no much data available on web regarding this.
>
>
>
>
> Regards,
>
>
> Arjuman Banu
>
> Engineer | MEBU
>
> TATA ELXSI
> ------------------------------
> *From:* Scons-users <scons-users-bounces at scons.org> on behalf of Paweł
> Tomulik <ptomulik at meil.pw.edu.pl>
> *Sent:* Saturday, January 18, 2020 5:37 AM
> *To:* scons-users at scons.org <scons-users at scons.org>
> *Subject:* Re: [Scons-users] SCons integration with IAR
>
> ------------------------------
> **This is an external email. Please check the sender’s full email address
> (not just the sender name) and exercise caution before you respond or click
> any embedded link/attachment.**
> ------------------------------
> IDE for embedded software development, I guess.
>
> https://www.iar.com/product-overview/
> <https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.iar.com%2Fproduct-overview%2F&data=02%7C01%7Cakumallaarjuman%40tataelxsi.co.in%7C6f6780a6706d42c57e9108d79baa6e58%7Cad6a39dd96b6436882daf2ec4d92e26a%7C0%7C1%7C637149028667579382&sdata=jSkrPSywsEJFi3diB%2BTscltLP7kPAusXJ70nSXW%2B%2BlE%3D&reserved=0>
>
> W dniu 17.01.2020 o 15:49, Bill Deegan pisze:
>
> What's IAR?
>
> On Fri, Jan 17, 2020 at 6:13 AM Akumalla Arjuman Banu via Scons-users <
> scons-users at scons.org> wrote:
>
> Can anyone tell me how to integrate SCons with IAR?
> I know scons can be integrated with codeblocks and visual studio. But I am
> not getting detailed information regarding IAR IDE integration with SCons. If
> there are any websites or forums, Please share here.
>
> Regards,
>
>
> Arjuman Banu
>
> Engineer | MEBU
>
> TATA ELXSI
> ------------------------------
> *Disclaimer: This email and any files transmitted with it are confidential
> and intended solely for the use of the individual or entity to whom they
> are addressed. If you are not the intended recipient of this message , or
> if this message has been addressed to you in error, please immediately
> alert the sender by reply email and then delete this message and any
> attachments. If you are not the intended recipient, you are hereby notified
> that any use, dissemination, copying, or storage of this message or its
> attachments is strictly prohibited. Email transmission cannot be guaranteed
> to be secure or error-free, as information could be intercepted, corrupted,
> lost, destroyed, arrive late or incomplete, or contain viruses. The sender,
> therefore, does not accept liability for any errors, omissions or
> contaminations in the contents of this message which might have occurred as
> a result of email transmission. If verification is required, please request
> for a hard-copy version. *
> ------------------------------
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
> <https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpairlist4.pair.net%2Fmailman%2Flistinfo%2Fscons-users&data=02%7C01%7Cakumallaarjuman%40tataelxsi.co.in%7C6f6780a6706d42c57e9108d79baa6e58%7Cad6a39dd96b6436882daf2ec4d92e26a%7C0%7C1%7C637149028667589374&sdata=dKgbpdibVxVi5pExBtegagDiuVB3D%2FI2JzDCbcA4wYk%3D&reserved=0>
>
>
> _______________________________________________
> Scons-users mailing listScons-users at scons.orghttps://pairlist4.pair.net/mailman/listinfo/scons-users <https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpairlist4.pair.net%2Fmailman%2Flistinfo%2Fscons-users&data=02%7C01%7Cakumallaarjuman%40tataelxsi.co.in%7C6f6780a6706d42c57e9108d79baa6e58%7Cad6a39dd96b6436882daf2ec4d92e26a%7C0%7C1%7C637149028667589374&sdata=dKgbpdibVxVi5pExBtegagDiuVB3D%2FI2JzDCbcA4wYk%3D&reserved=0>
>
>
> --
> Pawel Tomulik
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20200120/a8461d4e/attachment-0001.html>


More information about the Scons-users mailing list