Sha256: ffcfabf0040f9d055e11481e35abd4180ca8c6e6a40d10da7796b6c3cdb48d9b

Contents?: true

Size: 1.08 KB

Versions: 51

Compression:

Stored size: 1.08 KB

Contents

unless defined?(JRUBY_VERSION)
  begin
    require 'mkmf'

    include_directory = File.expand_path(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

51 entries across 51 versions & 1 rubygems

Version Path
protobuf-2.6.4-java ext/ruby_generator/extconf.rb
protobuf-2.6.4 ext/ruby_generator/extconf.rb
protobuf-2.6.3-java ext/ruby_generator/extconf.rb
protobuf-2.6.3 ext/ruby_generator/extconf.rb
protobuf-2.6.2-java ext/ruby_generator/extconf.rb
protobuf-2.6.2 ext/ruby_generator/extconf.rb
protobuf-2.6.1-java ext/ruby_generator/extconf.rb
protobuf-2.6.1 ext/ruby_generator/extconf.rb
protobuf-2.6.0-java ext/ruby_generator/extconf.rb
protobuf-2.6.0 ext/ruby_generator/extconf.rb
protobuf-2.5.5-java ext/ruby_generator/extconf.rb
protobuf-2.5.5 ext/ruby_generator/extconf.rb
protobuf-2.5.4-java ext/ruby_generator/extconf.rb
protobuf-2.5.4 ext/ruby_generator/extconf.rb
protobuf-2.5.3 ext/ruby_generator/extconf.rb
protobuf-2.5.2-java ext/ruby_generator/extconf.rb
protobuf-2.5.2 ext/ruby_generator/extconf.rb
protobuf-2.5.1 ext/ruby_generator/extconf.rb
protobuf-2.5.0-java ext/ruby_generator/extconf.rb
protobuf-2.5.0 ext/ruby_generator/extconf.rb