Skip to content

Commit ef69a62

Browse files
committed
Integrate processing-core into propane.jar
1 parent 7aa48d5 commit ef69a62

File tree

117 files changed

+95946
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+95946
-154
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def create_manifest
77
File.open('MANIFEST.MF', 'w') do |f|
88
f.puts(title)
99
f.puts(version)
10-
f.puts('Class-Path: processing-core.jar gluegen-rt-2.3.2.jar jog-all-2.3.2.jar')
10+
f.puts('Class-Path: gluegen-rt-2.3.2.jar jog-all-2.3.2.jar')
1111
end
1212
end
1313

@@ -21,7 +21,7 @@ end
2121
desc 'Install'
2222
task :install do
2323
sh 'mvn dependency:copy'
24-
sh 'mv target/propane.jar lib'
24+
sh 'mv target/propane-2.8.0.jar lib'
2525
end
2626

2727
desc 'Gem'

lib/propane/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# frozen_string_literal: true
22
module Propane
3-
VERSION = '2.7.0'.freeze
3+
VERSION = '2.8.0.pre'.freeze
44
end

pom.rb

Lines changed: 89 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,103 @@
1-
require 'fileutils'
2-
project 'rp5extras', 'https://github.com/monkstone/propane' do
1+
project 'propane', 'http://maven.apache.org' do
2+
33
model_version '4.0.0'
4-
id 'propane:propane', '2.7.0'
4+
id 'ruby-processing:propane:2.8.0'
55
packaging 'jar'
6-
description 'rp5extras for propane'
7-
organization 'ruby-processing', 'https://ruby-processing.github.io'
8-
{ 'monkstone' => 'Martin Prout' }.each do |key, value|
9-
developer key do
10-
name value
6+
7+
description 'Processing core is the engine that drives processing, this is a hacked version for propane (a ruby version).'
8+
9+
organization 'processing.org', 'https://processing.org'
10+
11+
['Ben Fry', 'Casey Reas', 'Andres Colubri', 'Florian Jenett', 'Gottfried Haider', 'Manindra Moharana'].each do |name|
12+
developer name do
13+
name name
1114
roles 'developer'
1215
end
1316
end
14-
license 'GPL 3', 'http://www.gnu.org/licenses/gpl-3.0-standalone.html'
15-
issue_management 'https://github.com/ruby-processing/propane/issues', 'Github'
16-
17-
source_control(
18-
url: 'https://github.com/ruby-processing/propane',
19-
connection: 'scm:git:git://github.com/ruby-processing/propane.git',
20-
developer_connection: 'scm:git:[email protected]/ruby-processing/propane.git'
21-
)
17+
license 'LGPL 2', 'https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html'
2218

23-
properties('source.directory' => 'src',
24-
'propane.basedir' => '${project.basedir}',
25-
'polyglot.dump.pom' => 'pom.xml',
26-
'maven.compiler.source' => '1.8',
27-
'project.build.sourceEncoding' => 'utf-8',
28-
'maven.compiler.target' => '1.8',
19+
properties( 'jogl.version' => '2.3.2',
2920
'jruby.api' => 'http://jruby.org/apidocs/',
21+
'source.directory' => 'src',
22+
'maven.compiler.target' => '1.8',
3023
'processing.api' => 'http://processing.github.io/processing-javadocs/core/',
31-
'jruby.api' => 'http://jruby.org/apidocs/',
32-
'jogl.version' => '2.3.2'
33-
)
34-
35-
pom 'org.jruby:jruby:9.1.16.0'
36-
jar 'org.processing:core:3.3.7'
37-
jar 'org.processing:video:3.0.2'
38-
jar('org.jogamp.jogl:jogl-all:${jogl.version}')
39-
jar('org.jogamp.gluegen:gluegen-rt-main:${jogl.version}')
24+
'propane.basedir' => '${project.basedir}',
25+
'project.build.sourceEncoding' => 'utf-8',
26+
'polyglot.dump.pom' => 'pom.xml',
27+
'maven.compiler.source' => '1.8' )
28+
pom 'org.jruby:jruby:9.1.16.0'
29+
jar 'org.processing:video:3.0.2'
30+
jar 'com.apple.eawt:apple:1.0'
31+
jar 'org.jogamp.jogl:jogl-all:${jogl.version}'
32+
jar 'org.jogamp.gluegen:gluegen-rt-main:${jogl.version}'
4033

