def build(arch, build): workingDir = getWorkingFolderPath() if not os.path.isdir(workingDir): print "Extract Libpng" gz = findLibpngZip(getRootPath()) tar = gz[:-3] unzipcmd = [sevenz.cmd, "x", "-y", "-o" + getRootPath(), gz] proc = subprocess.call(unzipcmd) unzipcmd = [sevenz.cmd, "x", "-y", "-o" + getRootPath(), tar] proc = subprocess.call(unzipcmd) fixFileStruct(getRootPath(), getWorkingFolderPath()) print "Extract zlib" gz = findZlibZip(getRootPath()) tar = gz[:-3] unzipcmd = [sevenz.cmd, "x", "-y", "-o" + getRootPath(), gz] proc = subprocess.call(unzipcmd) unzipcmd = [sevenz.cmd, "x", "-y", "-o" + getRootPath(), tar] proc = subprocess.call(unzipcmd) devtools.buildCmake(os.path.join(getRootPath(), "zlib-1.2.8"), getRootPath(), [], arch, build, "zlib.sln") devtools.buildCmake(os.path.join(getRootPath(), "libpng"), getRootPath(), ["-DPNG_SHARED=OFF"], arch, build, "libpng.sln") return True
def build(arch, build): if "wind" not in arch.lower(): print name + " is windows only" return workingDir = getWorkingFolderPath() devtools.buildCmake(getWorkingFolderPath(), getRootPath(), [], arch, build, "crashrpt.sln") return True
def build(arch, build): workingDir = getWorkingFolderPath() if not os.path.isdir(workingDir): print "Extract glfw" zp = findZip(getRootPath()) unzipcmd = [sevenz.cmd, "x", "-y", "-o" + getRootPath(), zp] proc = subprocess.call(unzipcmd) fixFileStruct(getRootPath(), getWorkingFolderPath()) devtools.buildCmake(os.path.join(workingDir), getRootPath(), ["-DUSE_MSVC_RUNTIME_LIBRARY_DLL=OFF", "-DGLFW_USE_RETINA=OFF"], arch, build, "GLFW.sln") return True
def build(arch, build): workingDir = getWorkingFolderPath() params = [ "-DBUILD_TESTING=OFF", "-DBUILD_CURL_EXE=OFF", "-DCMAKE_USE_OPENSSL=ON", "-DBUILD_CURL_TESTS=OFF", "-DCMAKE_USE_LIBSSH2=OFF", "-DCURL_WINDOWS_SSPI=OFF", "-DCURL_STATICLIB=ON", "-DHTTP_ONLY=ON" ] if "dar" in arch: # params.append("-DENABLE_ARES=ON") params.append("-DENABLE_THREADED_RESOLVER=ON") devtools.buildCmake(os.path.join(workingDir), getRootPath(), params, arch, build, "curl.sln") return True
def build(arch, build): workingDir = getWorkingFolderPath() if not os.path.isdir(workingDir): print "Extract FreeType" bz2 = findFreeTypeZip(getRootPath()) tar = bz2[:-4] unzipcmd = [sevenz.cmd, "x", "-y", "-o" + getRootPath(), bz2] proc = subprocess.call(unzipcmd) unzipcmd = [sevenz.cmd, "x", "-y", "-o" + getRootPath(), tar] proc = subprocess.call(unzipcmd) fixFileStruct(getRootPath(), getWorkingFolderPath()) devtools.buildCmake(os.path.join(workingDir), getRootPath(), [], arch, build, "freetype.sln") return True
def build(arch, build): devtools.buildCmake(getWorkingFolderPath(), getRootPath(), [], arch, build, "nvml.sln") return True
def build(arch, build): devtools.buildCmake(getRootPath(), getRootPath(), ["-DCMAKE_CXX_FLAGS=/w", "-DCMAKE_DEBUG_POSTFIX=d"], arch, build, "gtest.sln") return True
def build(arch, build): glewDir = os.path.join(getRootPath(), "glew") devtools.buildCmake(glewDir, getRootPath(), [], arch, build, "GLEW.sln") return True
def buildproject(whatbuild, productversion, serverOnly): prepareArgs() dodevelop = "debug" in whatbuild dorelease = "release" in whatbuild dotest = "test" in whatbuild solutionName = "liquidsky.sln" if ("dproject" in whatbuild): solutionName = "xcode" if dotest: dorelease = dotest for arch in archs: buildtype = "build" outdirname = g_outdirname if len(archs) > 1: outdirname += arch outdir = os.path.abspath(os.path.join(module_path(), outdirname)) args = ["-DCMAKE_INSTALL_PREFIX=" + outdir] for a in extraargs: args.append(a) args.append("-DPRODUCT_VERSION=" + productversion) if dotest: args.append("-DDEBUG_CONSOLE=1") if dodevelop: args.append("-DDEBUG_CONSOLE=1") if not serverOnly: devtools.buildCmake(devtools.rootDir, devtools.rootDir, args, arch, buildtype, None, True, True, False) devtools.buildCmake(devtools.rootDir, devtools.rootDir, args, arch, buildtype, None, True, True, True) if dorelease: args.append("-DGIT_DESCRIBE_VERSION=\"" + gitDescribe() + "\"") buildtype = "Release" if not serverOnly: devtools.buildCmake(devtools.rootDir, devtools.rootDir, args, arch, buildtype, solutionName, True, True, False, package=True) devtools.buildCmake(devtools.rootDir, devtools.rootDir, args, arch, buildtype, solutionName, True, True, True, package=True) if ("dproject" in whatbuild): ar = arch.lower() tmpPath = devtools.getTmpPath(devtools.rootDir, ar, buildtype) cefDebug = os.path.join(module_path(), "3rdparty", "cef", "macosx64", "Debug") cefRelease = os.path.join(module_path(), "3rdparty", "cef", "macosx64", "Release") playerDebug = os.path.join(tmpPath, "Debug", "LiquidSky.app", "Contents", "Frameworks") playerRelease = os.path.join(tmpPath, "Release", "LiquidSky.app", "Contents", "Frameworks") cfiles = [{ 'name': "", 'ext': "", 'path': playerDebug, 'save_folders': True }] devtools.findAndCopy(cefDebug, cfiles) cfiles = [{ 'name': "", 'ext': "", 'path': playerRelease, 'save_folders': True }] devtools.findAndCopy(cefRelease, cfiles)
def build(arch, build): getSources() devtools.buildCmake(getWorkingFolderPath(), getRootPath(), ["-DCMAKE_DEBUG_POSTFIX=d"], arch, build, "opus.sln") return True
def build(arch, build): getSources() devtools.buildCmake(os.path.join(getWorkingFolderPath(), "cmake"), getRootPath(), ["-Dprotobuf_BUILD_TESTS=OFF"], arch, build, "protobuf.sln") return True
def build(arch, build): devtools.buildCmake(getRootPath(), getRootPath(), [], arch, build, "speex.sln") return True
def build(arch, build): devtools.buildCmake(getRootPath(), getRootPath(), ["-DGFLAGS_BUILD_SHARED_LIBS=OFF", "-DGFLAGS_BUILD_STATIC_LIBS=ON", "-DBUILD_gflags_LIB=ON", "-DBUILD_gflags_nothreads_LIB=OFF", "-DGFLAGS_INSTALL_HEADERS=ON", "-DGFLAGS_INSTALL_SHARED_LIBS=OFF", "-DGFLAGS_INSTALL_STATIC_LIBS=ON"], arch, build, "gflags.sln") return True