Skip to content

Commit 5280c00

Browse files
committed
Postbuild command added
1 parent 1e473a5 commit 5280c00

File tree

9 files changed

+89
-14
lines changed

9 files changed

+89
-14
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@ Firmware/ConfProject/CM7/Debug/*
77
Firmware/ConfProject/CM4/Debug/*
88
Firmware/ConfProject/.settings*
99
*doxyOutput*
10-
GUI/build*
11-
GUI/OpenEPT/.pro*
10+
Scripts/**/Output/
Binary file not shown.

Documentation/ADFirmware/Doxygen/doxygen renamed to Documentation/ADFirmware/Doxygen/doxygen.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ PROJECT_LOGO = source/favico2.ico
5858
# entered, it will be relative to the location where doxygen was started. If
5959
# left blank the current directory will be used.
6060

61-
OUTPUT_DIRECTORY = doxyOutput
61+
OUTPUT_DIRECTORY = ./doxyOutput
6262

6363
# If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub-
6464
# directories (in 2 levels) under the output directory of each output format and
@@ -2656,4 +2656,4 @@ GENERATE_LEGEND = YES
26562656
# files.
26572657
# The default value is: YES.
26582658

2659-
DOT_CLEANUP = YES
2659+
DOT_CLEANUP = YES

Scripts/Windows/post_build.bat

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
@echo off
2+
setlocal ENABLEDELAYEDEXPANSION
3+
4+
echo ----------------------------------------
5+
6+
REM --- Get script directory path ---
7+
set "ProjDirPath=%~dp0"
8+
set "DoxyOutput=%ProjDirPath%..\..\Documentation\AdFirmware\Doxygen\doxyOutput"
9+
set "DoxyPath=%ProjDirPath%..\..\Documentation\AdFirmware\Doxygen"
10+
set "DoxygenDir=%ProjDirPath%\Output\doxygen"
11+
set "ZipFile=%ProjDirPath%\Output\doxygen.zip"
12+
13+
REM Remove trailing backslash if present
14+
if "%ProjDirPath:~-1%"=="\" set "ProjDirPath=%ProjDirPath:~0,-1%"
15+
16+
echo ProjDirPath is: %ProjDirPath%
17+
echo DoxyPath is: %DoxyPath%
18+
19+
REM Check and create Output directory
20+
if not exist "%ProjDirPath%\Output" (
21+
mkdir "%ProjDirPath%\Output"
22+
)
23+
24+
REM Copy .srec file
25+
xcopy /y %ProjDirPath%\..\..\Source\ADFirmware\CM7\Debug\ADFirmware_CM7.srec %ProjDirPath%\Output
26+
27+
where doxygen.exe >nul 2>&1
28+
29+
if %errorlevel%==0 (
30+
echo Doxygen exists
31+
32+
echo Current directory before pushd: %CD%
33+
34+
REM Enter Doxygen directory first
35+
pushd %DoxyPath%
36+
37+
echo Current directory after pushd: !CD!
38+
39+
REM Run doxygen (relative paths now relative to Doxyfile)
40+
doxygen.exe doxygen.txt >nul 2>&1
41+
42+
REM Return to original directory
43+
popd
44+
45+
REM Remove accidental local doxyOutput if created
46+
if exist "doxyOutput" (
47+
rmdir /s /q "doxyOutput"
48+
)
49+
50+
REM Copy from specified source
51+
52+
if exist "%DoxyOutput%" (
53+
echo Detected Doxygen output at: %DoxyOutput%
54+
if exist "%ProjDirPath%\Output\doxygen" (
55+
rmdir /s /q "%ProjDirPath%\Output\doxygen"
56+
)
57+
xcopy /s /e /i /y "%DoxyOutput%\*" "%ProjDirPath%\Output\doxygen\" >nul
58+
if exist "%DoxygenDir%" (
59+
echo Zipping Doxygen folder...
60+
powershell -Command "Compress-Archive -Path '%DoxygenDir%\*' -DestinationPath '%ZipFile%' -Force"
61+
echo Doxygen folder zipped to: %ZipFile%
62+
) else (
63+
echo Doxygen folder not found, skipping zip.
64+
)
65+
) else (
66+
echo Doxygen output folder not found at: %DoxyOutput%
67+
)
68+
) else (
69+
echo Doxygen dont exists
70+
)
71+
72+
73+
echo Post-build steps completed successfully.
74+
endlocal

Source/ADFirmware/CM4/.settings/language.settings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
66
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
77
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
8-
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="365029232173677211" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
8+
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="69296849308809978" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
99
<language-scope id="org.eclipse.cdt.core.gcc"/>
1010
<language-scope id="org.eclipse.cdt.core.g++"/>
1111
</provider>
@@ -16,7 +16,7 @@
1616
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
1717
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
1818
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
19-
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="365029232173677211" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
19+
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="69296849308809978" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
2020
<language-scope id="org.eclipse.cdt.core.gcc"/>
2121
<language-scope id="org.eclipse.cdt.core.g++"/>
2222
</provider>

