merge 1.3 r873:875 into 1.4 and trunk
This commit is contained in:
parent
3095826f0a
commit
76c47c2346
|
@ -42,6 +42,7 @@ class InternalCommands:
|
||||||
config_filename = '%s.cfg' % this_cmd
|
config_filename = '%s.cfg' % this_cmd
|
||||||
qtpro_filename = 'qsynergy.pro'
|
qtpro_filename = 'qsynergy.pro'
|
||||||
doxygen_filename = 'doxygen.cfg'
|
doxygen_filename = 'doxygen.cfg'
|
||||||
|
macPackageName = 'MacOSX-Universal'
|
||||||
|
|
||||||
cmake_url = 'http://www.cmake.org/cmake/resources/software.html'
|
cmake_url = 'http://www.cmake.org/cmake/resources/software.html'
|
||||||
|
|
||||||
|
@ -164,7 +165,7 @@ class InternalCommands:
|
||||||
# default is default for non-vs
|
# default is default for non-vs
|
||||||
if target == '':
|
if target == '':
|
||||||
target = 'debug'
|
target = 'debug'
|
||||||
cmake_args = ' -DCMAKE_BUILD_TYPE=' + target.capitalize()
|
cmake_args += ' -DCMAKE_BUILD_TYPE=' + target.capitalize()
|
||||||
|
|
||||||
# if not visual studio, use parent dir
|
# if not visual studio, use parent dir
|
||||||
sourceDir = self.source_dir
|
sourceDir = self.source_dir
|
||||||
|
@ -478,7 +479,27 @@ class InternalCommands:
|
||||||
|
|
||||||
elif type == 'mac':
|
elif type == 'mac':
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
self.dist_run('cpack -G PackageMaker', unixTarget)
|
# nb: disabling package maker, as it doesn't
|
||||||
|
# work too well (screws with permissions).
|
||||||
|
#self.dist_run('cpack -G PackageMaker', unixTarget)
|
||||||
|
|
||||||
|
# nb: temporary fix (just distribute a zip)
|
||||||
|
bin = self.getBinDir(unixTarget)
|
||||||
|
version = self.getVersionFromCmake()
|
||||||
|
zipFile = (self.project + '-' +
|
||||||
|
version + '-' +
|
||||||
|
self.macPackageName + '.zip')
|
||||||
|
|
||||||
|
zipCmd = ('zip ' + zipFile + ' ' +
|
||||||
|
'synergyc synergys');
|
||||||
|
|
||||||
|
print 'Creating package: ' + zipCmd
|
||||||
|
self.try_chdir(self.getBinDir(unixTarget))
|
||||||
|
err = os.system(zipCmd)
|
||||||
|
self.restore_chdir()
|
||||||
|
if err != 0:
|
||||||
|
raise Exception(
|
||||||
|
'Zip failed, code: ' + err)
|
||||||
else:
|
else:
|
||||||
package_unsupported = True
|
package_unsupported = True
|
||||||
|
|
||||||
|
@ -596,13 +617,14 @@ class InternalCommands:
|
||||||
platform = 'Windows-x86'
|
platform = 'Windows-x86'
|
||||||
|
|
||||||
elif type == 'mac':
|
elif type == 'mac':
|
||||||
ext = 'dmg'
|
#ext = 'dmg'
|
||||||
platform = 'MacOSX-Universal'
|
ext = 'zip'
|
||||||
|
platform = self.macPackageName
|
||||||
|
|
||||||
if not platform:
|
if not platform:
|
||||||
raise Exception('Unable to detect package platform.')
|
raise Exception('Unable to detect package platform.')
|
||||||
|
|
||||||
pattern = re.escape('synergy-') + '\d\.\d\.\d' + re.escape('-' + platform + '.' + ext)
|
pattern = re.escape(self.project + '-') + '\d\.\d\.\d' + re.escape('-' + platform + '.' + ext)
|
||||||
|
|
||||||
# only use release dir if not windows
|
# only use release dir if not windows
|
||||||
target = ''
|
target = ''
|
||||||
|
|
2
hm.py
2
hm.py
|
@ -46,7 +46,7 @@ build_options_long = ['debug', 'release']
|
||||||
cmd_opt_dict = {
|
cmd_opt_dict = {
|
||||||
'about' : ['', []],
|
'about' : ['', []],
|
||||||
'setup' : ['', []],
|
'setup' : ['', []],
|
||||||
'configure' : ['', []],
|
'configure' : [build_options, build_options_long],
|
||||||
'build' : [build_options, build_options_long],
|
'build' : [build_options, build_options_long],
|
||||||
'clean' : [build_options, build_options_long],
|
'clean' : [build_options, build_options_long],
|
||||||
'update' : ['', []],
|
'update' : ['', []],
|
||||||
|
|
Loading…
Reference in New Issue