changeset 9220:7e6d5c16ff4a

8090041: Build with parfait runs cl.exe complier instead of parfait-cl.exe in media component Reviewed-by: kcr
author stayer
date Tue, 11 Aug 2015 10:55:58 +0300
parents ab5bf503eb63
children f7860462626b
files build.gradle buildSrc/linux.gradle buildSrc/mac.gradle buildSrc/win.gradle modules/media/src/main/native/gstreamer/projects/linux/avplugin/Makefile modules/media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile modules/media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile modules/media/src/main/native/gstreamer/projects/mac/fxplugins/Makefile modules/media/src/main/native/gstreamer/projects/mac/glib-lite/Makefile modules/media/src/main/native/gstreamer/projects/mac/gstreamer-lite/Makefile modules/media/src/main/native/gstreamer/projects/win/fxplugins/Makefile modules/media/src/main/native/gstreamer/projects/win/fxplugins/Makefile.BaseClasses modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile.glib modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile.gmodule modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile.gobject modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile.gthread modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite/Makefile modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite/Makefile.gstplugins modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite/Makefile.gstreamer modules/media/src/main/native/jfxmedia/projects/linux/Makefile modules/media/src/main/native/jfxmedia/projects/mac/Makefile modules/media/src/main/native/jfxmedia/projects/win/Makefile
diffstat 23 files changed, 68 insertions(+), 73 deletions(-) [+]
line wrap: on
line diff
--- a/build.gradle	Fri Aug 07 18:00:41 2015 -0700
+++ b/build.gradle	Tue Aug 11 10:55:58 2015 +0300
@@ -2218,17 +2218,14 @@
                     commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/jfxmedia/projects/${projectDir}")
                     args("JAVA_HOME=${JDK_HOME}", "GENERATED_HEADERS_DIR=${generatedHeadersDir}",
                          "OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=jfxmedia",
-                         "COMPILE_PARFAIT=${compileParfait}")
+                         "COMPILE_PARFAIT=${compileParfait}", 
+                         IS_64 ? "ARCH=x64" : "ARCH=x32", 
+                        "CC=${mediaProperties.compiler}", "LINKER=${mediaProperties.linker}")
 
                     if (t.name == "win") {
                         environment(WINDOWS_NATIVE_COMPILE_ENVIRONMENT)
-                        args(IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.jfxmediaRcFile}")
+                        args( "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.jfxmediaRcFile}")
                     } else {
-                        args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}")
-                        if (t.name == "linux") {
-                            args(IS_64 ? "ARCH=x64" : "ARCH=x32")
-                        }
-
                         if (t.name.startsWith("arm")) {
                             args("EXTRA_CFLAGS=${mediaProperties.extra_cflags}", "EXTRA_LDFLAGS=${mediaProperties.extra_ldflags}")
                         } else {
@@ -2248,16 +2245,13 @@
                 doLast {
                     exec {
                         commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/gstreamer-lite")
-                        args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=gstreamer-lite")
+                        args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=gstreamer-lite",
+                             IS_64 ? "ARCH=x64" : "ARCH=x32", "CC=${mediaProperties.compiler}", 
+                             "AR=${mediaProperties.ar}", "LINKER=${mediaProperties.linker}")
 
                         if (t.name == "win") {
                             environment(WINDOWS_NATIVE_COMPILE_ENVIRONMENT)
-                            args(IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.gstreamerRcFile}")
-                        } else {
-                            args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}")
-                            if (t.name == "linux") {
-                                args(IS_64 ? "ARCH=x64" : "ARCH=x32")
-                            }
+                            args("RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.gstreamerRcFile}")
                         }
                     }
                 }