41-
overrides do
42-
plugin :resources, '2.6'
43-
plugin :dependency, '2.10' do
44-
execute_goals( id: 'default-cli',
45-
artifactItems: [ { groupId: 'org.jogamp.jogl',
46-
artifactId: 'jogl-all',
47-
version: '${jogl.version}',
48-
type: 'jar',
49-
outputDirectory: '${propane.basedir}/lib'
50-
},
51-
{ groupId: 'org.jogamp.gluegen',
52-
artifactId: 'gluegen-rt',
53-
version: '${jogl.version}',
54-
type: 'jar',
55-
outputDirectory: '${propane.basedir}/lib'
56-
},
57-
{ groupId: 'org.jogamp.jogl',
58-
artifactId: 'jogl-all',
59-
version: '${jogl.version}',
60-
classifier: 'natives-linux-amd64',
61-
type: 'jar',
62-
outputDirectory: '${propane.basedir}/lib'
63-
},
64-
{ groupId: 'org.jogamp.gluegen',
65-
artifactId: 'gluegen-rt',
66-
version: '${jogl.version}',
67-
type: 'jar',
68-
classifier: 'natives-linux-amd64',
69-
outputDirectory: '${propane.basedir}/lib'
70-
},
71-
{ groupId: 'org.jogamp.jogl',
72-
artifactId: 'jogl-all',
73-
version: '${jogl.version}',
74-
classifier: 'natives-macosx-universal',
75-
type: 'jar',
76-
outputDirectory: '${propane.basedir}/lib'
77-
},
78-
{ groupId: 'org.jogamp.gluegen',
79-
artifactId: 'gluegen-rt',
80-
version: '${jogl.version}',
81-
type: 'jar',
82-
classifier: 'natives-macosx-universal',
83-
outputDirectory: '${propane.basedir}/lib'
84-
}
34+
overrides do
35+
plugin :resources, '2.6'
36+
plugin :dependency, '2.10' do
37+
execute_goals( id: 'default-cli',
38+
artifactItems: [ { groupId: 'org.jogamp.jogl',
39+
artifactId: 'jogl-all',
40+
version: '${jogl.version}',
41+
type: 'jar',
42+
outputDirectory: '${propane.basedir}/lib'
43+
},
44+
{ groupId: 'org.jogamp.gluegen',
45+
artifactId: 'gluegen-rt',
46+
version: '${jogl.version}',
47+
type: 'jar',
48+
outputDirectory: '${propane.basedir}/lib'
49+
},
50+
{ groupId: 'org.jogamp.jogl',
51+
artifactId: 'jogl-all',
52+
version: '${jogl.version}',
53+
classifier: 'natives-linux-amd64',
54+
type: 'jar',
55+
outputDirectory: '${propane.basedir}/lib'
56+
},
57+
{ groupId: 'org.jogamp.gluegen',
58+
artifactId: 'gluegen-rt',
59+
version: '${jogl.version}',
60+
type: 'jar',
61+
classifier: 'natives-linux-amd64',
62+
outputDirectory: '${propane.basedir}/lib'
63+
},
64+
{ groupId: 'org.jogamp.jogl',
65+
artifactId: 'jogl-all',
66+
version: '${jogl.version}',
67+
classifier: 'natives-macosx-universal',
68+
type: 'jar',
69+
outputDirectory: '${propane.basedir}/lib'
70+
},
71+
{ groupId: 'org.jogamp.gluegen',
72+
artifactId: 'gluegen-rt',
73+
version: '${jogl.version}',
74+
type: 'jar',
75+
classifier: 'natives-macosx-universal',
76+
outputDirectory: '${propane.basedir}/lib'
77+
}
8578
]
8679
)
8780
end
88-
89-
plugin( :compiler, '3.7.0',
90-
source: '${maven.compiler.source}',
91-
target: '${maven.compiler.target}'
92-
)
93-
plugin( :javadoc, '2.10.4',
94-
detect_offline_links: 'false',
95-
links: ['${jruby.api}', '${processing.api}']
96-
)
97-
plugin( :jar, '3.0.2',
98-
archive: { manifestFile: 'MANIFEST.MF' }
99-
)
10081
end
10182

102-
build do
103-
default_goal 'package'
104-
source_directory 'src'
105-
final_name 'propane'
106-
end
107-
end
83+
plugin( :resources, '2.7',
84+
'encoding' => 'UTF-8' )
85+
plugin( :compiler, '3.7.0',
86+
'source' => '1.8',
87+
'target' => '1.8' )
88+
plugin( :pmd, '3.3',
89+
'sourceEncoding' => 'utf-8',
90+
'minimumTokens' => '100',
91+
'targetJdk' => '${compileSource}' )
92+
build do
93+
resource do
94+
directory '${source.directory}/main/java'
95+
includes ['**/**/*.glsl', '**/*.jnilib']
96+
excludes '**/**/*.java'
97+
end
98+
resource do
99+
directory '${source.directory}/main/resources'
100+
includes ['**/*.png', '*.txt']
101+
end
102+
end
103+
end

0 commit comments

Comments
 (0)