File: extconf.rb

package info (click to toggle)
ruby-uconv 0.5.3-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,432 kB
  • sloc: ansic: 160,827; ruby: 31,704; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 507 bytes parent folder | download | duplicates (5)
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
require 'mkmf'

$CFLAGS = ""
#$CFLAGS="-DUSE_EUC -DUSE_SJIS"
##$CFLAGS="-DUSE_SJIS -DUSE_WIN32API"

if enable_config("euc", true)
  $CFLAGS += " -DUSE_EUC"
end
if enable_config("sjis", true)
  $CFLAGS += " -DUSE_SJIS"
end
if enable_config("win32api", false)
  $CFLAGS += " -DUSE_WIN32API"
end

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

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

create_makefile("uconv")