Top Level Namespace

Defined Under Namespace

Modules: LibOSRM Classes: MiniPortileFixedCMake

Instance Method Summary collapse

Instance Method Details

#do_helpObject



6
7
8
9
10
11
12
13
14
15
# File 'ext/libosrm/extconf.rb', line 6

def do_help
  print <<HELP
usage: ruby #{$0} [options]

    --use-system-libraries
        Use system libraries instead of building and using the bundled
        libraries.
HELP
  exit! 0
end


26
27
28
29
30
# File 'ext/libosrm/extconf.rb', line 26

def symlink_osrm_data recipe
    FileUtils.ln_s "../#{recipe.work_path}/osrm-extract", "libexec/osrm-extract" unless File.exist? "libexec/osrm-extract"
    FileUtils.ln_s "../#{recipe.work_path}/osrm-contract", "libexec/osrm-contract" unless File.exist? "libexec/osrm-contract"
    FileUtils.ln_s "../../#{recipe.work_path}/../profiles/car.lua", "osrm/profiles/car.lua" unless File.exist? "osrm/profiles/car.lua"
end

#using_system_libraries?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'ext/libosrm/extconf.rb', line 22

def using_system_libraries?
    arg_config("--use-system-libraries", !!ENV["LIBOSRM_USE_SYSTEM_LIBRARIES"])
end