[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dependency scanner include path
From: |
Zachary Deretsky |
Subject: |
Dependency scanner include path |
Date: |
Wed, 1 Nov 2000 13:07:22 -0800 |
Only files in the local directory are checked, not on the include path.
What am I doing wrong? I use cons 2.1.2.
Here is my scanner:
-------------------------------------
sub cons::iScan {
my(@includes);
do {
if(/^%(include|import|extern)\s+(\w+\.)(i|ii|iic|iim|hpp)\s*$/) {
push (@includes, "$2$3");
};
}
while <SCAN> ;
if(scalar(@includes)) {
print "INCLUDES: ", join(' ', @includes), "\n";
};
close(SCAN);
@includes
};
----------------------------------------
Here is the relevant part of Conscript:
-------------------------------------------
$swigPath = $CONS->{ENV}{SWIG_LIB} . "$absInclude;";
print "SWIG PATH: $swigPath\n";
$CONS->QuickScan(\&cons::iScan, "rings.i", $swigPath);
-------------------------------------------
If I change a file in the local directory (ctm.ii, rtc.ii, rings.ii,
rings.iim) then rebuild happens.
If I change a file elsewhere on the SWIG PATH (rngCommon.hpp) , then nothing
happens.
Can it be a problem with colon versus semicolon as path separator?
How can I use colon on NT with paths with drive letters?
Here the output for the second case:
-----------------------------------------------
D:\gand_dbg\nt>cons -d -- -debug | tee cons3.log
WE ARE IN D:/gand_dbg/nt
SWIG PATH:
.\;r:\Tpt\Nt\Lib\swig_lib;exportNT\debug\swig;exportNT\debug\include;
Target buildNT\debug\ringspyapi\src\rings.cpy:
buildNT\debug\ringspyapi\src\rings.i
Checking buildNT\debug\ringspyapi\src\rings.cpy
Checking buildNT\debug\ringspyapi\src\rings.i
INCLUDES: gandalf.i
INCLUDES: autpyapi.ii
INCLUDES: geom.ii
INCLUDES: ctm.ii
INCLUDES: rtc.ii
INCLUDES: rngCommon.hpp
INCLUDES: rings_typemaps.i
INCLUDES: rings.ii
INCLUDES: rings.iim
Checking buildNT\debug\ringspyapi\src\rings.iim
Checking buildNT\debug\ringspyapi\src\rings.ii
Checking buildNT\debug\ringspyapi\src\rings.iic
Checking exportNT\debug\bin\rings.dll
Checking buildNT\debug\ringspyapi\src\rtc.ii
Checking buildNT\debug\ringspyapi\src\ctm.ii
Target buildNT\debug\ringspyapi\src\rings.ii:
buildNT\debug\ringspyapi\src\rings.iic exportNT\debug\
bin\rings.dll exportNT\debug\bin\rings.dll
Target buildNT\debug\ringspyapi\src\ringspyapi.py:
buildNT\debug\ringspyapi\src\rings.i
Checking buildNT\debug\ringspyapi\src\ringspyapi.py
Target exportNT\debug\swig\rings.i: buildNT\debug\ringspyapi\src\rings.i
Checking exportNT\debug\swig\rings.i
Target exportNT\debug\swig\rings.ii: buildNT\debug\ringspyapi\src\rings.ii
Checking exportNT\debug\swig\rings.ii
cons.bat: "." is up-to-date.
------------------------------------------------------------------------
I will appreciate guidance here. Zach
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Dependency scanner include path,
Zachary Deretsky <=