-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
for #438 - osx build native gems like rmagick. Works but
it's easy for the gem (rmagick in partular) to not work. It's an OSX and ruby thing. Shoes only looks like ruby.
- Loading branch information
Cecil
committed
May 1, 2019
1 parent
57014d0
commit 8788853
Showing
8 changed files
with
291 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ | |
elsif EXT_RUBY.include? '/usr/local/Cellar/' | ||
# brew install [email protected] | ||
APP['RVMGEM'] = ENV['GEM_HOME'] | ||
APP['ABSBUNDLE'] = true # ie. bundles use ABS patchs | ||
APP['ABSBUNDLE'] = true # ie. bundles use ABS paths | ||
else | ||
$stderr.puts "Your ruby is Suspicious. Create a minosx-custom.yaml" | ||
abort | ||
|
@@ -114,13 +114,14 @@ | |
CAIRO_LDFLAGS = "-L#{ShoesDeps}/lib -lcairo" | ||
PANGO_CFLAGS = "-I#{ShoesDeps}/include/pango-1.0" | ||
PANGO_LDFLAGS = "-L#{ShoesDeps}/lib -lpango-1.0" | ||
#RUBY_CFLAGS = "-I#{EXT_RUBY}/include/ruby-2.3.0/x86_64-darwin14 -I#{EXT_RUBY}/include/ruby-2.3.0 " | ||
RUBY_CFLAGS =`pkg-config --cflags "#{pkgruby}"`.strip+" " | ||
RUBY_LDFLAGS = "-L#{EXT_RUBY}lib/ -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -lruby.2.3.0 -lpthread -ldl -lobjc " | ||
RUBY_CFLAGS = `pkg-config --cflags "#{pkgruby}"`.strip+" " | ||
#RUBY_LDFLAGS = `pkg-config --libs "#{pkgruby}"`.strip+" " | ||
#RUBY_LDFLAGS = "-L#{EXT_RUBY}lib/ -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -lruby.2.4.5 -lpthread -ldl -lobjc " | ||
|
||
LINUX_CFLAGS << " -I#{ShoesDeps}/include #{GLIB_CFLAGS} #{RUBY_CFLAGS} #{CAIRO_CFLAGS} #{PANGO_CFLAGS}" | ||
|
||
LINUX_LIB_NAMES = %W[#{RUBY_SO} cairo pangocairo-1.0 gif] | ||
#LINUX_LIB_NAMES = %W[#{RUBY_LDFLAGS} cairo pangocairo-1.0 gif] | ||
|
||
LINUX_CFLAGS << " -DRUBY_1_9 " | ||
|
||
|
@@ -130,7 +131,6 @@ | |
LINUX_LDFLAGS = "-framework Cocoa -framework QuartzCore -framework Carbon -dynamiclib -Wl,-single_module INSTALL_NAME" | ||
LINUX_LIB_NAMES << 'pixman-1' << 'jpeg.8' | ||
|
||
#OSX_SDK = '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk' | ||
OSX_SDK = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/#{osxsdk}" | ||
ENV['MACOSX_DEPLOYMENT_TARGET'] = osxminv | ||
LINUX_CFLAGS << " -mmacosx-version-min=#{osxminv}" | ||
|
@@ -151,7 +151,7 @@ | |
LINUX_CFLAGS << " -isysroot #{OSX_SDK} #{OSX_ARCH}" | ||
LINUX_LDFLAGS << " -isysroot #{OSX_SDK} #{OSX_ARCH} -L#{ShoesDeps}/lib/ #{GLIB_LDFLAGS}" | ||
|
||
LINUX_LIBS = " -l#{RUBY_SO} -L#{ShoesDeps}/lib -l cairo -L#{ShoesDeps}/lib -lpangocairo-1.0 -L#{ShoesDeps}/lib -lgif -ljpeg" | ||
LINUX_LIBS = " -L #{EXT_RUBY}/lib -l#{RUBY_SO} -L#{ShoesDeps}/lib -l cairo -L#{ShoesDeps}/lib -lpangocairo-1.0 -L#{ShoesDeps}/lib -lgif -ljpeg" | ||
LINUX_LIBS << " -L#{TGT_DIR} #{CAIRO_LDFLAGS} #{PANGO_LDFLAGS} #{GLIB_LDFLAGS}" | ||
|
||
# Sigh - shoesdeps and homebrew versions can be out of sync. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.