Sha256: bb470f8d6ad1a8c22bd3c3bdbee763a9d0927e388c4e118a6b59aad21721ff1c

Contents?: true

Size: 1.1 KB

Versions: 47

Compression:

Stored size: 1.1 KB

Contents

unless defined?(JRUBY_VERSION)
  begin
    require 'mkmf'
    include_directory = File.expand_path(ENV['PROTOC_SRC'] || File.join(File.dirname(__FILE__), "..", "protobuf-2.4.1", "src"))

    $CPPFLAGS << " -I#{include_directory}"
    $CPPFLAGS << " -Wall "

    have_library("pthread")
    have_library("protoc")
    have_library("protobuf")

    create_makefile('ruby_generator')
  rescue ::Gem::Installer::ExtensionBuildError => ex
    $stdout << <<-WARNING
      Cannot compile native extension.

      If you are running on Jruby or Windows you should compile protocol buffer
      definitions on another computer and then use those definitions locally.

      Only the compiler is restricted by this.  The definitions should work without issue.
    WARNING
    $stdout << $/
  end
else
  $stdout << <<-WARNING
    Cannot compile native extension.

    If you are running on Jruby or Windows you should compile protocol buffer
    definitions on another computer and then use those definitions locally.

    Only the compiler is restricted by this.  The definitions should work without issue.
  WARNING
  $stdout << $/
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
protobuf-2.7.12 ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta9-java ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta9 ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta8-java ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta8 ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta6-java ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta6 ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta5-java ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta5 ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta4-java ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta4 ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta3-java ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta3 ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta2-java ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta2 ext/ruby_generator/extconf.rb
protobuf-2.7.11-java ext/ruby_generator/extconf.rb
protobuf-2.7.11 ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta1-java ext/ruby_generator/extconf.rb
protobuf-2.8.0.beta1 ext/ruby_generator/extconf.rb
protobuf-2.7.10-java ext/ruby_generator/extconf.rb