Skip to content

Commit

Permalink
Merge build script
Browse files Browse the repository at this point in the history
  • Loading branch information
mhtvsSFrpHdE committed Aug 4, 2022
1 parent dbb0d52 commit 317a10a
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 95 deletions.
64 changes: 64 additions & 0 deletions qpp/prefetch/Tool/build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import os # nopep8
import sys # nopep8
from pathlib import Path # nopep8

# Log
import logging
logging.basicConfig(filename='build.log', encoding='utf-8', level=logging.INFO)

# Append source code folder
srcPath = Path(os.path.dirname(__file__)).joinpath("src") # nopep8
sys.path.append(srcPath) # nopep8

# pToolCore
from Src import pToolCore # nopep8

# Environment
cwd = Path(os.getcwd()).parent
buildType = pToolCore.BuildType.Release
if (len(sys.argv) > 1):
if sys.argv[1] == "Debug":
buildType = pToolCore.BuildType.Debug
pToolCore.Init(cwd, buildType)

# File list

# Config
pToolCore.Function.processFile(Path("prefetch.ini"))

# DLL
pToolCore.Function.processFile(Path("requirements").joinpath("libgcc_s_dw2-1.dll"))
pToolCore.Function.processFile(Path("requirements").joinpath("libstdc++-6.dll"))
pToolCore.Function.processFile(Path("requirements").joinpath("libwinpthread-1.dll"))
pToolCore.Function.processFile(Path("requirements").joinpath("QtCore4.dll"))

if buildType == pToolCore.BuildType.Release:
compileOutputPath = pToolCore.Function.getFolderPath(folderType=pToolCore.FolderType.Compile)

# Exe
pToolCore.Function.processFile(compileOutputPath.joinpath("prefetch.exe"))

if buildType == pToolCore.BuildType.Debug:
qtPath = Path("C:\Qt\\4.8.7\\bin")

pToolCore.Function.processFile(qtPath.joinpath("QtCored4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtDesignerComponentsd4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtDesignerd4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtHelpd4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtCLucened4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtScriptToolsd4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtWebKitd4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtDeclaratived4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtScriptd4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtSvgd4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtMultimediad4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("phonond4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtXmlPatternsd4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtOpenGLd4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("Qt3Supportd4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtGuid4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtDBusd4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtTestd4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtSqld4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtNetworkd4.dll"))
# pToolCore.Function.processFile(qtPath.joinpath("QtXmld4.dll"))
60 changes: 0 additions & 60 deletions qpp/prefetch/Tool/copy_resource.py

This file was deleted.

35 changes: 0 additions & 35 deletions qpp/prefetch/Tool/pack.py

This file was deleted.

0 comments on commit 317a10a

Please sign in to comment.