Skip to content

Commit 1b960cb

Browse files
committed
US stuff in settings
Better handling of files/paths with spaces UI stuff in compiler settings
1 parent 18671f4 commit 1b960cb

File tree

2 files changed

+55
-57
lines changed

2 files changed

+55
-57
lines changed

src/org/laczik/toolchainSDCC/sdcc.languageToolchain.xml

+11-13
Original file line numberDiff line numberDiff line change
@@ -21,40 +21,38 @@
2121
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2222
xsi:schemaLocation="http://crownking/mplab mplab/languageToolchain.xsd"
2323
mp:id="SDCC"
24-
mp:name="SDCC Toolchain"
24+
mp:name="SDCC Compiler"
2525
mp:hostplatforms="windows,linux,mac,none"
2626
mp:class="org.laczik.toolchainSDCC.SDCCtoolchain">
2727

2828
<mp:versionProvider mp:class="org.laczik.toolchainSDCC.SDCCVersionProvider"/>
2929

30-
<mp:configurationObject mp:id="sdcc-config" mp:idref="sdcc-config" opt:src="sdcc.optionLanguage.xml" opt:runtimepropertiesclass="org.laczik.toolchainSDCC.SDCCRuntimeProperties"/>
30+
<mp:configurationObject mp:id="sdcc-config" mp:idref="SDCC" opt:src="sdcc.optionLanguage.xml" opt:runtimepropertiesclass="org.laczik.toolchainSDCC.SDCCRuntimeProperties"/>
3131

32-
<mp:customizerNode mp:idref="SDCC" mp:name="SDCC Toolchain">
33-
<mp:customizerNode mp:idref="sdcc-config" mp:name="SDCC Compiler" mp:class="org.laczik.toolchainSDCC.SDCCCustomizerNode"/>
34-
</mp:customizerNode>
32+
<mp:customizerNode mp:idref="sdcc-config" mp:name="SDCC Compiler" mp:class="org.laczik.toolchainSDCC.SDCCCustomizerNode"/>
3533

3634
<mp:makefileWriter>
3735
<mp:inputToOutputExtensionMap mp:src="c" mp:dst="o"/>
3836
<mp:inputToOutputExtensionMap mp:src="C" mp:dst="o"/>
39-
<mp:build mp:buildtype="standalone" mp:debuggableextension="cof">
40-
<mp:outputFilenameSuffixProvider mp:class="org.laczik.toolchainSDCC.SDCCOutputFilenameSuffixProvider"/>
37+
<mp:build mp:buildtype="standalone" mp:outputextension="hex" mp:debuggableextension="cof">
38+
<!--mp:outputFilenameSuffixProvider mp:class="org.laczik.toolchainSDCC.SDCCOutputFilenameSuffixProvider"/-->
4139
<mp:buildStep mp:idref="compile"/>
4240
<mp:buildStep mp:idref="link"/>
4341
</mp:build>
4442
<mp:makeRule mp:id="compile" mp:prerequisites=".*[cC]$" mp:runtimepropertiesclass="org.laczik.toolchainSDCC.SDCCCompilerProperties">
4543
<!-- this following line makes sure the directory where we will compile exists -->
46-
<mp:textEmitter mp:text="${MKDIR} ${CURRENT_OBJECT_DIR} ${NEWLINE}"/>
44+
<mp:textEmitter mp:text="${MKDIR} ${CURRENT_QUOTED_IF_SPACED_OBJECT_DIR_UNIX_SLASHES} ${NEWLINE}"/>
4745
<!-- this following line erases the dependency files created in the last compiler -->
48-
<mp:textEmitter mp:text="${RM} ${CURRENT_OBJECT_FILE} ${NEWLINE}"/>
46+
<mp:textEmitter mp:text="${RM} ${CURRENT_QUOTED_IF_SPACED_OBJECT_FILE} ${NEWLINE}"/>
4947
<!-- this is the beginning of the compiler line -->
5048
<mp:textEmitter mp:text="${MP_CC} "/>
5149
<mp:optionEmitter mp:idref="sdcc-config" mp:separator=" "/>
5250
<mp:textEmitter mp:onlydebug="true" mp:text=" --debug"/>
5351
<mp:textEmitter mp:text=" -c"/>
5452
<mp:textEmitter mp:text=" -m${PROCESSOR_FAMILY}"/>
5553
<mp:textEmitter mp:text=" -p${PROCESSOR_NAME}"/>
56-
<mp:textEmitter mp:text=" ${CURRENT_SOURCE_FILE} "/>
57-
<mp:textEmitter mp:text=" -o${CURRENT_OBJECT_FILE}"/>
54+
<mp:textEmitter mp:text=" ${CURRENT_QUOTED_IF_SPACED_SOURCE_FILE} "/>
55+
<mp:textEmitter mp:text=" -o${CURRENT_QUOTED_IF_SPACED_OBJECT_FILE}"/>
5856
<mp:textEmitter mp:text="${NEWLINE}"/>
5957
</mp:makeRule>
6058

@@ -65,7 +63,7 @@
6563
<mp:optionEmitter mp:idref="sdcc-config" mp:separator=" "/>
6664
<mp:textEmitter mp:text=" -m${PROCESSOR_FAMILY}"/>
6765
<mp:textEmitter mp:text=" -p${PROCESSOR_NAME}"/>
68-
<mp:textEmitter mp:text=" ${CURRENT_OBJECT_FILES}" mp:separator=" "/>
66+
<mp:textEmitter mp:text=" ${CURRENT_QUOTED_IF_SPACED_OBJECT_FILES}" mp:separator=" "/>
6967
<mp:textEmitter mp:text=" -o${FINAL_IMAGE_NAME} "/>
7068
</mp:makeRule>
7169
</mp:makefileWriter>
@@ -81,7 +79,7 @@
8179
<mp:defaultLocation mp:hostplatform="mac" mp:dir="/*SDCC/bin"/>
8280

8381

84-
<mp:cCompiler mp:file="sdcc" mp:name="SDCC Compiler for 8-bit Devices">
82+
<mp:cCompiler mp:file="SDCC" mp:name="SDCC Compiler for 8-bit Devices">
8583
<mp:versionProvider mp:class="org.laczik.toolchainSDCC.SDCCVersionProvider"/>
8684
<mp:builtinProvider mp:class="org.laczik.toolchainSDCC.SDCCBuiltinProvider"/>
8785
<mp:systemIncludeProvider mp:class="org.laczik.toolchainSDCC.SDCCSystemIncludeProvider"/>

0 commit comments

Comments
 (0)