Example #1
0
def iterResourceHeader():
    versionComponents = packageVersionNumber.split('.')
    versionComponents += ['0'] * (3 - len(versionComponents))
    versionComponents.append(str(extractRevisionNumber()))
    assert len(versionComponents) == 4, versionComponents

    yield '#define OPENMSX_VERSION_INT %s' % ', '.join(versionComponents)
    yield '#define OPENMSX_VERSION_STR "%s\\0"' % getDetailedVersion()
Example #2
0
def iterResourceHeader():
    if '-' in packageVersion:
        versionNumber = packageVersion[:packageVersion.index('-')]
    else:
        versionNumber = packageVersion
    revision = str(extractRevisionNumber())
    versionComponents = versionNumber.split('.') + [revision]
    assert len(versionComponents) == 4, versionComponents

    yield '#define OPENMSX_VERSION_INT %s' % ', '.join(versionComponents)
    yield '#define OPENMSX_VERSION_STR "%s\\0"' % packageVersion
Example #3
0
def iterResourceHeader():
	if '-' in packageVersion:
		versionNumber = packageVersion[ : packageVersion.index('-')]
	else:
		versionNumber = packageVersion
	revision = str(extractRevisionNumber())
	versionComponents = versionNumber.split('.') + [ revision ]
	assert len(versionComponents) == 4, versionComponents

	yield '#define OPENMSX_VERSION_INT %s' % ', '.join(versionComponents)
	yield '#define OPENMSX_VERSION_STR "%s\\0"' % packageVersion
Example #4
0
def iterResourceHeader():
	if '-' in packageVersion:
		versionNumber = packageVersion[ : packageVersion.index('-')]
	else:
		versionNumber = packageVersion
	versionComponents = versionNumber.split('.') + [ str(extractRevisionNumber()) ]
	assert len(versionComponents) == 4, versionComponents

	versionStr = packageVersion
	extractedRevision = extractRevision()
	if extractedRevision is not None:
		versionStr += "-" + extractedRevision

	yield '#define CATAPULT_VERSION_INT %s' % ', '.join(versionComponents)
	yield '#define CATAPULT_VERSION_STR "%s\\0"' % versionStr
Example #5
0
	def __init__(self, platform, configuration, catapultPath):

		self.platform = platform.lower()
		if self.platform == 'win32':
			self.cpu = 'x86'
			self.platform = 'Win32'
			self.win64 = False
		elif self.platform == 'x64':
			self.cpu = 'x64'
			self.platform = 'x64'
			self.win64 = True
		else:
			raise ValueError('Wrong platform: ' + platform)

		self.configuration = configuration.lower()
		if self.configuration == 'release':
			self.configuration = 'Release'
			self.catapultConfiguration = 'Unicode Release'
		elif self.configuration == 'developer':
			self.configuration = 'Developer'
			self.catapultConfiguration = 'Unicode Debug'
		elif self.configuration == 'debug':
			self.configuration = 'Debug'
			self.catapultConfiguration = 'Unicode Debug'
		else:
			raise ValueError('Wrong configuration: ' + configuration)

		self.catapultPath = catapultPath

		# Useful variables
		self.buildFlavor = self.platform + '-VC-' + self.configuration
		self.buildPath = joinpath('derived', self.buildFlavor)
		self.sourcePath = 'src'
		self.codecPath = 'Contrib\\codec\\Win32'
		self.packageWindowsPath = 'build\\package-windows'

		self.catapultSourcePath = joinpath(self.catapultPath, 'src')
		self.catapultBuildFlavor = '%s-VC-%s' % (
			self.platform, self.catapultConfiguration
			)
		self.catapultBuildPath = joinpath(
			self.catapultPath, joinpath('derived', self.catapultBuildFlavor)
			)
		self.catapultExePath = joinpath(
			self.catapultBuildPath, 'install\\catapult.exe'
			)
		self.catapultPdbPath = joinpath(
			self.catapultBuildPath, 'install\\catapult.pdb'
			)

		self.openmsxExePath = joinpath(self.buildPath, 'install\\openmsx.exe')
		self.openmsxPdbPath = joinpath(self.buildPath, 'install\\openmsx.pdb')

		self.packagePath = joinpath(self.buildPath, 'package-windows')
		self.makeInstallPath = joinpath(self.packagePath, 'install')

		self.version = packageVersionNumber
		if releaseFlag:
			self.version += '.0'
		else:
			self.version += '.%d' % extractRevisionNumber()

		# <product>-<version>-<os>-<compiler>-<cpu>-<filetype>.ext
		self.os = 'windows'
		self.compiler = 'vc'

		self.packageFileName = '-'.join((
			getVersionedPackageName(),
			self.os,
			self.compiler,
			self.cpu
			))
Example #6
0
	def __init__(self, platform, configuration, catapultPath):

		self.platform = platform.lower()
		if self.platform == 'win32':
			self.cpu = 'x86'
			self.platform = 'Win32'
			self.win64 = False
		elif self.platform == 'x64':
			self.cpu = 'x64'
			self.platform = 'x64'
			self.win64 = True
		else:
			raise ValueError('Wrong platform: ' + platform)

		self.configuration = configuration.lower()
		if self.configuration == 'release':
			self.configuration = 'Release'
			self.catapultConfiguration = 'Unicode Release'
		elif self.configuration == 'developer':
			self.configuration = 'Developer'
			self.catapultConfiguration = 'Unicode Debug'
		elif self.configuration == 'debug':
			self.configuration = 'Debug'
			self.catapultConfiguration = 'Unicode Debug'
		else:
			raise ValueError('Wrong configuration: ' + configuration)

		self.catapultPath = catapultPath

		# Useful variables
		self.buildFlavor = self.platform + '-VC-' + self.configuration
		self.buildPath = joinpath('derived', self.buildFlavor)
		self.sourcePath = 'src'
		self.codecPath = 'Contrib\\codec\\Win32'
		self.packageWindowsPath = 'build\\package-windows'

		self.catapultSourcePath = joinpath(self.catapultPath, 'src')
		self.catapultBuildFlavor = '%s-VC-%s' % (
			self.platform, self.catapultConfiguration
			)
		self.catapultBuildPath = joinpath(
			self.catapultPath, joinpath('derived', self.catapultBuildFlavor)
			)
		self.catapultExePath = joinpath(
			self.catapultBuildPath, 'install\\catapult.exe'
			)
		self.catapultPdbPath = joinpath(
			self.catapultBuildPath, 'install\\catapult.pdb'
			)

		self.openmsxExePath = joinpath(self.buildPath, 'install\\openmsx.exe')
		self.openmsxPdbPath = joinpath(self.buildPath, 'install\\openmsx.pdb')

		self.packagePath = joinpath(self.buildPath, 'package-windows')
		self.makeInstallPath = joinpath(self.packagePath, 'install')

		self.version = packageVersionNumber
		if releaseFlag:
			self.version += '.0'
		else:
			self.version += '.%d' % extractRevisionNumber()

		# <product>-<version>-<os>-<compiler>-<cpu>-<filetype>.ext
		self.os = 'windows'
		self.compiler = 'vc'

		self.packageFileName = '-'.join((
			getVersionedPackageName(),
			self.os,
			self.compiler,
			self.cpu
			))