teienlib 0.0.4-x86-linux → 0.1.0-x86-linux
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.
- data/README.md +8 -2
- data/Rakefile +1 -2
- data/ext/teienlib/extconf.rb +10 -11
- data/ext/teienlib/interface/Rakefile +4 -8
- data/lib/teienlib/version.rb +1 -1
- data/lib/teienlib.so +0 -0
- data/sample/hello/hello +5 -3
- data/sample/hello/hello.rb +3 -3
- data/teienlib.gemspec +3 -1
- metadata +29 -7
data/README.md
CHANGED
@@ -16,9 +16,15 @@ Or install it yourself as:
|
|
16
16
|
|
17
17
|
$ gem install teienlib
|
18
18
|
|
19
|
-
##
|
19
|
+
## How to install from source.
|
20
20
|
|
21
|
-
|
21
|
+
If you want to compile from source, try the following.
|
22
|
+
|
23
|
+
$ git clone git://github.com/abexsoft/teienlib.git
|
24
|
+
$ cd teienlib
|
25
|
+
$ rake build
|
26
|
+
$ gem build teienlib.gemspec
|
27
|
+
$ gem install teienlib-<version>-<arch>.gem
|
22
28
|
|
23
29
|
## Contributing
|
24
30
|
|
data/Rakefile
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
require "bundler/gem_tasks"
|
2
1
|
require 'rake/clean'
|
3
2
|
|
4
3
|
DLEXT = RbConfig::MAKEFILE_CONFIG['DLEXT']
|
5
4
|
|
6
5
|
desc 'Compile a teienlib extension library'
|
7
|
-
task "
|
6
|
+
task "build" => ["lib/teienlib.#{DLEXT}"]
|
8
7
|
|
9
8
|
## lib/*.#{DLEXT}
|
10
9
|
file "lib/teienlib.#{DLEXT}" => "ext/teienlib/teienlib.#{DLEXT}" do |f|
|
data/ext/teienlib/extconf.rb
CHANGED
@@ -1,23 +1,22 @@
|
|
1
1
|
require 'mkmf'
|
2
|
+
require "ruby-bullet"
|
3
|
+
require "ruby-ois"
|
4
|
+
require "ruby-ogre"
|
2
5
|
|
3
6
|
# set values of INC and LIB.
|
4
|
-
|
5
|
-
|
6
|
-
BULLET_INC = BulletConfig.getIncFlags()
|
7
|
-
BULLET_LIB = "-L" + BulletConfig.getDepsLibPath()
|
8
|
-
|
9
|
-
OGRE_INC = OgreConfig.getIncFlags()
|
10
|
-
OGRE_LIB = "-L" + OgreConfig.getDepsLibPath()
|
11
|
-
|
7
|
+
BULLET_INC = Ruby::Bullet::get_inc_flags
|
8
|
+
BULLET_LIB = Ruby::Bullet::get_lib_flags
|
12
9
|
|
10
|
+
OGRE_INC = Ruby::Ogre::get_inc_flags
|
11
|
+
OGRE_LIB = Ruby::Ogre::get_lib_flags
|
13
12
|
|
14
13
|
# set flags
|
15
|
-
$CFLAGS += " -g
|
14
|
+
$CFLAGS += " -g #{BULLET_INC} #{OGRE_INC} -I./src/"
|
16
15
|
|
17
16
|
if (/mingw/ =~ RUBY_PLATFORM)
|
18
|
-
$LDFLAGS += " -static-libgcc -static-libstdc++
|
17
|
+
$LDFLAGS += " -static-libgcc -static-libstdc++ #{BULLET_LIB} #{OGRE_LIB} -lws2_32 -lwinmm"
|
19
18
|
else
|
20
|
-
$LDFLAGS += " -static-libgcc -static-libstdc++
|
19
|
+
$LDFLAGS += " -static-libgcc -static-libstdc++ #{BULLET_LIB} #{OGRE_LIB}"
|
21
20
|
end
|
22
21
|
|
23
22
|
$srcs = ["src/AnimationBlender.cc",
|
@@ -1,12 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
BULLET_TOP = `ruby -e "require 'bullet_config'; print BulletConfig.get_top_dir"`
|
4
|
-
BULLET_INC = `ruby -e "require 'bullet_config'; print BulletConfig.get_inc_flags"`
|
1
|
+
require 'ruby-bullet'
|
2
|
+
require 'ruby-ogre'
|
5
3
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
SWIGFLAGS = "-ruby -c++ #{BULLET_INC} #{OGRE_INC} -I../src/ -I#{BULLET_TOP}/bindings/bullet/interface -I#{OGRE_TOP}/bindings/ogre/interface -autorename"
|
4
|
+
SWIG = 'swig'
|
5
|
+
SWIGFLAGS = "-ruby -c++ #{Ruby::Bullet::get_inc_flags} #{Ruby::Ogre::get_inc_flags} -I../src/ -I#{Ruby::Bullet::get_top_path}/bindings/bullet/interface -I#{Ruby::Ogre::get_top_path}/bindings/ogre/interface -autorename"
|
10
6
|
|
11
7
|
|
12
8
|
TARGET = 'teienlib_wrap.cpp'
|
data/lib/teienlib/version.rb
CHANGED
data/lib/teienlib.so
CHANGED
Binary file
|
data/sample/hello/hello
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
|
3
3
|
FILE_PATH=`dirname "$0"`
|
4
|
-
OGRE_LIB=`ruby -e "require '
|
4
|
+
OGRE_LIB=`ruby -e "require 'ruby-ogre'; print Ruby::Ogre::get_deps_lib_path"`
|
5
|
+
OIS_LIB=`ruby -e "require 'ruby-ois'; print Ruby::Ois::get_deps_lib_path"`
|
6
|
+
PRO_LIB=`ruby -e "require 'ruby-procedural'; print Ruby::Procedural::get_deps_lib_path"`
|
5
7
|
|
6
|
-
LD_LIBRARY_PATH=$OGRE_LIB:$LD_LIBRARY_PATH ruby $FILE_PATH/hello.rb
|
8
|
+
LD_LIBRARY_PATH=$OGRE_LIB:$OIS_LIB:$PRO_LIB:$LD_LIBRARY_PATH ruby $FILE_PATH/hello.rb
|
7
9
|
|
8
|
-
#LD_LIBRARY_PATH=$OGRE_LIB:$LD_LIBRARY_PATH gdb ruby
|
10
|
+
#LD_LIBRARY_PATH=$OGRE_LIB:$OIS_LIB:$PRO_LIB:$LD_LIBRARY_PATH gdb ruby
|
data/sample/hello/hello.rb
CHANGED
@@ -6,7 +6,7 @@ require "ogre"
|
|
6
6
|
require "ois"
|
7
7
|
require "ogrebites"
|
8
8
|
require "procedural"
|
9
|
-
require "
|
9
|
+
require "ruby-ogre"
|
10
10
|
|
11
11
|
require_relative "ui_listener"
|
12
12
|
require_relative "camera_mover"
|
@@ -61,7 +61,7 @@ class World < Ogre::FrameListener
|
|
61
61
|
pluginDir += "/" if (pluginDir.length > 0) && (pluginDir[-1] != '/')
|
62
62
|
cfg.each_settings {|secName, keyName, valueName|
|
63
63
|
fullPath = pluginDir + valueName
|
64
|
-
fullPath.sub!("<SystemPluginFolder>",
|
64
|
+
fullPath.sub!("<SystemPluginFolder>", Ruby::Ogre::get_plugin_folder)
|
65
65
|
@root.load_plugin(fullPath) if (keyName == "Plugin")
|
66
66
|
}
|
67
67
|
|
@@ -73,7 +73,7 @@ class World < Ogre::FrameListener
|
|
73
73
|
cfg.each_settings {|secName, keyName, valueName|
|
74
74
|
next if (keyName == "ResourceFolder")
|
75
75
|
fullPath = resourceDir + valueName
|
76
|
-
fullPath.sub!("<SystemResourceFolder>",
|
76
|
+
fullPath.sub!("<SystemResourceFolder>", Ruby::Ogre::get_resource_folder)
|
77
77
|
Ogre::ResourceGroupManager::get_singleton().add_resource_location(fullPath,
|
78
78
|
keyName,
|
79
79
|
secName)
|
data/teienlib.gemspec
CHANGED
@@ -31,6 +31,8 @@ Gem::Specification.new do |gem|
|
|
31
31
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
32
32
|
gem.require_paths = ["lib"]
|
33
33
|
|
34
|
-
gem.add_dependency 'ruby-
|
34
|
+
gem.add_dependency 'ruby-ois'
|
35
|
+
gem.add_dependency 'ruby-ogre-installer'
|
36
|
+
gem.add_dependency 'ruby-procedural'
|
35
37
|
gem.add_dependency 'ruby-bullet'
|
36
38
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teienlib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: x86-linux
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name: ruby-
|
16
|
-
requirement: &
|
15
|
+
name: ruby-ois
|
16
|
+
requirement: &83370150 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,32 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *83370150
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: ruby-ogre-installer
|
27
|
+
requirement: &83369400 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *83369400
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: ruby-procedural
|
38
|
+
requirement: &83368970 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *83368970
|
25
47
|
- !ruby/object:Gem::Dependency
|
26
48
|
name: ruby-bullet
|
27
|
-
requirement: &
|
49
|
+
requirement: &83368230 !ruby/object:Gem::Requirement
|
28
50
|
none: false
|
29
51
|
requirements:
|
30
52
|
- - ! '>='
|
@@ -32,7 +54,7 @@ dependencies:
|
|
32
54
|
version: '0'
|
33
55
|
type: :runtime
|
34
56
|
prerelease: false
|
35
|
-
version_requirements: *
|
57
|
+
version_requirements: *83368230
|
36
58
|
description: An extension library for Teien.
|
37
59
|
email:
|
38
60
|
- abexsoft@gmail.com
|