mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: Fix quote escaping in CodeBlocks exporter
This commit is contained in:
parent
41ec486dd0
commit
c213796951
1 changed files with 4 additions and 2 deletions
|
|
@ -350,12 +350,14 @@ private:
|
|||
auto keys = defines.getAllKeys();
|
||||
auto values = defines.getAllValues();
|
||||
|
||||
const auto escapedQuote = isWindows() ? "\\\"" : "\\\\\"";
|
||||
|
||||
for (int i = 0; i < defines.size(); ++i)
|
||||
{
|
||||
auto result = keys[i];
|
||||
|
||||
if (values[i].isNotEmpty())
|
||||
result += "=" + values[i];
|
||||
result += "=\"" + values[i].replace ("\"", escapedQuote) + "\"";
|
||||
|
||||
defs.add (result);
|
||||
}
|
||||
|
|
@ -569,7 +571,7 @@ private:
|
|||
for (auto& def : getDefines (config, target))
|
||||
{
|
||||
if (! def.containsChar ('='))
|
||||
def << '=';
|
||||
def << '=';
|
||||
|
||||
flags.add ("-D" + def);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue