libxslt-ruby 0.9.8 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,88 +1,56 @@
1
- require 'rubygems'
2
- require 'date'
3
- require 'rake/gempackagetask'
4
- require 'rake/rdoctask'
5
- require 'rake/testtask'
6
- require 'date'
1
+ #!/usr/bin/env ruby
7
2
 
8
- # ------- Default Package ----------
9
- FILES = FileList[
10
- 'Rakefile',
11
- 'CHANGES',
12
- 'README',
13
- 'LICENSE',
14
- 'setup.rb',
15
- 'doc/**/*',
16
- 'lib/**/*',
17
- 'ext/libxslt/*.h',
18
- 'ext/libxslt/*.c',
19
- 'ext/mingw/Rakefile',
20
- 'ext/vc/*.sln',
21
- 'ext/vc/*.vcproj',
22
- 'test/**/*'
23
- ]
3
+ require "rubygems"
4
+ require "rake/extensiontask"
5
+ require "rake/testtask"
6
+ require 'hanna/rdoctask'
7
+ require "grancher/task"
8
+ require "yaml"
24
9
 
25
- # Default GEM Specification
26
- default_spec = Gem::Specification.new do |spec|
27
- spec.name = "libxslt-ruby"
28
-
29
- spec.homepage = "http://libxslt.rubyforge.org/"
30
- spec.summary = "Ruby libxslt bindings"
31
- spec.description = <<-EOF
32
- The Libxslt-Ruby project provides Ruby language bindings for the GNOME
33
- XSLT C library. It is free software, released under the MIT License.
34
- EOF
10
+ GEM_NAME = "libxslt-ruby"
11
+ SO_NAME = "libxslt_ruby"
35
12
 
36
- # Determine the current version of the software
37
- spec.version =
38
- if File.read('ext/libxslt/version.h') =~ /\s*RUBY_LIBXSLT_VERSION\s*['"](\d.+)['"]/
39
- CURRENT_VERSION = $1
40
- else
41
- CURRENT_VERSION = "0.0.0"
42
- end
43
-
44
- spec.author = "Charlie Savage"
45
- spec.email = "libxml-devel@rubyforge.org"
46
- spec.add_dependency('libxml-ruby','>=0.9.4')
47
- spec.platform = Gem::Platform::RUBY
48
- spec.require_paths = ["lib", "ext/libxslt"]
49
-
50
- spec.bindir = "bin"
51
- spec.extensions = ["ext/libxslt/extconf.rb"]
52
- spec.files = FILES.to_a
53
- spec.test_files = Dir.glob("test/tc_*.rb")
54
-
55
- spec.required_ruby_version = '>= 1.8.4'
56
- spec.date = DateTime.now
57
- spec.rubyforge_project = 'libxslt-ruby'
58
-
59
- spec.has_rdoc = true
13
+ # Read the spec file
14
+ spec = Gem::Specification.load("#{GEM_NAME}.gemspec")
15
+
16
+ # Setup compile tasks
17
+ Rake::ExtensionTask.new do |ext|
18
+ ext.gem_spec = spec
19
+ ext.name = SO_NAME
20
+ ext.ext_dir = "ext/libxslt"
21
+ ext.lib_dir = "lib/#{RUBY_VERSION.sub(/\.\d$/, '')}"
22
+ ext.config_options << "--with-xml2-include=C:/MinGW/local/include/libxml2"
23
+ ext.config_options << "--with-xslt-include=C:/MinGW/local/include/libxslt"
24
+ ext.config_options << "--with-exslt-include=C:/MinGW/local/include/libexslt"
60
25
  end
61
26
 
62
- # Rake task to build the default package
63
- Rake::GemPackageTask.new(default_spec) do |pkg|
64
- pkg.package_dir = 'admin/pkg'
65
- pkg.need_tar = true
27
+ # Setup generic gem
28
+ Rake::GemPackageTask.new(spec) do |pkg|
29
+ pkg.package_dir = 'pkg'
30
+ pkg.need_tar = false
66
31
  end
67
32
 
68
- # ------- Windows GEM ----------
69
- if RUBY_PLATFORM.match(/win32/)
70
- binaries = (FileList['ext/mingw/*.so',
71
- 'ext/mingw/*.dll*'])
33
+ # Setup Windows Gem
34
+ if RUBY_PLATFORM.match(/win32|mingw32/)
35
+ binaries = (FileList['lib/**/*.so',
36
+ 'lib/**/*dll'])
72
37
 
73
38
  # Windows specification
74
- win_spec = default_spec.clone
75
- win_spec.extensions = ['ext/mingw/Rakefile']
39
+ win_spec = spec.clone
76
40
  win_spec.platform = Gem::Platform::CURRENT
77
41
  win_spec.files += binaries.to_a
78
42
 
43
+ # Unset extensions
44
+ win_spec.extensions = nil
45
+
79
46
  # Rake task to build the windows package
80
47
  Rake::GemPackageTask.new(win_spec) do |pkg|
81
- pkg.package_dir = 'admin/pkg'
48
+ pkg.package_dir = 'pkg'
49
+ pkg.need_tar = false
82
50
  end
83
51
  end
84
52
 
85
- # --------- RDoc Documentation ------
53
+ # RDoc Task
86
54
  desc "Generate rdoc documentation"
87
55
  Rake::RDocTask.new("rdoc") do |rdoc|
88
56
  rdoc.rdoc_dir = 'doc'
@@ -99,11 +67,8 @@ Rake::RDocTask.new("rdoc") do |rdoc|
99
67
  'LICENSE')
100
68
  end
101
69
 
102
-
70
+ # Test Task
103
71
  Rake::TestTask.new do |t|
104
72
  t.libs << "test"
105
- t.libs << "ext"
73
+ t.verbose = true
106
74
  end
107
-
108
- task :package => :rdoc
109
- task :default => :package
@@ -5,5 +5,4 @@
5
5
  #define HAVE_XSLT_H 1
6
6
  #define HAVE_EXSLT_H 1
7
7
  #define HAVE_LIBXML_RUBY_LIBXML_H 1
8
- #define HAVE_LIBXML_RUBY_XML_DOCUMENT_H 1
9
8
  #endif
