1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

CMake: Add support for building JUCE projects with CMake

This commit is contained in:
reuk 2019-09-15 20:37:25 +01:00
parent 1fdba480cc
commit ece5644a20
149 changed files with 9921 additions and 3693 deletions

View file

@ -411,7 +411,7 @@ Component* ComponentLayout::addNewComponent (ComponentTypeHandler* const type, i
std::unique_ptr<XmlElement> xml (type->createXmlFor (c.get(), this));
c.reset (addComponentFromXml (*xml, true));
String memberName (CodeHelpers::makeValidIdentifier (type->getClassName (c.get()), true, true, false));
String memberName (build_tools::makeValidIdentifier (type->getClassName (c.get()), true, true, false));
setComponentMemberVariableName (c.get(), memberName);
selected.selectOnly (c.get());
@ -852,7 +852,7 @@ String ComponentLayout::getComponentMemberVariableName (Component* comp) const
String name (comp->getProperties() ["memberName"].toString());
if (name.isEmpty())
name = getUnusedMemberName (CodeHelpers::makeValidIdentifier (comp->getName(), true, true, false), comp);
name = getUnusedMemberName (build_tools::makeValidIdentifier (comp->getName(), true, true, false), comp);
return name;
}
@ -864,7 +864,7 @@ void ComponentLayout::setComponentMemberVariableName (Component* comp, const Str
comp->getProperties().set ("memberName", String());
const String n (getUnusedMemberName (CodeHelpers::makeValidIdentifier (newName, false, true, false), comp));
const String n (getUnusedMemberName (build_tools::makeValidIdentifier (newName, false, true, false), comp));
comp->getProperties().set ("memberName", n);
if (n != oldName)
@ -915,7 +915,7 @@ String ComponentLayout::getComponentVirtualClassName (Component* comp) const
void ComponentLayout::setComponentVirtualClassName (Component* comp, const String& newName)
{
jassert (comp != nullptr);
const String name (CodeHelpers::makeValidIdentifier (newName, false, false, true));
const String name (build_tools::makeValidIdentifier (newName, false, false, true));
if (name != getComponentVirtualClassName (comp))
{