Browse Source

Fix osx build

tags/2018-04-16
falkTX 8 years ago
parent
commit
2695138316
2 changed files with 6 additions and 4 deletions
  1. +2
    -2
      scripts/make-project.lua
  2. +4
    -2
      scripts/premake-update.sh

+ 2
- 2
scripts/make-project.lua View File

@@ -154,7 +154,7 @@ function make_juce_lv2_project(name)
elseif (macosx) then
package.linkoptions = { package.linkoptions,
"-framework Accelerate", "-framework AudioToolbox", "-framework AudioUnit", "-framework Carbon", "-framework Cocoa",
"-framework CoreAudio", "-framework CoreMIDI", "-framework IOKit", "-framework QuartzCore", "-framework WebKit" }
"-framework CoreAudio", "-framework CoreAudioKit", "-framework CoreMIDI", "-framework IOKit", "-framework QuartzCore", "-framework WebKit" }
else
package.links = { "dl", "pthread", "rt" }
package.linkoptions = { package.linkoptions, "`pkg-config --libs freetype2 x11 xext`" }
@@ -195,7 +195,7 @@ function make_juce_vst_project(name)
elseif (macosx) then
package.linkoptions = { package.linkoptions,
"-framework Accelerate", "-framework AudioToolbox", "-framework AudioUnit", "-framework Carbon", "-framework Cocoa",
"-framework CoreAudio", "-framework CoreMIDI", "-framework IOKit", "-framework QuartzCore", "-framework WebKit" }
"-framework CoreAudio", "-framework CoreAudioKit", "-framework CoreMIDI", "-framework IOKit", "-framework QuartzCore", "-framework WebKit" }
else
package.links = { "dl", "pthread", "rt" }
package.linkoptions = { package.linkoptions, "`pkg-config --libs freetype2 x11 xext`" }


+ 4
- 2
scripts/premake-update.sh View File

@@ -30,8 +30,10 @@ run_premake()
{
premake --os $1 --target gnu --cc gcc

if [ $MAC != 1 ]; then
sed "s/\$(LDFLAGS)/\$(LDFLAGS) \$(LDFLAGS)/" -i `find . -name \*.make`
if [ $MAC == 1 ]; then
sed -i -e "s|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS) \$(TARGET_ARCH)|BLDCMD = ar -rcs \$(OUTDIR)/\$(TARGET) \$(OBJECTS)|" `find . -name \*.make`
else
sed -i -e "s/\$(LDFLAGS)/\$(LDFLAGS) \$(LDFLAGS)/" `find . -name \*.make`
fi
}



Loading…
Cancel
Save