Skip to content

Commit a4ed697

Browse files
author
Clement Champetier
committed
Apps: create java folder for java apps
* Update jTranscoder app to fit to the package name and an existing avTranscoder class. * Comment the line which calls the Sconscript of java apps from SConstruct (need several builds to generate class files of java apps...need to find something better).
1 parent 2c4e430 commit a4ed697

File tree

4 files changed

+33
-12
lines changed

4 files changed

+33
-12
lines changed

SConstruct

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,11 @@ Export( "envJava" )
169169
Export( "envPy" )
170170
Export( "installPrefix" )
171171
Export( "resampleLibraryName" )
172+
Export( "mymode" )
172173

173174
VariantDir( 'build/'+mymode+'/src', 'src', duplicate = 0 )
174175
VariantDir( 'build/'+mymode+'/app', 'app', duplicate = 0 )
175176

176177
SConscript('src/SConscript', variant_dir='build/'+mymode+'/src')
177178
SConscript('app/cpp/SConscript', variant_dir='build/'+mymode+'/app/cpp')
178-
179+
#SConscript('app/java/SConscript', variant_dir='build/'+mymode+'/app/java')

app/jTranscoder/jTranscoder.java

Lines changed: 0 additions & 11 deletions
This file was deleted.

app/java/SConscript

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import os
2+
import platform
3+
4+
Import( 'env' )
5+
Import( 'envJava' )
6+
Import( 'mymode' )
7+
Import( 'jAvTranscoder' )
8+
Import( 'jAvTranscoderClass' )
9+
Import( 'installPrefix' )
10+
11+
if jAvTranscoderClass:
12+
envJava.Append(
13+
JAVACLASSPATH = '.:build/'+mymode+'/src/jAvTranscoderClass/'
14+
)
15+
16+
javTranscoder_class = envJava.Java(
17+
target = 'javTranscoderClass',
18+
source = Glob( 'jTranscoder/*.java')
19+
)
20+
env.Depends( javTranscoder_class, jAvTranscoder )

app/java/jTranscoder/jTranscoder.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
import org.AvTranscoder.InputFile;
3+
4+
5+
public class jTranscoder {
6+
public static void main( String[] args ){
7+
System.out.println( "hello grosse buse !");
8+
InputFile test = new InputFile( "_Rocky_DNxHD185X.mxf" );
9+
System.out.println( "C'est fini biloute ....");
10+
}
11+
}

0 commit comments

Comments
 (0)