File: compile.rake

package info (click to toggle)
ruby-liquid-c 4.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 544 kB
  • sloc: ansic: 3,866; ruby: 1,135; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

ext_task = Rake::ExtensionTask.new("liquid_c")

# For MacOS, generate debug information that ruby can read
dsymutil = RbConfig::CONFIG["dsymutil"]
unless dsymutil.to_s.empty?
  ext_lib_path = "lib/#{ext_task.binary}"
  dsym_path = "#{ext_lib_path}.dSYM"

  file dsym_path => [ext_lib_path] do
    sh dsymutil, ext_lib_path
  end
  Rake::Task["compile"].enhance([dsym_path])
end