@@ -2278,7 +2272,9 @@
                     exec {
                         commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/fxplugins")
                         args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=fxplugins", 
-                             "ON2_SRCDIR=${project.ext.ON2_SRCDIR}", "ON2_LIB=${project.ext.ON2_LIB}")
+                             "ON2_SRCDIR=${project.ext.ON2_SRCDIR}", "ON2_LIB=${project.ext.ON2_LIB}",
+                             IS_64 ? "ARCH=x64" : "ARCH=x32", 
+                             "CC=${mediaProperties.compiler}", "AR=${mediaProperties.ar}", "LINKER=${mediaProperties.linker}")
 
                         if (t.name == "win") {
                             Map winEnv = new HashMap(WINDOWS_NATIVE_COMPILE_ENVIRONMENT)
@@ -2290,12 +2286,7 @@
                             }
                             environment(winEnv)
 
-                            args(IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.fxpluginsRcFile}")
-                        } else {
-                            args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}")
-                            if (t.name == "linux") {
-                                args(IS_64 ? "ARCH=x64" : "ARCH=x32")
-                            }
+                            args("RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.fxpluginsRcFile}")
                         }
                     }
                 }
@@ -2315,9 +2306,10 @@
                                 if (dir.exists()) {
                                     exec {
                                         commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/linux/avplugin")
-                                        args("CC=${mediaProperties.compiler}", "OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", 
-                                             "BASE_NAME=avplugin", "VERSION=${version}", "LIBAV_DIR=${libavDir}")
-                                        args(IS_64 ? "ARCH=x64" : "ARCH=x32")
+                                        args("CC=${mediaProperties.compiler}", "LINKER=${mediaProperties.linker}", 
+                                             "OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", 
+                                             "BASE_NAME=avplugin", "VERSION=${version}", "LIBAV_DIR=${libavDir}", 
+                                              IS_64 ? "ARCH=x64" : "ARCH=x32")
                                     }
                                 }
                             }
@@ -2325,9 +2317,9 @@
                             // Building fxavcodec plugin (libav plugin)
                             exec {
                                 commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/linux/avplugin")
-                                args("CC=${mediaProperties.compiler}", "OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", 
-                                     "BASE_NAME=avplugin")
-                                args(IS_64 ? "ARCH=x64" : "ARCH=x32")
+                                args("CC=${mediaProperties.compiler}", "LINKER=${mediaProperties.linker}", 
+                                     "OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", 
+                                     "BASE_NAME=avplugin", IS_64 ? "ARCH=x64" : "ARCH=x32")
                             }
                         }
                     }
@@ -2367,7 +2359,7 @@
                         args("/Fo${rcOutputDir}/${WIN.media.jfxmediaRcFile}", WIN.media.rcSource)
                     }
                 }
-                
+
                 def buildGlib = task("build${t.capital}Glib", dependsOn: [buildResources]) {
                     enabled = IS_COMPILE_MEDIA
                     doLast {
@@ -2375,12 +2367,13 @@
                             environment(WINDOWS_NATIVE_COMPILE_ENVIRONMENT)
                             commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite")
                             args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=glib-lite",
-                                 IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.glibRcFile}")
+                                 IS_64 ? "ARCH=x64" : "ARCH=x32", "RESOURCE=${nativeOutputDir}/${buildType}/${WIN.media.glibRcFile}",
+                                 "CC=${mediaProperties.compiler}", "AR=${mediaProperties.ar}", "LINKER=${mediaProperties.linker}")
                         }
                     }
                 }
                 buildGStreamer.dependsOn buildGlib
-                
+
             } else if (t.name == "mac") {
                 def buildGlib = task("build${t.capital}Glib") {
                     enabled = IS_COMPILE_MEDIA
@@ -2388,7 +2381,7 @@
                         exec {
                             commandLine ("make", "${makeJobsFlag}", "-C", "${nativeSrcDir}/gstreamer/projects/${projectDir}/glib-lite")
                             args("OUTPUT_DIR=${nativeOutputDir}", "BUILD_TYPE=${buildType}", "BASE_NAME=glib-lite")
-                            args ("CC=${mediaProperties.compiler}", "LINK=${mediaProperties.linker}", "LIB=${mediaProperties.lib}")
+                            args ("CC=${mediaProperties.compiler}", "LINKER=${mediaProperties.linker}")
                         }
                     }
                 }