@@ -1,12 +1,13 @@
1
1
  #!/usr/local/bin/ruby -w
2
2
 
3
- # $Id: extconf.rb 43 2007-12-07 12:38:59Z transami $
4
- #
5
3
  # See the LICENSE file for copyright and distribution information
6
4
 
7
5
  require 'mkmf'
6
+ require 'rbconfig'
8
7
 
8
+ require 'rubygems'
9
9
  $preload = nil
10
+ $INCFLAGS << " -I/usr/local/include"
10
11
  $LIBPATH.push(Config::CONFIG['libdir'])
11
12
 
12
13
  def crash(str)
@@ -14,52 +15,53 @@ def crash(str)
14
15
  exit 1
15
16
  end
16
17
 
17
- require 'rubygems'
18
- gem_specs = Gem::SourceIndex.from_installed_gems.search('libxml-ruby')
19
- if gem_specs.empty?
20
- crash(<<EOL)
21
- libxml-ruby bindings must be installed
22
- EOL
23
- end
24
-
25
- # Sort by version, newest first
26
- gem_specs = gem_specs.sort_by {|spec| spec.version}.reverse
27
-
28
- libxml_ruby_path = gem_specs.first.full_gem_path
29
-
30
- $INCFLAGS += " -I#{libxml_ruby_path}/ext"
31
- $LIBPATH.push("#{libxml_ruby_path}/lib")
32
-
33
18
  # Directories
19
+ dir_config('iconv')
20
+ dir_config('zlib')
34
21
  dir_config('xml2')
35
22
  dir_config('xslt')
36
23
  dir_config('exslt')
37
24
  dir_config('libxml-ruby')
38
25
 
39
- unless have_library('m', 'atan')
40
- # try again for gcc 4.0
41
- saveflags = $CFLAGS
42
- $CFLAGS += ' -fno-builtin'
43
- unless have_library('m', 'atan')
44
- crash('need libm')
45
- end
46
- $CFLAGS = saveflags
47
- end
48
-
49
- unless have_library("z", "inflate")
50
- crash("need zlib")
26
+ # First get zlib
27
+ unless have_library('z', 'inflate') or
28
+ have_library('zlib', 'inflate') or
29
+ have_library('zlib1', 'inflate') or
30
+ have_library('libz', 'inflate')
31
+ crash('need zlib')
51
32
  else
52
33
  $defs.push('-DHAVE_ZLIB_H')
53
34
  end
54
35
 
36
+ unless have_library('iconv','iconv_open') or
37
+ have_library('iconv','libiconv_open') or
38
+ have_library('libiconv', 'libiconv_open') or
39
+ have_library('libiconv', 'iconv_open') or
40
+ have_library('c','iconv_open') or
41
+ have_library('recode','iconv_open') or
42
+ have_library('iconv')
43
+ crash(<<-EOL)
44
+ need libiconv.
45
+
46
+ Install the libiconv or try passing one of the following options
47
+ to extconf.rb:
48
+
49
+ --with-iconv-dir=/path/to/iconv
50
+ --with-iconv-lib=/path/to/iconv/lib
51
+ --with-iconv-include=/path/to/iconv/include
52
+ EOL
53
+ end
54
+
55
+
55
56
  unless (have_library('xml2', 'xmlXPtrNewRange') or
57
+ have_library('libxml2', 'xmlXPtrNewRange') or
56
58
  find_library('xml2', 'xmlXPtrNewRange', '/opt/lib', '/usr/local/lib', '/usr/lib')) and
57
59
  (have_header('libxml/xmlversion.h') or
58
60
  find_header('libxml/xmlversion.h',
59
61
  '/opt/include/libxml2',
60
62
  '/usr/local/include/libxml2',
61
63
  '/usr/include/libxml2'))
62
- crash(<<EOL)
64
+ crash(<<-EOL)
63
65
  need libxml2.
64
66
 
65
67
  Install the library or try one of the following options to extconf.rb:
@@ -71,13 +73,14 @@ EOL
71
73
  end
72
74
 
73
75
  unless (have_library('xslt','xsltApplyStylesheet') or
76
+ have_library('libxslt','xsltApplyStylesheet') or
74
77
  find_library('xslt', 'xsltApplyStylesheet', '/opt/lib', '/usr/local/lib', '/usr/lib')) and
75
78
  (have_header('xslt.h') or
76
79
  find_header('xslt.h',
77
80
  '/opt/include/libxslt',
78
81
  '/usr/local/include/libxslt',
79
82
  '/usr/include/libxslt'))
80
- crash(<<EOL)
83
+ crash(<<-EOL)
81
84
  need libxslt.
82
85
 
83
86
  Install the library or try one of the following options to extconf.rb:
@@ -88,46 +91,55 @@ need libxslt.
88
91
  EOL
89
92
  end
90
93
 
91
- unless (have_library('exslt','exsltLibexsltVersion') or
92
- find_library('exslt', 'exsltLibexsltVersion', '/opt/lib', '/usr/local/lib', '/usr/lib')) and
94
+ unless (have_library('exslt','exsltRegisterAll') or
95
+ have_library('libexslt','exsltRegisterAll') or
96
+ find_library('exslt', 'exsltRegisterAll', '/opt/lib', '/usr/local/lib', '/usr/lib')) and
93
97
  (have_header('exslt.h') or
94
98
  find_header('exslt.h',
95
99
  '/opt/include/libexslt',
96
100
  '/usr/local/include/libexslt',
97
101
  '/usr/include/libexslt'))
98
- crash(<<EOL)
99
- need libexslt.
100
-
102
+ crash(<<-EOL)
103
+ Need libexslt.
101
104
  Install the library or try one of the following options to extconf.rb:
102
-
103
105
  --with-exslt-dir=/path/to/libexslt
104
106
  --with-exslt-lib=/path/to/libexslt/lib
105
107
  --with-exslt-include=/path/to/libexslt/include
106
- EOL
108
+ EOL
109
+ end
110
+
111
+ # Figure out where libxml-ruby is installed
112
+ gem_specs = Gem.source_index.find_name('libxml-ruby')
113
+ if gem_specs.empty?
114
+ crash(<<-EOL)
115
+ libxml-ruby bindings must be installed
116
+ EOL
107
117
  end
