[Libreoffice-commits] .: setup_native/prj setup_native/source

Fridrich Strba fridrich at kemper.freedesktop.org
Mon Jul 23 07:01:00 PDT 2012


 setup_native/prj/d.lst                                 |    6 ++++++
 setup_native/source/win32/wintools/makecab/makefile.mk |   10 +++++++---
 setup_native/source/win32/wintools/msidb/makefile.mk   |   10 +++++++---
 setup_native/source/win32/wintools/msiinfo/makefile.mk |   10 +++++++---
 setup_native/source/win32/wintools/msiinfo/msiinfo.c   |   14 +++++++-------
 setup_native/source/win32/wintools/msimsp/makefile.mk  |   10 +++++++---
 setup_native/source/win32/wintools/msitran/makefile.mk |   10 +++++++---
 7 files changed, 48 insertions(+), 22 deletions(-)

New commits:
commit 65e2c77e762a667b965ab3dc2bcaf8b8d1a0bc91
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Mon Jul 23 15:59:44 2012 +0200

    Build the cross-msi-tools if winegcc is found
    
    Change-Id: Idc58b314a0721507e80e7b0e6216f29090f1d347

diff --git a/setup_native/prj/d.lst b/setup_native/prj/d.lst
index 19669cd..581bd85 100644
--- a/setup_native/prj/d.lst
+++ b/setup_native/prj/d.lst
@@ -1,7 +1,13 @@
 mkdir: %_DEST%\bin\osl
 ..\%__SRC%\bin\*.dll %_DEST%\bin\*.dll
 ..\%__SRC%\bin\*.exe %_DEST%\bin\*.exe
+..\%__SRC%\bin\*.exe.so %_DEST%\bin\*.exe.so
 ..\%__SRC%\class\*.jar %_DEST%\bin\*.jar
+symlink: %_DEST%\bin\makecab.exe %_DEST%\bin\makecab
+symlink: %_DEST%\bin\msidb.exe %_DEST%\bin\msidb
+symlink: %_DEST%\bin\msiinfo.exe %_DEST%\bin\msiinfo
+symlink: %_DEST%\bin\msimsp.exe %_DEST%\bin\msimsp
+symlink: %_DEST%\bin\msitran.exe %_DEST%\bin\msitran
 
 mkdir: %_DEST%\bin\userscripts
 ..\%__SRC%\bin\install %_DEST%\bin\userscripts\install
diff --git a/setup_native/source/win32/wintools/makecab/makefile.mk b/setup_native/source/win32/wintools/makecab/makefile.mk
index c8fee10..b30a520 100644
--- a/setup_native/source/win32/wintools/makecab/makefile.mk
+++ b/setup_native/source/win32/wintools/makecab/makefile.mk
@@ -20,11 +20,15 @@ TARGET=sn_makecab
 .IF "$(WINEGCC)"==""
 @all:
     @echo "No winegcc present, not building makecab..."
-.ELSE
- at all:
-    @echo "Not building makecab yet, stay tuned..."
 .ENDIF
 
+ at all: $(BIN)/makecab.exe $(BIN)/makecab.exe.so
+
+$(BIN)/makecab.exe.so: $(BIN)/makecab.exe
+
+$(BIN)/makecab.exe:
+	$(WINEGCC) -o $(BIN)/makecab.exe makecab.c parseddf.c -mconsole -lmsi 
+
 # --- Targets --------------------------------------------------------------
 
 .INCLUDE : target.mk
diff --git a/setup_native/source/win32/wintools/msidb/makefile.mk b/setup_native/source/win32/wintools/msidb/makefile.mk
index 2bb31bc..6c1f0f3 100644
--- a/setup_native/source/win32/wintools/msidb/makefile.mk
+++ b/setup_native/source/win32/wintools/msidb/makefile.mk
@@ -20,11 +20,15 @@ TARGET=sn_msidb
 .IF "$(WINEGCC)"==""
 @all:
     @echo "No winegcc present, not building msidb..."
-.ELSE
- at all:
-    @echo "Not building msidb yet, stay tuned..."
 .ENDIF
 
+ at all: $(BIN)/msidb.exe $(BIN)/msidb.exe.so
+
+$(BIN)/msidb.exe.so: $(BIN)/msidb.exe
+
+$(BIN)/msidb.exe:
+	$(WINEGCC) -o $(BIN)/msidb.exe msidb.c -municode -lmsi 
+
 # --- Targets --------------------------------------------------------------
 
 .INCLUDE : target.mk
diff --git a/setup_native/source/win32/wintools/msiinfo/makefile.mk b/setup_native/source/win32/wintools/msiinfo/makefile.mk
index 62e09b5..d7aab3b 100644
--- a/setup_native/source/win32/wintools/msiinfo/makefile.mk
+++ b/setup_native/source/win32/wintools/msiinfo/makefile.mk
@@ -20,11 +20,15 @@ TARGET=sn_msiinfo
 .IF "$(WINEGCC)"==""
 @all:
     @echo "No winegcc present, not building msiinfo..."
-.ELSE
- at all:
-    @echo "Not building msiinfo yet, stay tuned..."
 .ENDIF
 