--- a/buildSrc/linux.gradle	Fri Aug 07 18:00:41 2015 -0700
+++ b/buildSrc/linux.gradle	Tue Aug 11 10:55:58 2015 +0300
@@ -256,4 +256,4 @@
 LINUX.media = [:]
 LINUX.media.compiler = compiler
 LINUX.media.linker = linker
-LINUX.media.lib = "ar"
+LINUX.media.ar = "ar"
--- a/buildSrc/mac.gradle	Fri Aug 07 18:00:41 2015 -0700
+++ b/buildSrc/mac.gradle	Tue Aug 11 10:55:58 2015 +0300
@@ -241,4 +241,4 @@
 MAC.media = [:]
 MAC.media.compiler = compiler
 MAC.media.linker = linker
-MAC.media.lib = "libtool"
+MAC.media.ar = "libtool"
--- a/buildSrc/win.gradle	Fri Aug 07 18:00:41 2015 -0700
+++ b/buildSrc/win.gradle	Tue Aug 11 10:55:58 2015 +0300
@@ -374,7 +374,11 @@
 WIN.media.gstreamerRcFlags = ["/d", "JFX_FNAME=gstreamer-lite.dll", "/d", "JFX_INTERNAL_NAME=gstreamer", rcFlags].flatten()
 WIN.media.fxpluginsRcFlags = ["/d", "JFX_FNAME=fxplugins.dll", "/d", "JFX_INTERNAL_NAME=fxplugins", rcFlags].flatten()
 WIN.media.jfxmediaRcFlags = ["/d", "JFX_FNAME=jfxmedia.dll", "/d", "JFX_INTERNAL_NAME=jfxmedia", rcFlags].flatten()
-
+def parfaitPath = System.getenv("PARFAIT_PATH");
+WIN.media.compiler = IS_COMPILE_PARFAIT ? "${parfaitPath}/parfait-cl.exe" : "cl.exe"; 
+WIN.media.linker = IS_COMPILE_PARFAIT ? "${parfaitPath}/parfait-link.exe" : "link.exe"; 
+WIN.media.ar = IS_COMPILE_PARFAIT ? "${parfaitPath}/parfait-lib.exe" : "lib.exe"; 
+ 
 WIN.webkit = [:]
 WIN.webkit.rcCompiler = rcCompiler
 WIN.webkit.rcSource = defaultRcSource
--- a/modules/media/src/main/native/gstreamer/projects/linux/avplugin/Makefile	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/linux/avplugin/Makefile	Tue Aug 11 10:55:58 2015 +0300
@@ -84,4 +84,4 @@
 	mkdir -p $(TARGET_DIRS)
 
 $(TARGET): $(OBJECTS)
-	$(CC) -shared $(OBJECTS) $(LDFLAGS) -o $@
+	$(LINKER) -shared $(OBJECTS) $(LDFLAGS) -o $@
--- a/modules/media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/linux/fxplugins/Makefile	Tue Aug 11 10:55:58 2015 +0300
@@ -90,4 +90,4 @@
 	mkdir -p $(TARGET_DIRS)
 
 $(TARGET): $(OBJECTS)
-	$(CC) -shared $(OBJECTS) $(ON2_LIB) $(ON2_LIB) $(LDFLAGS) -o $@
+	$(LINKER) -shared $(OBJECTS) $(ON2_LIB) $(ON2_LIB) $(LDFLAGS) -o $@
--- a/modules/media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/linux/gstreamer-lite/Makefile	Tue Aug 11 10:55:58 2015 +0300
@@ -260,4 +260,4 @@
 	mkdir -p $(TARGET_DIRS)
 
 $(TARGET): $(OBJECTS)