108
118
 
109
- unless have_header('libxml/ruby_libxml.h') and
110
- have_header('libxml/ruby_xml_document.h')
111
- crash(<<EOL)
112
- need headers for libxml-ruby.
119
+ gem_specs = gem_specs.sort_by {|spec| spec.version}.reverse
120
+ libxml_ruby_path = gem_specs.first.full_gem_path
113
121
 
114
- If you downloaded a release, this is a bug - please inform
115
- libxml-devel@rubyforge.org including the release version and
116
- download URL you obtained it from.
122
+ $INCFLAGS += " -I#{libxml_ruby_path}/ext"
117
123
 
118
- If you checked libxslt-ruby out from CVS, you will need to
119
- obtain the headers from CVS (using the same version tag if
120
- applicable) and place them in directory 'ext/xml/libxml-ruby'.
121
- EOL
124
+ unless have_header('libxml/ruby_libxml.h')
125
+ crash(<<-EOL)
126
+ Need headers for libxml-ruby.
127
+ EOL
122
128
  end
123
129
 
124
- # This doens't actually work - means libxslt can't find libxml...
125
- unless (have_library('xml_ruby', 'rxml_document_wrap') or
126
- have_library(':libxml_ruby.so', 'rxml_document_wrap'))
127
- crash(<<EOL)
128
- need libxml-ruby
129
- Install libxml-ruby first.
130
- EOL
130
+ if RUBY_PLATFORM.match(/win32|mingw32/)
131
+ RUBY_VERSION =~ /(\d+.\d+)/
132
+ $LIBPATH << File.join(libxml_ruby_path, "lib")
133
+ $LIBPATH << File.join(libxml_ruby_path, "lib", $1)
134
+
135
+ headers = ['iconv.h', 'libxml/ruby_libxml.h']
136
+ unless have_library(':libxml_ruby.so', 'Init_libxml_ruby', headers)
137
+ crash(<<-EOL)
138
+ Need libxml-ruby
139
+ Please install libxml-ruby or specify the path to the gem via:
140
+ --with-libxml-ruby=/path/to/libxml-ruby gem
141
+ EOL
142
+ end
131
143
  end
132
144
 
133
145
  create_header()
