예제 #1
0
def copyDev(targetDir):
	aceutils.mkdir(targetDir+r'/')

	# Sample
	sampleDir = targetDir+r'/'

	aceutils.mkdir(sampleDir+r'cpp/')
	aceutils.mkdir(sampleDir+r'cpp/include/')
	aceutils.mkdir(sampleDir+r'cpp/lib/')
	aceutils.mkdir(sampleDir+r'cpp/lib/Debug/')
	aceutils.mkdir(sampleDir+r'cpp/lib/Release/')

	aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'bin/')
	if aceutils.isWin():
		aceutils.copy(r'Dev/bin/Altseed_core.Debug.dll', sampleDir+r'bin/')
		aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleDir+r'bin/')
	elif aceutils.isMac():
		aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleDir+r'bin/')
	else:
		aceutils.copy(r'Dev/bin/libAltseed_core.so', sampleDir+r'bin/')

	aceutils.copy(r'Dev/include/Altseed.h', sampleDir+r'cpp/include/')
	if aceutils.isWin():
		aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/')
		aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/')
	else:
		aceutils.copy(r'Dev/lib/libAltseed.a', sampleDir+r'cpp/lib/')

	aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'sample_cs/')
	aceutils.copy(r'Dev/bin/Altseed.XML', sampleDir+r'sample_cs/')
예제 #2
0
파일: release.py 프로젝트: wraikny/Altseed
	def copySampleFiles(from_,to_):
		sampleDir = to_
		sampleBinDir = sampleDir+r'bin/'
		aceutils.mkdir(sampleDir)
		aceutils.mkdir(sampleBinDir)
		aceutils.copytreeWithExt(from_ + 'bin/',sampleBinDir,[ r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

		aceutils.mkdir(sampleDir+r'cpp/')
		aceutils.mkdir(sampleDir+r'cpp/include/')
		aceutils.mkdir(sampleDir+r'cpp/lib/')
		aceutils.mkdir(sampleDir+r'cpp/lib/Debug/')
		aceutils.mkdir(sampleDir+r'cpp/lib/Release/')

		if aceutils.isWin():
			aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', sampleBinDir)
			aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir)
		elif aceutils.isMac():
			aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir)

		aceutils.copy(r'Dev/include/Altseed.h', sampleDir+r'cpp/include/')
		if aceutils.isWin():
			aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/')
			aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/')
		elif aceutils.isMac():
			aceutils.copy(r'Dev/lib/libAltseed.a', sampleDir+r'cpp/lib/')

		aceutils.copy(from_+r'sample_cpp.sln',to_)

		aceutils.mkdir(sampleDir+r'sample_cpp/')
		aceutils.copytreeWithExt(from_ + r'sample_cpp/',sampleDir+r'sample_cpp/',[ r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])
예제 #3
0
def copyDev(targetDir):
	aceutils.mkdir(targetDir+r'/')

	# Sample
	sampleDir = targetDir+r'/'

	if type == 'cpp':
		aceutils.mkdir(sampleDir+r'cpp/')
		aceutils.mkdir(sampleDir+r'cpp/include/')
		aceutils.mkdir(sampleDir+r'cpp/lib/')
		aceutils.mkdir(sampleDir+r'cpp/lib/Debug/')
		aceutils.mkdir(sampleDir+r'cpp/lib/Release/')

		aceutils.copy(r'Dev/include/Altseed.h', sampleDir+r'cpp/include/')

		if aceutils.isWin():
			aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/')
			aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/')
		else:
			aceutils.copy(r'Dev/lib/libAltseed.a', sampleDir+r'cpp/lib/')

		if aceutils.isWin():
			aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', sampleDir+r'bin/')
			aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleDir+r'bin/')
		elif aceutils.isMac():
			aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleDir+r'bin/')
		else:
			aceutils.copy(r'Dev/bin/libAltseed_core.so', sampleDir+r'bin/')

	if type == 'cs':
		aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'bin/')
		aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'sample_cs/')
		aceutils.copy(r'Dev/bin/Altseed.xml', sampleDir+r'sample_cs/')

		if aceutils.isWin():
			aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleDir+r'bin/')
		elif aceutils.isMac():
			aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleDir+r'bin/')
		else:
			aceutils.copy(r'Dev/bin/libAltseed_core.so', sampleDir+r'bin/')

	if type == 'java':
		aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'bin/')
		aceutils.copy(r'Dev/bin/Altseed.jar', sampleDir+r'bin/')

		if aceutils.isWin():
			aceutils.call('.\Script\CSharpTranslator\LanguageTranslator.exe '+sampleDir+r'sample_cs/ '+sampleDir+r'sample_java/ java '+sampleDir+r'bin/Altseed.dll')
		else:
			aceutils.call('mono ./Script/CSharpTranslator/LanguageTranslator.exe '+sampleDir+r'sample_cs/ '+sampleDir+r'sample_java/ java '+sampleDir+r'bin/Altseed.dll')

		editFiles(sampleDir+r'sample_java/')

		if aceutils.isWin():
			aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleDir+r'bin/')
		elif aceutils.isMac():
			aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleDir+r'bin/')
		else:
			aceutils.copy(r'Dev/bin/libAltseed_core.so', sampleDir+r'bin/')
예제 #4
0
    def copySampleFiles(from_, to_):
        sampleDir = to_
        sampleBinDir = sampleDir + r'bin/'

        aceutils.mkdir(sampleDir)
        aceutils.mkdir(sampleBinDir)

        aceutils.copytreeWithExt(from_ + r'bin/', sampleBinDir, [
            r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs',
            r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.aip', r'.efk',
            r'.aff', r'.pack', r'.txt'
        ])

        if aceutils.isWin():
            aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir)
        elif aceutils.isMac():
            aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir)

        aceutils.copy(r'Sample/sample_cs.sln', sampleDir)
        aceutils.mkdir(sampleDir + r'sample_cs/')
        aceutils.copytreeWithExt(
            from_ + r'sample_cs/', sampleDir + r'sample_cs/', [
                r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs',
                r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.aip',
                r'.efk', r'.aff', r'.pack', r'.txt'
            ])

        editCSFiles(sampleDir + r'sample_cs/')

        aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir + r'sample_cs/')
        aceutils.copy(r'Dev/bin/Altseed.XML', sampleDir + r'sample_cs/')
예제 #5
0
파일: release.py 프로젝트: Pctg-x8/Altseed
def compile(type):
    if aceutils.isWin():
        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cpp.sln /p:configuration=Debug'
        )
        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cpp.sln /p:configuration=Release'
        )
        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cs.sln /p:configuration=Release'
        )

        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/FontGeneratorWPF.sln /p:configuration=Release'
        )

        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/FilePackageGenerator.sln /p:configuration=Release'
        )

    elif aceutils.isMac():
        if type == "cpp":
            aceutils.rmdir(r"Dev/cmake")
            aceutils.mkdir(r"Dev/cmake")
            aceutils.cd(r"Dev/cmake")
            aceutils.call(
                r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../'
            )
            aceutils.call(r"make install")
            aceutils.cd(r"../../")

        elif type == "cs":
            aceutils.cd(r"Dev")
            aceutils.call(r"xbuild /p:Configuration=Release unitTest_Engine_cs.sln")
            aceutils.cd(r"../")
예제 #6
0
파일: release.py 프로젝트: altseed/Altseed
def compile_tool():
    if(leastCompileTarget != 'cs'):
        return

    if aceutils.isWin():
        aceutils.call(aceutils.cmd_compile +
                      r'Dev/FontGenerator.sln /p:configuration=Release;platform=' + platform_cs)
        aceutils.call(aceutils.cmd_compile +
                      r'Dev/FilePackageGenerator.sln /p:configuration=Release;platform=' + platform_cs)
        aceutils.call(aceutils.cmd_compile +
                      r'Dev/ImagePackageGenerator.sln /p:configuration=Release;platform=' + platform_cs)

    elif aceutils.isMac():

        # for core
        aceutils.cd(r'Dev/cmake')
        aceutils.call(r'make install')
        aceutils.cd(r'ImagePackageGenerator')
        aceutils.call(r'make')
        aceutils.cd(r'../../../')

        aceutils.call(
            r'nuget restore Dev/FontGenerator.sln -PackagesDirectory Dev/FontGenerator/packages/')
        aceutils.call(
            r'msbuild Dev/FontGenerator/FontGenerator.Altseed/FontGenerator.Altseed.csproj /p:Configuration=Release /p:Platform=' + platform_cs)
        aceutils.call(
            r'msbuild Dev/FilePackageGenerator/FilePackageGenerator.Altseed/FilePackageGenerator.Altseed.csproj /p:Configuration=Release /p:Platform=' + platform_cs)
        aceutils.call(
            r'msbuild Dev/ImagePackageGenerator/ImagePackageGenerator/ImagePackageGenerator.csproj /p:Configuration=Release /p:Platform=' + platform_cs)