+ at all: $(BIN)/msiinfo.exe $(BIN)/msiinfo.exe.so
+
+$(BIN)/msiinfo.exe.so: $(BIN)/msiinfo.exe
+
+$(BIN)/msiinfo.exe:
+	$(WINEGCC) -o $(BIN)/msiinfo.exe msiinfo.c -mconsole -municode -lmsi 
+
 # --- Targets --------------------------------------------------------------
 
 .INCLUDE : target.mk
diff --git a/setup_native/source/win32/wintools/msiinfo/msiinfo.c b/setup_native/source/win32/wintools/msiinfo/msiinfo.c
index 2a33684..37bbe09 100644
--- a/setup_native/source/win32/wintools/msiinfo/msiinfo.c
+++ b/setup_native/source/win32/wintools/msiinfo/msiinfo.c
@@ -33,7 +33,7 @@
 #define MAX_STORAGE_NAME 31
 #define COMMANDS 17
 
-static const uint commandMap[COMMANDS][4] =
+static const unsigned commandMap[COMMANDS][4] =
 {{'c', PID_CODEPAGE, VT_I2},
  {'t', PID_TITLE, VT_LPSTR},
  {'j', PID_SUBJECT, VT_LPSTR},
@@ -61,7 +61,7 @@ static const char * commandNames[COMMANDS] =
 static void parseDate(LPCWSTR value, SYSTEMTIME *time)
 {
     LPWSTR field;
-    uint len = 4*sizeof(WCHAR);
+    unsigned len = 4*sizeof(WCHAR);
 
     if (lstrlenW(value) != 19) return;
     field = malloc(len + sizeof(WCHAR));
@@ -93,7 +93,7 @@ static void parseDate(LPCWSTR value, SYSTEMTIME *time)
 static BOOL msiinfoDisplayProperties(LPWSTR dbfile)
 {
     MSIHANDLE dbhandle, infohandle;
-    uint i, r, dataType;
+    unsigned i, r, dataType;
     INT iVal;
     FILETIME ftVal;
     SYSTEMTIME sysTime;
@@ -137,9 +137,9 @@ static BOOL msiinfoDisplayProperties(LPWSTR dbfile)
     return TRUE;
 }
 
-static BOOL msiinfoUpdateProperty(MSIHANDLE infoHandle, uint property, uint dataType, LPCWSTR value)
+static BOOL msiinfoUpdateProperty(MSIHANDLE infoHandle, unsigned property, unsigned dataType, LPCWSTR value)
 {
-    uint r;
+    unsigned r;
     int iVal = 0;
     FILETIME ftVal;
     SYSTEMTIME sysTime = {0};
@@ -191,9 +191,9 @@ static void usage(void)
 int wmain(int argc, WCHAR *argv[])
 {
     WCHAR *dbfile = NULL;
-    uint i = 0;
+    unsigned i = 0;
     MSIHANDLE dbhandle, infohandle;
-    uint r;
+    unsigned r;
     LPWSTR value = 0;
     static const WCHAR h1[] = {'/', '?', 0};
     static const WCHAR h2[] = {'-', '?', 0};
diff --git a/setup_native/source/win32/wintools/msimsp/makefile.mk b/setup_native/source/win32/wintools/msimsp/makefile.mk
index 4d6663c..a793662 100644
--- a/setup_native/source/win32/wintools/msimsp/makefile.mk
+++ b/setup_native/source/win32/wintools/msimsp/makefile.mk
@@ -20,11 +20,15 @@ TARGET=sn_msimsp
 .IF "$(WINEGCC)"==""
 @all:
     @echo "No winegcc present, not building msimsp..."
-.ELSE
- at all:
-    @echo "Not building msimsp yet, stay tuned..."
 .ENDIF
 
+ at all: $(BIN)/msimsp.exe $(BIN)/msimsp.exe.so
+
+$(BIN)/msimsp.exe.so: $(BIN)/msimsp.exe
+
+$(BIN)/msimsp.exe:
+	$(WINEGCC) -o $(BIN)/msimsp.exe msimsp.c -mconsole -lmsi 
+
 # --- Targets --------------------------------------------------------------
 
 .INCLUDE : target.mk
diff --git a/setup_native/source/win32/wintools/msitran/makefile.mk b/setup_native/source/win32/wintools/msitran/makefile.mk
index c22c9d1..4b5ed73 100644
--- a/setup_native/source/win32/wintools/msitran/makefile.mk
+++ b/setup_native/source/win32/wintools/msitran/makefile.mk
@@ -20,11 +20,15 @@ TARGET=sn_msitran
 .IF "$(WINEGCC)"==""
 @all:
     @echo "No winegcc present, not building msitran..."
-.ELSE
- at all:
-    @echo "Not building msitran yet, stay tuned..."
 .ENDIF
 
+ at all: $(BIN)/msitran.exe $(BIN)/msitran.exe.so
+
+$(BIN)/msitran.exe.so: $(BIN)/msitran.exe
+
+$(BIN)/msitran.exe:
+	$(WINEGCC) -o $(BIN)/msitran.exe msitran.c -mconsole -lmsi 
+
 # --- Targets --------------------------------------------------------------
 
 .INCLUDE : target.mk


More information about the Libreoffice-commits mailing list