mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
BSD: Fix some compiler warnings
This commit is contained in:
parent
273a702052
commit
29a90a0231
26 changed files with 293 additions and 226 deletions
|
|
@ -296,7 +296,7 @@ public:
|
|||
for (auto& [path, flags] : filesToCompile)
|
||||
{
|
||||
out << "$(JUCE_OBJDIR)/" << escapeQuotesAndSpaces (owner.getObjectFileFor (path)) << ": " << escapeQuotesAndSpaces (path.toUnixStyle()) << newLine
|
||||
<< "\t-$(V_AT)mkdir -p $(JUCE_OBJDIR)" << newLine
|
||||
<< "\t-$(V_AT)mkdir -p $(@D)" << newLine
|
||||
<< "\t@echo \"Compiling " << path.getFileName() << "\"" << newLine
|
||||
<< (path.hasFileExtension ("c;s;S") ? "\t$(V_AT)$(CC) $(JUCE_CFLAGS) " : "\t$(V_AT)$(CXX) $(JUCE_CXXFLAGS) ")
|
||||
<< "$(" << cppflagsVarName << ") $(" << cflagsVarName << ")"
|
||||
|
|
@ -323,7 +323,7 @@ public:
|
|||
jassert (type != AggregateTarget);
|
||||
|
||||
out << getBuildProduct() << " : "
|
||||
<< "$(OBJECTS_" << getTargetVarName() << ") $(RESOURCES)";
|
||||
<< "$(OBJECTS_" << getTargetVarName() << ") $(JUCE_OBJDIR)/execinfo.cmd $(RESOURCES)";
|
||||
|
||||
if (type != SharedCodeTarget && owner.shouldBuildTargetType (SharedCodeTarget))
|
||||
out << " $(JUCE_OUTDIR)/$(JUCE_TARGET_SHARED_CODE)";
|
||||
|
|
@ -369,7 +369,7 @@ public:
|
|||
if (owner.shouldBuildTargetType (SharedCodeTarget))
|
||||
out << "$(JUCE_OUTDIR)/$(JUCE_TARGET_SHARED_CODE) ";
|
||||
|
||||
out << "$(JUCE_LDFLAGS) ";
|
||||
out << "$(JUCE_LDFLAGS) $(shell cat $(JUCE_OBJDIR)/execinfo.cmd) ";
|
||||
|
||||
if (getTargetFileType() == sharedLibraryOrDLL || getTargetFileType() == pluginBundle
|
||||
|| type == GUIApp || type == StandalonePlugIn)
|
||||
|
|
@ -1060,6 +1060,13 @@ private:
|
|||
for (auto target : targets)
|
||||
target->addFiles (out, getFilesForTarget (filesToCompile, target, project));
|
||||
|
||||
// libexecinfo is a separate library on BSD
|
||||
out << "$(JUCE_OBJDIR)/execinfo.cmd:" << newLine
|
||||
<< "\t-$(V_AT)mkdir -p $(@D)" << newLine
|
||||
<< "\t-@if [ -z \"$(V_AT)\" ]; then echo \"Checking if we need to link libexecinfo\"; fi" << newLine
|
||||
<< "\t$(V_AT)printf \"int main() { return 0; }\" | $(CXX) -x c++ -o $(@D)/execinfo.x -lexecinfo - >/dev/null 2>&1 && printf -- \"-lexecinfo\" > \"$@\" || touch \"$@\"" << newLine
|
||||
<< newLine;
|
||||
|
||||
out << "clean:" << newLine
|
||||
<< "\t@echo Cleaning " << projectName << newLine
|
||||
<< "\t$(V_AT)$(CLEANCMD)" << newLine
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue