File: extconf.rb

package info (click to toggle)
ruby-uconv 0.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 4,716 kB
  • ctags: 197
  • sloc: ansic: 161,247; ruby: 44,420; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 729 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require 'mkmf'

$CFLAGS = ""
$objs = ['uconv.' + $OBJEXT, 'ustring.' + $OBJEXT]

if enable_config("euc", true)
  $CFLAGS += " -DUSE_EUC"
  $objs.push('e2u.' + $OBJEXT , 'u2e.' + $OBJEXT)
end
if enable_config("sjis", true)
  $CFLAGS += " -DUSE_SJIS"
  $objs.push('s2u.' + $OBJEXT , 'u2s.' + $OBJEXT)
end
if enable_config("win32api", false)
  $CFLAGS += " -DUSE_WIN32API"
end

if enable_config("fullwidth-reverse-solidus", true)
  $CFLAGS += " -DUSE_FULLWIDTH_REVERSE_SOLIDUS"
end

if enable_config("compat-win32api", true)
  $CFLAGS += " -DCOMPAT_WIN32API"
end

if enable_config("thread-local", true)
  $CFLAGS += " -DUCONV_THREAD_LOCAL"
end

if enable_config("utf-32", true)
  $CFLAGS += " -DUTF32"
end

create_makefile("uconv")