예제 #7
0
파일: compile.py 프로젝트: altseed/Altseed
def init():
	aceutils.cdToScript()
	aceutils.cd(r'../')

	if aceutils.isWin():
		aceutils.call(r'python Dev/generate_swig.py')
		
	elif aceutils.isMac():
		# generate header(C#)
		aceutils.call(r'python Dev/generate_swig.py')

		aceutils.rmdir(r'Dev/cmake')
		aceutils.mkdir(r'Dev/cmake')
		aceutils.cd(r'Dev/cmake')
		aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ "-DCMAKE_OSX_ARCHITECTURES=x86_64' + (';i386' if aceutils.Isi386() else '') + r'" ../')
		aceutils.call(r'make install')
		aceutils.cd(r'../../')
		aceutils.copytree(r'Dev/bin/Data',r'Dev/cmake/bin/Data')

	else:
		# generate header(C#)
		aceutils.call(r'python Dev/generate_swig.py')

		aceutils.rmdir(r'Dev/cmake')
		aceutils.mkdir(r'Dev/cmake')
		aceutils.cd(r'Dev/cmake')
		aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ ../')
		aceutils.call(r'make install')
		aceutils.cd(r'../../')
		aceutils.copytree(r'Dev/bin/Data',r'Dev/cmake/bin/Data')
