StringPairArray ProjectExporter::getAllPreprocessorDefs() const { StringPairArray defs (mergePreprocessorDefs (project.getPreprocessorDefs(), parsePreprocessorDefs (getExporterPreprocessorDefsString()))); defs.set (getExporterIdentifierMacro(), "1"); return defs; }
StringPairArray ProjectExporter::getAllPreprocessorDefs() const { StringPairArray defs (mergePreprocessorDefs (project.getPreprocessorDefs(), parsePreprocessorDefs (getExporterPreprocessorDefsString()))); addDefaultPreprocessorDefs (defs); return defs; }
StringPairArray ProjectExporter::getAllPreprocessorDefs (const ProjectExporter::BuildConfiguration& config) const { StringPairArray defs (mergePreprocessorDefs (config.getAllPreprocessorDefs(), parsePreprocessorDefs (getExporterPreprocessorDefsString()))); defs.set (getExporterIdentifierMacro(), "1"); return defs; }
StringPairArray ProjectExporter::getAllPreprocessorDefs (const ProjectExporter::BuildConfiguration& config) const { StringPairArray defs (mergePreprocessorDefs (config.getAllPreprocessorDefs(), parsePreprocessorDefs (getExporterPreprocessorDefsString()))); addDefaultPreprocessorDefs (defs); return defs; }
//============================================================================== StringPairArray ProjectExporter::getAllPreprocessorDefs (const BuildConfiguration& config, const ProjectType::Target::Type targetType) const { StringPairArray defs (mergePreprocessorDefs (config.getAllPreprocessorDefs(), parsePreprocessorDefs (getExporterPreprocessorDefsString()))); addDefaultPreprocessorDefs (defs); addTargetSpecificPreprocessorDefs (defs, targetType); return defs; }
StringPairArray ProjectExporter::BuildConfiguration::getUniquePreprocessorDefs() const { StringPairArray perConfigurationDefs (parsePreprocessorDefs (getBuildConfigPreprocessorDefsString())); const StringPairArray globalDefs (project.getPreprocessorDefs()); for (int i = 0; i < globalDefs.size(); ++i) { String globalKey = globalDefs.getAllKeys()[i]; int idx = perConfigurationDefs.getAllKeys().indexOf (globalKey); if (idx >= 0) { String globalValue = globalDefs.getAllValues()[i]; if (globalValue == perConfigurationDefs.getAllValues()[idx]) perConfigurationDefs.remove (idx); } } return perConfigurationDefs; }
StringPairArray Project::getPreprocessorDefs() const { return parsePreprocessorDefs (projectRoot [Ids::defines]); }
StringPairArray ProjectExporter::BuildConfiguration::getAllPreprocessorDefs() const { return mergePreprocessorDefs (project.getPreprocessorDefs(), parsePreprocessorDefs (getBuildConfigPreprocessorDefsString())); }
const StringPairArray Project::getPreprocessorDefs() const { return parsePreprocessorDefs (getProjectPreprocessorDefs().toString()); }
const StringPairArray Project::BuildConfiguration::getAllPreprocessorDefs() const { return mergePreprocessorDefs (project->getPreprocessorDefs(), parsePreprocessorDefs (getBuildConfigPreprocessorDefs().toString())); }