Lines 1-6
Link Here
|
1 |
--- build.gradle.orig 2018-01-16 01:40:56 UTC |
1 |
--- build.gradle.orig 2018-12-10 16:30:22 UTC |
2 |
+++ build.gradle |
2 |
+++ build.gradle |
3 |
@@ -251,6 +251,7 @@ ext.IS_64 = OS_ARCH.toLowerCase().contains("64") |
3 |
@@ -253,6 +253,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") |
Lines 8-14
Link Here
|
8 |
|
8 |
|
9 |
// Get the JDK_HOME automatically based on the version of Java used to execute gradle. Or, if specified, |
9 |
// Get the JDK_HOME automatically based on the version of Java used to execute gradle. Or, if specified, |
10 |
// use a user supplied JDK_HOME, STUB_RUNTIME, JAVAC, and/or JAVAH, all of which may be specified |
10 |
// use a user supplied JDK_HOME, STUB_RUNTIME, JAVAC, and/or JAVAH, all of which may be specified |
11 |
@@ -311,7 +312,7 @@ defineProperty("COMPILE_MEDIA", "false") |
11 |
@@ -313,7 +314,7 @@ defineProperty("COMPILE_MEDIA", "false") |
12 |
ext.IS_COMPILE_MEDIA = Boolean.parseBoolean(COMPILE_MEDIA) |
12 |
ext.IS_COMPILE_MEDIA = Boolean.parseBoolean(COMPILE_MEDIA) |
13 |
|
13 |
|
14 |
// COMPILE_PANGO specifies whether to build javafx_font_pango. |
14 |
// COMPILE_PANGO specifies whether to build javafx_font_pango. |
Lines 17-33
Link Here
|
17 |
ext.IS_COMPILE_PANGO = Boolean.parseBoolean(COMPILE_PANGO) |
17 |
ext.IS_COMPILE_PANGO = Boolean.parseBoolean(COMPILE_PANGO) |
18 |
|
18 |
|
19 |
// COMPILE_HARFBUZZ specifies whether to use Harfbuzz. |
19 |
// COMPILE_HARFBUZZ specifies whether to use Harfbuzz. |
20 |
@@ -342,7 +343,8 @@ ext.SWT_FILE_NAME = IS_MAC ? "org.eclipse.swt.cocoa.ma |
20 |
@@ -344,7 +345,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.7.2.v3740f" : |
21 |
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.7.2.v3740f" : |
22 |
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.7.2.v3740f" : |
23 |
IS_LINUX && IS_64 ? "org.eclipse.swt.gtk.linux.x86_64_3.105.3.v20170228-0512" : |
24 |
- IS_LINUX && !IS_64 ? "org.eclipse.swt.gtk.linux.x86_3.7.2.v3740f" : "" |
24 |
- IS_LINUX && !IS_64 ? "org.eclipse.swt.gtk.linux.x86_3.105.3.v20170228-0512" : "" |
25 |
+ IS_LINUX && !IS_64 ? "org.eclipse.swt.gtk.linux.x86_3.7.2.v3740f" : |
25 |
+ IS_LINUX && !IS_64 ? "org.eclipse.swt.gtk.linux.x86_3.105.3.v20170228-0512" : |
26 |
+ IS_BSD ? "/usr/local/share/java/classes/swt-devel.jar" : "" |
26 |
+ IS_BSD ? "/usr/local/share/java/classes/swt-devel.jar" : "" |
27 |
|
27 |
|
28 |
// Build javadocs only if BUILD_JAVADOC=true |
28 |
// Build javadocs only if BUILD_JAVADOC=true |
29 |
defineProperty("BUILD_JAVADOC", "false") |
29 |
defineProperty("BUILD_JAVADOC", "false") |
30 |
@@ -402,6 +404,12 @@ if (IS_MAC) { |
30 |
@@ -404,6 +406,12 @@ if (IS_MAC) { |
31 |
defineProperty("NUM_COMPILE_THREADS", "${Runtime.runtime.availableProcessors()}") |
31 |
defineProperty("NUM_COMPILE_THREADS", "${Runtime.runtime.availableProcessors()}") |
32 |
} |
32 |
} |
33 |
|
33 |
|
Lines 40-46
Link Here
|
40 |
// |
40 |
// |
41 |
// The next three sections of properties are used to generate the |
41 |
// The next three sections of properties are used to generate the |
42 |
// VersionInfo class, and the Windows DLL manifest. |
42 |
// VersionInfo class, and the Windows DLL manifest. |
43 |
@@ -442,7 +450,7 @@ defineProperty("RELEASE_MILESTONE", jfxReleaseMileston |
43 |
@@ -444,7 +452,7 @@ defineProperty("RELEASE_MILESTONE", jfxReleaseMileston |
44 |
// Check whether the COMPILE_TARGETS property has been specified (if so, it was done by |
44 |
// 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 |
45 |
// 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 |
46 |
// to building the normal desktop build for this machine |
Lines 49-55
Link Here
|
49 |
defineProperty("COMPILE_TARGETS", "$defaultHostTarget") |
49 |
defineProperty("COMPILE_TARGETS", "$defaultHostTarget") |
50 |
|
50 |
|
51 |
// Flag indicating whether to import cross compile tools |
51 |
// Flag indicating whether to import cross compile tools |
52 |
@@ -549,7 +557,7 @@ void fetchExternalTools(String configName, List packag |
52 |
@@ -551,7 +559,7 @@ void fetchExternalTools(String configName, List packag |
53 |
def File pkgdir = file("$destdir/$basename") |
53 |
def File pkgdir = file("$destdir/$basename") |
54 |
|
54 |
|
55 |
if (pkgname.endsWith(".tgz")) { |
55 |
if (pkgname.endsWith(".tgz")) { |
Lines 58-64
Link Here
|
58 |
// use native tar to support symlinks |
58 |
// use native tar to support symlinks |
59 |
pkgdir.mkdirs() |
59 |
pkgdir.mkdirs() |
60 |
exec { |
60 |
exec { |
61 |
@@ -674,7 +682,7 @@ compileTargets { t -> |
61 |
@@ -676,7 +684,7 @@ compileTargets { t -> |
62 |
if (!targetProperties.containsKey('includeMonocle')) targetProperties.includeMonocle = false |
62 |
if (!targetProperties.containsKey('includeMonocle')) targetProperties.includeMonocle = false |
63 |
if (!targetProperties.containsKey('includeEGL')) targetProperties.includeEGL = false |
63 |
if (!targetProperties.containsKey('includeEGL')) targetProperties.includeEGL = false |
64 |
|
64 |
|
Lines 67-73
Link Here
|
67 |
|
67 |
|
68 |
// This value is used to under ./build/${sdkDirName} to allow for |
68 |
// This value is used to under ./build/${sdkDirName} to allow for |
69 |
// a common name for the hosted build (for use when building apps) |
69 |
// a common name for the hosted build (for use when building apps) |
70 |
@@ -706,7 +714,7 @@ compileTargets { t -> |
70 |
@@ -708,7 +716,7 @@ compileTargets { t -> |
71 |
// at present building on PI is not supported, but we would only need to make |
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 |
72 |
// some changes on assumptions on what should be built (like SWT / Swing) and |
73 |
// such and we could probably make it work. |
73 |
// such and we could probably make it work. |
Lines 76-82
Link Here
|
76 |
if (IS_WINDOWS && OS_ARCH != "x86" && OS_ARCH != "amd64") { |
76 |
if (IS_WINDOWS && OS_ARCH != "x86" && OS_ARCH != "amd64") { |
77 |
throw new Exception("Unknown and unsupported build architecture: $OS_ARCH") |
77 |
throw new Exception("Unknown and unsupported build architecture: $OS_ARCH") |
78 |
} else if (IS_MAC && OS_ARCH != "x86_64") { |
78 |
} else if (IS_MAC && OS_ARCH != "x86_64") { |
79 |
@@ -1169,7 +1177,8 @@ allprojects { |
79 |
@@ -1165,7 +1173,8 @@ allprojects { |
80 |
// By default all of our projects require junit for testing so we can just |
80 |
// By default all of our projects require junit for testing so we can just |
81 |
// setup this dependency here. |
81 |
// setup this dependency here. |
82 |
dependencies { |
82 |
dependencies { |
Lines 86-92
Link Here
|
86 |
if (BUILD_CLOSED && DO_JCOV) { |
86 |
if (BUILD_CLOSED && DO_JCOV) { |
87 |
testCompile name: "jcov" |
87 |
testCompile name: "jcov" |
88 |
} |
88 |
} |
89 |
@@ -1307,12 +1316,15 @@ project(":graphics") { |
89 |
@@ -1303,12 +1312,15 @@ project(":graphics") { |
90 |
|
90 |
|
91 |
dependencies { |
91 |
dependencies { |
92 |
compile project(":base"), BUILD_SRC |
92 |
compile project(":base"), BUILD_SRC |
Lines 107-153
Link Here
|
107 |
} |
107 |
} |
108 |
|
108 |
|
109 |
// Create a single "native" task which will depend on all the individual native tasks for graphics |
109 |
// Create a single "native" task which will depend on all the individual native tasks for graphics |
110 |
@@ -1461,7 +1473,7 @@ project(":graphics") { |
110 |
@@ -1599,9 +1611,7 @@ project(":graphics") { |
111 |
workingDir = "modules/graphics" |
111 |
copy { |
112 |
main = settings.generator |
112 |
into libsDir |
113 |
classpath = configurations.compile + configurations.antlr3 |
113 |
from f.getParentFile() |
114 |
- classpath += files("$buildDir/classes/main") |
114 |
- include "**/antlr-3.1.3.jar" |
115 |
+ classpath += files("$buildDir/classes/java/main") |
115 |
- include "**/stringtemplate-3.2.jar" |
116 |
classpath += files("$buildDir/classes/jsl-compilers/decora") |
116 |
- include "**/antlr-runtime-3.1.3.jar" |
117 |
args = ["-i", sourceDir, "-o", destinationDir, "-t", "-pkg", "com/sun/scenario/effect", "$settings.outputs", "$settings.fileName"] |
117 |
+ include "**/antlr-3.5.2-complete.jar" |
118 |
jvmArgs "-Djava.ext.dirs=" |
118 |
includeEmptyDirs = false |
119 |
@@ -1472,9 +1484,9 @@ project(":graphics") { |
119 |
} |
120 |
task generateDecoraNativeHeaders(type: JavaHeaderTask, dependsOn: compileDecoraJavaShaders) { |
120 |
// Have to rename the swt jar because it is some platform specific name but |
121 |
description = "Generates JNI Headers for Decora SSE Natives" |
|
|
122 |
source file("$buildDir/classes/jsl-decora") |
123 |
- source file("$buildDir/classes/main") |
124 |
+ source file("$buildDir/classes/java/main") |
125 |
include("com/sun/scenario/effect/impl/sw/sse/*"); |
126 |
- classpath = files("$buildDir/classes/main", "$buildDir/classes/jsl-decora") |
127 |
+ classpath = files("$buildDir/classes/java/main", "$buildDir/classes/jsl-decora") |
128 |
output = file("$buildDir/generated-src/headers/jsl-decora") |
129 |
} |
130 |
|
131 |
@@ -1602,9 +1614,7 @@ project(":graphics") { |
132 |
copy { |
133 |
into libsDir |
134 |
from f.getParentFile() |
135 |
- include "**/antlr-3.1.3.jar" |
136 |
- include "**/stringtemplate-3.2.jar" |
137 |
- include "**/antlr-runtime-3.1.3.jar" |
138 |
+ include "**/antlr-3.5.2-complete.jar" |
139 |
includeEmptyDirs = false |
140 |
} |
141 |
// Have to rename the swt jar because it is some platform specific name but |
142 |
@@ -1651,7 +1661,7 @@ project(":controls") { |
143 |
javaexec { |
144 |
executable = JAVA |
145 |
workingDir = "modules/controls" |
146 |
- classpath files("$buildDir/classes/main", |
147 |
+ classpath files("$buildDir/classes/java/main", |
148 |
project(":graphics").sourceSets.main.output, |
149 |
project(":base").sourceSets.main.output) |
150 |
main = "com.sun.javafx.css.parser.Css2Bin" |
151 |
@@ -1688,7 +1698,11 @@ project(":swt") { |
121 |
@@ -1688,7 +1698,11 @@ project(":swt") { |
152 |
} |
122 |
} |
153 |
dependencies { |
123 |
dependencies { |
Lines 161-167
Link Here
|
161 |
} |
131 |
} |
162 |
} |
132 |
} |
163 |
|
133 |
|
164 |
@@ -1787,7 +1801,7 @@ project(":fxpackager") { |
134 |
@@ -1794,7 +1808,7 @@ project(":fxpackager") { |
165 |
} |
135 |
} |
166 |
|
136 |
|
167 |
dependencies { |
137 |
dependencies { |
Lines 170-199
Link Here
|
170 |
} |
140 |
} |
171 |
|
141 |
|
172 |
// When producing the jar, we need to relocate a few class files |
142 |
// When producing the jar, we need to relocate a few class files |
173 |
@@ -2038,7 +2052,7 @@ project(":fxpackager") { |
143 |
@@ -2055,23 +2069,6 @@ project(":fxpackager") { |
174 |
description = "Creates the packager.jar" |
|
|
175 |
archiveName = "packager.jar"; |
176 |
includeEmptyDirs = false |
177 |
- from("$buildDir/classes/main"); |
178 |
+ from("$buildDir/classes/java/main"); |
179 |
from("$buildDir/resources/main"); |
180 |
include('jdk/packager/**') |
181 |
|
182 |
@@ -2048,21 +2062,6 @@ project(":fxpackager") { |
183 |
jar.dependsOn buildJavaPackager |
144 |
jar.dependsOn buildJavaPackager |
184 |
jar.dependsOn packagerJar |
145 |
jar.dependsOn packagerJar |
185 |
|
146 |
|
186 |
- classes << { |
147 |
- classes { |
187 |
- // Copy all of the download libraries to libs directory for the sake of the IDEs |
148 |
- doLast { |
188 |
- File libsDir = rootProject.file("build/libs"); |
149 |
- // Copy all of the download libraries to libs directory for the sake of the IDEs |
189 |
- File antLib = new File(libsDir, "ant-1.8.2.jar") |
150 |
- File libsDir = rootProject.file("build/libs"); |
190 |
- libsDir.mkdirs(); |
151 |
- File antLib = new File(libsDir, "ant-1.8.2.jar") |
191 |
- for (File f : configurations.compile.files) { |
152 |
- libsDir.mkdirs(); |
192 |
- copy { |
153 |
- for (File f : configurations.compile.files) { |
193 |
- into libsDir |
154 |
- copy { |
194 |
- from f.getParentFile() |
155 |
- into libsDir |
195 |
- include "**/ant-1.8.2.jar" |
156 |
- from f.getParentFile() |
196 |
- includeEmptyDirs = false |
157 |
- include "**/ant-1.8.2.jar" |
|
|
158 |
- includeEmptyDirs = false |
159 |
- } |
197 |
- } |
160 |
- } |
198 |
- } |
161 |
- } |
199 |
- } |
162 |
- } |
Lines 201-207
Link Here
|
201 |
task packagerFakeJar(type: Jar) { |
164 |
task packagerFakeJar(type: Jar) { |
202 |
dependsOn compileTestJava |
165 |
dependsOn compileTestJava |
203 |
from compileTestJava.destinationDir |
166 |
from compileTestJava.destinationDir |
204 |
@@ -2241,7 +2240,7 @@ project(":media") { |
167 |
@@ -2250,7 +2247,7 @@ project(":media") { |
205 |
|
168 |
|
206 |
doLast { |
169 |
doLast { |
207 |
exec { |
170 |
exec { |
Lines 210-216
Link Here
|
210 |
args("JAVA_HOME=${JDK_HOME}", "GENERATED_HEADERS_DIR=${generatedHeadersDir}", |
173 |
args("JAVA_HOME=${JDK_HOME}", "GENERATED_HEADERS_DIR=${generatedHeadersDir}", |
211 |
"OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=jfxmedia", |
174 |
"OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=jfxmedia", |
212 |
"COMPILE_PARFAIT=${compileParfait}") |
175 |
"COMPILE_PARFAIT=${compileParfait}") |
213 |
@@ -2251,7 +2250,7 @@ project(":media") { |
176 |
@@ -2260,7 +2257,7 @@ project(":media") { |
214 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.jfxmediaRcFile}") |
177 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.jfxmediaRcFile}") |
215 |
} else { |
178 |
} else { |
216 |
args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}") |
179 |
args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}") |
Lines 219-225
Link Here
|
219 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32") |
182 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32") |
220 |
} |
183 |
} |
221 |
|
184 |
|
222 |
@@ -2273,7 +2272,7 @@ project(":media") { |
185 |
@@ -2282,7 +2279,7 @@ project(":media") { |
223 |
enabled = IS_COMPILE_MEDIA |
186 |
enabled = IS_COMPILE_MEDIA |
224 |
doLast { |
187 |
doLast { |
225 |
exec { |
188 |
exec { |
Lines 228-234
Link Here
|
228 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=gstreamer-lite") |
191 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=gstreamer-lite") |
229 |
|
192 |
|
230 |
if (t.name == "win") { |
193 |
if (t.name == "win") { |
231 |
@@ -2281,7 +2280,7 @@ project(":media") { |
194 |
@@ -2290,7 +2287,7 @@ project(":media") { |
232 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.gstreamerRcFile}") |
195 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.gstreamerRcFile}") |
233 |
} else { |
196 |
} else { |
234 |
args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}") |
197 |
args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}") |
Lines 237-243
Link Here
|
237 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32") |
200 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32") |
238 |
} |
201 |
} |
239 |
} |
202 |
} |
240 |
@@ -2302,7 +2301,7 @@ project(":media") { |
203 |
@@ -2311,7 +2308,7 @@ project(":media") { |
241 |
|
204 |
|
242 |
doLast { |
205 |
doLast { |
243 |
exec { |
206 |
exec { |
Lines 246-252
Link Here
|
246 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=fxplugins", |
209 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=fxplugins", |
247 |
"ON2_SRCDIR=${project.ext.ON2_SRCDIR}", "ON2_LIB=${project.ext.ON2_LIB}") |
210 |
"ON2_SRCDIR=${project.ext.ON2_SRCDIR}", "ON2_LIB=${project.ext.ON2_LIB}") |
248 |
|
211 |
|
249 |
@@ -2319,7 +2318,7 @@ project(":media") { |
212 |
@@ -2328,7 +2325,7 @@ project(":media") { |
250 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.fxpluginsRcFile}") |
213 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.fxpluginsRcFile}") |
251 |
} else { |
214 |
} else { |
252 |
args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}") |
215 |
args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}") |
Lines 255-261
Link Here
|
255 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32") |
218 |
args(IS_64 ? "ARCH=x64" : "ARCH=x32") |
256 |
} |
219 |
} |
257 |
} |
220 |
} |
258 |
@@ -2329,7 +2328,7 @@ project(":media") { |
221 |
@@ -2338,7 +2335,7 @@ project(":media") { |
259 |
|
222 |
|
260 |
buildNative.dependsOn buildPlugins |
223 |
buildNative.dependsOn buildPlugins |
261 |
|
224 |
|
Lines 264-270
Link Here
|
264 |
def buildAVPlugin = task( "buildAVPlugin", dependsOn: [buildPlugins]) { |
227 |
def buildAVPlugin = task( "buildAVPlugin", dependsOn: [buildPlugins]) { |
265 |
enabled = IS_COMPILE_MEDIA |
228 |
enabled = IS_COMPILE_MEDIA |
266 |
|
229 |
|
267 |
@@ -2340,7 +2339,7 @@ project(":media") { |
230 |
@@ -2349,7 +2346,7 @@ project(":media") { |
268 |
File dir = file(libavDir) |
231 |
File dir = file(libavDir) |
269 |
if (dir.exists()) { |
232 |
if (dir.exists()) { |
270 |
exec { |
233 |
exec { |
Lines 273-279
Link Here
|
273 |
args("CC=${mediaProperties.compiler}", "OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", |
236 |
args("CC=${mediaProperties.compiler}", "OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", |
274 |
"BASE_NAME=avplugin", "VERSION=${version}", "LIBAV_DIR=${libavDir}", |
237 |
"BASE_NAME=avplugin", "VERSION=${version}", "LIBAV_DIR=${libavDir}", |
275 |
"SUFFIX=", IS_64 ? "ARCH=x64" : "ARCH=x32") |
238 |
"SUFFIX=", IS_64 ? "ARCH=x64" : "ARCH=x32") |
276 |
@@ -2353,7 +2352,7 @@ project(":media") { |
239 |
@@ -2362,7 +2359,7 @@ project(":media") { |
277 |
File dir = file(libavDir) |
240 |
File dir = file(libavDir) |
278 |
if (dir.exists()) { |
241 |
if (dir.exists()) { |
279 |
exec { |
242 |
exec { |
Lines 282-297
Link Here
|
282 |
args("CC=${mediaProperties.compiler}", "LINKER=${mediaProperties.linker}", |
245 |
args("CC=${mediaProperties.compiler}", "LINKER=${mediaProperties.linker}", |
283 |
"OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", |
246 |
"OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", |
284 |
"BASE_NAME=avplugin", "VERSION=${version}", "LIBAV_DIR=${libavDir}", |
247 |
"BASE_NAME=avplugin", "VERSION=${version}", "LIBAV_DIR=${libavDir}", |
285 |
@@ -2364,7 +2363,7 @@ project(":media") { |
248 |
@@ -2373,7 +2370,7 @@ project(":media") { |
286 |
} else { |
249 |
} else { |
287 |
// Building fxavcodec plugin (libav plugin) |
250 |
// Building fxavcodec plugin (libav plugin) |
288 |
exec { |
251 |
exec { |
289 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/linux/avplugin") |
252 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/linux/avplugin") |
290 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/linux/avplugin") |
253 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${t.name}/avplugin") |
291 |
args("CC=${mediaProperties.compiler}", "OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", |
254 |
args("CC=${mediaProperties.compiler}", "OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", |
292 |
"BASE_NAME=avplugin", IS_64 ? "ARCH=x64" : "ARCH=x32") |
255 |
"BASE_NAME=avplugin", IS_64 ? "ARCH=x64" : "ARCH=x32") |
293 |
} |
256 |
} |
294 |
@@ -2412,7 +2411,7 @@ project(":media") { |
257 |
@@ -2423,7 +2420,7 @@ project(":media") { |
295 |
doLast { |
258 |
doLast { |
296 |
exec { |
259 |
exec { |
297 |
environment(WINDOWS_NATIVE_COMPILE_ENVIRONMENT) |
260 |
environment(WINDOWS_NATIVE_COMPILE_ENVIRONMENT) |
Lines 300-308
Link Here
|
300 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=glib-lite", |
263 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=glib-lite", |
301 |
IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.glibRcFile}") |
264 |
IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.glibRcFile}") |
302 |
} |
265 |
} |
303 |
@@ -2425,7 +2424,7 @@ project(":media") { |
266 |
@@ -2442,7 +2439,7 @@ project(":media") { |
304 |
enabled = IS_COMPILE_MEDIA |
267 |
} |
305 |
doLast { |
268 |
|
306 |
exec { |
269 |
exec { |
307 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite") |
270 |
- commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite") |
308 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite") |
271 |
+ commandLine (MAKE_CMD, "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite") |
Lines 309-429
Link Here
|
309 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=glib-lite") |
272 |
args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=glib-lite") |
310 |
args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}") |
273 |
args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}") |
311 |
} |
274 |
} |
312 |
@@ -2478,7 +2477,7 @@ project(":web") { |
275 |
@@ -2562,7 +2559,7 @@ project(":web") { |
313 |
|
|
|
314 |
task generateHeaders(dependsOn: compileJava) { |
315 |
doLast { |
316 |
- def classpath = files("$buildDir/classes/main", |
317 |
+ def classpath = files("$buildDir/classes/java/main", |
318 |
project(":graphics").sourceSets.main.output.classesDir) |
319 |
def dest = file("$buildDir/generated-src/headers"); |
320 |
mkdir dest; |
321 |
@@ -2525,7 +2524,7 @@ project(":web") { |
322 |
|
323 |
compileTargets { t -> |
276 |
compileTargets { t -> |
324 |
def targetProperties = project.rootProject.ext[t.upper] |
277 |
def targetProperties = project.rootProject.ext[t.upper] |
|
|
278 |
def webkitProperties = targetProperties.webkit |
325 |
- def classifier = (t.name != "linux" && t.name != "win") ? t.name : |
279 |
- def classifier = (t.name != "linux" && t.name != "win") ? t.name : |
326 |
+ def classifier = (t.name != "linux" && t.name != "bsd" && t.name != "win") ? t.name : |
280 |
+ def classifier = (t.name != "linux" && t.name != "bsd" && t.name != "win") ? t.name : |
327 |
IS_64 ? "${t.name}-amd64" : "${t.name}-i586" |
281 |
IS_64 ? "${t.name}-amd64" : "${t.name}-i586" |
328 |
|
282 |
|
329 |
def webkitOutputDir = cygpath("$buildDir/${t.name}") |
283 |
def webkitOutputDir = cygpath("$buildDir/${t.name}") |
330 |
@@ -2592,6 +2591,9 @@ project(":web") { |
284 |
@@ -2638,6 +2635,9 @@ project(":web") { |
331 |
targetCpuBitDepthSwitch = "--32-bit" |
285 |
} |
332 |
} |
|
|
333 |
|
286 |
|
334 |
+ cmakeArgs += " -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON" |
287 |
cmakeArgs += " -DJAVAFX_RELEASE_VERSION=8.0" |
335 |
+ cmakeArgs += " -DCMAKE_C_COMPILER:STRING=${System.getenv("CC")}" |
288 |
+ cmakeArgs += " -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON" |
336 |
+ cmakeArgs += " -DCMAKE_CXX_COMPILER:STRING=${System.getenv("CXX")}" |
289 |
+ cmakeArgs += " -DCMAKE_C_COMPILER:STRING=${System.getenv("CC")}" |
337 |
commandLine("perl", "$projectDir/src/main/native/Tools/Scripts/build-webkit", |
290 |
+ cmakeArgs += " -DCMAKE_CXX_COMPILER:STRING=${System.getenv("CXX")}" |
338 |
"--java", "--icu-unicode", targetCpuBitDepthSwitch, |
291 |
commandLine("perl", "$projectDir/src/main/native/Tools/Scripts/build-webkit", |
339 |
"--cmakeargs=${cmakeArgs}") |
292 |
"--java", "--icu-unicode", targetCpuBitDepthSwitch, |
340 |
@@ -2634,7 +2636,7 @@ project(":web") { |
293 |
"--cmakeargs=${cmakeArgs}") |
341 |
task drtJar(type: Jar, dependsOn: compileJava) { |
294 |
@@ -3132,7 +3132,7 @@ compileTargets { t -> |
342 |
archiveName = "drt.jar" |
|
|
343 |
destinationDir = file("$buildDir/test") |
344 |
- from "$buildDir/classes/main" |
345 |
+ from "$buildDir/classes/java/main" |
346 |
include drtClasses |
347 |
} |
348 |
if (IS_COMPILE_WEBKIT) { |
349 |
@@ -2886,22 +2888,22 @@ compileTargets { t -> |
350 |
description = "Creates the jfxrt.jar for the $t.name target" |
351 |
archiveName = "build/${sdkDirName}/rt/lib/ext/jfxrt.jar"; |
352 |
includeEmptyDirs = false |
353 |
- from("modules/base/build/classes/main", |
354 |
+ from("modules/base/build/classes/java/main", |
355 |
"modules/base/build/resources/main", |
356 |
- "modules/builders/build/classes/main", |
357 |
- "modules/graphics/build/classes/main", |
358 |
+ "modules/builders/build/classes/java/main", |
359 |
+ "modules/graphics/build/classes/java/main", |
360 |
"modules/graphics/build/resources/main", |
361 |
- "modules/controls/build/classes/main", |
362 |
+ "modules/controls/build/classes/java/main", |
363 |
"modules/controls/build/resources/main", |
364 |
- "modules/fxml/build/classes/main", |
365 |
+ "modules/fxml/build/classes/java/main", |
366 |
"modules/fxml/build/resources/main", |
367 |
"modules/graphics/build/classes/jsl-decora", |
368 |
"modules/graphics/build/resources/jsl-decora", |
369 |
"modules/graphics/build/classes/jsl-prism", |
370 |
"modules/graphics/build/resources/jsl-prism", |
371 |
- "modules/media/build/classes/main", |
372 |
+ "modules/media/build/classes/java/main", |
373 |
"modules/media/build/resources/main") |
374 |
- if (COMPILE_SWING) from ("modules/swing/build/classes/main", "modules/swing/build/resources/main") |
375 |
+ if (COMPILE_SWING) from ("modules/swing/build/classes/java/main", "modules/swing/build/resources/main") |
376 |
|
377 |
if (!IS_MAC) { |
378 |
exclude ("modules/media/build/classes/main/com/sun/media/jfxmediaimpl/platform/osx/**", |
379 |
@@ -2966,7 +2968,7 @@ compileTargets { t -> |
380 |
"modules/web/build/resources/ios", |
381 |
"modules/extensions/build/classes/ios") |
382 |
} else { |
383 |
- from ("modules/web/build/classes/main", "modules/web/build/resources/main") |
384 |
+ from ("modules/web/build/classes/java/main", "modules/web/build/resources/main") |
385 |
} |
386 |
|
387 |
exclude("**/javafx/embed/swt/**") |
388 |
@@ -3007,8 +3009,8 @@ compileTargets { t -> |
389 |
description = "Creates the jfxswt.jar for the $t.name target" |
390 |
archiveName = "build/${sdkDirName}/rt/lib/jfxswt.jar"; |
391 |
includeEmptyDirs = false |
392 |
- from("modules/swt/build/classes/main"); |
393 |
- from("modules/builders/build/classes/main"); |
394 |
+ from("modules/swt/build/classes/java/main"); |
395 |
+ from("modules/builders/build/classes/java/main"); |
396 |
include("**/javafx/embed/swt/**") |
397 |
exclude("**/*.java"); // Builder java files are in build/classes and should be excluded |
398 |
|
399 |
@@ -3029,7 +3031,7 @@ compileTargets { t -> |
400 |
description = "Creates the javafx-mx.jar" |
401 |
archiveName = "build/${sdkDirName}/lib/javafx-mx.jar"; |
402 |
includeEmptyDirs = false |
403 |
- from "modules/jmx/build/classes/main" |
404 |
+ from "modules/jmx/build/classes/java/main" |
405 |
from "modules/jmx/build/resources/main" |
406 |
dependsOn project(":jmx").assemble |
407 |
} |
408 |
@@ -3084,7 +3086,7 @@ compileTargets { t -> |
409 |
// OSX media natives |
295 |
// OSX media natives |
410 |
[ "jfxmedia_qtkit", "jfxmedia_avf", "glib-lite" ].each { name -> |
296 |
[ "jfxmedia_qtkit", "jfxmedia_avf" ].each { name -> |
411 |
from ("modules/media/build/native/${t.name}/${mediaBuildType}/${library(name)}") } |
297 |
from ("modules/media/build/native/${t.name}/${mediaBuildType}/${library(name)}") } |
412 |
- } else if (t.name == "linux") { |
298 |
- } else if (t.name == "linux") { |
413 |
+ } else if (t.name == "linux" || t.name == "bsd") { |
299 |
+ } else if (t.name == "linux" || t.name == "bsd") { |
414 |
from("modules/media/build/native/${t.name}/${mediaBuildType}") { include "libavplugin*.so" } |
300 |
from("modules/media/build/native/${t.name}/${mediaBuildType}") { include "libavplugin*.so" } |
415 |
} else from ("modules/media/build/native/${t.name}/${mediaBuildType}/${library("glib-lite")}") |
301 |
} |
416 |
} else { |
302 |
} else { |
417 |
@@ -3097,7 +3099,7 @@ compileTargets { t -> |
303 |
@@ -3145,7 +3145,7 @@ compileTargets { t -> |
418 |
// copy libjfxmedia_{avf,qtkit}.dylib if they exist |
304 |
// copy libjfxmedia_{avf,qtkit}.dylib if they exist |
419 |
[ "jfxmedia_qtkit", "jfxmedia_avf", "glib-lite" ].each { name -> |
305 |
[ "jfxmedia_qtkit", "jfxmedia_avf" ].each { name -> |
420 |
from ("$LIBRARY_STUB/${library(name)}") } |
306 |
from ("$LIBRARY_STUB/${library(name)}") } |
421 |
- } else if (t.name == "linux") { |
307 |
- } else if (t.name == "linux") { |
422 |
+ } else if (t.name == "linux" || t.name == "bsd") { |
308 |
+ } else if (t.name == "linux" || t.name == "bsd") { |
423 |
from(LIBRARY_STUB) { include "libavplugin*.so" } |
309 |
from(LIBRARY_STUB) { include "libavplugin*.so" } |
424 |
} |
310 |
} |
425 |
else if (t.name != "android" && t.name != "dalvik" ) { |
311 |
} |
426 |
@@ -3162,7 +3164,7 @@ compileTargets { t -> |
312 |
@@ -3207,7 +3207,7 @@ compileTargets { t -> |
427 |
} |
313 |
} |
428 |
|
314 |
|
429 |
// Copy over the javapackager executable |
315 |
// Copy over the javapackager executable |
Lines 432-445
Link Here
|
432 |
copy { |
318 |
copy { |
433 |
from "modules/fxpackager/build/javapackager" |
319 |
from "modules/fxpackager/build/javapackager" |
434 |
into "build/${sdkDirName}/bin" |
320 |
into "build/${sdkDirName}/bin" |
435 |
@@ -3215,10 +3217,11 @@ ext.JFXRT_CP = |
321 |
@@ -3264,6 +3264,7 @@ ext.JFXRT_CP = |
436 |
project(":fxml").sourceSets.main.output.classesDir, |
322 |
"modules/web/build/classes/java/main", |
437 |
project(":swing").sourceSets.main.output.classesDir, //NOTE - used by 3Dviewer |
|
|
438 |
project(":builders").sourceSets.main.output.classesDir, |
439 |
- "modules/media/build/classes/main", |
440 |
- "modules/web/build/classes/main", |
441 |
+ "modules/media/build/classes/java/main", |
442 |
+ "modules/web/build/classes/java/main", |
443 |
) |
323 |
) |
444 |
|
324 |
|
445 |
+/* |
325 |
+/* |
Lines 446-452
Link Here
|
446 |
project(":apps") { |
326 |
project(":apps") { |
447 |
// The apps build is Ant based, and gradle lets us "import" ant build.xml |
327 |
// The apps build is Ant based, and gradle lets us "import" ant build.xml |
448 |
// into our configuration. |
328 |
// into our configuration. |
449 |
@@ -3295,7 +3298,7 @@ project(":apps") { |
329 |
@@ -3341,7 +3342,7 @@ project(":apps") { |
450 |
} |
330 |
} |
451 |
rootProject.clean.dependsOn(appsClean) |
331 |
rootProject.clean.dependsOn(appsClean) |
452 |
} |
332 |
} |