Lines 1-16
Link Here
|
1 |
--- build.gradle.orig 2018-12-10 16:30:22 UTC |
1 |
--- build.gradle.orig 2020-07-17 10:21:33 UTC |
2 |
+++ build.gradle |
2 |
+++ build.gradle |
3 |
@@ -253,6 +253,7 @@ ext.IS_64 = OS_ARCH.toLowerCase().contains("64") |
3 |
@@ -295,6 +295,7 @@ ext.IS_64 = OS_ARCH.toLowerCase().contains("64") |
4 |
ext.IS_MAC = OS_NAME.contains("mac") || OS_NAME.contains("darwin") |
4 |
ext.IS_MAC = OS_NAME.contains("mac") || OS_NAME.contains("darwin") |
5 |
ext.IS_WINDOWS = OS_NAME.contains("windows") |
5 |
ext.IS_WINDOWS = OS_NAME.contains("windows") |
6 |
ext.IS_LINUX = OS_NAME.contains("linux") |
6 |
ext.IS_LINUX = OS_NAME.contains("linux") |
7 |
+ext.IS_BSD = OS_NAME.contains("freebsd") || OS_NAME.contains("dragonfly") |
7 |
+ext.IS_BSD = OS_NAME.contains("freebsd") || OS_NAME.contains("dragonfly") |
8 |
|
8 |
|
9 |
// Get the JDK_HOME automatically based on the version of Java used to execute gradle. Or, if specified, |
9 |
ext.MAVEN_GROUP_ID = "org.openjfx" |
10 |
// use a user supplied JDK_HOME, STUB_RUNTIME, JAVAC, and/or JAVAH, all of which may be specified |
|
|
11 |
@@ -313,7 +314,7 @@ defineProperty("COMPILE_MEDIA", "false") |
12 |
ext.IS_COMPILE_MEDIA = Boolean.parseBoolean(COMPILE_MEDIA) |
13 |
|
10 |
|
|
|
11 |
@@ -302,7 +303,7 @@ ext.MAVEN_GROUP_ID = "org.openjfx" |
12 |
// at present building on PI is not supported, but we would only need to make |
13 |
// some changes on assumptions on what should be built (like SWT / Swing) and |
14 |
// such and we could probably make it work. |
15 |
-if (!IS_MAC && !IS_WINDOWS && !IS_LINUX) fail("Unsupported build OS ${OS_NAME}") |
16 |
+if (!IS_MAC && !IS_WINDOWS && !IS_LINUX && !IS_BSD) fail("Unsupported build OS ${OS_NAME}") |
17 |
if (IS_WINDOWS && OS_ARCH != "x86" && OS_ARCH != "amd64") { |
18 |
fail("Unknown and unsupported build architecture: $OS_ARCH") |
19 |
} else if (IS_MAC && OS_ARCH != "x86_64") { |
20 |
@@ -385,7 +386,7 @@ defineProperty("BUILD_WORKING_LIBAV", "false") |
21 |
ext.IS_BUILD_WORKING_LIBAV = IS_LINUX ? Boolean.parseBoolean(BUILD_WORKING_LIBAV) : false |
22 |
|
14 |
// COMPILE_PANGO specifies whether to build javafx_font_pango. |
23 |
// COMPILE_PANGO specifies whether to build javafx_font_pango. |
15 |
-defineProperty("COMPILE_PANGO", "${IS_LINUX}") |
24 |
-defineProperty("COMPILE_PANGO", "${IS_LINUX}") |
16 |
+defineProperty("COMPILE_PANGO", "${IS_LINUX || IS_BSD}") |
25 |
+defineProperty("COMPILE_PANGO", "${IS_LINUX || IS_BSD}") |
Lines 17-23
Link Here
|
17 |
ext.IS_COMPILE_PANGO = Boolean.parseBoolean(COMPILE_PANGO) |
26 |
ext.IS_COMPILE_PANGO = Boolean.parseBoolean(COMPILE_PANGO) |
18 |
|
27 |
|
19 |
// COMPILE_HARFBUZZ specifies whether to use Harfbuzz. |
28 |
// COMPILE_HARFBUZZ specifies whether to use Harfbuzz. |
20 |
@@ -344,7 +345,8 @@ ext.SWT_FILE_NAME = IS_MAC ? "org.eclipse.swt.cocoa.ma |
29 |
@@ -413,7 +414,8 @@ ext.SWT_FILE_NAME = IS_MAC ? "org.eclipse.swt.cocoa.ma |
21 |
IS_WINDOWS && IS_64 ? "org.eclipse.swt.win32.win32.x86_64_3.105.3.v20170228-0512" : |
30 |
IS_WINDOWS && IS_64 ? "org.eclipse.swt.win32.win32.x86_64_3.105.3.v20170228-0512" : |
22 |
IS_WINDOWS && !IS_64 ? "org.eclipse.swt.win32.win32.x86_3.105.3.v20170228-0512" : |
31 |
IS_WINDOWS && !IS_64 ? "org.eclipse.swt.win32.win32.x86_3.105.3.v20170228-0512" : |
23 |
IS_LINUX && IS_64 ? "org.eclipse.swt.gtk.linux.x86_64_3.105.3.v20170228-0512" : |
32 |
IS_LINUX && IS_64 ? "org.eclipse.swt.gtk.linux.x86_64_3.105.3.v20170228-0512" : |
Lines 25-33
Link Here
|
25 |
+ IS_LINUX && !IS_64 ? "org.eclipse.swt.gtk.linux.x86_3.105.3.v20170228-0512" : |
34 |
+ IS_LINUX && !IS_64 ? "org.eclipse.swt.gtk.linux.x86_3.105.3.v20170228-0512" : |
26 |
+ IS_BSD ? "/usr/local/share/java/classes/swt.jar" : "" |
35 |
+ IS_BSD ? "/usr/local/share/java/classes/swt.jar" : "" |
27 |
|
36 |
|
28 |
// Build javadocs only if BUILD_JAVADOC=true |
37 |
// Specifies whether to run full tests (true) or smoke tests (false) |
29 |
defineProperty("BUILD_JAVADOC", "false") |
38 |
defineProperty("FULL_TEST", "false") |
30 |
@@ -404,6 +406,12 @@ if (IS_MAC) { |
39 |
@@ -495,6 +497,12 @@ if (IS_MAC) { |
31 |
defineProperty("NUM_COMPILE_THREADS", "${Runtime.runtime.availableProcessors()}") |
40 |
defineProperty("NUM_COMPILE_THREADS", "${Runtime.runtime.availableProcessors()}") |
32 |
} |
41 |
} |
33 |
|
42 |
|
Lines 40-46
Link Here
|
40 |
// |
49 |
// |
41 |
// The next three sections of properties are used to generate the |
50 |
// The next three sections of properties are used to generate the |
42 |
// VersionInfo class, and the Windows DLL manifest. |
51 |
// VersionInfo class, and the Windows DLL manifest. |
43 |
@@ -444,7 +452,7 @@ defineProperty("RELEASE_MILESTONE", jfxReleaseMileston |
52 |
@@ -558,7 +566,7 @@ defineProperty("MAVEN_VERSION", IS_MILESTONE_FCS ? "${ |
44 |
// Check whether the COMPILE_TARGETS property has been specified (if so, it was done by |
53 |
// Check whether the COMPILE_TARGETS property has been specified (if so, it was done by |
45 |
// the user and not by this script). If it has not been defined then default |
54 |
// the user and not by this script). If it has not been defined then default |
46 |
// to building the normal desktop build for this machine |
55 |
// to building the normal desktop build for this machine |
Lines 49-64
Link Here
|
49 |
defineProperty("COMPILE_TARGETS", "$defaultHostTarget") |
58 |
defineProperty("COMPILE_TARGETS", "$defaultHostTarget") |
50 |
|
59 |
|
51 |
// Flag indicating whether to import cross compile tools |
60 |
// Flag indicating whether to import cross compile tools |
52 |
@@ -551,7 +559,7 @@ void fetchExternalTools(String configName, List packag |
61 |
@@ -704,7 +712,7 @@ void fetchExternalTools(String configName, List packag |
53 |
def File pkgdir = file("$destdir/$basename") |
62 |
def File pkgdir = file("$destdir/$basename") |
54 |
|
63 |
|
55 |
if (pkgname.endsWith(".tgz")) { |
64 |
if (pkgname.endsWith(".tgz") || pkgname.endsWith("tar.gz")) { |
56 |
- if (IS_LINUX || IS_MAC) { |
65 |
- if (IS_LINUX || IS_MAC) { |
57 |
+ if (IS_BSD || IS_LINUX || IS_MAC) { |
66 |
+ if (IS_LINUX || IS_MAC || IS_BSD) { |
58 |
// use native tar to support symlinks |
67 |
// use native tar to support symlinks |
59 |
pkgdir.mkdirs() |
68 |
pkgdir.mkdirs() |
60 |
exec { |
69 |
exec { |
61 |
@@ -676,7 +684,7 @@ compileTargets { t -> |
70 |
@@ -1180,7 +1188,7 @@ compileTargets { t -> |
62 |
if (!targetProperties.containsKey('includeMonocle')) targetProperties.includeMonocle = false |
71 |
if (!targetProperties.containsKey('includeMonocle')) targetProperties.includeMonocle = false |
63 |
if (!targetProperties.containsKey('includeEGL')) targetProperties.includeEGL = false |
72 |
if (!targetProperties.containsKey('includeEGL')) targetProperties.includeEGL = false |
64 |
|
73 |
|
Lines 65-171
Link Here
|
65 |
- if (!targetProperties.containsKey('includeGTK')) targetProperties.includeGTK = IS_LINUX |
74 |
- if (!targetProperties.containsKey('includeGTK')) targetProperties.includeGTK = IS_LINUX |
66 |
+ if (!targetProperties.containsKey('includeGTK')) targetProperties.includeGTK = IS_LINUX || IS_BSD |
75 |
+ if (!targetProperties.containsKey('includeGTK')) targetProperties.includeGTK = IS_LINUX || IS_BSD |
67 |
|
76 |
|
68 |
// This value is used to under ./build/${sdkDirName} to allow for |
77 |
if (!targetProperties.containsKey('modLibDest')) targetProperties.modLibDest = targetProperties.libDest |
69 |
// a common name for the hosted build (for use when building apps) |
|
|
70 |
@@ -708,7 +716,7 @@ compileTargets { t -> |
71 |
// at present building on PI is not supported, but we would only need to make |
72 |
// some changes on assumptions on what should be built (like SWT / Swing) and |
73 |
// such and we could probably make it work. |
74 |
-if (!IS_MAC && !IS_WINDOWS && !IS_LINUX) logger.error("Unsupported build OS ${OS_NAME}") |
75 |
+if (!IS_MAC && !IS_WINDOWS && !IS_LINUX && !IS_BSD) logger.error("Unsupported build OS ${OS_NAME}") |
76 |
if (IS_WINDOWS && OS_ARCH != "x86" && OS_ARCH != "amd64") { |
77 |
throw new Exception("Unknown and unsupported build architecture: $OS_ARCH") |
78 |
} else if (IS_MAC && OS_ARCH != "x86_64") { |
79 |
@@ -1165,7 +1173,8 @@ allprojects { |
80 |
// By default all of our projects require junit for testing so we can just |
81 |
// setup this dependency here. |
82 |
dependencies { |
83 |
- testCompile group: "junit", name: "junit", version: "4.8.2" |
84 |
+ testCompile files("/usr/local/share/java/classes/junit4.jar", |
85 |
+ "/usr/local/share/java/classes/hamcrest.jar") |
86 |
if (BUILD_CLOSED && DO_JCOV) { |
87 |
testCompile name: "jcov" |
88 |
} |
89 |
@@ -1303,12 +1312,15 @@ project(":graphics") { |
90 |
|
78 |
|
|
|
79 |
@@ -2067,6 +2075,11 @@ project(":graphics") { |
80 |
} |
81 |
|
91 |
dependencies { |
82 |
dependencies { |
92 |
compile project(":base"), BUILD_SRC |
|
|
93 |
- compile name: SWT_FILE_NAME |
94 |
- stubCompile group: "junit", name: "junit", version: "4.8.2", |
95 |
+ if (IS_BSD) { |
83 |
+ if (IS_BSD) { |
96 |
+ compile files(SWT_FILE_NAME) |
84 |
+ compile files(SWT_FILE_NAME) |
97 |
+ } else { |
85 |
+ } else { |
98 |
+ compile name: SWT_FILE_NAME |
86 |
+ compile name: SWT_FILE_NAME |
99 |
+ } |
87 |
+ } |
100 |
+ stubCompile files("/usr/local/share/java/classes/junit4.jar", |
88 |
stubCompile group: "junit", name: "junit", version: "4.8.2" |
101 |
+ "/usr/local/share/java/classes/hamcrest.jar"), |
|
|
102 |
project(":base").sourceSets.test.output, sourceSets.main.output |
103 |
- antlr3 group: "org.antlr", name: "antlr", version: "3.1.3" |
104 |
- antlr3 group: "org.antlr", name: "antlr-runtime", version: "3.1.3" |
105 |
- antlr3 group: "org.antlr", name: "stringtemplate", version: "3.2" |
106 |
+ antlr3 files("/usr/local/share/java/classes/antlr-3.5.2-complete.jar") |
107 |
} |
108 |
|
89 |
|
109 |
// Create a single "native" task which will depend on all the individual native tasks for graphics |
90 |
antlr group: "org.antlr", name: "antlr4", version: "4.7.2", classifier: "complete" |
110 |
@@ -1599,9 +1611,7 @@ project(":graphics") { |
91 |
@@ -2456,7 +2469,7 @@ project(":graphics") { |
|
|
92 |
libsDir.mkdirs(); |
93 |
|
94 |
def allLibsPresent = true |
95 |
- def libNames = [ "antlr4-4.7.2-complete.jar" ] |
96 |
+ def libNames = [ "antlr-4.8-complete.jar" ] |
97 |
libNames.each { name -> |
98 |
File f = new File(libsDir, name) |
99 |
if (!f.exists()) allLibsPresent = false |
100 |
@@ -2467,7 +2480,7 @@ project(":graphics") { |
111 |
copy { |
101 |
copy { |
112 |
into libsDir |
102 |
into libsDir |
113 |
from f.getParentFile() |
103 |
from f.getParentFile() |
114 |
- include "**/antlr-3.1.3.jar" |
104 |
- include "**/antlr4-4.7.2-complete.jar" |
115 |
- include "**/stringtemplate-3.2.jar" |
105 |
+ include "**/antlr-4.8-complete.jar" |
116 |
- include "**/antlr-runtime-3.1.3.jar" |
|
|
117 |
+ include "**/antlr-3.5.2-complete.jar" |
118 |
includeEmptyDirs = false |
106 |
includeEmptyDirs = false |
119 |
} |
107 |
} |
120 |
// Have to rename the swt jar because it is some platform specific name but |
108 |
} |
121 |
@@ -1688,7 +1698,11 @@ project(":swt") { |
109 |
@@ -2602,31 +2615,10 @@ project(":swt") { |
122 |
} |
110 |
commonModuleSetup(project, [ 'base', 'graphics' ]) |
|
|
111 |
|
123 |
dependencies { |
112 |
dependencies { |
124 |
compile BUILD_SRC, project(":base"), project(":graphics") |
|
|
125 |
- compile name: SWT_FILE_NAME |
113 |
- compile name: SWT_FILE_NAME |
126 |
+ if (IS_BSD) { |
114 |
- } |
127 |
+ compile files(SWT_FILE_NAME) |
115 |
- |
128 |
+ } else { |
|
|
129 |
+ compile name: SWT_FILE_NAME |
130 |
+ } |
131 |
} |
132 |
} |
133 |
|
134 |
@@ -1794,7 +1808,7 @@ project(":fxpackager") { |
135 |
} |
136 |
|
137 |
dependencies { |
138 |
- compile group: "org.apache.ant", name: "ant", version: "1.8.2" |
139 |
+ compile files("/usr/local/share/java/apache-ant/lib/ant.jar") |
140 |
} |
141 |
|
142 |
// When producing the jar, we need to relocate a few class files |
143 |
@@ -2055,23 +2069,6 @@ project(":fxpackager") { |
144 |
jar.dependsOn buildJavaPackager |
145 |
jar.dependsOn packagerJar |
146 |
|
147 |
- classes { |
116 |
- classes { |
148 |
- doLast { |
117 |
- doLast { |
149 |
- // Copy all of the download libraries to libs directory for the sake of the IDEs |
118 |
- // Copy all of the download libraries to libs directory for the sake of the IDEs |
150 |
- File libsDir = rootProject.file("build/libs"); |
119 |
- File libsDir = rootProject.file("build/libs"); |
151 |
- File antLib = new File(libsDir, "ant-1.8.2.jar") |
120 |
- File swtLib = new File(libsDir, "swt-debug.jar") |
152 |
- libsDir.mkdirs(); |
121 |
- libsDir.mkdirs(); |
|
|
122 |
- |
123 |
- // Skip copy if file is present. |
124 |
- if (swtLib.exists()) return; |
125 |
- |
153 |
- for (File f : configurations.compile.files) { |
126 |
- for (File f : configurations.compile.files) { |
|
|
127 |
- // Have to rename the swt jar because it is some platform specific name but |
128 |
- // for the sake of the IDEs we need to have a single stable name that works |
129 |
- // on every platform |
154 |
- copy { |
130 |
- copy { |
155 |
- into libsDir |
131 |
- into libsDir |
156 |
- from f.getParentFile() |
132 |
- from f.getParentFile() |
157 |
- include "**/ant-1.8.2.jar" |
133 |
- include "**/*swt*.jar" |
158 |
- includeEmptyDirs = false |
134 |
- includeEmptyDirs = false |
|
|
135 |
- rename ".*swt.*jar", "swt-debug\\.jar" |
159 |
- } |
136 |
- } |
160 |
- } |
137 |
- } |
161 |
- } |
138 |
+ if (IS_BSD) { |
162 |
- } |
139 |
+ compile files(SWT_FILE_NAME) |
163 |
- |
140 |
+ } else { |
164 |
task packagerFakeJar(type: Jar) { |
141 |
+ compile name: SWT_FILE_NAME |
165 |
dependsOn compileTestJava |
142 |
} |
166 |
from compileTestJava.destinationDir |
143 |
} |
167 |
@@ -2250,7 +2247,7 @@ project(":media") { |
|
|
168 |
|
144 |
|
|
|
145 |
@@ -2809,7 +2801,7 @@ project(":media") { |
146 |
|
169 |
doLast { |
147 |
doLast { |
170 |
exec { |
148 |
exec { |
171 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/jfxmedia/projects/${projectDir}") |
149 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/jfxmedia/projects/${projectDir}") |
Lines 172-242
Link Here
|
172 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/jfxmedia/projects/${projectDir}") |
150 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/jfxmedia/projects/${projectDir}") |
173 |
args("JAVA_HOME=${JDK_HOME}", "GENERATED_HEADERS_DIR=${generatedHeadersDir}", |
151 |
args("JAVA_HOME=${JDK_HOME}", "GENERATED_HEADERS_DIR=${generatedHeadersDir}", |
174 |
"OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=jfxmedia", |
152 |
"OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=jfxmedia", |
175 |
"COMPILE_PARFAIT=${compileParfait}") |
153 |
"COMPILE_PARFAIT=${compileParfait}", |
176 |
@@ -2260,7 +2257,7 @@ project(":media") { |
154 |
@@ -2838,7 +2830,7 @@ project(":media") { |
177 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.jfxmediaRcFile}") |
|
|
178 |
} else { |
179 |
args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}") |
180 |
- if (t.name == "linux") { |
181 |
+ if (t.name == "linux" || t.name == "bsd") { |
182 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32") |
183 |
} |
184 |
|
185 |
@@ -2282,7 +2279,7 @@ project(":media") { |
186 |
enabled = IS_COMPILE_MEDIA |
155 |
enabled = IS_COMPILE_MEDIA |
187 |
doLast { |
156 |
doLast { |
188 |
exec { |
157 |
exec { |
189 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/gstreamer-lite") |
158 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/gstreamer-lite") |
190 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/gstreamer-lite") |
159 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/gstreamer-lite") |
191 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=gstreamer-lite") |
160 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=gstreamer-lite", |
|
|
161 |
IS_64 ? "ARCH=x64" : "ARCH=x32", "CC=${mediaProperties.compiler}", |
162 |
"AR=${mediaProperties.ar}", "LINKER=${mediaProperties.linker}") |
163 |
@@ -2856,7 +2848,7 @@ project(":media") { |
192 |
|
164 |
|
193 |
if (t.name == "win") { |
|
|
194 |
@@ -2290,7 +2287,7 @@ project(":media") { |
195 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.gstreamerRcFile}") |
196 |
} else { |
197 |
args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}") |
198 |
- if (t.name == "linux") { |
199 |
+ if (t.name == "linux" || t.name == "bsd") { |
200 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32") |
201 |
} |
202 |
} |
203 |
@@ -2311,7 +2308,7 @@ project(":media") { |
204 |
|
205 |
doLast { |
165 |
doLast { |
206 |
exec { |
166 |
exec { |
207 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/fxplugins") |
167 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/fxplugins") |
208 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/fxplugins") |
168 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/fxplugins") |
209 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=fxplugins", |
169 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=fxplugins", |
210 |
"ON2_SRCDIR=${project.ext.ON2_SRCDIR}", "ON2_LIB=${project.ext.ON2_LIB}") |
170 |
IS_64 ? "ARCH=x64" : "ARCH=x32", |
|
|
171 |
"CC=${mediaProperties.compiler}", "AR=${mediaProperties.ar}", "LINKER=${mediaProperties.linker}") |
172 |
@@ -2879,7 +2871,7 @@ project(":media") { |
211 |
|
173 |
|
212 |
@@ -2328,7 +2325,7 @@ project(":media") { |
|
|
213 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.fxpluginsRcFile}") |
214 |
} else { |
215 |
args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}") |
216 |
- if (t.name == "linux") { |
217 |
+ if (t.name == "linux" || t.name == "bsd") { |
218 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32") |
219 |
} |
220 |
} |
221 |
@@ -2338,7 +2335,7 @@ project(":media") { |
222 |
|
223 |
buildNative.dependsOn buildPlugins |
174 |
buildNative.dependsOn buildPlugins |
224 |
|
175 |
|
225 |
- if (t.name == "linux") { |
176 |
- if (t.name == "linux") { |
226 |
+ if (t.name == "linux" || t.name == "bsd") { |
177 |
+ if (t.name == "linux" || t.name == "bsd") { |
227 |
def buildAVPlugin = task( "buildAVPlugin", dependsOn: [buildPlugins]) { |
178 |
// Pre-defined command line arguments |
228 |
enabled = IS_COMPILE_MEDIA |
179 |
def cfgCMDArgs = ["sh", "configure"] |
229 |
|
180 |
def commonCfgArgs = ["--enable-shared", "--disable-debug", "--disable-static", "--disable-yasm", "--disable-doc", "--disable-programs", "--disable-everything"] |
230 |
@@ -2349,7 +2346,7 @@ project(":media") { |
181 |
@@ -2984,7 +2976,7 @@ project(":media") { |
|
|
182 |
} |
183 |
exec { |
184 |
workingDir("$libavDir") |
185 |
- commandLine("make") |
186 |
+ commandLine(MAKE_CMD) |
187 |
} |
188 |
} |
189 |
} |
190 |
@@ -3052,7 +3044,7 @@ project(":media") { |
191 |
} |
192 |
exec { |
193 |
workingDir("$libavDir") |
194 |
- commandLine("make") |
195 |
+ commandLine(MAKE_CMD) |
196 |
} |
197 |
} |
198 |
} |
199 |
@@ -3138,7 +3130,7 @@ project(":media") { |
200 |
} |
201 |
exec { |
202 |
workingDir("$libavDir") |
203 |
- commandLine("make") |
204 |
+ commandLine(MAKE_CMD) |
205 |
} |
206 |
} |
207 |
} |
208 |
@@ -3172,7 +3164,7 @@ project(":media") { |
231 |
File dir = file(libavDir) |
209 |
File dir = file(libavDir) |
232 |
if (dir.exists()) { |
210 |
if (dir.exists()) { |
233 |
exec { |
211 |
exec { |
234 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/linux/avplugin") |
212 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/linux/avplugin") |
235 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${t.name}/avplugin") |
213 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/linux/avplugin") |
236 |
args("CC=${mediaProperties.compiler}", "OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", |
214 |
args("CC=${mediaProperties.compiler}", "LINKER=${mediaProperties.linker}", |
|
|
215 |
"OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", |
237 |
"BASE_NAME=avplugin", "VERSION=${version}", "LIBAV_DIR=${libavDir}", |
216 |
"BASE_NAME=avplugin", "VERSION=${version}", "LIBAV_DIR=${libavDir}", |
238 |
"SUFFIX=", IS_64 ? "ARCH=x64" : "ARCH=x32") |
217 |
@@ -3186,7 +3178,7 @@ project(":media") { |
239 |
@@ -2362,7 +2359,7 @@ project(":media") { |
|
|
240 |
File dir = file(libavDir) |
218 |
File dir = file(libavDir) |
241 |
if (dir.exists()) { |
219 |
if (dir.exists()) { |
242 |
exec { |
220 |
exec { |
Lines 245-260
Link Here
|
245 |
args("CC=${mediaProperties.compiler}", "LINKER=${mediaProperties.linker}", |
223 |
args("CC=${mediaProperties.compiler}", "LINKER=${mediaProperties.linker}", |
246 |
"OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", |
224 |
"OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", |
247 |
"BASE_NAME=avplugin", "VERSION=${version}", "LIBAV_DIR=${libavDir}", |
225 |
"BASE_NAME=avplugin", "VERSION=${version}", "LIBAV_DIR=${libavDir}", |
248 |
@@ -2373,7 +2370,7 @@ project(":media") { |
226 |
@@ -3200,7 +3192,7 @@ project(":media") { |
|
|
227 |
File dir = file(libavDir) |
228 |
if (dir.exists()) { |
229 |
exec { |
230 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/linux/avplugin") |
231 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/linux/avplugin") |
232 |
args("CC=${mediaProperties.compiler}", "LINKER=${mediaProperties.linker}", |
233 |
"OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", |
234 |
"BASE_NAME=avplugin", "VERSION=${version}", "LIBAV_DIR=${libavDir}", |
235 |
@@ -3211,7 +3203,7 @@ project(":media") { |
249 |
} else { |
236 |
} else { |
250 |
// Building fxavcodec plugin (libav plugin) |
237 |
// Building fxavcodec plugin (libav plugin) |
251 |
exec { |
238 |
exec { |
252 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/linux/avplugin") |
239 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/linux/avplugin") |
253 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${t.name}/avplugin") |
240 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/linux/avplugin") |
254 |
args("CC=${mediaProperties.compiler}", "OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", |
241 |
args("CC=${mediaProperties.compiler}", "LINKER=${mediaProperties.linker}", |
|
|
242 |
"OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", |
255 |
"BASE_NAME=avplugin", IS_64 ? "ARCH=x64" : "ARCH=x32") |
243 |
"BASE_NAME=avplugin", IS_64 ? "ARCH=x64" : "ARCH=x32") |
256 |
} |
244 |
@@ -3262,7 +3254,7 @@ project(":media") { |
257 |
@@ -2423,7 +2420,7 @@ project(":media") { |
|
|
258 |
doLast { |
245 |
doLast { |
259 |
exec { |
246 |
exec { |
260 |
environment(WINDOWS_NATIVE_COMPILE_ENVIRONMENT) |
247 |
environment(WINDOWS_NATIVE_COMPILE_ENVIRONMENT) |
Lines 261-278
Link Here
|
261 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite") |
248 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite") |
262 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite") |
249 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite") |
263 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=glib-lite", |
250 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=glib-lite", |
264 |
IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.glibRcFile}") |
251 |
IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.glibRcFile}", |
|
|
252 |
"CC=${mediaProperties.compiler}", "AR=${mediaProperties.ar}", "LINKER=${mediaProperties.linker}") |
253 |
@@ -3282,7 +3274,7 @@ project(":media") { |
265 |
} |
254 |
} |
266 |
@@ -2442,7 +2439,7 @@ project(":media") { |
|
|
267 |
} |
268 |
|
255 |
|
269 |
exec { |
256 |
exec { |
270 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite") |
257 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite") |
271 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite") |
258 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite") |
272 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=glib-lite") |
259 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=glib-lite") |
273 |
args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}") |
260 |
args ("CC=${mediaProperties.compiler}", "LINKER=${mediaProperties.linker}") |
274 |
} |
261 |
} |
275 |
@@ -2562,7 +2559,7 @@ project(":web") { |
262 |
@@ -3407,7 +3399,7 @@ project(":web") { |
276 |
compileTargets { t -> |
263 |
compileTargets { t -> |
277 |
def targetProperties = project.rootProject.ext[t.upper] |
264 |
def targetProperties = project.rootProject.ext[t.upper] |
278 |
def webkitProperties = targetProperties.webkit |
265 |
def webkitProperties = targetProperties.webkit |
Lines 281-337
Link Here
|
281 |
IS_64 ? "${t.name}-amd64" : "${t.name}-i586" |
268 |
IS_64 ? "${t.name}-amd64" : "${t.name}-i586" |
282 |
|
269 |
|
283 |
def webkitOutputDir = cygpath("$buildDir/${t.name}") |
270 |
def webkitOutputDir = cygpath("$buildDir/${t.name}") |
284 |
@@ -2638,6 +2635,9 @@ project(":web") { |
271 |
@@ -3436,8 +3428,12 @@ project(":web") { |
|
|
272 |
environment(WINDOWS_NATIVE_COMPILE_ENVIRONMENT) |
273 |
} else if (t.name == "mac") { |
274 |
cmakeArgs = " $cmakeArgs -DCMAKE_OSX_DEPLOYMENT_TARGET=$MACOSX_MIN_VERSION -DCMAKE_OSX_SYSROOT=$MACOSX_SDK_PATH" |
275 |
- } else if (t.name == "linux") { |
276 |
- cmakeArgs = " $cmakeArgs -DCMAKE_SYSTEM_NAME=Linux" |
277 |
+ } else if (t.name == "linux" || t.name == "bsd") { |
278 |
+ if (t.name == "linux") { |
279 |
+ cmakeArgs = " $cmakeArgs -DCMAKE_SYSTEM_NAME=Linux" |
280 |
+ } else { |
281 |
+ cmakeArgs = " $cmakeArgs -DCMAKE_SYSTEM_NAME=FreeBSD" |
282 |
+ } |
283 |
if (IS_64) { |
284 |
cmakeArgs = "$cmakeArgs -DCMAKE_SYSTEM_PROCESSOR=x86_64" |
285 |
} else { |
286 |
@@ -3479,6 +3475,10 @@ project(":web") { |
287 |
targetCpuBitDepthSwitch = "--32-bit" |
285 |
} |
288 |
} |
286 |
|
289 |
cmakeArgs += " -DJAVAFX_RELEASE_VERSION=${jfxReleaseMajorVersion}" |
287 |
cmakeArgs += " -DJAVAFX_RELEASE_VERSION=8.0" |
|
|
288 |
+ cmakeArgs += " -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON" |
290 |
+ cmakeArgs += " -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON" |
289 |
+ cmakeArgs += " -DCMAKE_C_COMPILER:STRING=${System.getenv("CC")}" |
291 |
+ cmakeArgs += " -DCMAKE_C_COMPILER:STRING=${System.getenv("CC")}" |
290 |
+ cmakeArgs += " -DCMAKE_CXX_COMPILER:STRING=${System.getenv("CXX")}" |
292 |
+ cmakeArgs += " -DCMAKE_CXX_COMPILER:STRING=${System.getenv("CXX")}" |
|
|
293 |
+ |
291 |
commandLine("perl", "$projectDir/src/main/native/Tools/Scripts/build-webkit", |
294 |
commandLine("perl", "$projectDir/src/main/native/Tools/Scripts/build-webkit", |
292 |
"--java", "--icu-unicode", targetCpuBitDepthSwitch, |
295 |
"--java", "--icu-unicode", targetCpuBitDepthSwitch, |
293 |
"--cmakeargs=${cmakeArgs}") |
296 |
"--no-experimental-features", "--cmakeargs=${cmakeArgs}") |
294 |
@@ -3132,7 +3132,7 @@ compileTargets { t -> |
297 |
@@ -4928,7 +4928,7 @@ compileTargets { t -> |
295 |
// OSX media natives |
298 |
// OSX media natives |
296 |
[ "jfxmedia_qtkit", "jfxmedia_avf" ].each { name -> |
299 |
[ "jfxmedia_qtkit", "jfxmedia_avf", "glib-lite" ].each { name -> |
297 |
from ("modules/media/build/native/${t.name}/${mediaBuildType}/${library(name)}") } |
300 |
from ("${mediaProject.buildDir}/native/${t.name}/${mediaBuildType}/${library(name)}") } |
298 |
- } else if (t.name == "linux") { |
301 |
- } else if (t.name == "linux") { |
299 |
+ } else if (t.name == "linux" || t.name == "bsd") { |
302 |
+ } else if (t.name == "linux" || t.name == "bsd") { |
300 |
from("modules/media/build/native/${t.name}/${mediaBuildType}") { include "libavplugin*.so" } |
303 |
from("${mediaProject.buildDir}/native/${t.name}/${mediaBuildType}") { include "libavplugin*.so" } |
301 |
} |
304 |
} else from ("${mediaProject.buildDir}/native/${t.name}/${mediaBuildType}/${library("glib-lite")}") |
302 |
} else { |
305 |
} else { |
303 |
@@ -3145,7 +3145,7 @@ compileTargets { t -> |
306 |
@@ -4941,7 +4941,7 @@ compileTargets { t -> |
304 |
// copy libjfxmedia_{avf,qtkit}.dylib if they exist |
307 |
// copy libjfxmedia_{avf,qtkit}.dylib if they exist |
305 |
[ "jfxmedia_qtkit", "jfxmedia_avf" ].each { name -> |
308 |
[ "jfxmedia_qtkit", "jfxmedia_avf", "glib-lite" ].each { name -> |
306 |
from ("$LIBRARY_STUB/${library(name)}") } |
309 |
from ("$MEDIA_STUB/${library(name)}") } |
307 |
- } else if (t.name == "linux") { |
310 |
- } else if (t.name == "linux") { |
308 |
+ } else if (t.name == "linux" || t.name == "bsd") { |
311 |
+ } else if (t.name == "linux" || t.name == "bsd") { |
309 |
from(LIBRARY_STUB) { include "libavplugin*.so" } |
312 |
from(MEDIA_STUB) { include "libavplugin*.so" } |
310 |
} |
|
|
311 |
} |
313 |
} |
312 |
@@ -3207,7 +3207,7 @@ compileTargets { t -> |
314 |
else if (t.name != "android" && t.name != "dalvik" ) { |
313 |
} |
|
|
314 |
|
315 |
// Copy over the javapackager executable |
316 |
- if (t.name == "win" || t.name == "linux" || t.name == "mac") { |
317 |
+ if (t.name == "win" || t.name == "linux" || t.name == "bsd" || t.name == "mac") { |
318 |
copy { |
319 |
from "modules/fxpackager/build/javapackager" |
320 |
into "build/${sdkDirName}/bin" |
321 |
@@ -3264,6 +3264,7 @@ ext.JFXRT_CP = |
322 |
"modules/web/build/classes/java/main", |
323 |
) |
324 |
|
325 |
+/* |
326 |
project(":apps") { |
327 |
// The apps build is Ant based, and gradle lets us "import" ant build.xml |
328 |
// into our configuration. |
329 |
@@ -3341,7 +3342,7 @@ project(":apps") { |
330 |
} |
331 |
rootProject.clean.dependsOn(appsClean) |
332 |
} |
333 |
-} |
334 |
+} */ |
335 |
|
336 |
/****************************************************************************** |
337 |
* * |