Skip to content

Commit

Permalink
debug2
Browse files Browse the repository at this point in the history
  • Loading branch information
tpounds committed Sep 2, 2019
1 parent 04fe327 commit 75de092
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
12 changes: 12 additions & 0 deletions Build/BaseEnvironment.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
import subprocess

def Test(target, source, env):
print "YYY: " + str(source[0])
print "YYY: " + str(source[0].abspath)
print "YYY: " + os.path.normpath(str(source[0]))
print "YYY: " + os.path.abspath(str(source[0]))
print "YYY: " + os.path.abspath('.')

print "ZZZ: " + os.getcwd()
print "ZZZ: " + os.path.abspath(os.getcwd())
print "ZZZ: " + " ".join(os.listdir('.'))
print "ZZZ: " + " ".join(os.listdir('test'))
print "ZZZ: " + " ".join(os.listdir('test\build'))

proc = subprocess.Popen(source[0].abspath)
proc.wait()
print "\n============================="
Expand Down
21 changes: 11 additions & 10 deletions Build/NTEnvironment.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ def __init__(self, **kw):

self.ConfigureCompiler()

self['ENV']['INCLUDE'] = self['CPPPATH']
self['ENV']['LIB'] = self['LIBPATH']
self['ENV']['PATH'] = os.environ['PATH']
# self['ENV']['INCLUDE'] = self['CPPPATH']
# self['ENV']['LIB'] = self['LIBPATH']
# self['ENV']['PATH'] = os.environ['PATH']

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

if cxx_bin.startswith("cl"):
common = cxx_dir + "\..\.."
if os.path.exists(common + "\Common\IDE"):
os.environ['PATH'] = common + "\Common\IDE" + ";" + cxx_dir
elif os.path.exists(common + "\Common7\IDE"):
os.environ['PATH'] = common + "\Common7\IDE" + ";" + cxx_dir
# common = cxx_dir + "\..\.."
# if os.path.exists(common + "\Common\IDE"):
# os.environ['PATH'] = common + "\Common\IDE"
# elif os.path.exists(common + "\Common7\IDE"):
# os.environ['PATH'] = common + "\Common7\IDE"
# os.environ['PATH'] += ";" + cxx_dir

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

sdk_dir = ""
if os.getenv('MicrosoftPlatformSDK', None) != None:
Expand Down

0 comments on commit 75de092

Please sign in to comment.