-	$(CC) -shared $(OBJECTS) $(LDFLAGS) -o $@
+	$(LINKER) -shared $(OBJECTS) $(LDFLAGS) -o $@
--- a/modules/media/src/main/native/gstreamer/projects/mac/fxplugins/Makefile	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/mac/fxplugins/Makefile	Tue Aug 11 10:55:58 2015 +0300
@@ -98,4 +98,4 @@
 	mkdir -p $(TARGET_DIRS)
 
 $(TARGET): $(OBJECTS)
-	$(CC) -dynamiclib $(OBJECTS) $(ON2_LIB) $(LDFLAGS) -o $@
+	$(LINKER) -dynamiclib $(OBJECTS) $(ON2_LIB) $(LDFLAGS) -o $@
--- a/modules/media/src/main/native/gstreamer/projects/mac/glib-lite/Makefile	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/mac/glib-lite/Makefile	Tue Aug 11 10:55:58 2015 +0300
@@ -154,4 +154,4 @@
 	mkdir -p $(TARGET_DIRS)
 
 $(TARGET): $(OBJECTS)
-	$(CC) -dynamiclib $(OBJECTS) $(LDFLAGS) -o $@
+	$(LINKER) -dynamiclib $(OBJECTS) $(LDFLAGS) -o $@
--- a/modules/media/src/main/native/gstreamer/projects/mac/gstreamer-lite/Makefile	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/mac/gstreamer-lite/Makefile	Tue Aug 11 10:55:58 2015 +0300
@@ -259,4 +259,4 @@
 	mkdir -p $(TARGET_DIRS)
 
 $(TARGET): $(OBJECTS)
-	$(CC) -dynamiclib $(OBJECTS) $(LDFLAGS) -o $@
+	$(LINKER) -dynamiclib $(OBJECTS) $(LDFLAGS) -o $@
--- a/modules/media/src/main/native/gstreamer/projects/win/fxplugins/Makefile	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/win/fxplugins/Makefile	Tue Aug 11 10:55:58 2015 +0300
@@ -3,8 +3,7 @@
 #
 
 CC   = cl.exe
-CPP  = cl.exe
-LINK = link.exe
+LINKER = link.exe
 
 GLIB_VERSION = 2.28.8
 
@@ -142,7 +141,7 @@
 	$(MAKE) $(TARGET)
 
 $(TARGET): $(OBJECTS) $(LIBS)
-	$(LINK) $(LDFLAGS) $(shell cygpath -ma "$(RESOURCE)") $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object))) $(foreach lib,$(LIBS),$(shell cygpath -ma $(lib)))
+	$(LINKER) $(LDFLAGS) $(shell cygpath -ma "$(RESOURCE)") $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object))) $(foreach lib,$(LIBS),$(shell cygpath -ma $(lib)))
 
 $(OBJECTS): | $(DEP_DIRS)
 
@@ -150,13 +149,13 @@
 	@mkdir -p $(DEP_DIRS)
 
 $(OBJBASE_DIR)/%.obj: $(SRCBASE_DIR)/%.cpp
-	$(CPP) $(CFLAGS) $(O1FLAGS) -TP -c -Fo$(shell cygpath -ma $@) $<
+	$(CC) $(CFLAGS) $(O1FLAGS) -TP -c -Fo$(shell cygpath -ma $@) $<
 
 $(OBJBASE_DIR)/%.obj: $(SRCBASE_DIR)/%.c
-	$(CPP) $(CFLAGS) $(O1FLAGS) -TC -c -Fo$(shell cygpath -ma $@) $<
+	$(CC) $(CFLAGS) $(O1FLAGS) -TC -c -Fo$(shell cygpath -ma $@) $<
 
 $(OBJBASE_DIR)/plugin_vp6/vp6decoder.obj: $(SRCBASE_DIR)/plugin_vp6/vp6decoder.c