예제 #8
0
파일: release.py 프로젝트: altseed/Altseed
    def copySampleFiles(from_, to_):
        sampleDir = to_
        sampleBinDir = sampleDir+r'bin/'

        aceutils.mkdir(sampleDir)
        aceutils.mkdir(sampleBinDir)

        aceutils.copytreeWithExt(from_ + r'bin/', sampleBinDir, [r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj',
                                                                 r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

        if aceutils.isWin():
            aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir)
        elif aceutils.isMac():
            aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir)

        aceutils.mkdir(sampleDir+r'sample_cs/')
        aceutils.copytreeWithExt(from_ + r'sample_cs/', sampleDir+r'sample_cs/', [r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj',
                                                                                  r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

        editCSFiles(sampleDir+r'sample_cs/')

        aceutils.copy(from_+r'sample_cs.sln', to_)

        aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'sample_cs/')
        aceutils.copy(r'Dev/bin/Altseed.XML', sampleDir+r'sample_cs/')
예제 #9
0
파일: compile.py 프로젝트: wraikny/Altseed
def init():
	aceutils.cdToScript()
	aceutils.cd(r'../')

	if aceutils.isWin():
		aceutils.call(r'python Dev/generate_swig.py')
		
	elif aceutils.isMac():
		# generate header(C#)
		aceutils.call(r'python Dev/generate_swig.py')

		aceutils.rmdir(r'Dev/cmake')
		aceutils.mkdir(r'Dev/cmake')
		aceutils.cd(r'Dev/cmake')
		aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../')
		aceutils.call(r'make install')
		aceutils.cd(r'../../')
		aceutils.copytree(r'Dev/bin/Data',r'Dev/cmake/bin/Data')

	else:
		# generate header(C#)
		aceutils.call(r'python Dev/generate_swig.py')

		aceutils.rmdir(r'Dev/cmake')
		aceutils.mkdir(r'Dev/cmake')
		aceutils.cd(r'Dev/cmake')
		aceutils.call(r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ ../')
		aceutils.call(r'make install')
		aceutils.cd(r'../../')
		aceutils.copytree(r'Dev/bin/Data',r'Dev/cmake/bin/Data')
예제 #10
0
파일: release.py 프로젝트: altseed/Altseed
def getTargetDir(type):
    common = 'Altseed_' + type.upper() + '_' + versionNumber
    if aceutils.isWin():
        return common + '_WIN'

    if aceutils.isMac():
        return common + '_MAC'
    return common
예제 #11
0
파일: release.py 프로젝트: wraikny/Altseed
def getTargetDir(type):
	common = 'Altseed_' + type.upper() + '_' + versionNumber
	if aceutils.isWin():
		return common + '_WIN'

	if aceutils.isMac():
		return common + '_MAC'
	return common	
예제 #12
0
파일: release.py 프로젝트: Pctg-x8/Altseed
def getTargetDir(type):
    d = datetime.datetime.today()
    common = "Altseed_" + type.upper() + "_" + str(d.year).zfill(4) + str(d.month).zfill(2) + str(d.day).zfill(2)

    if aceutils.isWin():
        return common + "_WIN"

    if aceutils.isMac():
        return common + "_MAC"
    return common
예제 #13
0
def getTargetDir(type):
    d = datetime.datetime.today()
    common = 'Altseed_' + type.upper() + '_' + str(d.year).zfill(4) + str(
        d.month).zfill(2) + str(d.day).zfill(2)

    if aceutils.isWin():
        return common + '_WIN'

    if aceutils.isMac():
        return common + '_MAC'
    return common
예제 #14
0
파일: release.py 프로젝트: altseed/Altseed
    def copySampleFiles(from_, to_):
        sampleDir = to_
        sampleBinDir = sampleDir+r'bin/'
        aceutils.mkdir(sampleDir)
        aceutils.mkdir(sampleBinDir)
        aceutils.copytreeWithExt(from_ + 'bin/', sampleBinDir, [r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj',
                                                                r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

        aceutils.mkdir(sampleDir+r'cpp/')
        aceutils.mkdir(sampleDir+r'cpp/include/')
        aceutils.mkdir(sampleDir+r'cpp/lib/')
        aceutils.mkdir(sampleDir+r'cpp/lib/Debug/')
        aceutils.mkdir(sampleDir+r'cpp/lib/Release/')

        if aceutils.isWin():
            aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', sampleBinDir)
            aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir)
        elif aceutils.isMac():
            aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir)

        aceutils.copy(r'Dev/include/Altseed.h', sampleDir+r'cpp/include/')

        if aceutils.isWin():
            if aceutils.Isi386():
                aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/')
                aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/')
            else:
                aceutils.copy(r'Dev/lib/x64/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/')
                aceutils.copy(r'Dev/lib/x64/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/')
        elif aceutils.isMac():
            aceutils.copy(r'Dev/lib/libAltseed.a', sampleDir+r'cpp/lib/')

        aceutils.copy(from_+r'sample_cpp.sln', to_)

        aceutils.mkdir(sampleDir+r'sample_cpp/')
        aceutils.copytreeWithExt(from_ + r'sample_cpp/', sampleDir+r'sample_cpp/', [
                                 r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])
예제 #15
0
파일: release.py 프로젝트: altseed/Altseed
def compile(type):
    global leastCompileTarget
    leastCompileTarget = type
    if aceutils.isWin():
        if type == 'cpp':
            aceutils.call(aceutils.cmd_compile +
                          r'Dev/unitTest_Engine_cpp.sln /p:configuration=Debug /p:Platform=' + platform_cpp)
            aceutils.call(aceutils.cmd_compile +
                          r'Dev/unitTest_Engine_cpp.sln /p:configuration=Release /p:Platform=' + platform_cpp)

        if type == 'cs':
            aceutils.call(aceutils.cmd_compile +
                          r'Dev/unitTest_Engine_cs.sln /p:configuration=Release /p:Platform=' + platform_cs)

        if type == 'java':
            aceutils.call(aceutils.cmd_compile +
                          r'Dev/unitTest_Engine_cpp.sln /p:configuration=Release /p:Platform=' + platform_cpp)
            aceutils.cd(r'Dev/asd_java')
            aceutils.call(r'ant')
            aceutils.cd(r'../../')

    elif aceutils.isMac():
        if type == 'cpp':
            aceutils.cd(r'Dev/cmake')
            aceutils.call(r'make install')
            aceutils.cd(r'../../')

        elif type == 'cs':
            # for core
            aceutils.cd(r'Dev/cmake')
            aceutils.call(r'make install')
            aceutils.cd(r'../../')

            aceutils.cd(r'Dev')
            aceutils.call(
                r'xbuild /p:Configuration=Release unitTest_Engine_cs.sln /p:Platform=' + platform_cs)
            aceutils.cd(r'../')

        elif type == 'java':
            # for core
            aceutils.cd(r'Dev/cmake')
            aceutils.call(r'make install')
            aceutils.cd(r'../../')

            aceutils.cd(r'Dev/asd_java')
            aceutils.call(r'ant')
            aceutils.cd(r'../../')
예제 #16
0
파일: compile.py 프로젝트: altseed/Altseed
def compile(type):
	aceutils.cdToScript()

	if type=='cpp':
		aceutils.call(r'python ../Dev/generate_swig.py')
	if type=='cs':
		aceutils.call(r'python ../Dev/generate_swig.py')
	if type=='java':
		aceutils.call(r'python ../Dev/generate_swig.py java')
		aceutils.call('.\CSharpTranslator\LanguageTranslator.exe ../Dev/asd_cs/ ../Dev/asd_java/')

	aceutils.cd(r'../')

	if aceutils.isWin():
		if type=='cpp':
			aceutils.call(aceutils.cmd_compile + r'Dev/unitTest_Engine_cpp.sln /p:configuration=Debug')
			aceutils.call(aceutils.cmd_compile + r'Dev/unitTest_Engine_cpp.sln /p:configuration=Release')
		
		if type=='cs':
			aceutils.call(aceutils.cmd_compile + r'Dev/unitTest_Engine_cs.sln /p:configuration=Release')

		if type=='java':
			aceutils.call(aceutils.cmd_compile + r'Dev/unitTest_Engine_cpp.sln /p:configuration=Release /p:platform=x64')
			aceutils.cd(r'Dev/asd_java')
			aceutils.call(r'ant')
			aceutils.cd(r'../../')

	elif aceutils.isMac():
		if type=='cpp':
			aceutils.cd(r'Dev/cmake')
			aceutils.call(r'make install')
			aceutils.cd(r'../../')

		elif type=='cs':
			aceutils.cd(r'Dev')
			aceutils.call(r'xbuild /p:Configuration=Release unitTest_Engine_cs.sln')
			aceutils.cd(r'../')

		elif type=='java':
			aceutils.cd(r'Dev/cmake')
			aceutils.call(r'make install')
			aceutils.cd(r'../../')

			aceutils.cd(r'Dev/asd_java')
			aceutils.call(r'ant')
			aceutils.cd(r'../../')
예제 #17
0
파일: compile.py 프로젝트: wraikny/Altseed
def compile(type):
	aceutils.cdToScript()

	if type=='cpp':
		aceutils.call(r'python ../Dev/generate_swig.py')
	if type=='cs':
		aceutils.call(r'python ../Dev/generate_swig.py')
	if type=='java':
		aceutils.call(r'python ../Dev/generate_swig.py java')
		aceutils.call('.\CSharpTranslator\LanguageTranslator.exe ../Dev/asd_cs/ ../Dev/asd_java/')

	aceutils.cd(r'../')

	if aceutils.isWin():
		if type=='cpp':
			aceutils.call(aceutils.cmd_compile + r'Dev/unitTest_Engine_cpp.sln /p:configuration=Debug')
			aceutils.call(aceutils.cmd_compile + r'Dev/unitTest_Engine_cpp.sln /p:configuration=Release')
		
		if type=='cs':
			aceutils.call(aceutils.cmd_compile + r'Dev/unitTest_Engine_cs.sln /p:configuration=Release')

		if type=='java':
			aceutils.call(aceutils.cmd_compile + r'Dev/unitTest_Engine_cpp.sln /p:configuration=Release /p:platform=x64')
			aceutils.cd(r'Dev/asd_java')
			aceutils.call(r'ant')
			aceutils.cd(r'../../')

	elif aceutils.isMac():
		if type=='cpp':
			aceutils.cd(r'Dev/cmake')
			aceutils.call(r'make install')
			aceutils.cd(r'../../')

		elif type=='cs':
			aceutils.cd(r'Dev')
			aceutils.call(r'xbuild /p:Configuration=Release unitTest_Engine_cs.sln')
			aceutils.cd(r'../')

		elif type=='java':
			aceutils.cd(r'Dev/cmake')
			aceutils.call(r'make install')
			aceutils.cd(r'../../')

			aceutils.cd(r'Dev/asd_java')
			aceutils.call(r'ant')
			aceutils.cd(r'../../')
예제 #18
0
파일: release.py 프로젝트: wraikny/Altseed
	def copySampleFiles(from_,to_):

		sampleDir = to_
		sampleBinDir = sampleDir+r'bin/'

		aceutils.mkdir(sampleDir)
		aceutils.mkdir(sampleBinDir)
	
		aceutils.copytreeWithExt(from_ + r'bin/',sampleBinDir,[ r'.jar', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

		if aceutils.isWin():
			aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir)
		elif aceutils.isMac():
			aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir)

		aceutils.mkdir(sampleDir+r'sample_java/')
		aceutils.copytreeWithExt(from_ + r'sample_java/',sampleDir+r'sample_java/',[ r'.java', r'.xml'])

		aceutils.copy(r'Dev/bin/Altseed.jar', sampleBinDir)
예제 #19
0
파일: release.py 프로젝트: cannorin/Altseed
def compile(type):
    if aceutils.isWin():

        aceutils.call(aceutils.cmd_compile +
                      r'Dev/FontGeneratorWPF.sln /p:configuration=Release')
        aceutils.call(aceutils.cmd_compile +
                      r'Dev/FilePackageGenerator.sln /p:configuration=Release')

        if type == 'cpp':
            aceutils.call(
                aceutils.cmd_compile +
                r'Dev/unitTest_Engine_cpp.sln /p:configuration=Debug')
            aceutils.call(
                aceutils.cmd_compile +
                r'Dev/unitTest_Engine_cpp.sln /p:configuration=Release')

        if type == 'cs':
            aceutils.call(
                aceutils.cmd_compile +
                r'Dev/unitTest_Engine_cs.sln /p:configuration=Release')

        if type == 'java':
            aceutils.cd(r'Dev/asd_java')
            aceutils.call(r'ant')
            aceutils.cd(r'../../')

    elif aceutils.isMac():
        if type == 'cpp':
            aceutils.cd(r'Dev/cmake')
            aceutils.call(r'make install')
            aceutils.cd(r'../../')

        elif type == 'cs':
            aceutils.cd(r'Dev')
            aceutils.call(
                r'xbuild /p:Configuration=Release unitTest_Engine_cs.sln')
            aceutils.cd(r'../')

        elif type == 'java':
            aceutils.cd(r'Dev/asd_java')
            aceutils.call(r'ant')
            aceutils.cd(r'../../')
예제 #20
0
def copyTool(type, targetDir):
    toolDir = targetDir + r'/Tool/'
    aceutils.mkdir(toolDir)
    if aceutils.isWin():
        aceutils.copy(r'Dev/bin/FontGenerator.WPF.exe', toolDir)
        aceutils.copy(r'Dev/bin/FontGenerator.WPF.exe.config', toolDir)
        aceutils.copy(r'Dev/bin/FontGenerator.Model.dll', toolDir)
        aceutils.copy(r'Dev/bin/FontGeneratorCore.dll', toolDir)
        aceutils.copy(r'Dev/bin/nkf32.dll', toolDir)
        aceutils.copy(r'Dev/bin/System.Reactive.Core.dll', toolDir)
        aceutils.copy(r'Dev/bin/System.Reactive.Interfaces.dll', toolDir)
        aceutils.copy(r'Dev/bin/System.Reactive.Linq.dll', toolDir)
        aceutils.copy(r'Dev/bin/System.Reactive.PlatformServices.dll', toolDir)

        aceutils.copy(r'Dev/bin/ImagePackageGenerator.exe', toolDir)
        aceutils.copy(r'Dev/bin/ImagePackageGenerator.exe.config', toolDir)
        aceutils.copy(r'Dev/bin/PSDParser.dll', toolDir)

        aceutils.copy(r'Dev/bin/FilePackageGenerator.exe', toolDir)
        aceutils.copy(r'Dev/bin/FilePackageGenerator.GUI.exe', toolDir)
        aceutils.copy(r'Dev/bin/FilePackageGenerator.GUI.exe.config', toolDir)
        aceutils.copy(r'Dev/bin/FilePackageGeneratorCore.dll', toolDir)
    elif aceutils.isMac():
        aceutils.copy(r'Dev/bin/FontGenerator.GUI.exe', toolDir)
        aceutils.copy(r'Dev/bin/FontGenerator.GUI.exe.config', toolDir)
        aceutils.copy(r'Dev/bin/FontGenerator.Model.dll', toolDir)
        aceutils.copy(r'Dev/bin/libFontGeneratorCore.dylib', toolDir)
        aceutils.copy(r'Dev/bin/FontGenerator.exe', toolDir)
        aceutils.copy(r'Dev/bin/FontGenerator.exe.config', toolDir)
        aceutils.copy(r'Dev/bin/System.Reactive.Core.dll', toolDir)
        aceutils.copy(r'Dev/bin/System.Reactive.Interfaces.dll', toolDir)
        aceutils.copy(r'Dev/bin/System.Reactive.Linq.dll', toolDir)
        aceutils.copy(r'Dev/bin/System.Reactive.PlatformServices.dll', toolDir)

        aceutils.copy(r'Dev/bin/ImagePackageGenerator.exe', toolDir)
        aceutils.copy(r'Dev/bin/ImagePackageGenerator.exe.config', toolDir)
        aceutils.copy(r'Dev/bin/libPSDParser.dylib', toolDir)

        aceutils.copy(r'Dev/bin/FilePackageGenerator.exe', toolDir)
        aceutils.copy(r'Dev/bin/FilePackageGenerator.GUI.exe', toolDir)
        aceutils.copy(r'Dev/bin/FilePackageGenerator.GUI.exe.config', toolDir)
        aceutils.copy(r'Dev/bin/FilePackageGeneratorCore.dll', toolDir)
예제 #21
0
파일: release.py 프로젝트: wraikny/Altseed
def compile(type):
	global leastCompileTarget
	leastCompileTarget = type
	if aceutils.isWin():
		if type=='cpp':
			aceutils.call(aceutils.cmd_compile + r'Dev/unitTest_Engine_cpp.sln /p:configuration=Debug')
			aceutils.call(aceutils.cmd_compile + r'Dev/unitTest_Engine_cpp.sln /p:configuration=Release')
		
		if type=='cs':
			aceutils.call(aceutils.cmd_compile + r'Dev/unitTest_Engine_cs.sln /p:configuration=Release')

		if type=='java':
			aceutils.call(aceutils.cmd_compile + r'Dev/unitTest_Engine_cpp.sln /p:configuration=Release')
			aceutils.cd(r'Dev/asd_java')
			aceutils.call(r'ant')
			aceutils.cd(r'../../')

	elif aceutils.isMac():
		if type=='cpp':
			aceutils.cd(r'Dev/cmake')
			aceutils.call(r'make install')
			aceutils.cd(r'../../')

		elif type=='cs':
			# for core
			aceutils.cd(r'Dev/cmake')
			aceutils.call(r'make install')
			aceutils.cd(r'../../')

			aceutils.cd(r'Dev')
			aceutils.call(r'xbuild /p:Configuration=Release unitTest_Engine_cs.sln')
			aceutils.cd(r'../')

		elif type=='java':
			# for core
			aceutils.cd(r'Dev/cmake')
			aceutils.call(r'make install')
			aceutils.cd(r'../../')

			aceutils.cd(r'Dev/asd_java')
			aceutils.call(r'ant')
			aceutils.cd(r'../../')
예제 #22
0
파일: release.py 프로젝트: wraikny/Altseed
def compile_tool():
	if(leastCompileTarget != 'cs'):
		return

	if aceutils.isWin():
		aceutils.call(aceutils.cmd_compile + r'Dev/FontGenerator.sln /p:configuration=Release;platform=x86')
		aceutils.call(aceutils.cmd_compile + r'Dev/FilePackageGenerator.sln /p:configuration=Release;platform=x86')
		aceutils.call(aceutils.cmd_compile + r'Dev/ImagePackageGenerator.sln /p:configuration=Release;platform=x86')

	elif aceutils.isMac():

		# for core
		aceutils.cd(r'Dev/cmake')
		aceutils.call(r'make install')
		aceutils.cd(r'../../')

		aceutils.call(r'nuget restore Dev/FontGenerator.sln -PackagesDirectory Dev/FontGenerator/packages/')
		aceutils.call(r'msbuild Dev/FontGenerator/FontGenerator.Altseed/FontGenerator.Altseed.csproj /p:Configuration=Release /p:Platform=x86')
		aceutils.call(r'msbuild Dev/FilePackageGenerator/FilePackageGenerator.Altseed/FilePackageGenerator.Altseed.csproj /p:Configuration=Release /p:Platform=x86')
		aceutils.call(r'msbuild Dev/ImagePackageGenerator/ImagePackageGenerator/ImagePackageGenerator.csproj /p:Configuration=Release /p:Platform=x86')
예제 #23
0
파일: release.py 프로젝트: altseed/Altseed
    def copySampleFiles(from_, to_):

        sampleDir = to_
        sampleBinDir = sampleDir+r'bin/'

        aceutils.mkdir(sampleDir)
        aceutils.mkdir(sampleBinDir)

        aceutils.copytreeWithExt(from_ + r'bin/', sampleBinDir, [
                                 r'.jar', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

        if aceutils.isWin():
            aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir)
        elif aceutils.isMac():
            aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir)

        aceutils.mkdir(sampleDir+r'sample_java/')
        aceutils.copytreeWithExt(
            from_ + r'sample_java/', sampleDir+r'sample_java/', [r'.java', r'.xml'])

        aceutils.copy(r'Dev/bin/Altseed.jar', sampleBinDir)
예제 #24
0
파일: release.py 프로젝트: Pctg-x8/Altseed
def copyTool(type, targetDir):
    toolDir = targetDir + r"/Tool/"
    aceutils.mkdir(toolDir)
    if aceutils.isWin():
        aceutils.copy(r"Dev/bin/FontGenerator.WPF.exe", toolDir)
        aceutils.copy(r"Dev/bin/FontGenerator.WPF.exe.config", toolDir)
        aceutils.copy(r"Dev/bin/FontGenerator.Model.dll", toolDir)
        aceutils.copy(r"Dev/bin/FontGeneratorCore.dll", toolDir)
        aceutils.copy(r"Dev/bin/nkf32.dll", toolDir)
        aceutils.copy(r"Dev/bin/System.Reactive.Core.dll", toolDir)
        aceutils.copy(r"Dev/bin/System.Reactive.Interfaces.dll", toolDir)
        aceutils.copy(r"Dev/bin/System.Reactive.Linq.dll", toolDir)
        aceutils.copy(r"Dev/bin/System.Reactive.PlatformServices.dll", toolDir)

        aceutils.copy(r"Dev/bin/ImagePackageGenerator.exe", toolDir)
        aceutils.copy(r"Dev/bin/ImagePackageGenerator.exe.config", toolDir)
        aceutils.copy(r"Dev/bin/PSDParser.dll", toolDir)

        aceutils.copy(r"Dev/bin/FilePackageGenerator.exe", toolDir)
        aceutils.copy(r"Dev/bin/FilePackageGenerator.GUI.exe", toolDir)
        aceutils.copy(r"Dev/bin/FilePackageGenerator.GUI.exe.config", toolDir)
        aceutils.copy(r"Dev/bin/FilePackageGeneratorCore.dll", toolDir)
예제 #25
0
파일: release.py 프로젝트: altseed/Altseed
def store_tools():
    aceutils.cdToScript()
    aceutils.cd(r'../')
    aceutils.call(sys.executable + r' Dev/generate_swig.py')

    compile('cs')
    compile_tool()

    toolDir = 'Altseed_Tool'
    aceutils.rmdir(toolDir)
    aceutils.mkdir(toolDir)

    aceutils.copy(r'Dev/bin/System.Reactive.dll', toolDir)
    # aceutils.copy(r'Dev/bin/System.Windows.Interactivity.dll', toolDir)
    aceutils.copy(r'Dev/bin/ReactiveProperty.dll', toolDir)
    aceutils.copy(r'Dev/bin/ReactiveProperty.NET46.dll', toolDir)

    aceutils.copy(r'Dev/bin/FontGenerator.exe', toolDir)
    aceutils.copy(r'Dev/bin/FontGenerator.exe.config', toolDir)
    aceutils.copy(r'Dev/bin/FontGenerator.Model.dll', toolDir)

    aceutils.copy(r'Dev/bin/ImagePackageGenerator.exe', toolDir)
    aceutils.copy(r'Dev/bin/ImagePackageGenerator.exe.config', toolDir)

    aceutils.copy(r'Dev/bin/FilePackageGenerator.exe', toolDir)
    # aceutils.copy(r'Dev/bin/FilePackageGenerator.exe.config', toolDir)
    aceutils.copy(r'Dev/bin/FilePackageGeneratorCore.dll', toolDir)

    aceutils.copy(r'Dev/bin/Altseed.dll', toolDir)

    if aceutils.isWin():
        aceutils.copy(r'Dev/bin/Altseed_core.dll', toolDir)
        aceutils.copy(r'Dev/bin/FontGeneratorCore.dll', toolDir)
        aceutils.copy(r'Dev/bin/PSDParser.dll', toolDir)
    elif aceutils.isMac():
        aceutils.copy(r'Dev/bin/libAltseed_core.dylib', toolDir)
        aceutils.copy(r'Dev/bin/libFontGeneratorCore.dylib', toolDir)
        aceutils.copy(
            r'Dev/cmake/ImagePackageGenerator/bin/libPSDParser.dylib', toolDir)
예제 #26
0
파일: release.py 프로젝트: wraikny/Altseed
def store_tools():
	aceutils.cdToScript()
	aceutils.cd(r'../')
	aceutils.call(sys.executable + r' Dev/generate_swig.py')

	compile('cs')
	compile_tool()

	toolDir = 'Altseed_Tool'
	aceutils.rmdir(toolDir)
	aceutils.mkdir(toolDir)

	aceutils.copy(r'Dev/bin/System.Reactive.dll', toolDir)
	#aceutils.copy(r'Dev/bin/System.Windows.Interactivity.dll', toolDir)
	aceutils.copy(r'Dev/bin/ReactiveProperty.dll', toolDir)
	aceutils.copy(r'Dev/bin/ReactiveProperty.NET46.dll', toolDir)

	aceutils.copy(r'Dev/bin/FontGenerator.exe', toolDir)
	aceutils.copy(r'Dev/bin/FontGenerator.exe.config', toolDir)
	aceutils.copy(r'Dev/bin/FontGenerator.Model.dll', toolDir)
		
	aceutils.copy(r'Dev/bin/ImagePackageGenerator.exe', toolDir)
	aceutils.copy(r'Dev/bin/ImagePackageGenerator.exe.config', toolDir)

	aceutils.copy(r'Dev/bin/FilePackageGenerator.exe', toolDir)
	#aceutils.copy(r'Dev/bin/FilePackageGenerator.exe.config', toolDir)
	aceutils.copy(r'Dev/bin/FilePackageGeneratorCore.dll', toolDir)

	aceutils.copy(r'Dev/bin/Altseed.dll', toolDir)

	if aceutils.isWin():
		aceutils.copy(r'Dev/bin/Altseed_core.dll', toolDir)
		aceutils.copy(r'Dev/bin/FontGeneratorCore.dll', toolDir)
		aceutils.copy(r'Dev/bin/PSDParser.dll', toolDir)
	elif aceutils.isMac():
		aceutils.copy(r'Dev/bin/libAltseed_core.dylib', toolDir)
		aceutils.copy(r'Dev/bin/libFontGeneratorCore.dylib', toolDir)
		aceutils.copy(r'Dev/cmake/ImagePackageGenerator/bin/libPSDParser.dylib', toolDir)
예제 #27
0
def compile(type):
    if aceutils.isWin():
        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cpp.sln /p:configuration=Debug'
        )
        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cpp.sln /p:configuration=Release'
        )
        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/unitTest_Engine_cs.sln /p:configuration=Release'
        )

        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/FontGeneratorWPF.sln /p:configuration=Release'
        )

        aceutils.call(
            r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" Dev/FilePackageGenerator.sln /p:configuration=Release'
        )

    elif aceutils.isMac():
        if type == 'cpp':
            aceutils.rmdir(r'Dev/cmake')
            aceutils.mkdir(r'Dev/cmake')
            aceutils.cd(r'Dev/cmake')
            aceutils.call(
                r'cmake -G "Unix Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS:BOOL=OFF -D CMAKE_INSTALL_PREFIX:PATH=../ "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../'
            )
            aceutils.call(r'make install')
            aceutils.cd(r'../../')

        elif type == 'cs':
            aceutils.cd(r'Dev')
            aceutils.call(
                r'xbuild /p:Configuration=Release unitTest_Engine_cs.sln')
            aceutils.cd(r'../')