@@ -81,15 +81,15 @@ ruby_xslt_coerce_params(VALUE params) {
81
81
  size_t length;
82
82
  size_t i;
83
83
 
84
- length = RARRAY(params)->len;
84
+ length = RARRAY_LEN(params);
85
85
  result = ALLOC_N(char *, length + 2);
86
86
 
87
87
  for (i=0; i<length; i++) {
88
- VALUE str = rb_String(RARRAY(params)->ptr[i]);
89
- int strLen = RSTRING(str)->len;
88
+ VALUE str = rb_String(RARRAY_PTR(params)[i]);
89
+ int strLen = RSTRING_LEN(str);
90
90
  result[i] = ALLOC_N(char, strLen + 1);
91
91
  memset(result[i], 0, strLen + 1);
92
- strncpy(result[i], RSTRING(str)->ptr, strLen);
92
+ strncpy(result[i], RSTRING_PTR(str), strLen);
93
93
  }
94
94
 
95
95
  /* Null terminate the array - need to empty elements */
@@ -154,7 +154,7 @@ ruby_xslt_stylesheet_apply(int argc, VALUE *argv, VALUE self) {
154
154
 
155
155
  /* Free allocated array of *chars. Note we don't have to
156
156
  free the last array item since its set to NULL. */
157
- for (i=0; i<(RARRAY(params)->len); i++) {
157
+ for (i=0; i<RARRAY_LEN(params); i++) {
158
158
  ruby_xfree(pParams[i]);
159
159
  }
160
160
  ruby_xfree(pParams);
@@ -1,5 +1,5 @@
1
- #define RUBY_LIBXSLT_VERSION "0.9.8"
2
- #define RUBY_LIBXSLT_VERNUM 0
1
+ #define RUBY_LIBXSLT_VERSION "1.0.1"
2
+ #define RUBY_LIBXSLT_VERNUM 1
3
3
  #define RUBY_LIBXSLT_VER_MAJ 0
4
- #define RUBY_LIBXSLT_VER_MIN 9
5
- #define RUBY_LIBXSLT_VER_MIC 8
4
+ #define RUBY_LIBXSLT_VER_MIN 1
5
+ #define RUBY_LIBXSLT_VER_MIC 0
@@ -1,9 +1,9 @@
1
1
  
2
- Microsoft Visual Studio Solution File, Format Version 10.00
3
- # Visual Studio 2008
4
- Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libxslt_ruby", "libxslt_ruby.vcproj", "{6DCFD1E6-224E-479C-BBD9-B6931DFCD02C}"
2
+ Microsoft Visual Studio Solution File, Format Version 11.00
3
+ # Visual Studio 2010
4
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libxslt_ruby", "libxslt_ruby.vcxproj", "{6DCFD1E6-224E-479C-BBD9-B6931DFCD02C}"
5
5
  EndProject
6
- Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libxml_ruby", "..\..\..\libxml-ruby\ext\vc\libxml_ruby.vcproj", "{0B65CD1D-EEB9-41AE-93BB-75496E504152}"
6
+ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libxml_ruby", "..\..\..\libxml-ruby\ext\vc\libxml_ruby_18\libxml_ruby.vcxproj", "{0B65CD1D-EEB9-41AE-93BB-75496E504152}"
7
7
  EndProject
8
8
  Global
9
9
  GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -0,0 +1,110 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <ItemGroup Label="ProjectConfigurations">
4
+ <ProjectConfiguration Include="Debug|Win32">
5
+ <Configuration>Debug</Configuration>
6
+ <Platform>Win32</Platform>
7
+ </ProjectConfiguration>
8
+ <ProjectConfiguration Include="Release|Win32">
9
+ <Configuration>Release</Configuration>
10
+ <Platform>Win32</Platform>
11
+ </ProjectConfiguration>
12
+ </ItemGroup>
13
+ <PropertyGroup Label="Globals">
14
+ <ProjectGuid>{6DCFD1E6-224E-479C-BBD9-B6931DFCD02C}</ProjectGuid>
15
+ <RootNamespace>libxsl</RootNamespace>
16
+ <Keyword>Win32Proj</Keyword>
17
+ </PropertyGroup>
18
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
19
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
20
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
21
+ <CharacterSet>Unicode</CharacterSet>
22
+ <WholeProgramOptimization>true</WholeProgramOptimization>
23
+ </PropertyGroup>
24
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
25
+ <ConfigurationType>DynamicLibrary</ConfigurationType>
26
+ <CharacterSet>Unicode</CharacterSet>
27
+ </PropertyGroup>
28
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
29
+ <ImportGroup Label="ExtensionSettings">
30
+ </ImportGroup>
31
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
32
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
33
+ </ImportGroup>
34
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
35
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
36
+ </ImportGroup>
37
+ <PropertyGroup Label="UserMacros" />
38
+ <PropertyGroup>
39
+ <_ProjectFileVersion>10.0.30319.1</_ProjectFileVersion>
40
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">C:\MinGW\local\src\libxslt-ruby\lib\1.8</OutDir>
41
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(Configuration)\</IntDir>
42
+ <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">true</LinkIncremental>
43
+ <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\</OutDir>
44
+ <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(Configuration)\</IntDir>
45
+ <LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</LinkIncremental>
46
+ <TargetExt Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">.so</TargetExt>
47
+ <TargetExt Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">.so</TargetExt>
48
+ </PropertyGroup>
49
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
50
+ <ClCompile>
51
+ <Optimization>Disabled</Optimization>
52
+ <AdditionalIncludeDirectories>C:\MinGW\local\ruby18vc\lib\ruby\1.8\i386-mswin32_100;C:\MinGW\local\src\libxml-ruby\ext;C:\MinGW\local\include;C:\MinGW\local\include\libxml2;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
53
+ <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;libxsl_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
54
+ <MinimalRebuild>true</MinimalRebuild>
55
+ <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
56
+ <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
57
+ <PrecompiledHeader>
58
+ </PrecompiledHeader>
59
+ <WarningLevel>Level3</WarningLevel>
60
+ <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
61
+ </ClCompile>
62
+ <Link>
63
+ <AdditionalDependencies>msvcr100-ruby18.lib;libxml2.lib;libxslt.lib;libexslt.lib;libxml_ruby.lib;%(AdditionalDependencies)</AdditionalDependencies>
64
+ <OutputFile>$(OutDir)\$(TargetName)$(TargetExt)</OutputFile>
65
+ <AdditionalLibraryDirectories>C:\MinGW\local\ruby18vc\lib;C:\MinGW\local\lib;C:\MinGW\local\src\libxml-ruby\lib\1.8;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
66
+ <GenerateDebugInformation>true</GenerateDebugInformation>
67
+ <SubSystem>Windows</SubSystem>
68
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
69
+ <DataExecutionPrevention>
70
+ </DataExecutionPrevention>
71
+ <TargetMachine>MachineX86</TargetMachine>
72
+ </Link>
73
+ </ItemDefinitionGroup>
74
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
75
+ <ClCompile>
76
+ <AdditionalIncludeDirectories>C:\Development\msys\src\libiconv-1.12\include;C:\Development\ruby\lib\ruby\1.8\i386-mswin32;C:\Development\msys\src\libxml2-2.6.32\include;C:\Development\msys\src\libxslt-1.1.24;C:\Development\msys\src\rlibxml\ext;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
77
+ <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBXML_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
78
+ <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
79
+ <PrecompiledHeader>
80
+ </PrecompiledHeader>
81
+ <WarningLevel>Level3</WarningLevel>
82
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
83
+ </ClCompile>
84
+ <Link>
85
+ <AdditionalDependencies>msvcrt-ruby18.lib;libxml2.lib;libxslt.lib;libexslt.lib;%(AdditionalDependencies)</AdditionalDependencies>
86
+ <OutputFile>$(OutDir)$(ProjectName).so</OutputFile>
87
+ <AdditionalLibraryDirectories>C:\Development\ruby\lib;C:\Development\msys\src\libxslt-1.1.24\win32\bin.msvc;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
88
+ <GenerateDebugInformation>true</GenerateDebugInformation>
89
+ <SubSystem>Windows</SubSystem>
90
+ <OptimizeReferences>true</OptimizeReferences>
91
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
92
+ <RandomizedBaseAddress>false</RandomizedBaseAddress>
93
+ <DataExecutionPrevention>
94
+ </DataExecutionPrevention>
95
+ <TargetMachine>MachineX86</TargetMachine>
96
+ </Link>
97
+ </ItemDefinitionGroup>
98
+ <ItemGroup>
99
+ <ClCompile Include="..\libxslt\libxslt.c" />
100
+ <ClCompile Include="..\libxslt\ruby_xslt_stylesheet.c" />
101
+ </ItemGroup>
102
+ <ItemGroup>
103
+ <ClInclude Include="..\libxslt\libxslt.h" />
104
+ <ClInclude Include="..\libxslt\ruby_xslt_stylesheet.h" />
105
+ <ClInclude Include="..\libxslt\version.h" />
106
+ </ItemGroup>
107
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
108
+ <ImportGroup Label="ExtensionTargets">
109
+ </ImportGroup>
110
+ </Project>
data/lib/libxslt.rb CHANGED
@@ -1,13 +1,19 @@
1
- # First make sure libxml is loaded
1
+ # encoding: UTF-8
2
+
3
+ # First make sure dl is loaded, we use that
4
+ # to access the libxml bindings
5
+ require 'dl'
6
+
7
+ # Next load the libxml bindings
2
8
  require 'libxml'
3
9
 
4
- # Now if running on Windows, then add the current directory to the PATH
5
- # for the current process so it can find the pre-built libxml2 and
6
- # iconv2 shared libraries (dlls).
7
- if RUBY_PLATFORM.match(/mswin/i)
8
- ENV['PATH'] += ";#{File.dirname(__FILE__)}"
10
+ # Load the C-based binding.
11
+ begin
12
+ RUBY_VERSION =~ /(\d+.\d+)/
13
+ require "#{$1}/libxslt_ruby"
14
+ rescue LoadError
15
+ require "libxslt_ruby"
9
16
  end
10
17
 
11
- require 'libxslt_ruby'
12
-
18
+ # And add support for deprecated functions
13
19
  require 'libxslt/deprecated'
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  # :enddoc:
2
3
  # These classes provide provide backwards compatibility with
3
4
  # versions of libxslt-ruby prior to version 0.7.0
@@ -0,0 +1,49 @@
1
+ # encoding: utf-8
2
+
3
+ # Determine the current version of the software
4
+ version = File.read('ext/libxslt/version.h').match(/\s*RUBY_LIBXSLT_VERSION\s*['"](\d.+)['"]/)[1]
5
+
6
+ FILES = FileList[
7
+ 'CHANGES',
8
+ 'LICENSE',
9
+ 'Rakefile',
10
+ 'README',
11
+ 'libxslt-ruby.gemspec',
12
+ 'setup.rb',
13
+ 'doc/**/*',
14
+ 'lib/**/*.rb',
15
+ 'ext/libxslt/*.h',
16
+ 'ext/libxslt/*.c',
17
+ 'ext/vc/*.sln',
18
+ 'ext/vc/*.vcxproj',
19
+ 'test/**/*'
20
+ ]
21
+
22
+ # Default GEM Specification
23
+ Gem::Specification.new do |spec|
24
+ spec.name = "libxslt-ruby"
25
+
26
+ spec.homepage = "http://libxslt.rubyforge.org/"
27
+ spec.summary = "Ruby libxslt bindings"
28
+ spec.description = <<-EOF
29
+ The Libxslt-Ruby project provides Ruby language bindings for the GNOME
30
+ XSLT C library. It is free software, released under the MIT License.
31
+ EOF
32
+
33
+ # Determine the current version of the software
34
+ spec.version = version
35
+ spec.author = "Charlie Savage"
36
+ spec.email = "libxml-devel@rubyforge.org"
37
+ spec.add_dependency('libxml-ruby','>=2.0.2')
38
+ spec.platform = Gem::Platform::RUBY
39
+ spec.require_paths = ["lib", "ext/libxslt"]
40
+
41
+ spec.bindir = "bin"
42
+ spec.extensions = ["ext/libxslt/extconf.rb"]
43
+ spec.files = FILES.to_a
44
+ spec.test_files = Dir.glob("test/tc_*.rb")
45
+
46
+ spec.required_ruby_version = '>= 1.8.4'
47
+ spec.date = DateTime.now
48
+ spec.rubyforge_project = 'libxslt-ruby'
49
+ end
@@ -1,5 +1,6 @@
1
- require 'xslt'
1
+ # encoding: UTF-8
2
2
  require 'test/unit'
3
+ require 'test_helper'
3
4
 
4
5
  class TestDeprecated < Test::Unit::TestCase
5
6
  def setup()
@@ -0,0 +1,12 @@
1
+ # encoding: UTF-8
2
+
3
+ # To make testing/debugging easier, test within this source tree versus an installed gem
4
+
5
+ dir = File.dirname(__FILE__)
6
+ root = File.expand_path(File.join(dir, '..'))
7
+ lib = File.expand_path(File.join(root, 'lib'))
8
+
9
+ $LOAD_PATH << lib
10
+
11
+ require 'xslt'
12
+
data/test/test_libxslt.rb CHANGED
@@ -1,5 +1,6 @@
1
- require 'xslt'
1
+ # encoding: UTF-8
2
2
  require 'test/unit'
3
+ require 'test_helper'
3
4
 
4
5
  class TextLibXslt < Test::Unit::TestCase
5
6
  def test_constants
@@ -1,5 +1,6 @@
1
- require 'xslt'
1
+ # encoding: UTF-8
2
2
  require 'test/unit'
3
+ require 'test_helper'
3
4
 
4
5
  class TestStylesheet < Test::Unit::TestCase
5
6
  def setup
@@ -72,11 +73,8 @@ class TestStylesheet < Test::Unit::TestCase
72
73
  10.times do
73
74
  filename = File.join(File.dirname(__FILE__), 'files/fuzface.xsl')
74
75
  sdoc = XML::Document.file(filename)
75
- stylesheet = XSLT::Stylesheet.new(sdoc)
76
-
77
- stylesheet = nil
78
76
  GC.start
79
- assert_equal(156, sdoc.to_s.length)
77
+ assert_equal(173, sdoc.to_s.length)
80
78
  end
81
79
  end
82
80
 
@@ -90,7 +88,7 @@ class TestStylesheet < Test::Unit::TestCase
90
88
  GC.start
91
89
 
92
90
  rdoc = stylesheet.apply(doc)
93
- assert_equal(5993, rdoc.to_s.length)
91
+ assert_equal(5963, rdoc.to_s.length)
94
92
  end
95
93
  end
96
94
 
data/test/test_suite.rb CHANGED
@@ -1,3 +1,10 @@
1
+ # encoding: UTF-8
2
+
3
+ # Change to current directory so relative
4
+ # requires work.
5
+ dir = File.dirname(__FILE__)
6
+ Dir.chdir(dir)
7
+
1
8
  require 'test_libxslt'
2
9
  require 'test_stylesheet'
3
10
  require 'test_deprecated'
data/test/text.xml ADDED
@@ -0,0 +1,134 @@
1
+ <?xml version="1.0"?>
2
+ <html>
3
+ <head>
4
+ <title>Ramblings - Fuzface... - The Internet's a big place and here's some proof...</title>
5
+ </head>
6
+ <body><h1>Fuzface...</h1><h3>The Internet's a big place and here's some proof...</h3>
7
+ By: SeanChittenden<br/>
8
+ Date: $Date$<br/>
9
+ <p>
10
+ I think it's a tragedy that I'm going to start off my new
11
+ commentary by talking about facial hair and the Internet.
12
+ Something about that just screams pathetic, but whatever: it's
13
+ humor and that's life.
14
+ </p>
15
+
16
+ <p>
17
+ I've been working at home for a while now, which has been great.
18
+ I've been doing a lot of reading, good work, contributing to the
19
+ FreeBSD project, and living life at my own pace. The problem?
20
+ I don't have to interact with people, so I've let my appearance
21
+ slide a bit, most notably I've gone two weeks without shaving
22
+ and I have an awful hairy face.
23
+ </p>
24
+
25
+ <p>
26
+ Nothing is worse than going for a hard run, coming back, and
27
+ then bending your head down so that the hairs under your chin
28
+ touch the hairs on your neck. This has to be one of the most
29
+ disgusting/gross feelings I've experienced in a while. While
30
+ today wasn't the first time I'd experienced such a slimy tangled
31
+ mess, it is the first time I seriously considered shaving part
32
+ of my face, but not all of it: I was considering a beard.
33
+ </p>
34
+
35
+ <p>
36
+ Alright, so it's 5pm and I'm a sweaty post-run mess (it was 110
37
+ degrees in direct sunlight according to my thermometer) and
38
+ considering the possibility of growing a beard. Swifty nift?
39
+ Maybe. This is something I'd never done before, let alone
40
+ seriously consider. Normally I'd call my dad for such manly
41
+ advice, but he is: a) normally in another state, and; b) in
42
+ another country right now probably growing a beard (he's
43
+ notorious for coming back from a trip with a gnarly unshaven
44
+ face, sometimes he'll shape it into a decent beard). So, what's
45
+ a tech-junkie to do? Hop on the Internet and see if Google's
46
+ able to provide me with some inspiration.
47
+ </p>
48
+
49
+ <p>
50
+ Sure enough, I typed in "pictures of bearded men" and I was able
51
+ to find something: 14,000 pages of something to be exact.
52
+ Anyway, so most of these were rinky dink sites, a few of them
53
+ had some promise. One guy was trying to start a tradition where
54
+ everyone grows a beard for New Years. As I was scrolling down
55
+ the page trying to find some pictures, my mind was having the
56
+ following thought process: <i>This seems like a dumb
57
+ idea... New Years provides a perfectly good excuse to kiss some
58
+ total stranger that you've had your eye on for the duration of a
59
+ New Years party. Why waste such an opportunity with a crappy
60
+ kiss?</i> And at about this point I said this page sucks,
61
+ and flipped back to my search results.
62
+ </p>
63
+
64
+ <p>
65
+ Since I'd never done this before, I didn't know what was
66
+ fashionably correct in terms of where a guy should shave under
67
+ his neck, or what the deal was... I knew there were lots of
68
+ styles out there, just none that I could picture in my mind
69
+ (save maybe Santa Claus and a few really gnarly beards that are
70
+ long enough to be used as full-body covering. Oooh! And don't
71
+ forget the Russian and Amish beards, those stand out in my mind
72
+ too.). Google, being pretty comprehensive, and the Internet
73
+ being huge, found the exact screwball page I was looking for:
74
+ http://fuzface-gallery.tripod.com/
75
+ </p>
76
+
77
+ <p>
78
+ I don't know if I really should be amazed at the sheer number of
79
+ entries that Google returned, or that the Internet is big enough
80
+ to house such random gallery of crap, but it is and it never
81
+ ceases to amaze me... it's almost as amazing as the fact that
82
+ some bozo spent the time to create such a page. Don't people
83
+ have lives? Oh wait, I just visited his page... so back to my
84
+ diatribe...
85
+ </p>
86
+
87
+ <p>
88
+ There were tons of faces, lots of men, lots of hair, and plenty
89
+ of styles to choose from. Page after page of faces and hair.
90
+ Ugh. This wasn't getting any where and I was now entertaining
91
+ the rebound though of shaving my head. Time to close my browser
92
+ and hop in the shower: I reak. So what'd I do? Well, after
93
+ looking through enough of those pictures, I decided a few
94
+ things:
95
+ </p>
96
+
97
+ <p>
98
+ <ol><li>
99
+ I'm amazed that the Internet is big enough to foster the
100
+ creation of such random and utterly useless information. Then
101
+ again, I've been on and using the Net since '95, so this
102
+ shouldn't surprise me that much.
103
+ </li><li>
104
+ There are a lot of guys out there with varying tastes in,
105
+ shall we say, "facial hair styles," most of which I find
106
+ pretty unappealing.
107
+ </li><li>
108
+ I don't like beards. After one clogged drain, two
109
+ reapplications of shaving cream, and a few pases with the
110
+ razor, it took me about 5-10 minutes to get a nice cleanly
111
+ shaven face.
112
+ </li><li>
113
+ &lt;crass comment&gt;And - back me up here fellas, you can
114
+ sympathize with this feeling after you get done looking
115
+ through a magazine for a hair-cut style (ladies.. just smile
116
+ and nod and pretend you care) - after looking at a few dozen
117
+ pictures of men, I was able to safely reaffirm my desire for
118
+ heterosexual relations (translation from Bill Clintonese: have
119
+ sex with a woman). And with that thought in mind, I began to
120
+ pine for the college porn collection of old. Mmmm,
121
+ Playboy.&lt;/crass comment&gt;
122
+ </li></ol>
123
+ </p>
124
+
125
+ <p>
126
+ ::grin:: Until next time. -Sean
127
+ </p>
128
+
129
+ <p>
130
+ P.S. To the guys out there with beards, this is just my
131
+ opinion: take it with a grain of salt.
132
+ </p>
133
+ </body>
134
+ </html>
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libxslt-ruby
3
3
  version: !ruby/object:Gem::Version
4
- hash: 43
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 9
9
- - 8
10
- version: 0.9.8
5
+ version: 1.0.1
11
6
  platform: ruby
12
7
  authors:
13
8
  - Charlie Savage
@@ -15,7 +10,7 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-01-18 00:00:00 -07:00
13
+ date: 2011-04-18 00:00:00 -06:00
19
14
  default_executable:
20
15
  dependencies:
21
16
  - !ruby/object:Gem::Dependency
@@ -26,12 +21,7 @@ dependencies:
26
21
  requirements:
27
22
  - - ">="
28
23
  - !ruby/object:Gem::Version
29
- hash: 51
30
- segments:
31
- - 0
32
- - 9
33
- - 4
34
- version: 0.9.4
24
+ version: 2.0.2
35
25
  type: :runtime
36
26
  version_requirements: *id001
37
27
  description: " The Libxslt-Ruby project provides Ruby language bindings for the GNOME \n XSLT C library. It is free software, released under the MIT License.\n"
@@ -43,10 +33,11 @@ extensions:
43
33
  extra_rdoc_files: []
44
34
 
45
35
  files:
46
- - Rakefile
47
36
  - CHANGES
48
- - README
49
37
  - LICENSE
38
+ - Rakefile
39
+ - README
40
+ - libxslt-ruby.gemspec
50
41
  - setup.rb
51
42
  - lib/libxslt/deprecated.rb
52
43
  - lib/libxslt.rb
@@ -55,12 +46,10 @@ files:
55
46
  - ext/libxslt/libxslt.h
56
47
  - ext/libxslt/ruby_xslt_stylesheet.h
57
48
  - ext/libxslt/version.h
58
- - ext/libxslt/conftest.c
59
49
  - ext/libxslt/libxslt.c
60
50
  - ext/libxslt/ruby_xslt_stylesheet.c
61
- - ext/mingw/Rakefile
62
51
  - ext/vc/libxslt_ruby.sln
63
- - ext/vc/libxslt_ruby.vcproj
52
+ - ext/vc/libxslt_ruby.vcxproj
64
53
  - test/files/commentary.dtd
65
54
  - test/files/fuzface.xml
66
55
  - test/files/fuzface.xsl
@@ -68,9 +57,11 @@ files:
68
57
  - test/files/params.xsl
69
58
  - test/files/ramblings.xsl
70
59
  - test/test_deprecated.rb
60
+ - test/test_helper.rb
71
61
  - test/test_libxslt.rb
72
62
  - test/test_stylesheet.rb
73
63
  - test/test_suite.rb
64
+ - test/text.xml
74
65
  - ext/libxslt/extconf.rb
75
66
  has_rdoc: true
76
67
  homepage: http://libxslt.rubyforge.org/
@@ -87,25 +78,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
87
78
  requirements:
88
79
  - - ">="
89
80
  - !ruby/object:Gem::Version
90
- hash: 63
91
- segments:
92
- - 1
93
- - 8
94
- - 4
95
81
  version: 1.8.4
96
82
  required_rubygems_version: !ruby/object:Gem::Requirement
97
83
  none: false
98
84
  requirements:
99
85
  - - ">="
100
86
  - !ruby/object:Gem::Version
101
- hash: 3
102
- segments:
103
- - 0
104
87
  version: "0"
105
88
  requirements: []
106
89
 
107
90
  rubyforge_project: libxslt-ruby
108
- rubygems_version: 1.4.2
91
+ rubygems_version: 1.5.2
109
92
  signing_key:
110
93
  specification_version: 3
111
94
  summary: Ruby libxslt bindings
@@ -1,3 +0,0 @@
1
- /*top*/
2
- int main() { return 0; }
3
- int t() { xmlXPtrNewRange(); return 0; }
data/ext/mingw/Rakefile DELETED
@@ -1,28 +0,0 @@
1
- # We can't use Ruby's standard build procedures
2
- # on Windows because the Ruby executable is
3
- # built with VC++ while here we want to build
4
- # with MingW. So just roll our own...
5
-
6
- require 'fileutils'
7
- require 'rbconfig'
8
-
9
- EXTENSION_NAME = "libxslt_ruby.#{Config::CONFIG["DLEXT"]}"
10
-
11
- # This is called when the Windows GEM is installed!
12
- task :install do
13
- # Gems will pass these two environment variables:
14
- # RUBYARCHDIR=#{dest_path}
15
- # RUBYLIBDIR=#{dest_path}
16
-
17
- dest_path = ENV['RUBYLIBDIR']
18
-
19
- # Copy the extension
20
- cp(EXTENSION_NAME, dest_path)
21
-
22
- # Copy dllss
23
- Dir.glob('*.dll').each do |dll|
24
- cp(dll, dest_path)
25
- end
26
- end
27
-
28
- task :default => :install
@@ -1,224 +0,0 @@
1
- <?xml version="1.0" encoding="Windows-1252"?>
2
- <VisualStudioProject
3
- ProjectType="Visual C++"
4
- Version="9.00"
5
- Name="libxslt_ruby"
6
- ProjectGUID="{6DCFD1E6-224E-479C-BBD9-B6931DFCD02C}"
7
- RootNamespace="libxsl"
8
- Keyword="Win32Proj"
9
- TargetFrameworkVersion="131072"
10
- >
11
- <Platforms>
12
- <Platform
13
- Name="Win32"
14
- />
15
- </Platforms>
16
- <ToolFiles>
17
- </ToolFiles>
18
- <Configurations>
19
- <Configuration
20
- Name="Debug|Win32"
21
- OutputDirectory="C:\Development\ruby\lib\ruby\gems\1.8\gems\libxslt-ruby-0.8.2-x86-mswin32-60\lib"
22
- IntermediateDirectory="$(ConfigurationName)"
23
- ConfigurationType="2"
24
- CharacterSet="1"
25
- >
26
- <Tool
27
- Name="VCPreBuildEventTool"
28
- />
29
- <Tool
30
- Name="VCCustomBuildTool"
31
- />
32
- <Tool
33
- Name="VCXMLDataGeneratorTool"
34
- />
35
- <Tool
36
- Name="VCWebServiceProxyGeneratorTool"
37
- />
38
- <Tool
39
- Name="VCMIDLTool"
40
- />
41
- <Tool
42
- Name="VCCLCompilerTool"
43
- Optimization="0"
44
- AdditionalIncludeDirectories="&quot;C:\Development\src\libxml-ruby\ext&quot;;&quot;C:\Development\ruby\lib\ruby\1.8\i386-mswin32&quot;;C:\Development\msys\local\include;C:\Development\msys\local\include\libxml2"
45
- PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;libxsl_EXPORTS"
46
- MinimalRebuild="true"
47
- BasicRuntimeChecks="3"
48
- RuntimeLibrary="3"
49
- UsePrecompiledHeader="0"
50
- WarningLevel="3"
51
- Detect64BitPortabilityProblems="true"
52
- DebugInformationFormat="4"
53
- />
54
- <Tool
55
- Name="VCManagedResourceCompilerTool"
56
- />
57
- <Tool
58
- Name="VCResourceCompilerTool"
59
- />
60
- <Tool
61
- Name="VCPreLinkEventTool"
62
- />
63
- <Tool
64
- Name="VCLinkerTool"
65
- AdditionalDependencies="msvcrt-ruby18.lib libxml2.lib libxslt.lib libexslt.lib"
66
- OutputFile="C:\Development\ruby\lib\ruby\gems\1.8\gems\libxslt-ruby-0.9.1-x86-mswin32-60\lib\$(ProjectName).so"
67
- LinkIncremental="2"
68
- AdditionalLibraryDirectories="C:\Development\ruby\lib;C:\Development\msys\local\lib"
69
- GenerateDebugInformation="true"
70
- SubSystem="2"
71
- RandomizedBaseAddress="1"
72
- DataExecutionPrevention="0"
73
- TargetMachine="1"
74
- />
75
- <Tool
76
- Name="VCALinkTool"
77
- />
78
- <Tool
79
- Name="VCManifestTool"
80
- />
81
- <Tool
82
- Name="VCXDCMakeTool"
83
- />
84
- <Tool
85
- Name="VCBscMakeTool"
86
- />
87
- <Tool
88
- Name="VCFxCopTool"
89
- />
90
- <Tool
91
- Name="VCAppVerifierTool"
92
- />
93
- <Tool
94
- Name="VCPostBuildEventTool"
95
- />
96
- </Configuration>
97
- <Configuration
98
- Name="Release|Win32"
99
- OutputDirectory="$(SolutionDir)$(ConfigurationName)"
100
- IntermediateDirectory="$(ConfigurationName)"
101
- ConfigurationType="2"
102
- CharacterSet="1"
103
- WholeProgramOptimization="1"
104
- >
105
- <Tool
106
- Name="VCPreBuildEventTool"
107
- />
108
- <Tool
109
- Name="VCCustomBuildTool"
110
- />
111
- <Tool
112
- Name="VCXMLDataGeneratorTool"
113
- />
114
- <Tool
115
- Name="VCWebServiceProxyGeneratorTool"
116
- />
117
- <Tool
118
- Name="VCMIDLTool"
119
- />
120
- <Tool
121
- Name="VCCLCompilerTool"
122
- AdditionalIncludeDirectories="&quot;C:\Development\msys\src\libiconv-1.12\include&quot;;&quot;C:\Development\ruby\lib\ruby\1.8\i386-mswin32&quot;;&quot;C:\Development\msys\src\libxml2-2.6.32\include&quot;;&quot;C:\Development\msys\src\libxslt-1.1.24&quot;;C:\Development\msys\src\rlibxml\ext"
123
- PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;LIBXML_EXPORTS"
124
- RuntimeLibrary="2"
125
- UsePrecompiledHeader="0"
126
- WarningLevel="3"
127
- Detect64BitPortabilityProblems="true"
128
- DebugInformationFormat="3"
129
- />
130
- <Tool
131
- Name="VCManagedResourceCompilerTool"
132
- />
133
- <Tool
134
- Name="VCResourceCompilerTool"
135
- />
136
- <Tool
137
- Name="VCPreLinkEventTool"
138
- />
139
- <Tool
140
- Name="VCLinkerTool"
141
- AdditionalDependencies="msvcrt-ruby18.lib libxml2.lib libxslt.lib libexslt.lib"
142
- OutputFile="$(OutDir)\$(ProjectName).so"
143
- LinkIncremental="1"
144
- AdditionalLibraryDirectories="C:\Development\ruby\lib;&quot;C:\Development\msys\src\libxslt-1.1.24\win32\bin.msvc&quot;"
145
- GenerateDebugInformation="true"
146
- SubSystem="2"
147
- OptimizeReferences="2"
148
- EnableCOMDATFolding="2"
149
- RandomizedBaseAddress="1"
150
- DataExecutionPrevention="0"
151
- TargetMachine="1"
152
- />
153
- <Tool
154
- Name="VCALinkTool"
155
- />
156
- <Tool
157
- Name="VCManifestTool"
158
- />
159
- <Tool
160
- Name="VCXDCMakeTool"
161
- />
162
- <Tool
163
- Name="VCBscMakeTool"
164
- />
165
- <Tool
166
- Name="VCFxCopTool"
167
- />
168
- <Tool
169
- Name="VCAppVerifierTool"
170
- />
171
- <Tool
172
- Name="VCPostBuildEventTool"
173
- />
174
- </Configuration>
175
- </Configurations>
176
- <References>
177
- <ProjectReference
178
- ReferencedProjectIdentifier="{0B65CD1D-EEB9-41AE-93BB-75496E504152}"
179
- RelativePathToProject="..\..\..\libxml-ruby\ext\vc\libxml_ruby.vcproj"
180
- />
181
- </References>
182
- <Files>
183
- <Filter
184
- Name="Source Files"
185
- Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
186
- UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
187
- >
188
- <File
189
- RelativePath="..\libxslt\libxslt.c"
190
- >
191
- </File>
192
- <File
193
- RelativePath="..\libxslt\ruby_xslt_stylesheet.c"
194
- >
195
- </File>
196
- </Filter>
197
- <Filter
198
- Name="Header Files"
199
- Filter="h;hpp;hxx;hm;inl;inc;xsd"
200
- UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
201
- >
202
- <File
203
- RelativePath="..\libxslt\libxslt.h"
204
- >
205
- </File>
206
- <File
207
- RelativePath="..\libxslt\ruby_xslt_stylesheet.h"
208
- >
209
- </File>
210
- <File
211
- RelativePath="..\libxslt\version.h"
212
- >
213
- </File>
214
- </Filter>
215
- <Filter
216
- Name="Resource Files"
217
- Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
218
- UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
219
- >
220
- </Filter>
221
- </Files>
222
- <Globals>
223
- </Globals>
224
- </VisualStudioProject>