-	$(CPP) $(CFLAGS) $(O2FLAGS) -TC -c -Fo$(shell cygpath -ma $@) $<
+	$(CC) $(CFLAGS) $(O2FLAGS) -TC -c -Fo$(shell cygpath -ma $@) $<
 
 $(BASECLASSES_TARGET):
 	$(MAKE) TARGET=$(BUILD_DIR)/$(BASECLASSES_TARGET) -f Makefile.BaseClasses
--- a/modules/media/src/main/native/gstreamer/projects/win/fxplugins/Makefile.BaseClasses	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/win/fxplugins/Makefile.BaseClasses	Tue Aug 11 10:55:58 2015 +0300
@@ -2,8 +2,8 @@
 # BaseClasses Makefile
 #
 
-CPP = cl.exe
-LIB = lib.exe
+CC = cl.exe
+AR = lib.exe
 
 OBJBASE_DIR = $(BUILD_DIR)/obj/Microsoft/DirectShow/BaseClasses
 DEP_DIRS = $(BUILD_DIR) $(OBJBASE_DIR)
@@ -78,7 +78,7 @@
 default: $(TARGET)
 
 $(TARGET): $(OBJECTS) 
-	$(LIB) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object)))
+	$(AR) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object)))
 
 $(OBJECTS): | $(DEP_DIRS)
 
@@ -86,4 +86,4 @@
 	@mkdir -p $(DEP_DIRS)
 
 $(OBJBASE_DIR)/%.obj: $(SRCBASE_DIR)/%.cpp
-	$(CPP) $(CFLAGS) -TP -c -Fo$(shell cygpath -ma $@) $(shell cygpath -mas $<)
+	$(CC) $(CFLAGS) -TP -c -Fo$(shell cygpath -ma $@) $(shell cygpath -mas $<)
--- a/modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile	Tue Aug 11 10:55:58 2015 +0300
@@ -1,7 +1,7 @@
 #
 # glib-lite Makefile
 #
-LINK = link.exe
+LINKER = link.exe
 
 GLIB_VERSION = 2.28.8
 export GLIB_BASE_DIR = 3rd_party/glib/glib-$(GLIB_VERSION)
@@ -51,7 +51,7 @@
 default: $(TARGET)
 
 $(TARGET): $(LIBS)
-	$(LINK) $(LDFLAGS) $(shell cygpath -ma "$(RESOURCE)") $(foreach lib,$(LIBS),$(shell cygpath -ma $(lib))) 
+	$(LINKER) $(LDFLAGS) $(shell cygpath -ma "$(RESOURCE)") $(foreach lib,$(LIBS),$(shell cygpath -ma $(lib))) 
 
 $(BUILD_DIR)/$(GLIB_TARGET):
 	$(MAKE) TARGET=$(BUILD_DIR)/$(GLIB_TARGET) -f Makefile.glib
--- a/modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile.glib	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile.glib	Tue Aug 11 10:55:58 2015 +0300
@@ -2,7 +2,7 @@
 # glib Makefile
 #
 CC = cl.exe
-LIB = lib.exe
+AR = lib.exe
 
 OBJBASE_DIR = $(BUILD_DIR)/obj/$(GLIB_BASE_DIR)/glib
 SRCBASE_DIR = ../../../$(GLIB_BASE_DIR)
@@ -160,7 +160,7 @@
 default: $(TARGET)
 
 $(TARGET): $(OBJECTS)
-	$(LIB) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object))) 
+	$(AR) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object))) 
 
 $(OBJECTS): | $(DEP_DIRS)
 
--- a/modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile.gmodule	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile.gmodule	Tue Aug 11 10:55:58 2015 +0300
@@ -2,7 +2,7 @@
 # gmodule Makefile
 #
 CC = cl.exe
-LIB = lib.exe
+AR = lib.exe
 
 OBJBASE_DIR = $(BUILD_DIR)/obj/$(GLIB_BASE_DIR)/gmodule
 SRCBASE_DIR = ../../../$(GLIB_BASE_DIR)