예제 #28
0
aceutils.rmdir(r'bullet-2.82-r2704')

aceutils.wget(r'https://bullet.googlecode.com/files/bullet-2.82-r2704.zip')
aceutils.unzip(r'bullet-2.82-r2704.zip')

aceutils.editCmakeForACE(r'bullet-2.82-r2704/CMakeLists.txt','cp932')

aceutils.rmdir(r"bullet_bin")
aceutils.rmdir(r"bullet_bin_x64")

aceutils.mkdir(r"bullet_bin")
aceutils.mkdir(r"bullet_bin_x64")

aceutils.cd(r"bullet_bin")

if aceutils.isWin():
	aceutils.call(r'cmake -G "Visual Studio 12" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D BUILD_DEMOS:BOOL=OFF ../bullet-2.82-r2704/')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" BULLET_PHYSICS.sln /p:configuration=Debug')
	aceutils.call(r'"C:\Program Files (x86)\MSBuild\12.0\Bin\msbuild" BULLET_PHYSICS.sln /p:configuration=Release')
elif aceutils.isMac():
	aceutils.call(r'cmake -G "Unix Makefiles" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF -D USE_INTERNAL_LOADER:BOOL=OFF "-DCMAKE_OSX_ARCHITECTURES=x86_64;i386" ../bullet-2.82-r2704/')
	aceutils.call(r'make')
