Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
codeanticode authored Oct 5, 2020
2 parents e60fc75 + 4fb4bff commit 3b960d0
Show file tree
Hide file tree
Showing 11 changed files with 253 additions and 181 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: processing
custom: https://processingfoundation.org/
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.DS_Store
*~

bin
/dist
/**/.DS_Store
/library/macosx*
/library/windows*
/library/linux*

local.properties
2 changes: 0 additions & 2 deletions build.properties

This file was deleted.

144 changes: 88 additions & 56 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,40 @@
<?xml version="1.0"?>
<project name="Processing Video Library" default="build">

<property file="./build.properties" />

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<property file="local.properties" />

<condition property="props.present">
<available file="local.properties" />
</condition>

<fail unless="processing.dir"
message="To make the build work, create a file named local.properties, with a line that reads:
${line.separator}processing.dir=/path/to/processing-git
${line.separator}with the path to where you have the code for Processing 3 checked out. ${line.separator}(This script will look for the 'core' directory inside that folder.)" />

<subant buildpath="${processing.dir}/core" />

<property name="core.dir" value="${processing.dir}/core/library" />

<condition property="processing.built">
<available file="${core.dir}/core.jar" />
</condition>

<fail unless="processing.built"
message="Please first build Processing so that we have a usable core.jar to bundle with the app." />

<property name="core.classpath.location" value="${processing.dir}/core/library/" />
<property name="compiler.classpath.location" value="${processing.dir}/java/mode/" />

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<target name="clean" description="Clean the build directories">
<delete dir="bin" />
<delete file="library/video.jar" />
</target>

<target name="compile" description="Compile sources">
<condition property="core-built">
<available file="${core.classpath.location}/core.jar" />
Expand All @@ -16,72 +43,77 @@

<mkdir dir="bin" />
<javac source="1.8"
target="1.8"
srcdir="src" destdir="bin"
encoding="UTF-8"
includeAntRuntime="false"
classpath="${core.classpath.location}/core.jar; library/gst1-java-core-1.1.0.jar; library/jna.jar"
nowarn="true">
<compilerclasspath path="${compiler.classpath.location}/org.eclipse.jdt.core.jar;
target="1.8"
srcdir="src" destdir="bin"
encoding="UTF-8"
includeAntRuntime="false"
classpath="${core.classpath.location}/core.jar;
library/gst1-java-core-1.2.0.jar;
library/jna.jar"
nowarn="true">
<compilerclasspath path="${compiler.classpath.location}/org.eclipse.jdt.core.jar;
${compiler.classpath.location}/jdtCompilerAdapter.jar" />
</javac>
</target>

<target name="build" depends="compile" description="Build video library">
<jar basedir="bin" destfile="library/video.jar" />
<delete dir="bin" />
</target>

<target name="dist" depends="build" description="Creates distribution package">
<mkdir dir="dist/tmp/video" />
<!-- copy library files (jar and gstreamer natives) -->
<copy todir="dist/tmp/video/library">
<fileset dir="library" />
</copy>
<!-- copy examples -->
<copy todir="dist/tmp/video/examples">
<fileset dir="examples" />
</copy>

<!-- copy source -->

<!-- copy library files (jar and gstreamer natives) -->
<copy todir="dist/tmp/video/library">
<fileset dir="library" />
</copy>

<!-- copy examples -->
<copy todir="dist/tmp/video/examples">
<fileset dir="examples" />
</copy>

<!-- copy source -->
<copy todir="dist/tmp/video/src">
<fileset dir="src" />
</copy>
<fileset dir="src" />
</copy>

<!-- copy properties -->
<copy file="library.properties" tofile="dist/tmp/video/library.properties" />
<copy file="library.properties" tofile="dist/tmp/video/library.properties" />

<!-- create the java reference of the library -->
<mkdir dir="dist/tmp/video/reference" />
<javadoc bottom="Processing video library by The Processing Foundation. (c) 2011-19"
classpath="${core.classpath.location}/core.jar;library/gst1-java-core-1.1.0.jar;library/jna.jar;bin"
destdir="dist/tmp/video/reference"
verbose="false"
stylesheetfile="resources/stylesheet.css"
doctitle="Javadocs: Video"
public="true" version="false"
windowtitle="Javadocs: Video">
<link href="http://java.sun.com/javase/6/docs/api/" />
<link href="http://processing.googlecode.com/svn/trunk/processing/build/javadoc/core/" />
<taglet name="ExampleTaglet" path="resources/code" />
<fileset dir="dist/tmp/video/src" defaultexcludes="yes">
<!-- add packages to be added to reference. -->
<include name="**/*"/>
</fileset>
</javadoc>

<mkdir dir="dist/tmp/video/reference" />
<javadoc bottom="Processing video library by The Processing Foundation. (c) 2011-20"
classpath="${core.classpath.location}/core.jar;
library/gst1-java-core-1.2.0.jar;
library/jna.jar;
bin"
destdir="dist/tmp/video/reference"
verbose="false"
stylesheetfile="resources/stylesheet.css"
public="true" version="false"
doctitle="Javadocs: Video"
windowtitle="Javadocs: Video">

