libyajl2 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/ext/libyajl2/extconf.rb +19 -2
- data/lib/libyajl2/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 045cdc2751b29e72dc1da30230927fb2e934ba36
|
|
4
|
+
data.tar.gz: 0c36421626f666c2cb28355b176f335a02a4e763
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61edef691e2e26669b391eec893d0cabe6a8cb1a423752dd4fe44764afb37f92a75718f15709a1f139e8541d1ae257652bfbf8111c8dac90c12bd145fdf54a54
|
|
7
|
+
data.tar.gz: b308e30387442302b03b5cda6abe28f667308484fe3b908c2ba76cfc35851494b18a936419befc2f2f924a3e80396563e35726e961be8bb856d7d6e7bae76eda
|
data/ext/libyajl2/extconf.rb
CHANGED
|
@@ -34,7 +34,7 @@ module Libyajl2Build
|
|
|
34
34
|
|
|
35
35
|
# create the implib on windows
|
|
36
36
|
if windows?
|
|
37
|
-
$LDFLAGS << " -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--out-implib=
|
|
37
|
+
$LDFLAGS << " -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--out-implib=yajl.dll.a"
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
@@ -62,15 +62,32 @@ module Libyajl2Build
|
|
|
62
62
|
system("make V=1")
|
|
63
63
|
# ...so we can hack up what install does later and copy over the include files
|
|
64
64
|
|
|
65
|
+
# not sure why ruby windows produces .so's instead of .dll's
|
|
66
|
+
if windows?
|
|
67
|
+
FileUtils.mv "libyajl.so", "yajl.dll"
|
|
68
|
+
end
|
|
69
|
+
|
|
65
70
|
File.open("Makefile", "w+") do |f|
|
|
66
71
|
f.write <<EOF
|
|
67
72
|
TARGET = libyajl
|
|
68
73
|
DLLIB = $(TARGET).#{RbConfig::MAKEFILE_CONFIG['DLEXT']}
|
|
69
74
|
all:
|
|
70
75
|
|
|
76
|
+
EOF
|
|
77
|
+
if windows?
|
|
78
|
+
f.write <<EOF
|
|
79
|
+
install:
|
|
80
|
+
\tmkdir -p #{prefix}/lib
|
|
81
|
+
\tcp yajl.dll #{prefix}/lib/yajl.dll
|
|
82
|
+
\tcp yajl.dll.a #{prefix}/lib/yajl.dll.a
|
|
83
|
+
\tmkdir -p #{prefix}/include/yajl
|
|
84
|
+
\tcp yajl/*.h #{prefix}/include/yajl
|
|
85
|
+
EOF
|
|
86
|
+
else
|
|
87
|
+
f.write <<EOF
|
|
71
88
|
install:
|
|
72
89
|
\tmkdir -p #{prefix}/lib
|
|
73
|
-
\tcp $(DLLIB) #{prefix}/lib
|
|
90
|
+
\tcp $(DLLIB) #{prefix}/lib/$(DLLIB)
|
|
74
91
|
\tmkdir -p #{prefix}/include/yajl
|
|
75
92
|
\tcp yajl/*.h #{prefix}/include/yajl
|
|
76
93
|
EOF
|
data/lib/libyajl2/version.rb
CHANGED