else:
	aceutils.call(r'cmake -G "Unix Makefiles" -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../bullet-2.82-r2704/')
	aceutils.call(r'make')

aceutils.cd(r"../")

aceutils.cd(r"bullet_bin_x64")

if aceutils.isWin():
예제 #29
0
import os.path
import aceutils

aceutils.cdToScript()
aceutils.cd(r'../')

aceutils.rmdir(r'Dev/cmake')
aceutils.mkdir(r'Dev/cmake')

aceutils.cd(r'Dev/cmake')

if aceutils.isWin():
    aceutils.call(
        r'cmake -G "Visual Studio 12" -D BUILD_SHARED_LIBS:BOOL=OFF -D USE_MSVC_RUNTIME_LIBRARY_DLL:BOOL=OFF ../'
    )
else:
    aceutils.call(
        r'cmake -G "Unix Makefiles" -D BUILD_SHARED_LIBS:BOOL=OFF ../')
    aceutils.call(r'make install')
    aceutils.cd(r'../../')
    aceutils.copytree(r'Dev/bin/Data', r'Dev/cmake/bin/Data')
예제 #30
0
파일: release.py 프로젝트: wraikny/Altseed
def release_cpp():
	type = 'cpp'
	
	targetDir = getTargetDir(type)
		
	init(type, targetDir)
	
	compile(type)

	aceutils.mkdir(targetDir+r'/')

	copy_tools(type, targetDir)

	makeDocument(type, targetDir,'cpp')

	# Sample
	aceutils.mkdir(targetDir+r'/Sample/')

	def copySampleFiles(from_,to_):
		sampleDir = to_
		sampleBinDir = sampleDir+r'bin/'
		aceutils.mkdir(sampleDir)
		aceutils.mkdir(sampleBinDir)
		aceutils.copytreeWithExt(from_ + 'bin/',sampleBinDir,[ r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

		aceutils.mkdir(sampleDir+r'cpp/')
		aceutils.mkdir(sampleDir+r'cpp/include/')
		aceutils.mkdir(sampleDir+r'cpp/lib/')
		aceutils.mkdir(sampleDir+r'cpp/lib/Debug/')
		aceutils.mkdir(sampleDir+r'cpp/lib/Release/')

		if aceutils.isWin():
			aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', sampleBinDir)
			aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir)
		elif aceutils.isMac():
			aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir)

		aceutils.copy(r'Dev/include/Altseed.h', sampleDir+r'cpp/include/')
		if aceutils.isWin():
			aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/')
			aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/')
		elif aceutils.isMac():
			aceutils.copy(r'Dev/lib/libAltseed.a', sampleDir+r'cpp/lib/')

		aceutils.copy(from_+r'sample_cpp.sln',to_)

		aceutils.mkdir(sampleDir+r'sample_cpp/')
		aceutils.copytreeWithExt(from_ + r'sample_cpp/',sampleDir+r'sample_cpp/',[ r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

	copySampleFiles(r'Sample/BasicSample/',targetDir+r'/Sample/BasicSample/')
	copySampleFiles(r'Sample/ApplicationSample/',targetDir+r'/Sample/ApplicationSample/')

	# Runtime
	runtimeDir = targetDir+r'/Runtime/'

	aceutils.mkdir(runtimeDir)
	aceutils.mkdir(runtimeDir+r'Debug/')
	aceutils.mkdir(runtimeDir+r'Release/')

	if aceutils.isWin():
		aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', runtimeDir)
		aceutils.copy(r'Dev/bin/Altseed_core.dll', runtimeDir)
	elif aceutils.isMac():
		aceutils.copy(r'Dev/bin/libAltseed_core.dylib', runtimeDir)
	aceutils.copy(r'Dev/include/Altseed.h', runtimeDir)
	if aceutils.isWin():
		aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib',runtimeDir+r'Debug/')
		aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', runtimeDir+r'Release/')
	elif aceutils.isMac():
		aceutils.copy(r'Dev/lib/libAltseed.a',runtimeDir+r'/')

	# Doxygen
	aceutils.call(r'doxygen Script/Doxyfile_cpp')
	aceutils.copytree(r'Doxygen_CPP/html/', targetDir+r'/Reference_CPP')

	# Readme
	aceutils.copy(r'readme_cpp.txt', targetDir+r'/readme.txt')

	# Template
	if aceutils.isWin():
		aceutils.copytreeWithExt(r'Template/cpp_win/',targetDir+r'/Template/',[ r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.sln'])
		aceutils.mkdir(targetDir+r'/Template/bin/')
		aceutils.mkdir(targetDir+r'/Template/cpp/')
		aceutils.mkdir(targetDir+r'/Template/cpp/include/')
		aceutils.mkdir(targetDir+r'/Template/cpp/lib/')
		aceutils.mkdir(targetDir+r'/Template/cpp/lib/Debug/')
		aceutils.mkdir(targetDir+r'/Template/cpp/lib/Release/')

		aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', targetDir+r'/Template/bin/')
		aceutils.copy(r'Dev/bin/Altseed_core.dll', targetDir+r'/Template/bin/')
		aceutils.copy(r'Dev/include/Altseed.h', targetDir+r'/Template/cpp/include/')
		aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', targetDir+r'/Template/cpp/lib/Debug/')
		aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', targetDir+r'/Template/cpp/lib/Release/')
	elif aceutils.isMac():
		aceutils.copytreeWithExt(r'Template/cpp_mac/',targetDir+r'/Template/',[ r'.h', r'.cpp', r'.plist', r'.pbxproj', r'.xcworkspacedata'])
		aceutils.mkdir(targetDir+r'/Template/bin/')
		aceutils.mkdir(targetDir+r'/Template/include/')
		aceutils.mkdir(targetDir+r'/Template/lib/')
		aceutils.copy(r'Dev/bin/libAltseed_core.dylib', targetDir+r'/Template/bin/')
		aceutils.copy(r'Dev/include/Altseed.h', targetDir+r'/Template/include/')
		aceutils.copy(r'Dev/lib/libAltseed.a', targetDir+r'/Template/lib/')
예제 #31
0
파일: release.py 프로젝트: wraikny/Altseed
def release_cs():
	type = 'cs'
	
	targetDir = getTargetDir(type)
		
	init(type, targetDir)
	
	# GenerateHeader
	aceutils.call(sys.executable + r' Dev/generate_swig.py')
	
	compile(type)

	aceutils.mkdir(targetDir+r'/')

	copy_tools(type, targetDir)

	makeDocument(type, targetDir,'cs')

	# Sample
	aceutils.mkdir(targetDir+r'/Sample/')

	def copySampleFiles(from_,to_):
		sampleDir = to_
		sampleBinDir = sampleDir+r'bin/'

		aceutils.mkdir(sampleDir)
		aceutils.mkdir(sampleBinDir)
	
		aceutils.copytreeWithExt(from_ + r'bin/',sampleBinDir,[ r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

		if aceutils.isWin():
			aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir)
		elif aceutils.isMac():
			aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir)

		aceutils.mkdir(sampleDir+r'sample_cs/')
		aceutils.copytreeWithExt(from_ + r'sample_cs/',sampleDir+r'sample_cs/',[ r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

		editCSFiles(sampleDir+r'sample_cs/')
		
		aceutils.copy(from_+r'sample_cs.sln',to_)

		aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'sample_cs/')
		aceutils.copy(r'Dev/bin/Altseed.XML', sampleDir+r'sample_cs/')

	copySampleFiles(r'Sample/BasicSample/',targetDir+r'/Sample/BasicSample/')
	copySampleFiles(r'Sample/ApplicationSample/',targetDir+r'/Sample/ApplicationSample/')

	# Runtime
	runtimeDir = targetDir+r'/Runtime/'

	aceutils.mkdir(runtimeDir)

	if aceutils.isWin():
		aceutils.copy(r'Dev/bin/Altseed_core.dll', runtimeDir)
	elif aceutils.isMac():
		aceutils.copy(r'Dev/bin/libAltseed_core.dylib', runtimeDir)
	aceutils.copy(r'Dev/bin/Altseed.dll', runtimeDir)
	aceutils.copy(r'Dev/bin/Altseed.XML', runtimeDir)

	# Readme
	aceutils.copy(r'readme_cs.txt', targetDir+r'/readme.txt')

	# Template
	if aceutils.isWin():
		aceutils.copytreeWithExt(r'Template/cs_win/',targetDir+r'/Template/',[r'.cs', r'.filters', r'.config', r'.vcxproj', r'.sln', r'.csproj'])
		aceutils.mkdir(targetDir+r'/Template/bin/')
		aceutils.copy(r'Dev/bin/Altseed.dll', targetDir+r'/Template/Game/')
		aceutils.copy(r'Dev/bin/Altseed.XML', targetDir+r'/Template/Game/')
		aceutils.copy(r'Dev/bin/Altseed_core.dll', targetDir+r'/Template/bin/')
	elif aceutils.isMac():
		aceutils.copytreeWithExt(r'Template/cs_mac/',targetDir+r'/Template/',[r'.cs', r'.plist', r'.sln', r'.csproj'])
		aceutils.mkdir(targetDir+r'/Template/bin/')
		aceutils.copy(r'Dev/bin/Altseed.dll', targetDir+r'/Template/Game/')
		aceutils.copy(r'Dev/bin/Altseed.XML', targetDir+r'/Template/Game/')
		aceutils.copy(r'Dev/bin/libAltseed_core.dylib', targetDir+r'/Template/bin/')
예제 #32
0
import aceutils
import shutil
import os

aceutils.cdToScript()
aceutils.mkdir('../Downloads')

with aceutils.CurrentDir('../Downloads'):

    aceutils.rmdir(r"box2d_temp")

    if aceutils.isWin() or aceutils.isMac():
        aceutils.copytree(r"Box2D", "box2d_temp")
    else:
        aceutils.copytree(r"Box2D-Linux", "box2d_temp")

    aceutils.rmdir(r"box2d_temp/.git/")

    aceutils.rmdir(r"box2d_bin")
    aceutils.rmdir(r"box2d_bin_x64")

    if aceutils.isWin() or aceutils.isMac():
        aceutils.copy('../Script/CMake/CMakeLists.Box2D.txt',
                      'box2d_temp/Box2D/CMakeLists.txt')
    else:
        aceutils.editCmakeForACE(r'box2d_temp/Box2D/CMakeLists.txt', 'cp932')
        aceutils.editCmakeForACE(r'box2d_temp/Box2D/Box2D/CMakeLists.txt',
                                 'cp932')
    aceutils.mkdir(r"box2d_bin")
    aceutils.mkdir(r"box2d_bin_x64")
예제 #33
0

import aceutils
import shutil
import os

aceutils.cdToScript()
aceutils.mkdir('../Downloads')

with aceutils.CurrentDir('../Downloads'):

    aceutils.rmdir(r"box2d_temp")

    if aceutils.isWin() or aceutils.isMac():
        aceutils.copytree(r"Box2D", "box2d_temp")
    else:
        aceutils.copytree(r"Box2D-Linux", "box2d_temp")

    aceutils.rm(r"box2d_temp/.git")

    aceutils.rmdir(r"box2d_bin")
    aceutils.rmdir(r"box2d_bin_x64")

    if aceutils.isWin() or aceutils.isMac():
        aceutils.copy('../Script/CMake/CMakeLists.Box2D.txt',
                      'box2d_temp/Box2D/CMakeLists.txt')
    else:
        aceutils.editCmakeForACE(r'box2d_temp/Box2D/CMakeLists.txt', 'cp932')
        aceutils.editCmakeForACE(
            r'box2d_temp/Box2D/Box2D/CMakeLists.txt', 'cp932')
    aceutils.mkdir(r"box2d_bin")
    aceutils.mkdir(r"box2d_bin_x64")
예제 #34
0
파일: release.py 프로젝트: wraikny/Altseed
def release_java():
	type = 'java'

	targetDir = getTargetDir(type)
		
	init(type, targetDir)

	# GenerateHeader	
	aceutils.call(sys.executable + r' Dev/generate_swig.py java')
	aceutils.call(sys.executable + r' Script/generateTranslatedCode.py java')
		
	# Sample
	aceutils.call(sys.executable + r' Script/generate_sample.py java')

	aceutils.cd(r'Sample/BasicSample/sample_java/')
	aceutils.call(r'ant')
	aceutils.cd(r'../../../')

	aceutils.cd(r'Sample/ApplicationSample/sample_java/')
	aceutils.call(r'ant')
	aceutils.cd(r'../../../')


	compile(type)

	aceutils.mkdir(targetDir+r'/')

	copy_tools(type, targetDir)

	makeDocument(type, targetDir,'java')

	# Sample
	aceutils.mkdir(targetDir+r'/Sample/')

	def copySampleFiles(from_,to_):

		sampleDir = to_
		sampleBinDir = sampleDir+r'bin/'

		aceutils.mkdir(sampleDir)
		aceutils.mkdir(sampleBinDir)
	
		aceutils.copytreeWithExt(from_ + r'bin/',sampleBinDir,[ r'.jar', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

		if aceutils.isWin():
			aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir)
		elif aceutils.isMac():
			aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir)

		aceutils.mkdir(sampleDir+r'sample_java/')
		aceutils.copytreeWithExt(from_ + r'sample_java/',sampleDir+r'sample_java/',[ r'.java', r'.xml'])

		aceutils.copy(r'Dev/bin/Altseed.jar', sampleBinDir)

	def editFiles(targetDir):
		files = []
		for f in aceutils.get_files(targetDir):
			basename = os.path.basename(f)
			ext = os.path.splitext(basename)[1]
			
			if ext == '.java':
				if r'Sample' in basename or 'Program' in basename:
					aceutils.rm(f)
				else:
					files.append(f)

		for file in files:
			ls = []
			with open(file, mode='r', encoding='utf-8-sig') as f:
				for l in f.readlines():
					l = l.replace(r'public void Run()','public static void main(String args[])')
					l = l.replace(r'implements ISample','')
					ls.append(l)
	
			with open(file, mode='w', encoding='utf-8-sig') as f:
				f.writelines(ls)

	copySampleFiles(r'Sample/BasicSample/',targetDir+r'/Sample/BasicSample/')
	copySampleFiles(r'Sample/ApplicationSample/',targetDir+r'/Sample/ApplicationSample/')

	editFiles(targetDir+r'/Sample/BasicSample/')
	editFiles(targetDir+r'/Sample/ApplicationSample/')

	# Runtime
	runtimeDir = targetDir+r'/Runtime/'

	aceutils.mkdir(runtimeDir)

	if aceutils.isWin():
		aceutils.copy(r'Dev/bin/Altseed_core.dll', runtimeDir)
	elif aceutils.isMac():
		aceutils.copy(r'Dev/bin/libAltseed_core.dylib', runtimeDir)
	aceutils.copy(r'Dev/bin/Altseed.jar', runtimeDir)

	# Readme
	aceutils.copy(r'readme_java.txt', targetDir+r'/readme.txt')
예제 #35
0
파일: release.py 프로젝트: Pctg-x8/Altseed
def release_cpp():
    type = "cpp"

    targetDir = getTargetDir(type)

    init(type, targetDir)

    compile(type)

    aceutils.mkdir(targetDir + r"/")

    copyTool(type, targetDir)

    makeDocument(type, targetDir, "cpp")

    # Sample
    sampleDir = targetDir + r"/Sample/BasicSample/"
    sampleBinDir = sampleDir + r"bin/"

    aceutils.mkdir(targetDir + r"/Sample/")
    aceutils.mkdir(sampleDir)
    aceutils.mkdir(sampleBinDir)

    aceutils.copytreeWithExt(
        r"Sample/BasicSample/bin/",
        sampleBinDir,
        [
            r".h",
            r".cpp",
            r".filters",
            r".config",
            r".vcxproj",
            r".cs",
            r".csproj",
            r".sln",
            r".wav",
            r".ogg",
            r".png",
            r".aip",
            r".efk",
            r".aff",
        ],
    )

    aceutils.mkdir(sampleDir + r"cpp/")
    aceutils.mkdir(sampleDir + r"cpp/include/")
    aceutils.mkdir(sampleDir + r"cpp/lib/")
    aceutils.mkdir(sampleDir + r"cpp/lib/Debug/")
    aceutils.mkdir(sampleDir + r"cpp/lib/Release/")

    if aceutils.isWin():
        aceutils.copy(r"Dev/bin/Altseed_core.Debug.dll", sampleBinDir)
        aceutils.copy(r"Dev/bin/Altseed_core.dll", sampleBinDir)
    elif aceutils.isMac():
        aceutils.copy(r"Dev/bin/libAltseed_core.dylib", sampleBinDir)

    aceutils.copy(r"Dev/include/Altseed.h", sampleDir + r"cpp/include/")
    if aceutils.isWin():
        aceutils.copy(r"Dev/lib/x86/Debug/Altseed.lib", sampleDir + r"cpp/lib/Debug/")
        aceutils.copy(r"Dev/lib/x86/Release/Altseed.lib", sampleDir + r"cpp/lib/Release/")
    elif aceutils.isMac():
        aceutils.copy(r"Dev/lib/libAltseed.a", sampleDir + r"cpp/lib/")

    aceutils.copy(r"Sample/BasicSample/sample_cpp.sln", sampleDir)
    aceutils.mkdir(sampleDir + r"sample_cpp/")
    aceutils.copytreeWithExt(
        r"Sample/BasicSample/sample_cpp/",
        sampleDir + r"sample_cpp/",
        [
            r".h",
            r".cpp",
            r".filters",
            r".config",
            r".vcxproj",
            r".cs",
            r".csproj",
            r".sln",
            r".wav",
            r".ogg",
            r".png",
            r".aip",
            r".efk",
            r".aff",
        ],
    )

    # Runtime
    runtimeDir = targetDir + r"/Runtime/"

    aceutils.mkdir(runtimeDir)
    aceutils.mkdir(runtimeDir + r"Debug/")
    aceutils.mkdir(runtimeDir + r"Release/")

    if aceutils.isWin():
        aceutils.copy(r"Dev/bin/Altseed_core.Debug.dll", runtimeDir)
        aceutils.copy(r"Dev/bin/Altseed_core.dll", runtimeDir)
    elif aceutils.isMac():
        aceutils.copy(r"Dev/bin/libAltseed_core.dylib", runtimeDir)
    aceutils.copy(r"Dev/include/Altseed.h", runtimeDir)
    if aceutils.isWin():
        aceutils.copy(r"Dev/lib/x86/Debug/Altseed.lib", runtimeDir + r"Debug/")
        aceutils.copy(r"Dev/lib/x86/Release/Altseed.lib", runtimeDir + r"Release/")
    elif aceutils.isMac():
        aceutils.copy(r"Dev/lib/libAltseed.a", runtimeDir + r"/")

        # Doxygen
    aceutils.call(r"doxygen Script/Doxyfile_cpp")
    aceutils.copytree(r"Reference_CPP/html/", targetDir + r"/Reference_CPP")
예제 #36
0
파일: release.py 프로젝트: Pctg-x8/Altseed
def release_cs():
    type = "cs"

    targetDir = getTargetDir(type)

    init(type, targetDir)

    compile(type)

    aceutils.mkdir(targetDir + r"/")

    copyTool(type, targetDir)

    makeDocument(type, targetDir, "cs")

    # Sample
    sampleDir = targetDir + r"/Sample/BasicSample/"
    sampleBinDir = sampleDir + r"bin/"

    aceutils.mkdir(targetDir + r"/Sample/")
    aceutils.mkdir(sampleDir)
    aceutils.mkdir(sampleBinDir)

    aceutils.copytreeWithExt(
        r"Sample/BasicSample/bin/",
        sampleBinDir,
        [
            r".h",
            r".cpp",
            r".filters",
            r".config",
            r".vcxproj",
            r".cs",
            r".csproj",
            r".sln",
            r".wav",
            r".ogg",
            r".png",
            r".aip",
            r".efk",
            r".aff",
        ],
    )

    if aceutils.isWin():
        aceutils.copy(r"Dev/bin/Altseed_core.dll", sampleBinDir)
    elif aceutils.isMac():
        aceutils.copy(r"Dev/bin/libAltseed_core.dylib", sampleBinDir)

    aceutils.copy(r"Sample/sample_cs.sln", sampleDir)
    aceutils.mkdir(sampleDir + r"sample_cs/")
    aceutils.copytreeWithExt(
        r"Sample/BasicSample/sample_cs/",
        sampleDir + r"sample_cs/",
        [
            r".h",
            r".cpp",
            r".filters",
            r".config",
            r".vcxproj",
            r".cs",
            r".csproj",
            r".sln",
            r".wav",
            r".ogg",
            r".png",
            r".aip",
            r".efk",
            r".aff",
        ],
    )

    editCSFiles(sampleDir + r"sample_cs/")

    aceutils.copy(r"Dev/bin/Altseed.dll", sampleDir + r"sample_cs/")
    aceutils.copy(r"Dev/bin/Altseed.XML", sampleDir + r"sample_cs/")

    # Runtime
    runtimeDir = targetDir + r"/Runtime/"

    aceutils.mkdir(runtimeDir)

    if aceutils.isWin():
        aceutils.copy(r"Dev/bin/Altseed_core.dll", runtimeDir)
    elif aceutils.isMac():
        aceutils.copy(r"Dev/bin/libAltseed_core.dylib", runtimeDir)
    aceutils.copy(r"Dev/bin/Altseed.dll", runtimeDir)
    aceutils.copy(r"Dev/bin/Altseed.XML", runtimeDir)
예제 #37
0
파일: release.py 프로젝트: altseed/Altseed
def release_cpp():
    type = 'cpp'

    targetDir = getTargetDir(type)

    init(type, targetDir)

    compile(type)

    aceutils.mkdir(targetDir+r'/')

    copy_tools(type, targetDir)

    makeDocument(type, targetDir, 'cpp')

    # Sample
    aceutils.mkdir(targetDir+r'/Sample/')

    def copySampleFiles(from_, to_):
        sampleDir = to_
        sampleBinDir = sampleDir+r'bin/'
        aceutils.mkdir(sampleDir)
        aceutils.mkdir(sampleBinDir)
        aceutils.copytreeWithExt(from_ + 'bin/', sampleBinDir, [r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj',
                                                                r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

        aceutils.mkdir(sampleDir+r'cpp/')
        aceutils.mkdir(sampleDir+r'cpp/include/')
        aceutils.mkdir(sampleDir+r'cpp/lib/')
        aceutils.mkdir(sampleDir+r'cpp/lib/Debug/')
        aceutils.mkdir(sampleDir+r'cpp/lib/Release/')

        if aceutils.isWin():
            aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', sampleBinDir)
            aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir)
        elif aceutils.isMac():
            aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir)

        aceutils.copy(r'Dev/include/Altseed.h', sampleDir+r'cpp/include/')

        if aceutils.isWin():
            if aceutils.Isi386():
                aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/')
                aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/')
            else:
                aceutils.copy(r'Dev/lib/x64/Debug/Altseed.lib', sampleDir+r'cpp/lib/Debug/')
                aceutils.copy(r'Dev/lib/x64/Release/Altseed.lib', sampleDir+r'cpp/lib/Release/')
        elif aceutils.isMac():
            aceutils.copy(r'Dev/lib/libAltseed.a', sampleDir+r'cpp/lib/')

        aceutils.copy(from_+r'sample_cpp.sln', to_)

        aceutils.mkdir(sampleDir+r'sample_cpp/')
        aceutils.copytreeWithExt(from_ + r'sample_cpp/', sampleDir+r'sample_cpp/', [
                                 r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

    copySampleFiles(r'Sample/BasicSample/', targetDir+r'/Sample/BasicSample/')
    copySampleFiles(r'Sample/ApplicationSample/',
                    targetDir+r'/Sample/ApplicationSample/')

    # Runtime
    runtimeDir = targetDir+r'/Runtime/'

    aceutils.mkdir(runtimeDir)
    aceutils.mkdir(runtimeDir+r'Debug/')
    aceutils.mkdir(runtimeDir+r'Release/')

    if aceutils.isWin():
        aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll', runtimeDir)
        aceutils.copy(r'Dev/bin/Altseed_core.dll', runtimeDir)
    elif aceutils.isMac():
        aceutils.copy(r'Dev/bin/libAltseed_core.dylib', runtimeDir)
    aceutils.copy(r'Dev/include/Altseed.h', runtimeDir)
    if aceutils.isWin():
        if aceutils.Isi386():
            aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib', runtimeDir+r'Debug/')
            aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib', runtimeDir+r'Release/')
        else:
            aceutils.copy(r'Dev/lib/x64/Debug/Altseed.lib', runtimeDir+r'Debug/')
            aceutils.copy(r'Dev/lib/x64/Release/Altseed.lib', runtimeDir+r'Release/')            
    elif aceutils.isMac():
        aceutils.copy(r'Dev/lib/libAltseed.a', runtimeDir+r'/')

    # Doxygen
    aceutils.call(r'doxygen Script/Doxyfile_cpp')
    aceutils.copytree(r'Doxygen_CPP/html/', targetDir+r'/Reference_CPP')

    # Readme
    aceutils.copy(r'readme_cpp.txt', targetDir+r'/readme.txt')

    # Template
    if aceutils.isWin():
        aceutils.copytreeWithExt(r'Template/cpp_win/', targetDir+r'/Template/', [
                                 r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj', r'.sln'])
        aceutils.mkdir(targetDir+r'/Template/bin/')
        aceutils.mkdir(targetDir+r'/Template/cpp/')
        aceutils.mkdir(targetDir+r'/Template/cpp/include/')
        aceutils.mkdir(targetDir+r'/Template/cpp/lib/')
        aceutils.mkdir(targetDir+r'/Template/cpp/lib/Debug/')
        aceutils.mkdir(targetDir+r'/Template/cpp/lib/Release/')

        aceutils.copy(r'Dev/bin/Altseed_core_Debug.dll',
                      targetDir+r'/Template/bin/')
        aceutils.copy(r'Dev/bin/Altseed_core.dll', targetDir+r'/Template/bin/')
        aceutils.copy(r'Dev/include/Altseed.h',
                      targetDir+r'/Template/cpp/include/')

        if aceutils.Isi386():
            aceutils.copy(r'Dev/lib/x86/Debug/Altseed.lib',
                          targetDir+r'/Template/cpp/lib/Debug/')
            aceutils.copy(r'Dev/lib/x86/Release/Altseed.lib',
                          targetDir+r'/Template/cpp/lib/Release/')
        else:
            aceutils.copy(r'Dev/lib/x64/Debug/Altseed.lib',
                          targetDir+r'/Template/cpp/lib/Debug/')
            aceutils.copy(r'Dev/lib/x64/Release/Altseed.lib',
                          targetDir+r'/Template/cpp/lib/Release/')
            
    elif aceutils.isMac():
        aceutils.copytreeWithExt(r'Template/cpp_mac/', targetDir+r'/Template/', [
                                 r'.h', r'.cpp', r'.plist', r'.pbxproj', r'.xcworkspacedata'])
        aceutils.mkdir(targetDir+r'/Template/bin/')
        aceutils.mkdir(targetDir+r'/Template/include/')
        aceutils.mkdir(targetDir+r'/Template/lib/')
        aceutils.copy(r'Dev/bin/libAltseed_core.dylib',
                      targetDir+r'/Template/bin/')
        aceutils.copy(r'Dev/include/Altseed.h',
                      targetDir+r'/Template/include/')
        aceutils.copy(r'Dev/lib/libAltseed.a', targetDir+r'/Template/lib/')
예제 #38
0
파일: release.py 프로젝트: altseed/Altseed
def release_java():
    type = 'java'

    targetDir = getTargetDir(type)

    init(type, targetDir)

    # GenerateHeader
    aceutils.call(sys.executable + r' Dev/generate_swig.py java')
    aceutils.call(sys.executable + r' Script/generateTranslatedCode.py --java')

    # Sample
    aceutils.call(sys.executable + r' Script/generate_sample.py --java')

    aceutils.cd(r'Sample/BasicSample/sample_java/')
    aceutils.call(r'ant')
    aceutils.cd(r'../../../')

    aceutils.cd(r'Sample/ApplicationSample/sample_java/')
    aceutils.call(r'ant')
    aceutils.cd(r'../../../')

    compile(type)

    aceutils.mkdir(targetDir+r'/')

    copy_tools(type, targetDir)

    makeDocument(type, targetDir, 'java')

    # Sample
    aceutils.mkdir(targetDir+r'/Sample/')

    def copySampleFiles(from_, to_):

        sampleDir = to_
        sampleBinDir = sampleDir+r'bin/'

        aceutils.mkdir(sampleDir)
        aceutils.mkdir(sampleBinDir)

        aceutils.copytreeWithExt(from_ + r'bin/', sampleBinDir, [
                                 r'.jar', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

        if aceutils.isWin():
            aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir)
        elif aceutils.isMac():
            aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir)

        aceutils.mkdir(sampleDir+r'sample_java/')
        aceutils.copytreeWithExt(
            from_ + r'sample_java/', sampleDir+r'sample_java/', [r'.java', r'.xml'])

        aceutils.copy(r'Dev/bin/Altseed.jar', sampleBinDir)

    def editFiles(targetDir):
        files = []
        for f in aceutils.get_files(targetDir):
            basename = os.path.basename(f)
            ext = os.path.splitext(basename)[1]

            if ext == '.java':
                if r'Sample' in basename or 'Program' in basename:
                    aceutils.rm(f)
                else:
                    files.append(f)

        for file in files:
            ls = []
            with open(file, mode='r', encoding='utf-8-sig') as f:
                for l in f.readlines():
                    l = l.replace(r'public void Run()',
                                  'public static void main(String args[])')
                    l = l.replace(r'implements ISample', '')
                    ls.append(l)

            with open(file, mode='w', encoding='utf-8-sig') as f:
                f.writelines(ls)

    copySampleFiles(r'Sample/BasicSample/', targetDir+r'/Sample/BasicSample/')
    copySampleFiles(r'Sample/ApplicationSample/',
                    targetDir+r'/Sample/ApplicationSample/')

    editFiles(targetDir+r'/Sample/BasicSample/')
    editFiles(targetDir+r'/Sample/ApplicationSample/')

    # Runtime
    runtimeDir = targetDir+r'/Runtime/'

    aceutils.mkdir(runtimeDir)

    if aceutils.isWin():
        aceutils.copy(r'Dev/bin/Altseed_core.dll', runtimeDir)
    elif aceutils.isMac():
        aceutils.copy(r'Dev/bin/libAltseed_core.dylib', runtimeDir)
    aceutils.copy(r'Dev/bin/Altseed.jar', runtimeDir)

    # Readme
    aceutils.copy(r'readme_java.txt', targetDir+r'/readme.txt')
예제 #39
0
파일: release.py 프로젝트: altseed/Altseed
def release_cs():
    type = 'cs'

    targetDir = getTargetDir(type)

    init(type, targetDir)

    # GenerateHeader
    aceutils.call(sys.executable + r' Dev/generate_swig.py')

    compile(type)

    aceutils.mkdir(targetDir+r'/')

    copy_tools(type, targetDir)

    makeDocument(type, targetDir, 'cs')

    # Sample
    aceutils.mkdir(targetDir+r'/Sample/')

    def copySampleFiles(from_, to_):
        sampleDir = to_
        sampleBinDir = sampleDir+r'bin/'

        aceutils.mkdir(sampleDir)
        aceutils.mkdir(sampleBinDir)

        aceutils.copytreeWithExt(from_ + r'bin/', sampleBinDir, [r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj',
                                                                 r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

        if aceutils.isWin():
            aceutils.copy(r'Dev/bin/Altseed_core.dll', sampleBinDir)
        elif aceutils.isMac():
            aceutils.copy(r'Dev/bin/libAltseed_core.dylib', sampleBinDir)

        aceutils.mkdir(sampleDir+r'sample_cs/')
        aceutils.copytreeWithExt(from_ + r'sample_cs/', sampleDir+r'sample_cs/', [r'.h', r'.cpp', r'.filters', r'.config', r'.vcxproj',
                                                                                  r'.cs', r'.csproj', r'.sln', r'.wav', r'.ogg', r'.png', r'.mp4', r'.aip', r'.efk', r'.aff', r'.pack', r'.txt'])

        editCSFiles(sampleDir+r'sample_cs/')

        aceutils.copy(from_+r'sample_cs.sln', to_)

        aceutils.copy(r'Dev/bin/Altseed.dll', sampleDir+r'sample_cs/')
        aceutils.copy(r'Dev/bin/Altseed.XML', sampleDir+r'sample_cs/')

    copySampleFiles(r'Sample/BasicSample/', targetDir+r'/Sample/BasicSample/')
    copySampleFiles(r'Sample/ApplicationSample/',
                    targetDir+r'/Sample/ApplicationSample/')

    # Runtime
    runtimeDir = targetDir+r'/Runtime/'

    aceutils.mkdir(runtimeDir)

    if aceutils.isWin():
        aceutils.copy(r'Dev/bin/Altseed_core.dll', runtimeDir)
    elif aceutils.isMac():
        aceutils.copy(r'Dev/bin/libAltseed_core.dylib', runtimeDir)
    aceutils.copy(r'Dev/bin/Altseed.dll', runtimeDir)
    aceutils.copy(r'Dev/bin/Altseed.XML', runtimeDir)

    # Readme
    aceutils.copy(r'readme_cs.txt', targetDir+r'/readme.txt')

    # Template
    if aceutils.isWin():
        aceutils.copytreeWithExt(r'Template/cs_win/', targetDir+r'/Template/',
                                 [r'.cs', r'.filters', r'.config', r'.vcxproj', r'.sln', r'.csproj'])
        aceutils.mkdir(targetDir+r'/Template/bin/')
        aceutils.copy(r'Dev/bin/Altseed.dll', targetDir+r'/Template/Game/')
        aceutils.copy(r'Dev/bin/Altseed.XML', targetDir+r'/Template/Game/')
        aceutils.copy(r'Dev/bin/Altseed_core.dll', targetDir+r'/Template/bin/')
    elif aceutils.isMac():
        aceutils.copytreeWithExt(r'Template/cs_mac/', targetDir +
                                 r'/Template/', [r'.cs', r'.plist', r'.sln', r'.csproj'])
        aceutils.mkdir(targetDir+r'/Template/bin/')
        aceutils.copy(r'Dev/bin/Altseed.dll', targetDir+r'/Template/Game/')
        aceutils.copy(r'Dev/bin/Altseed.XML', targetDir+r'/Template/Game/')
        aceutils.copy(r'Dev/bin/libAltseed_core.dylib',
                      targetDir+r'/Template/bin/')