How to add modules silently?

Started by Ficko, December 31, 2008, 06:22:55 PM

Previous topic - Next topic

Ficko

Hi guys!

I am kind of new to RAD IDE but "old" to asm and happy to discovered this excellent tool. :U

I have some huge lib projects -over 300 asm-modules/libs- and like to manage them with RAD.

I tried to "ADD NEW/MODUL" but after about opening 20 windows the adding dramatically slows down -of course the OS is MS :(-
and after about 200 files the IDE stops responding but it creates the RAP file right and the project loads fine.

My question is:
Is there a way to "silently" add the modules -not opening every asm in a new window- or if not is there a tool that can create a RAP file?
The IDE should be able to create the PRJ in a second but it takes for 10 min. on a 3 GHz 64 bit VISTA and freeze at the end.

Any suggestion is appreciated! :bg

Ficko

KetilO

Hi Ficko

Note that the project limit is 250 files.
To add files silently, select the files in windows explorer and drag and drop them on project explorer.
This way you can add 200 files in 2 sec.

KetilO

Ficko

Thanks KetilO!

That's does the trick! :U

Sometimes things are so easy you just miss it. :wink

Ficko

Hi KetilO!

I was too euphoric before.
I still can't make this thing work. :(

To make it clear I like to build a "Library" project.

When I drag&drop all the files will be added to section "[Files]" -1 UP- not to "[Modules]" -1001 UP- in the RAP.
Therefore the incremental building "Make/Assemble Modules" doesn't work.

I tried to moveĀ  the "Files" to "Modules" or Mark "Modules" before drag&drop.
Doesn't work! :(

The files are seemingly in the "[Modules]" Group but not according the RAP.

So I thought just modify the "Make/Assemble" parameters to "2=*.obj,O,$B\ML.EXE /c /coff /Cp /nologo /I"$I",*.asm"
but that doesn't work either because the "*" get replaced by "2" for whatever reason.

Some help would be nice,
Ficko :dazzled:


KetilO

You can just let a batch file do the make. Have a look at how the masm32 does it.

@echo off

del masm32.lib                      : delete any existing MASM32 Library

dir /b *.asm > ml.rsp               : create a response file for ML.EXE
\masm32\bin\ml /c /coff @ml.rsp
if errorlevel 0 goto okml
del ml.rsp
echo ASSEMBLY ERROR BUILDING LIBRARY MODULES
goto theend

:okml
\masm32\bin\link -lib *.obj /out:masm32.lib
if exist masm32.lib goto oklink

echo LINK ERROR BUILDING LIBRARY
echo The MASM32 Library was not built
goto theend

:oklink
copy masm32.lib \masm32\lib\masm32.lib
copy masm32.inc \masm32\include\masm32.inc


:theend
if exist masm32.lib del *.obj

dir \masm32\lib\masm32.lib
dir \masm32\include\masm32.inc

pause

KetilO