freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] [bug #27045] "mingw32-make.exe setup" does not work well in C


From: mpsuzuki
Subject: [ft-devel] [bug #27045] "mingw32-make.exe setup" does not work well in CMD of WINE
Date: Fri, 17 Jul 2009 16:00:24 +0900

Dear Werner,

Recently I'm trying to execute FreeType2 building
system for Win32 on WINE CMD. I found that the
building by mingw32-make.exe on WINE CMD does not
work well. I've filed it in bugzilla.

        http://savannah.nongnu.org/bugs/?27045

The WIP patch in Savannah inserts the check detecting
WINE CMD before UNIX check in builds/toplevel.mk and
builds/unix/detect.mk, like this:

diff --git a/builds/toplevel.mk b/builds/toplevel.mk
index e6a8e93..1d3acc2 100644
--- a/builds/toplevel.mk
+++ b/builds/toplevel.mk
@@ -120,9 +120,20 @@ ifdef check_platform
   #
   # Note: This test is duplicated in `builds/unix/detect.mk'.
   #
-  is_unix := $(strip $(wildcard /sbin/init) \
-                     $(wildcard /usr/sbin/init) \
-                     $(wildcard /hurd/auth))
+  ifneq ($(findstring Windows_NT,$(OS)),)
+    ifeq ($(COMSPEC),)
+      ifneq ($(ComSpec),)
+        is_wine := $(ComSpec)
+      endif
+    endif
+  endif
+
+  ifeq ($(is_wine),)
+    is_unix := $(strip $(wildcard /sbin/init) \
+                       $(wildcard /usr/sbin/init) \
+                       $(wildcard /hurd/auth))
+  endif
+
   ifneq ($(is_unix),)
 
     distclean:

The insertion of WINE CMD specific hook to generic
make files is not good design, I think. I want to
insert such in builds/win32/detect.mk. To do so,
there might be 2 solutions:

A) Force to check if the system is win32 platform,
   even when PLATFORM is set to non-default values
   by preceding detect.mk (e.g. unix).

B) Make the execution of builds/(PLATFORM)/detect.mk
   ordered. At present, builds/unix/detect.mk is
   executed before builds/win32/detect.mk usually
   (maybe it's dependent with how make.exe sorts
   the files). If builds/win32/detect.mk is (always)
   executed before builds/unix/detect.mk, WINE CMD
   hook in builds/unix/detect.mk is not needed.

Which is better?

----------------------------------------------------

In addition, dos_setup target of current builds/detect.mk
passes the special characters to ECHO. Maybe they are
for formatting. Unfortunately, ECHO of WINE CMD cannot
handle them correctly. There are serious requirement to
use the special characters in dos_setup?

Regards,
mpsuzuki

P.S.
The speed of mingw32-make.exe in WINE CMD is very slow,
so the development of FT2 with WINE CMD + MinGW is not
pragmatic at present :-).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]