@@ -56,7 +56,7 @@
 default: $(TARGET)
 
 $(TARGET): $(OBJECTS) 
-	$(LIB) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object)))
+	$(AR) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object)))
 
 $(OBJECTS): | $(DEP_DIRS)
 
--- a/modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile.gobject	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile.gobject	Tue Aug 11 10:55:58 2015 +0300
@@ -2,7 +2,7 @@
 # gobject Makefile
 #
 CC = cl.exe
-LIB = lib.exe
+AR = lib.exe
 
 OBJBASE_DIR = $(BUILD_DIR)/obj/$(GLIB_BASE_DIR)/gobject
 SRCBASE_DIR = ../../../$(GLIB_BASE_DIR)
@@ -73,7 +73,7 @@
 default: $(TARGET)
 
 $(TARGET): $(OBJECTS) 
-	$(LIB) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object)))
+	$(AR) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object)))
 
 $(OBJECTS): | $(DEP_DIRS)
 
--- a/modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile.gthread	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/win/glib-lite/Makefile.gthread	Tue Aug 11 10:55:58 2015 +0300
@@ -2,7 +2,7 @@
 # gthread Makefile
 #
 CC = cl.exe
-LIB = lib.exe
+AR = lib.exe
 
 OBJBASE_DIR = $(BUILD_DIR)/obj/$(GLIB_BASE_DIR)/gthread
 SRCBASE_DIR = ../../../$(GLIB_BASE_DIR)
@@ -56,7 +56,7 @@
 default: $(TARGET)
 
 $(TARGET): $(OBJECTS) 
-	$(LIB) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object))) 
+	$(AR) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object))) 
 
 $(OBJECTS): | $(DEP_DIRS)
 
--- a/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite/Makefile	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite/Makefile	Tue Aug 11 10:55:58 2015 +0300
@@ -2,7 +2,7 @@
 # gstreamer-lite Makefile
 #
 
-LINK = link.exe
+LINKER = link.exe
 
 GLIB_VERSION = 2.28.8
 export GLIB_DIR = ../../../3rd_party/glib/glib-$(GLIB_VERSION)
@@ -54,7 +54,7 @@
 	$(MAKE) $(TARGET)
 
 $(TARGET): $(LIBS)
-	$(LINK) $(LDFLAGS) $(shell cygpath -ma "$(RESOURCE)") $(foreach lib,$(LIBS),$(shell cygpath -ma $(lib)))
+	$(LINKER) $(LDFLAGS) $(shell cygpath -ma "$(RESOURCE)") $(foreach lib,$(LIBS),$(shell cygpath -ma $(lib)))
 
 $(GSTREAMER_TARGET):
 	$(MAKE) TARGET=$(BUILD_DIR)/$(GSTREAMER_TARGET) -f Makefile.gstreamer
--- a/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite/Makefile.gstplugins	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite/Makefile.gstplugins	Tue Aug 11 10:55:58 2015 +0300
@@ -2,7 +2,7 @@
 # gstplugins Makefile
 #
 CC  = cl.exe
-LIB = lib.exe
+AR = lib.exe
 
 BASE_DIR = ../../..
 GSTREAMER_LITE = gstreamer-lite
@@ -118,7 +118,7 @@
 default: $(TARGET)
 
 $(TARGET): $(OBJECTS) 
-	$(LIB) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object)))
+	$(AR) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object)))
 
 $(OBJECTS): | $(DEP_DIRS)
 
--- a/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite/Makefile.gstreamer	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/gstreamer/projects/win/gstreamer-lite/Makefile.gstreamer	Tue Aug 11 10:55:58 2015 +0300
@@ -2,7 +2,7 @@
 # gstreamer Makefile
 #
 CC  = cl.exe
-LIB = lib.exe
+AR = lib.exe
 
 BASE_DIR = ../../..
 GSTREAMER_LITE = gstreamer-lite
