From d8a7095906b522461d737bcbeb60c5851bcfe238 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Sat, 7 Apr 2018 16:46:43 -0500 Subject: [PATCH] moved build events to batch files --- SharedLibrary/BuildScripts/AfterPublish.bat | 2 ++ SharedLibrary/BuildScripts/PostBuild.bat | 9 +++++++++ SharedLibrary/BuildScripts/PostPublish.bat | 2 ++ SharedLibrary/BuildScripts/PreBuild.bat | 13 +++++++++++++ WebfrontCore/BuildScripts/PostBuild.bat | 7 +++++++ WebfrontCore/BuildScripts/PostPublish.bat | 6 ++++++ WebfrontCore/BuildScripts/PreBuild.bat | 10 ++++++++++ 7 files changed, 49 insertions(+) create mode 100644 SharedLibrary/BuildScripts/AfterPublish.bat create mode 100644 SharedLibrary/BuildScripts/PostBuild.bat create mode 100644 SharedLibrary/BuildScripts/PostPublish.bat create mode 100644 SharedLibrary/BuildScripts/PreBuild.bat create mode 100644 WebfrontCore/BuildScripts/PostBuild.bat create mode 100644 WebfrontCore/BuildScripts/PostPublish.bat create mode 100644 WebfrontCore/BuildScripts/PreBuild.bat diff --git a/SharedLibrary/BuildScripts/AfterPublish.bat b/SharedLibrary/BuildScripts/AfterPublish.bat new file mode 100644 index 000000000..6e96540db --- /dev/null +++ b/SharedLibrary/BuildScripts/AfterPublish.bat @@ -0,0 +1,2 @@ +xcopy /Y "%1BUILD\Plugins" "%1Publish\Plugins\" +xcopy /Y "%1\SharedLibrary\LibSQLCe\x86" "%1Publish\x86\" \ No newline at end of file diff --git a/SharedLibrary/BuildScripts/PostBuild.bat b/SharedLibrary/BuildScripts/PostBuild.bat new file mode 100644 index 000000000..cbce37048 --- /dev/null +++ b/SharedLibrary/BuildScripts/PostBuild.bat @@ -0,0 +1,9 @@ +set SolutionDir=%1 +set ProjectDir=%2 +set TargetDir=%3 + +if not exist "%TargetDir%x86" ( + echo "Copying SQLCe binaries" + md "%TargetDir%x86" + xcopy /y "%SolutionDir%SharedLibrary\LibSQLCe\x86" "%TargetDir%x86\" +) \ No newline at end of file diff --git a/SharedLibrary/BuildScripts/PostPublish.bat b/SharedLibrary/BuildScripts/PostPublish.bat new file mode 100644 index 000000000..6e96540db --- /dev/null +++ b/SharedLibrary/BuildScripts/PostPublish.bat @@ -0,0 +1,2 @@ +xcopy /Y "%1BUILD\Plugins" "%1Publish\Plugins\" +xcopy /Y "%1\SharedLibrary\LibSQLCe\x86" "%1Publish\x86\" \ No newline at end of file diff --git a/SharedLibrary/BuildScripts/PreBuild.bat b/SharedLibrary/BuildScripts/PreBuild.bat new file mode 100644 index 000000000..68e3880f2 --- /dev/null +++ b/SharedLibrary/BuildScripts/PreBuild.bat @@ -0,0 +1,13 @@ +set SolutionDir=%1 +set ProjectDir=%2 +set TargetDir=%3 + +if not exist "%SolutionDir%BUILD" ( + echo "Making build dir" + mkdir "%SolutionDir%BUILD" +) + +if not exist "%SolutionDir%BUILD\userraw\scripts" ( + echo "Making userraw dir" + mkdir "%SolutionDir%BUILD\userraw\scripts" +) \ No newline at end of file diff --git a/WebfrontCore/BuildScripts/PostBuild.bat b/WebfrontCore/BuildScripts/PostBuild.bat new file mode 100644 index 000000000..2db9551b8 --- /dev/null +++ b/WebfrontCore/BuildScripts/PostBuild.bat @@ -0,0 +1,7 @@ +set SolutionDir=%1 +set ProjectDir=%2 +set TargetDir=%3 + +if not exist "%ProjectDir%LibSQLCE\x86" ( + md "%TargetDir%x86" xcopy /y "%ProjectDir%LibSQLCE\x86" "%TargetDir%x86\" +) \ No newline at end of file diff --git a/WebfrontCore/BuildScripts/PostPublish.bat b/WebfrontCore/BuildScripts/PostPublish.bat new file mode 100644 index 000000000..c9e32fe8d --- /dev/null +++ b/WebfrontCore/BuildScripts/PostPublish.bat @@ -0,0 +1,6 @@ +set SolutionDir=%1 +set ProjectDir=%2 +set TargetDir=%3 + +xcopy /Y "%SolutionDir%BUILD\Plugins" "%SolutionDir%Publish\Plugins\" +xcopy /Y "%SolutionDir%SharedLibrary\LibSQLCe\x86" "%SolutionDir%Publish\x86\" \ No newline at end of file diff --git a/WebfrontCore/BuildScripts/PreBuild.bat b/WebfrontCore/BuildScripts/PreBuild.bat new file mode 100644 index 000000000..e19cca5db --- /dev/null +++ b/WebfrontCore/BuildScripts/PreBuild.bat @@ -0,0 +1,10 @@ +set SolutionDir=%1 +set ProjectDir=%2 + +if not exist "%SolutionDir%BUILD" ( + mkdir "%SolutionDir%BUILD" +) + +if not exist "%SolutionDir%BUILD\userraw\scripts" ( + mkdir "%SolutionDir%BUILD\userraw\scripts" +) \ No newline at end of file