From 035c75d67e626411265ebabf2bce86c31b0cba34 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Thu, 11 May 2023 20:46:53 +0800 Subject: [PATCH] =?UTF-8?q?makefile=E6=B2=A1=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 73 ------ Makefile | 28 +++ spark-webapp-runtime-runner.pro.user | 325 +++++++++++++++++++++++++++ 3 files changed, 353 insertions(+), 73 deletions(-) delete mode 100644 .gitignore create mode 100644 Makefile create mode 100644 spark-webapp-runtime-runner.pro.user diff --git a/.gitignore b/.gitignore deleted file mode 100644 index fab7372..0000000 --- a/.gitignore +++ /dev/null @@ -1,73 +0,0 @@ -# This file is used to ignore files which are generated -# ---------------------------------------------------------------------------- - -*~ -*.autosave -*.a -*.core -*.moc -*.o -*.obj -*.orig -*.rej -*.so -*.so.* -*_pch.h.cpp -*_resource.rc -*.qm -.#* -*.*# -core -!core/ -tags -.DS_Store -.directory -*.debug -Makefile* -*.prl -*.app -moc_*.cpp -ui_*.h -qrc_*.cpp -Thumbs.db -*.res -*.rc -/.qmake.cache -/.qmake.stash - -# qtcreator generated files -*.pro.user* - -# xemacs temporary files -*.flc - -# Vim temporary files -.*.swp - -# Visual Studio generated files -*.ib_pdb_index -*.idb -*.ilk -*.pdb -*.sln -*.suo -*.vcproj -*vcproj.*.*.user -*.ncb -*.sdf -*.opensdf -*.vcxproj -*vcxproj.* - -# MinGW generated files -*.Debug -*.Release - -# Python byte code -*.pyc - -# Binaries -# -------- -*.dll -*.exe - diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6f73d6c --- /dev/null +++ b/Makefile @@ -0,0 +1,28 @@ +SHELL := /bin/bash +arch=`dpkg --print-architecture` +export version=1.1.1 +build: + # 编译 + mkdir building -p + + cd building/ && qmake .. + cd building/ && make -j$(nproc) + +clean: + rm -rf building + rm -rf build + rm -rf /tmp/spark-webapp-runtime-runner + +package: + make build + #export arch=`arch` + cp building/spark-webapp-runtime-runner deb/opt/apps/spark-webapp-runtime-runner/spark-webapp-runtime-runner + cp spark-web-packer deb/opt/apps/spark-webapp-runtime-runner/ + cp launch.sh deb/opt/apps/spark-webapp-runtime-runner/ + cp information.json deb/opt/apps/spark-webapp-runtime-runner/ + mkdir -p /tmp/spark-webapp-runtime-runner + cp deb/* /tmp/spark-webapp-runtime-runner -r + sed -i "s/@@version@@/${version}/g" /tmp/spark-webapp-runtime-runner/DEBIAN/control #> /tmp/spark-webapp-runtime-runner/DEBIAN/control + sed -i "s/@@arch@@/${arch}/g" /tmp/spark-webapp-runtime-runner/DEBIAN/control #> /tmp/spark-webapp-runtime-runner/DEBIAN/control + dpkg -b /tmp/spark-webapp-runtime-runner spark-webapp-runtime-runner_${version}_${arch}.deb + rm -rf /tmp/spark-webapp-runtime-runner diff --git a/spark-webapp-runtime-runner.pro.user b/spark-webapp-runtime-runner.pro.user new file mode 100644 index 0000000..e2b30f0 --- /dev/null +++ b/spark-webapp-runtime-runner.pro.user @@ -0,0 +1,325 @@ + + + + + + EnvironmentId + {4ffd6df9-1365-4837-81b1-582e0e2d1f21} + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + true + false + true + + Cpp + + CppGlobal + + + + QmlJS + + QmlJSGlobal + + + 2 + UTF-8 + false + 4 + false + 80 + true + true + 1 + true + false + 0 + true + true + 0 + 8 + true + 1 + true + true + true + false + + + + ProjectExplorer.Project.PluginSettings + + + true + + + + ProjectExplorer.Project.Target.0 + + Qt 5.15.6 in PATH (qt5) + Qt 5.15.6 in PATH (qt5) + {ab20853c-9d79-473a-820e-8e95c145170e} + 0 + 0 + 0 + + /home/gfdgd_xi/Desktop/build-spark-webapp-runtime-runner-Qt_5_15_6_in_PATH_qt5-Debug + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + false + false + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + Debug + Qt4ProjectManager.Qt4BuildConfiguration + 2 + true + + + /home/gfdgd_xi/Desktop/build-spark-webapp-runtime-runner-Qt_5_15_6_in_PATH_qt5-Release + + + true + qmake + + QtProjectManager.QMakeBuildStep + false + + false + false + true + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + Release + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + + /home/gfdgd_xi/Desktop/build-spark-webapp-runtime-runner-Qt_5_15_6_in_PATH_qt5-Profile + + + true + qmake + + QtProjectManager.QMakeBuildStep + true + + false + true + true + + + true + Make + + Qt4ProjectManager.MakeStep + + false + + + false + + 2 + Build + + ProjectExplorer.BuildSteps.Build + + + + true + Make + + Qt4ProjectManager.MakeStep + + true + clean + + false + + 1 + Clean + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Profile + Profile + Qt4ProjectManager.Qt4BuildConfiguration + 0 + true + + 3 + + + 0 + 部署 + + ProjectExplorer.BuildSteps.Deploy + + 1 + Deploy Configuration + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + + false + false + 1000 + + true + + false + false + false + false + true + 0.01 + 10 + true + 1 + 25 + + 1 + true + false + true + valgrind + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + 2 + + + Custom Executable + + ProjectExplorer.CustomExecutableRunConfiguration + + 3768 + false + true + false + false + true + + + + 1 + + + + ProjectExplorer.Project.TargetCount + 1 + + + ProjectExplorer.Project.Updater.FileVersion + 20 + + + Version + 20 + +