Skip to content

Commit 183a516

Browse files
committed
debug2
1 parent 04fe327 commit 183a516

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

Build/BaseEnvironment.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
import subprocess
44

55
def Test(target, source, env):
6+
print "YYY: " + str(source[0])
7+
print "YYY: " + str(source[0].abspath)
8+
print "YYY: " + os.path.normpath(str(source[0]))
9+
print "YYY: " + os.path.abspath(str(source[0]))
10+
print "YYY: " + os.path.abspath('.')
11+
12+
print "ZZZ: " + os.getcwd()
13+
print "ZZZ: " + os.path.abspath(os.getcwd())
14+
print "ZZZ: " + " ".join(os.listdir('.'))
15+
616
proc = subprocess.Popen(source[0].abspath)
717
proc.wait()
818
print "\n============================="

Build/NTEnvironment.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ def __init__(self, **kw):
99

1010
self.ConfigureCompiler()
1111

12-
self['ENV']['INCLUDE'] = self['CPPPATH']
13-
self['ENV']['LIB'] = self['LIBPATH']
14-
self['ENV']['PATH'] = os.environ['PATH']
12+
# self['ENV']['INCLUDE'] = self['CPPPATH']
13+
# self['ENV']['LIB'] = self['LIBPATH']
14+
# self['ENV']['PATH'] = os.environ['PATH']
1515

1616
def ConfigureCompiler(self):
1717
cxx = self.WhereIs(self['CXX'])
@@ -24,11 +24,12 @@ def ConfigureCompiler(self):
2424
print "XXX: " + cxx_dir
2525

2626
if cxx_bin.startswith("cl"):
27-
common = cxx_dir + "\..\.."
28-
if os.path.exists(common + "\Common\IDE"):
29-
os.environ['PATH'] = common + "\Common\IDE" + ";" + cxx_dir
30-
elif os.path.exists(common + "\Common7\IDE"):
31-
os.environ['PATH'] = common + "\Common7\IDE" + ";" + cxx_dir
27+
# common = cxx_dir + "\..\.."
28+
# if os.path.exists(common + "\Common\IDE"):
29+
# os.environ['PATH'] = common + "\Common\IDE"
30+
# elif os.path.exists(common + "\Common7\IDE"):
31+
# os.environ['PATH'] = common + "\Common7\IDE"
32+
# os.environ['PATH'] += ";" + cxx_dir
3233

3334
# proc = Popen(cxx_bin, stderr=STDOUT, stdout=PIPE)
3435
# proc.wait()
@@ -53,8 +54,8 @@ def ConfigureCompiler(self):
5354
self.AppendUnique(CXXFLAGS = ['/EHsc', '/GR', '/DBOOST_ALL_NO_LIB'])
5455
self['CXX'] = cxx_bin
5556
# self['LINK'] = "link.exe"
56-
self['CPPPATH'] = os.path.abspath(cxx_dir + "\..\include")
57-
self['LIBPATH'] = os.path.abspath(cxx_dir + "\..\lib")
57+
# self['CPPPATH'] = os.path.abspath(cxx_dir + "\..\include")
58+
# self['LIBPATH'] = os.path.abspath(cxx_dir + "\..\lib")
5859

5960
sdk_dir = ""
6061
if os.getenv('MicrosoftPlatformSDK', None) != None:

0 commit comments

Comments
 (0)