<!-- TODO these are reeeaally out of date [fry 200929] -->
<link href="http://java.sun.com/javase/6/docs/api/" />
<link href="http://processing.googlecode.com/svn/trunk/processing/build/javadoc/core/" />

<taglet name="ExampleTaglet" path="resources/code" />
<fileset dir="dist/tmp/video/src" defaultexcludes="yes">
<!-- add packages to be added to reference. -->
<include name="**/*"/>
</fileset>
</javadoc>

<!-- create zip package -->
<delete file="dist/video.zip"/>
<zip destfile="dist/video.zip"
basedir="dist/tmp"
excludes="**/.DS_Store"
/>

<!-- copy properties to use by download manager -->
<copy file="library.properties" tofile="dist/video.txt" />

<delete dir="dist/tmp" />
<zip destfile="dist/video.zip" basedir="dist/tmp" excludes="**/.DS_Store" />

<!-- copy properties to use by download manager -->
<copy file="library.properties" tofile="dist/video.txt" />

<delete dir="dist/tmp" />
</target>
</project>
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ url = http://processing.org/reference/libraries/video/index.html
category = Video & Vision
sentence = GStreamer-based video library for Processing.
paragraph =
version = 6
prettyVersion = 2.0-beta4
version = 7
prettyVersion = 2.0-beta5
minRevision = 228
maxRevision = 0
Binary file not shown.
4 changes: 2 additions & 2 deletions scripts/macosx_gstreamer_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# only those needed by Processing:
# https://gstreamer.freedesktop.org/documentation/deploying/mac-osx.html?gi-language=c#deploy-only-necessary-packages-using-the-provided-ones

GST_VERSION=${1:-1.16.0}
INSTALL_PACKAGES=0 # version 1.16.0 does not yet have a pacakages image
GST_VERSION=${1:-1.18.0}
INSTALL_PACKAGES=0 # version 1.16.0 does not yet have a package image
GST_PKG_URL="https://gstreamer.freedesktop.org/data/pkg/osx"
DOWNLOAD_PATH="."
TARGET_PATH="/"
Expand Down
2 changes: 1 addition & 1 deletion scripts/pack_macosx_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Original version by Gottfried Haider.
# https://github.com/gohai/processing-glvideo/blob/master/src/native/Makefile

gst_minor_ver=${1:-16}
gst_minor_ver=${1:-18}

if [ ${gst_minor_ver} -gt 14 ]
then
Expand Down
44 changes: 39 additions & 5 deletions scripts/pack_windows_libs.bat
Original file line number Diff line number Diff line change
@@ -1,12 +1,46 @@
SET gst_folder=C:\gstreamer\1.0
SET gst_folder=C:\gstreamer
SET gst_toolchain=
SET lib_folder=..\library

echo "Copying base gstreamer libs..."
md %lib_folder%\windows64 %lib_folder%\windows32
copy %gst_folder%\x86_64\bin\*.dll %lib_folder%\windows64
copy %gst_folder%\x86\bin\*.dll %lib_folder%\windows32
copy %gst_folder%\1.0\%gst_toolchain%x86_64\bin\*.dll %lib_folder%\windows64
copy %gst_folder%\1.0\%gst_toolchain%x86\bin\*.dll %lib_folder%\windows32

echo "Copying gstreamer plugins..."
md %lib_folder%\windows64\gstreamer-1.0 %lib_folder%\windows32\gstreamer-1.0
copy %gst_folder%\x86_64\lib\gstreamer-1.0\*.dll %lib_folder%\windows64\gstreamer-1.0
copy %gst_folder%\x86\lib\gstreamer-1.0\*.dll %lib_folder%\windows32\gstreamer-1.0
copy %gst_folder%\1.0\%gst_toolchain%x86_64\lib\gstreamer-1.0\*.dll %lib_folder%\windows64\gstreamer-1.0
copy %gst_folder%\1.0\%gst_toolchain%x86\lib\gstreamer-1.0\*.dll %lib_folder%\windows32\gstreamer-1.0

echo "Remove broken plugins..."
del %lib_folder%\windows64\gstreamer-1.0\libgsta52dec.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstamrnb.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstamrwbdec.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstassrender.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstdtsdec.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstdvdread.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstges.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstlibvisual.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstmms.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstresindvd.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstrtmp.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstsoundtouch.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstvoaacenc.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstwebrtcdsp.dll /f
del %lib_folder%\windows64\gstreamer-1.0\libgstx264.dll /f

del %lib_folder%\windows32\gstreamer-1.0\libgsta52dec.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstamrnb.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstamrwbdec.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstassrender.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstdtsdec.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstdvdread.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstges.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstlibvisual.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstmms.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstresindvd.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstrtmp.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstsoundtouch.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstvoaacenc.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstwebrtcdsp.dll /f
del %lib_folder%\windows32\gstreamer-1.0\libgstx264.dll /f
Loading

0 comments on commit 3b960d0

Please sign in to comment.