Source/ADFirmware/CM7/.cproject

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<cconfiguration id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1957845872">
55
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1957845872" moduleId="org.eclipse.cdt.core.settings" name="Debug">
66
<macros>
7-
<stringMacro name="PROJECT_PATH" type="VALUE_PATH_DIR" value="/home/elektronika/Desktop/Projects/OpenEPT/Forks/OpenEPT_Firmware/Source/ADFirmware"/>
7+
<stringMacro name="PROJECT_PATH" type="VALUE_PATH_DIR" value="C:\Users\Haris\Documents\OpenEPT\OpenEPTOrganization\Firmware\Source\ADFirmware"/>
88
</macros>
99
<externalSettings/>
1010
<extensions>
@@ -17,7 +17,7 @@
1717
</extensions>
1818
</storageModule>
1919
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
20-
<configuration artifactExtension="elf" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" cleanCommand="rm -rf" description="" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1957845872" name="Debug" parent="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug">
20+
<configuration artifactExtension="elf" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.exe,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug" cleanCommand="rm -rf" description="" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1957845872" name="Debug" parent="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug" postbuildStep="..\..\..\..\Scripts\Windows\post_build.bat">
2121
<folderInfo id="com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1957845872." name="/" resourcePath="">
2222
<toolChain id="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug.997659189" name="MCU ARM GCC" nonInternalBuilderId="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug">
2323
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu.394143059" name="MCU" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_mcu" useByScannerDiscovery="true" value="STM32H755ZITx" valueType="string"/>
@@ -30,6 +30,8 @@
3030
<option id="com.st.stm32cube.ide.mcu.debug.option.cpuclock.1748292201" name="Cpu clock frequence" superClass="com.st.stm32cube.ide.mcu.debug.option.cpuclock" useByScannerDiscovery="false" value="200" valueType="string"/>
3131
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.nanoscanffloat.697712219" name="Use float with scanf from newlib-nano (-u _scanf_float)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.nanoscanffloat" useByScannerDiscovery="false" value="true" valueType="boolean"/>
3232
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.nanoprintffloat.237517780" name="Use float with printf from newlib-nano (-u _printf_float)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.nanoprintffloat" useByScannerDiscovery="false" value="true" valueType="boolean"/>
33+
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.convertsrec.844811999" name="Convert to Motorola S-record file (-O srec)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.convertsrec" useByScannerDiscovery="false" value="true" valueType="boolean"/>
34+
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.convertbinary.999750102" name="Convert to binary file (-O binary)" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.convertbinary" useByScannerDiscovery="false" value="false" valueType="boolean"/>
3335
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.913491194" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
3436
<builder buildPath="${workspace_loc:/ADFirmware_CM7}/Debug" enableAutoBuild="false" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.1726361039" incrementalBuildTarget="all" keepEnvironmentInBuildfile="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder"/>
3537
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.1938063472" name="MCU GCC Assembler" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler">

Source/ADFirmware/CM7/.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<variableList>
4949
<variable>
5050
<name>PROJECT_PATH</name>
51-
<value>file:/home/elektronika/Desktop/Projects/OpenEPT/Forks/OpenEPT_Firmware/Source/ADFirmware</value>
51+
<value>$%7BPARENT-1-PROJECT_LOC%7D</value>
5252
</variable>
5353
</variableList>
5454
</projectDescription>

Source/ADFirmware/CM7/.settings/language.settings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
66
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
77
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
8-
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="415287200111896245" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
8+
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="96791608238800404" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
99
<language-scope id="org.eclipse.cdt.core.gcc"/>
1010
<language-scope id="org.eclipse.cdt.core.g++"/>
1111
</provider>
@@ -16,7 +16,7 @@
1616
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
1717
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
1818
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
19-
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="415287200111896245" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
19+
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="96791608238800404" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD &quot;${INPUTS}&quot;" prefer-non-shared="true">
2020
<language-scope id="org.eclipse.cdt.core.gcc"/>
2121
<language-scope id="org.eclipse.cdt.core.g++"/>
2222
</provider>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
2F62501ED4689FB349E356AB974DBE57=913363963887887F7420048057C8BEF7
2-
8DF89ED150041C4CBC7CB9A9CAA90856=913363963887887F7420048057C8BEF7
3-
DC22A860405A8BF2F2C095E5B6529F12=55BF61D2DF56854F4B1C963B69C0922C
1+
2F62501ED4689FB349E356AB974DBE57=1F048DFF13B49D81C0E53013CA664323
2+
8DF89ED150041C4CBC7CB9A9CAA90856=1F048DFF13B49D81C0E53013CA664323
3+
DC22A860405A8BF2F2C095E5B6529F12=405CD792455CC7930193D1F434C806D4
44
eclipse.preferences.version=1

0 commit comments

Comments
 (0)