mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-23 00:56:21 +03:00
zipped gmock and gtest
This commit is contained in:
parent
1f50d1b36c
commit
b5dc94ca92
Binary file not shown.
BIN
ext/gmock-1.6.0.zip
Normal file
BIN
ext/gmock-1.6.0.zip
Normal file
Binary file not shown.
BIN
ext/gtest-1.6.0.zip
Normal file
BIN
ext/gtest-1.6.0.zip
Normal file
Binary file not shown.
@ -252,6 +252,12 @@ class InternalCommands:
|
||||
|
||||
# cryptoPP dir with version number
|
||||
cryptoPPDir = 'cryptopp562'
|
||||
|
||||
# gtest dir with version number
|
||||
gtestDir = 'gtest-1.6.0'
|
||||
|
||||
# gmock dir with version number
|
||||
gmockDir = 'gmock-1.6.0'
|
||||
|
||||
win32_generators = {
|
||||
1 : Generator('Visual Studio 10'),
|
||||
@ -333,6 +339,38 @@ class InternalCommands:
|
||||
zip = zipfile.ZipFile(zipFilename)
|
||||
zip.extractall(dir)
|
||||
|
||||
def checkGTest(self):
|
||||
|
||||
dir = self.extDir + '/' + self.gtestDir
|
||||
if (os.path.isdir(dir)):
|
||||
return
|
||||
|
||||
zipFilename = dir + '.zip'
|
||||
if (not os.path.exists(zipFilename)):
|
||||
raise Exception('GTest zip not found at: ' + zipFilename)
|
||||
|
||||
if not os.path.exists(dir):
|
||||
os.mkdir(dir)
|
||||
|
||||
zip = zipfile.ZipFile(zipFilename)
|
||||
zip.extractall(dir)
|
||||
|
||||
def checkGMock(self):
|
||||
|
||||
dir = self.extDir + '/' + self.gmockDir
|
||||
if (os.path.isdir(dir)):
|
||||
return
|
||||
|
||||
zipFilename = dir + '.zip'
|
||||
if (not os.path.exists(zipFilename)):
|
||||
raise Exception('GMock zip not found at: ' + zipFilename)
|
||||
|
||||
if not os.path.exists(dir):
|
||||
os.mkdir(dir)
|
||||
|
||||
zip = zipfile.ZipFile(zipFilename)
|
||||
zip.extractall(dir)
|
||||
|
||||
def configure(self, target='', extraArgs=''):
|
||||
|
||||
# ensure latest setup and do not ask config for generator (only fall
|
||||
@ -401,6 +439,8 @@ class InternalCommands:
|
||||
|
||||
# ensure that the cryptopp source exists
|
||||
self.checkCryptoPP()
|
||||
self.checkGTest()
|
||||
self.checkGMock()
|
||||
|
||||
if extraArgs != '':
|
||||
cmake_args += ' ' + extraArgs
|
||||
|
Loading…
Reference in New Issue
Block a user