@@ -195,7 +195,7 @@
 default: $(TARGET)
 
 $(TARGET): $(OBJECTS) 
-	$(LIB) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object)))
+	$(AR) $(LIBFLAGS) $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object)))
 
 $(OBJECTS): | $(DEP_DIRS)
 
--- a/modules/media/src/main/native/jfxmedia/projects/linux/Makefile	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/jfxmedia/projects/linux/Makefile	Tue Aug 11 10:55:58 2015 +0300
@@ -128,7 +128,7 @@
 	mkdir -p $(DEP_DIRS)
 
 $(TARGET): $(DEPFILES) $(OBJECTS)
-	$(LINK) -shared $(OBJECTS) $(LDFLAGS) -o $@
+	$(LINKER) -shared $(OBJECTS) $(LDFLAGS) -o $@
 
 $(OBJBASE_DIR)/%.o: $(SRCBASE_DIR)/%.cpp
 	$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -x c++ -c $< -o $@
--- a/modules/media/src/main/native/jfxmedia/projects/mac/Makefile	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/jfxmedia/projects/mac/Makefile	Tue Aug 11 10:55:58 2015 +0300
@@ -177,7 +177,7 @@
 
 $(TARGET): $(JFXMEDIA_OBJECTS)
 	@mkdir -p $(dir $@)
-	$(LINK) -dynamiclib $(JFXMEDIA_LDFLAGS) $(JFXMEDIA_OBJECTS) -o $@
+	$(LINKER) -dynamiclib $(JFXMEDIA_LDFLAGS) $(JFXMEDIA_OBJECTS) -o $@
 
 
 # ------------------------------------------------------------------
@@ -304,4 +304,4 @@
 
 $(QTK_LIB): $(TARGET) $(QTK_OBJECTS)
 	@mkdir -p $(dir $@)
-	$(LINK)  $(QTK_LDFLAGS) -dynamiclib $(QTK_OBJECTS) -l$(BASE_NAME) -o $@
+	$(LINKER)  $(QTK_LDFLAGS) -dynamiclib $(QTK_OBJECTS) -l$(BASE_NAME) -o $@
--- a/modules/media/src/main/native/jfxmedia/projects/win/Makefile	Fri Aug 07 18:00:41 2015 -0700
+++ b/modules/media/src/main/native/jfxmedia/projects/win/Makefile	Tue Aug 11 10:55:58 2015 +0300
@@ -1,8 +1,7 @@
 # jfxmedia-jni win32/win64 makefile
 
 CC = cl.exe
-CPP = cl.exe
-LINK = link.exe
+LINKER = link.exe
 MAKEDEPEND = makedepend.exe
 
 BUILD_DIR = $(shell cygpath -u "$(OUTPUT_DIR)/$(BUILD_TYPE)")
@@ -149,7 +148,7 @@
 default: $(TARGET)
 
 $(TARGET): $(DEPFILE) $(OBJECTS) 
-	$(LINK) $(LDFLAGS) $(shell cygpath -ma "$(RESOURCE)") $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object)))
+	$(LINKER) $(LDFLAGS) $(shell cygpath -ma "$(RESOURCE)") $(foreach object,$(OBJECTS),$(shell cygpath -ma $(object)))
 
 $(DEPFILE): | $(DEP_DIRS)
 	@echo $(DEPTOKEN) > $(DEPFILE)
@@ -161,7 +160,7 @@
 -include $(DEPFILE)
 
 $(OBJBASE_DIR)/%.obj: $(SRCBASE_DIR)/%.cpp
-	$(CPP) $(CFLAGS) -TP -c -Fo$(shell cygpath -ma $@) $<
+	$(CC) $(CFLAGS) -TP -c -Fo$(shell cygpath -ma $@) $<
 
 $(OBJBASE_DIR)/%.obj: $(SRCBASE_DIR)/%.c
 	$(CC) $(CFLAGS) -TC -c -Fo$(shell cygpath -ma $@) $<