added plugin manager gui #4168

This commit is contained in:
XinyuHou 2015-02-04 14:09:03 +00:00
parent afc2a4d1a0
commit bfa9bab78d
9 changed files with 248 additions and 5 deletions

View file

@ -213,7 +213,8 @@ class InternalCommands:
defaultTarget = 'release'
cmake_dir = 'res'
gui_dir = 'src/gui'
main_gui_dir = 'src/gui/main'
plugin_gui_dir = 'src/gui/plugin'
doc_dir = 'doc'
extDir = 'ext'
@ -539,13 +540,21 @@ class InternalCommands:
print "QMake command: " + qmake_cmd_string
# run qmake from the gui dir
self.try_chdir(self.gui_dir)
self.try_chdir(self.main_gui_dir)
err = os.system(qmake_cmd_string)
self.restore_chdir()
if err != 0:
raise Exception('QMake encountered error: ' + str(err))
# run qmake from the gui dir
self.try_chdir(self.plugin_gui_dir)
err = os.system(qmake_cmd_string)
self.restore_chdir()
if err != 0:
raise Exception('QMake encountered error: ' + str(err))
def getQmakeVersion(self):
version = commands.getoutput("qmake --version")
result = re.search('(\d+)\.(\d+)\.(\d)', version)
@ -777,14 +786,21 @@ class InternalCommands:
if sys.platform == 'win32':
for target in targets:
self.try_chdir(self.gui_dir)
self.try_chdir(self.main_gui_dir)
err = os.system(gui_make_cmd + ' ' + target)
self.restore_chdir()
if err != 0:
raise Exception(gui_make_cmd + ' failed with error: ' + str(err))
self.try_chdir(self.plugin_gui_dir)
err = os.system(gui_make_cmd + ' ' + target)
self.restore_chdir()
if err != 0:
raise Exception(gui_make_cmd + ' failed with error: ' + str(err))
else:
self.try_chdir(self.gui_dir)
self.try_chdir(self.main_gui_dir)
err = os.system(gui_make_cmd)
self.restore_chdir()
@ -797,6 +813,13 @@ class InternalCommands:
self.fixQtFrameworksLayout()
self.try_chdir(self.plugin_gui_dir)
err = os.system(gui_make_cmd)
self.restore_chdir()
if err != 0:
raise Exception(gui_make_cmd + ' failed with error: ' + str(err))
def symlink(self, source, target):
if not os.path.exists(target):
os.symlink(source, target)