Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2063

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/63/2063/1

convert setup_native to gbuild and add to tail_build

Change-Id: Ie12338dada22c59d55d89ed9611bb1a958b04223
---
M Module_tail_build.mk
M Repository.mk
M RepositoryModule_ooo.mk
M postprocess/prj/build.lst
A setup_native/CustomTarget_mac.mk
A setup_native/CustomTarget_scripts.mk
A setup_native/CustomTarget_spell.mk
A setup_native/CustomTarget_wintools.mk
A setup_native/Library_getuid.mk
A setup_native/Library_instooofiltmsi.mk
A setup_native/Library_jfregca.mk
A setup_native/Library_qslnkmsi.mk
A setup_native/Library_reg4allmsdoc.mk
A setup_native/Library_regactivex.mk
A setup_native/Library_regpatchactivex.mk
A setup_native/Library_sdqsmsi.mk
A setup_native/Library_sellangmsi.mk
A setup_native/Library_shlxtmsi.mk
A setup_native/Library_sn_tools.mk
A setup_native/Library_thidxmsi.mk
A setup_native/Makefile
A setup_native/Module_setup_native.mk
A setup_native/Package_misc.mk
A setup_native/Package_packinfo.mk
A setup_native/Package_scripts.mk
A setup_native/Package_scripts_generated.mk
A setup_native/Package_spell.mk
A setup_native/Package_ulf.mk
A setup_native/Package_wintools.mk
A setup_native/StaticLibrary_quickstarter.mk
A setup_native/StaticLibrary_seterror.mk
M setup_native/prj/build.lst
M setup_native/prj/d.lst
D setup_native/prj/dmake
D setup_native/scripts/makefile.mk
D setup_native/scripts/source/makefile.mk
D setup_native/source/mac/makefile.mk
D setup_native/source/packinfo/makefile.mk
D setup_native/source/win32/customactions/indexingfilter/exports.dxp
D setup_native/source/win32/customactions/indexingfilter/makefile.mk
M setup_native/source/win32/customactions/indexingfilter/restartindexingservice.cxx
D setup_native/source/win32/customactions/javafilter/exports.dxp
M setup_native/source/win32/customactions/javafilter/jfregca.cxx
D setup_native/source/win32/customactions/javafilter/makefile.mk
D setup_native/source/win32/customactions/quickstarter/exports.dxp
D setup_native/source/win32/customactions/quickstarter/makefile.mk
D setup_native/source/win32/customactions/quickstarter/qslnkmsi.dxp
M setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx
D setup_native/source/win32/customactions/quickstarter/sdqsmsi.dxp
M setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx
D setup_native/source/win32/customactions/reg4allmsdoc/exports.dxp
D setup_native/source/win32/customactions/reg4allmsdoc/makefile.mk
M setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
D setup_native/source/win32/customactions/regactivex/exports.dxp
D setup_native/source/win32/customactions/regactivex/makefile.mk
M setup_native/source/win32/customactions/regactivex/regactivex.cxx
D setup_native/source/win32/customactions/regpatchactivex/exports.dxp
D setup_native/source/win32/customactions/regpatchactivex/makefile.mk
M setup_native/source/win32/customactions/regpatchactivex/regpatchactivex.cxx
D setup_native/source/win32/customactions/sellang/exports.dxp
D setup_native/source/win32/customactions/sellang/makefile.mk
M setup_native/source/win32/customactions/sellang/sellang.cxx
M setup_native/source/win32/customactions/sellang/sorttree.cxx
M setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx
M setup_native/source/win32/customactions/shellextensions/checkpatches.cxx
M setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx
D setup_native/source/win32/customactions/shellextensions/exports.dxp
M setup_native/source/win32/customactions/shellextensions/iconcache.cxx
M setup_native/source/win32/customactions/shellextensions/layerlinks.cxx
D setup_native/source/win32/customactions/shellextensions/makefile.mk
M setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx
M setup_native/source/win32/customactions/shellextensions/startmenuicon.cxx
M setup_native/source/win32/customactions/shellextensions/upgrade.cxx
M setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx
D setup_native/source/win32/customactions/thesaurus/exports.dxp
D setup_native/source/win32/customactions/thesaurus/makefile.mk
M setup_native/source/win32/customactions/thesaurus/thesaurus.cxx
M setup_native/source/win32/customactions/tools/checkversion.cxx
D setup_native/source/win32/customactions/tools/exports.dxp
D setup_native/source/win32/customactions/tools/makefile.mk
D setup_native/source/win32/wintools/makecab/makefile.mk
D setup_native/source/win32/wintools/msidb/makefile.mk
D setup_native/source/win32/wintools/msiinfo/makefile.mk
D setup_native/source/win32/wintools/msimsp/makefile.mk
D setup_native/source/win32/wintools/msitran/makefile.mk
85 files changed, 754 insertions(+), 1,235 deletions(-)



diff --git a/Module_tail_build.mk b/Module_tail_build.mk
index 0170027..988edda 100644
--- a/Module_tail_build.mk
+++ b/Module_tail_build.mk
@@ -163,6 +163,7 @@
        scripting \
        sd \
        sdext \
+       $(call gb_Helper_optional,DESKTOP,setup_native) \
        sfx2 \
        shell \
        slideshow \
diff --git a/Repository.mk b/Repository.mk
index 627454e..d0307f5 100644
--- a/Repository.mk
+++ b/Repository.mk
@@ -420,6 +420,7 @@
        cli_cppuhelper \
        cli_uno \
        gcc3_uno \
+       getuid \
        java_uno \
     jpipe \
     juh \
@@ -514,17 +515,28 @@
     fps \
     ftransl \
     inprocserv \
+    instooofiltmsi \
+    jfregca \
     ooofilt \
     ooofilt_x64 \
     propertyhdl \
     propertyhdl_x64 \
-       raptor \
-       rasqal \
+    qslnkmsi \
+    raptor \
+    rasqal \
+    reg4allmsdoc \
+    regactivex \
+       regpatchactivex \
+    sdqsmsi \
+    sellangmsi \
     shlxthdl \
     shlxthdl_x64 \
+    shlxtmsi \
+    sn_tools \
     so_activex \
     so_activex_x64 \
     sysdtrans \
+       thidxmsi \
 ))
 endif
 
@@ -665,6 +677,10 @@
     nputils \
     pdfimport_s \
     plugcon \
+       $(if $(filter $(COM),MSC), \
+        quickstarter \
+               seterror \
+    ) \
     ssleay32 \
     ooopathutils \
     sample \
diff --git a/RepositoryModule_ooo.mk b/RepositoryModule_ooo.mk
index 8bf0eed..4256564 100644
--- a/RepositoryModule_ooo.mk
+++ b/RepositoryModule_ooo.mk
@@ -174,6 +174,7 @@
        scripting \
        sd \
        sdext \
+       $(call gb_Helper_optional,DESKTOP,setup_native) \
        sfx2 \
        shell \
        slideshow \
diff --git a/postprocess/prj/build.lst b/postprocess/prj/build.lst
index 143147b..1f45920 100644
--- a/postprocess/prj/build.lst
+++ b/postprocess/prj/build.lst
@@ -1,2 +1,2 @@
-po      postprocess     ::      HELP:helpcontent2 ODK:odk DESKTOP:setup_native sysui tail_build 
NULL
+po      postprocess     ::      HELP:helpcontent2 ODK:odk sysui tail_build NULL
 po     postprocess\prj         nmake   -       all     po_prj NULL
diff --git a/setup_native/CustomTarget_mac.mk b/setup_native/CustomTarget_mac.mk
new file mode 100644
index 0000000..4500710
--- /dev/null
+++ b/setup_native/CustomTarget_mac.mk
@@ -0,0 +1,29 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_CustomTarget_CustomTarget,setup_native/mac))
+
+$(eval $(call gb_CustomTarget_register_target,setup_native/mac,macinstall.ulf))
+
+#FIXME: generalize rule? ripped off from ScpMergeTarget
+ifneq ($(WITH_LANG),)
+$(call gb_CustomTarget_get_workdir,setup_native/mac)/macinstall.ulf: mac_POFILES := $(foreach 
lang,$(gb_TRANS_LANGS),$(gb_POLOCATION)/$(lang)/$(patsubst %/,%,$(dir $@)).po)
+$(call gb_CustomTarget_get_workdir,setup_native/mac)/macinstall.ulf: 
$(SRCDIR)/setup_native/source/mac/macinstall.ulf | $(call 
gb_Executable_get_runtime_dependencies,ulfex)
+       $(call gb_Output_announce,$@,$(true),SUM,1)
+       MERGEINPUT=`$(gb_MKTEMP)` && \
+       echo $(mac_POFILES) > $${MERGEINPUT} && \
+       $(call gb_Helper_abbreviate_dirs,\
+       $(call gb_Executable_get_command,ulfconv) -p setup_native -i $< -o $@ -m $${MERGEINPUT} -l 
all ) && \
+       rm -rf $${MERGEINPUT}
+else
+$(call gb_CustomTarget_get_workdir,setup_native/mac)/macinstall.ulf: 
$(SRCDIR)/setup_native/source/mac/macinstall.ulf 
+       cp $< $@
+endif
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/CustomTarget_scripts.mk b/setup_native/CustomTarget_scripts.mk
new file mode 100644
index 0000000..468714f
--- /dev/null
+++ b/setup_native/CustomTarget_scripts.mk
@@ -0,0 +1,57 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+scripts_WORKDIR :=$(call gb_CustomTarget_get_workdir,setup_native/scripts)
+
+$(eval $(call gb_CustomTarget_CustomTarget,setup_native/scripts))
+
+ifeq ($(OS),LINUX)
+ifneq ($(filter rpm,$(PKGFORMAT)),)
+$(eval $(call gb_CustomTarget_register_targets,setup_native/scripts,\
+       install \
+       uninstall \
+       fake-db-1.0-0.noarch.rpm \
+))
+
+$(scripts_WORKDIR)/fake-db-1.0-0.noarch.rpm: $(SRCDIR)/setup_native/scripts/fake-db.spec
+       mkdir -p $(scripts_WORKDIR)/fake-db-root
+       $(RPM) --define "_builddir $(scripts_WORKDIR)/fake-db-root" \
+               --define "_rpmdir $(scripts_WORKDIR)" -bb $@
+       chmod g+w $(scripts_WORKDIR)/fake-db-root
+
+$(scripts_WORKDIR)/install: $(SRCDIR)/setup_native/scripts/install_linux.sh 
$(scripts_WORKDIR)/fake-db-1.0-0.noarch.rpm
+       $(SRCDIR)/setup_native/scripts/install_create.pl $< $@
+       chmod 775 $@
+
+$(scripts_WORKDIR)/uninstall: $(SRCDIR)/setup_native/scripts/uninstall_linux.sh
+       cat $< | tr -d "\015" > $@
+       chmod 775 $@
+endif
+endif
+
+ifeq ($(OS),SOLARIS)
+$(eval $(call gb_CustomTarget_register_targets,setup_native/scripts,\
+       install \
+       uninstall \
+       getuid.so.stripped \
+))
+
+$(scripts_WORKDIR)/getuid.so.stripped: $(call gb_Library_get_target,getuid) 
+       cp $< $@
+       /usr/ccs/bin/strip $@
+$(scripts_WORKDIR)/install: $(SRCDIR)/setup_native/scripts/install_solaris.sh 
$(scripts_WORKDIR)/getuid.so.stripped
+       $(SRCDIR)/setup_native/scripts/install_create.pl $< $@
+       chmod 775 $@
+
+$(scripts_WORKDIR)/uninstall: $(SRCDIR)/setup_native/scripts/uninstall_solaris.sh 
$(scripts_WORKDIR)/getuid.so.stripped
+       $(SRCDIR)/setup_native/scripts/install_create.pl $< $@
+       chmod 775 $@
+endif
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/CustomTarget_spell.mk b/setup_native/CustomTarget_spell.mk
new file mode 100644
index 0000000..02c4782
--- /dev/null
+++ b/setup_native/CustomTarget_spell.mk
@@ -0,0 +1,17 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_CustomTarget_CustomTarget,setup_native/spell))
+
+$(eval $(call gb_CustomTarget_register_target,setup_native/spell,spellchecker_selection.hxx))
+
+$(call gb_CustomTarget_get_workdir,setup_native/spell)/spellchecker_selection.hxx: 
$(SRCDIR)/setup_native/source/packinfo/spellchecker_selection.txt 
$(SRCDIR)/setup_native/source/packinfo/spellchecker_selection.pl 
+       $(PERL) -w $(SRCDIR)/setup_native/source/packinfo/spellchecker_selection.pl  <$< >$@
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/CustomTarget_wintools.mk b/setup_native/CustomTarget_wintools.mk
new file mode 100644
index 0000000..15017d5
--- /dev/null
+++ b/setup_native/CustomTarget_wintools.mk
@@ -0,0 +1,38 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+wintools_WORKDIR := $(call gb_CustomTarget_get_workdir,setup_native/wintools)
+wintools_SRCDIR := $(SRCDIR)/setup_native/source/win32/wintools
+
+$(eval $(call gb_CustomTarget_CustomTarget,setup_native/wintools))
+
+$(eval $(call gb_CustomTarget_register_targets,setup_native/wintools,\
+       makecab.exe \
+       msidb.exe \
+       msiinfo.exe \
+       msimsp.exe \
+       msitran.exe \
+))
+
+$(wintools_WORKDIR)/makecab.exe: $(wintools_SRCDIR)/makecab.c $(wintools_SRCDIR)/parseddf.c
+       $(WINEGCC) -o $@ $< -m32 -mconsole -lmsi
+
+$(wintools_WORKDIR)/msidb.exe: $(wintools_SRCDIR)/msidb.c
+       $(WINEGCC) -o $@ $< -m32 -municode -lmsi
+
+$(wintools_WORKDIR)/msiinfo.exe: $(wintools_SRCDIR)/msiinfo.c
+       $(WINEGCC) -o $@ $< -m32 -mconsole -municode -lmsi
+
+$(wintools_WORKDIR)/msimsp.exe: $(wintools_SRCDIR)/msimsp.c
+       $(WINEGCC) -o $@ $< -m32 -mconsole -lmsi
+
+$(wintools_WORKDIR)/msitran.exe: $(wintools_SRCDIR)/msitran.c
+       $(WINEGCC) -o $@ $< -m32 -mconsole -lmsi
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Library_getuid.mk b/setup_native/Library_getuid.mk
new file mode 100644
index 0000000..764128d
--- /dev/null
+++ b/setup_native/Library_getuid.mk
@@ -0,0 +1,25 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Library_Library,getuid))
+
+ifeq ($(OS),LINUX)
+$(eval $(call gb_Library_add_defs,getuid,\
+    -D_GNU_SOURCE \
+))
+endif
+$(eval $(call gb_Library_add_cobjects,getuid,\
+    setup_native/scripts/source/getuid \
+))
+
+$(eval $(call gb_Library_add_libs,getuid,\
+       -ldl \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Library_instooofiltmsi.mk b/setup_native/Library_instooofiltmsi.mk
new file mode 100644
index 0000000..c37f9ff
--- /dev/null
+++ b/setup_native/Library_instooofiltmsi.mk
@@ -0,0 +1,16 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Library_Library,instooofiltmsi))
+
+$(eval $(call gb_Library_add_exception_objects,instooofiltmsi,\
+    setup_native/source/win32/customactions/indexingfilter/restartindexingservice \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Library_jfregca.mk b/setup_native/Library_jfregca.mk
new file mode 100644
index 0000000..9dcb3c5
--- /dev/null
+++ b/setup_native/Library_jfregca.mk
@@ -0,0 +1,21 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Library_Library,jfregca))
+
+$(eval $(call gb_Library_add_exception_objects,jfregca,\
+    setup_native/source/win32/customactions/javafilter/jfregca \
+))
+
+$(eval $(call gb_Library_use_system_win32_libs,jfregca,\
+       msi \
+       advapi32 \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Library_qslnkmsi.mk b/setup_native/Library_qslnkmsi.mk
new file mode 100644
index 0000000..602c046
--- /dev/null
+++ b/setup_native/Library_qslnkmsi.mk
@@ -0,0 +1,26 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Library_Library,qslnkmsi))
+
+$(eval $(call gb_Library_add_exception_objects,qslnkmsi,\
+    setup_native/source/win32/customactions/quickstarter/remove_quickstart_link \
+))
+
+$(eval $(call gb_Library_use_static_libraries,qslnkmsi,\
+       quickstarter \
+))
+
+$(eval $(call gb_Library_use_system_win32_libs,qslnkmsi,\
+    msi \
+       advapi32 \
+       shell32 \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Library_reg4allmsdoc.mk b/setup_native/Library_reg4allmsdoc.mk
new file mode 100644
index 0000000..819fb7b
--- /dev/null
+++ b/setup_native/Library_reg4allmsdoc.mk
@@ -0,0 +1,30 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Library_Library,reg4allmsdoc))
+
+$(eval $(call gb_Library_add_defs,reg4allmsdoc,\
+       -DUNICODE \
+       -D_UNICODE \
+))
+
+$(eval $(call gb_Library_add_exception_objects,reg4allmsdoc,\
+    setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi \
+))
+
+$(eval $(call gb_Library_use_system_win32_libs,reg4allmsdoc,\
+        msi \
+       kernel32 \
+       user32 \
+       advapi32 \
+       shell32 \
+       shlwapi \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Library_regactivex.mk b/setup_native/Library_regactivex.mk
new file mode 100644
index 0000000..fdb5404
--- /dev/null
+++ b/setup_native/Library_regactivex.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Library_Library,regactivex))
+
+$(eval $(call gb_Library_add_exception_objects,regactivex,\
+    setup_native/source/win32/customactions/regactivex/regactivex \
+))
+
+$(eval $(call gb_Library_use_system_win32_libs,regactivex,\
+        msi \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Library_regpatchactivex.mk b/setup_native/Library_regpatchactivex.mk
new file mode 100644
index 0000000..4926fd9
--- /dev/null
+++ b/setup_native/Library_regpatchactivex.mk
@@ -0,0 +1,24 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Library_Library,regpatchactivex))
+
+$(eval $(call gb_Library_add_exception_objects,regpatchactivex,\
+    setup_native/source/win32/customactions/regpatchactivex/regpatchactivex \
+))
+
+$(eval $(call gb_Library_use_system_win32_libs,regpatchactivex,\
+        msi \
+       kernel32 \
+       user32 \
+       advapi32 \
+       shell32 \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Library_sdqsmsi.mk b/setup_native/Library_sdqsmsi.mk
new file mode 100644
index 0000000..d01cf93
--- /dev/null
+++ b/setup_native/Library_sdqsmsi.mk
@@ -0,0 +1,26 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Library_Library,sdqsmsi))
+
+$(eval $(call gb_Library_add_exception_objects,sdqsmsi,\
+    setup_native/source/win32/customactions/quickstarter/shutdown_quickstart \
+))
+
+$(eval $(call gb_Library_use_static_libraries,sdqsmsi,\
+       quickstarter \
+))
+
+$(eval $(call gb_Library_use_system_win32_libs,sdqsmsi,\
+       msi \
+       advapi32 \
+       shell32 \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Library_sellangmsi.mk b/setup_native/Library_sellangmsi.mk
new file mode 100644
index 0000000..e32e7f6
--- /dev/null
+++ b/setup_native/Library_sellangmsi.mk
@@ -0,0 +1,29 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Library_Library,sellangmsi))
+
+$(eval $(call gb_Library_add_defs,sellangmsi,\
+       -D_STLP_USE_STATIC_LIB \
+))
+
+$(eval $(call gb_Library_add_exception_objects,sellangmsi,\
+    setup_native/source/win32/customactions/sellang/sellang \
+    setup_native/source/win32/customactions/sellang/sorttree \
+))
+
+$(eval $(call gb_Library_use_system_win32_libs,sellangmsi,\
+    msi \
+       kernel32 \
+       user32 \
+       advapi32 \
+       shell32 \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Library_shlxtmsi.mk b/setup_native/Library_shlxtmsi.mk
new file mode 100644
index 0000000..dfc8f34
--- /dev/null
+++ b/setup_native/Library_shlxtmsi.mk
@@ -0,0 +1,37 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Library_Library,shlxtmsi))
+
+$(eval $(call gb_Library_use_external,shlxtmsi,boost_headers))
+
+$(eval $(call gb_Library_add_exception_objects,shlxtmsi,\
+    setup_native/source/win32/customactions/shellextensions/startmenuicon \
+    setup_native/source/win32/customactions/shellextensions/upgrade \
+    setup_native/source/win32/customactions/shellextensions/iconcache \
+    setup_native/source/win32/customactions/shellextensions/migrateinstallpath \
+    setup_native/source/win32/customactions/shellextensions/completeinstallpath \
+    setup_native/source/win32/customactions/shellextensions/checkdirectory \
+    setup_native/source/win32/customactions/shellextensions/layerlinks \
+    setup_native/source/win32/customactions/shellextensions/vistaspecial \
+    setup_native/source/win32/customactions/shellextensions/checkpatches \
+))
+
+$(eval $(call gb_Library_use_static_libraries,shlxtmsi,\
+       seterror \
+))
+
+$(eval $(call gb_Library_use_system_win32_libs,shlxtmsi,\
+    msi \
+       advapi32 \
+       shell32 \
+       psapi \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Library_sn_tools.mk b/setup_native/Library_sn_tools.mk
new file mode 100644
index 0000000..d0d273f
--- /dev/null
+++ b/setup_native/Library_sn_tools.mk
@@ -0,0 +1,25 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Library_Library,sn_tools))
+
+$(eval $(call gb_Library_add_exception_objects,sn_tools,\
+    setup_native/source/win32/customactions/tools/checkversion \
+))
+
+$(eval $(call gb_Library_use_static_libraries,sn_tools,\
+       seterror \
+))
+
+$(eval $(call gb_Library_use_system_win32_libs,sn_tools,\
+        msi \
+        advapi32 \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Library_thidxmsi.mk b/setup_native/Library_thidxmsi.mk
new file mode 100644
index 0000000..1647bb3
--- /dev/null
+++ b/setup_native/Library_thidxmsi.mk
@@ -0,0 +1,28 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Library_Library,thidxmsi))
+
+$(eval $(call gb_Library_add_defs,thidxmsi,\
+       -D_STLP_USE_STATIC_LIB \
+))
+
+$(eval $(call gb_Library_add_exception_objects,thidxmsi,\
+    setup_native/source/win32/customactions/thesaurus/thesaurus \
+))
+
+$(eval $(call gb_Library_use_system_win32_libs,thidxmsi,\
+    msi \
+       kernel32 \
+       user32 \
+       advapi32 \
+       shell32 \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Makefile b/setup_native/Makefile
new file mode 100644
index 0000000..ccb1c85
--- /dev/null
+++ b/setup_native/Makefile
@@ -0,0 +1,7 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+
+module_directory:=$(dir $(realpath $(firstword $(MAKEFILE_LIST))))
+
+include $(module_directory)/../solenv/gbuild/partial_build.mk
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Module_setup_native.mk b/setup_native/Module_setup_native.mk
new file mode 100644
index 0000000..81a0ed0
--- /dev/null
+++ b/setup_native/Module_setup_native.mk
@@ -0,0 +1,60 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Module_Module,setup_native))
+
+$(eval $(call gb_Module_add_targets,setup_native,\
+       $(if $(filter LINUX SOLARIS,$(OS)),Library_getuid) \
+       CustomTarget_spell \
+       Package_packinfo \
+       Package_spell \
+       Package_misc \
+))
+
+ifeq ($(OS),MACOSX)
+$(eval $(call gb_Module_add_targets,setup_native,\
+       CustomTarget_mac \
+       Package_mac \
+))
+endif
+
+ifeq ($(OS),WNT)
+
+ifeq ($(COM),MSC)
+$(eval $(call gb_Module_add_targets,setup_native,\
+       Library_instooofiltmsi \
+       Library_jfregca \
+       Library_qslnkmsi \
+       Library_reg4allmsdoc \
+       Library_regactivex \
+       Library_regpatchactivex \
+       Library_sdqsmsi \
+       Library_sellangmsi \
+       Library_shlxtmsi \
+       Library_sn_tools \
+       Library_thidxmsi \
+       StaticLibrary_quickstarter \
+       StaticLibrary_seterror \
+))
+else
+$(eval $(call gb_Module_add_targets,setup_native,\
+       CustomTarget_wintools \
+       Package_wintools \
+))
+endif
+
+else
+$(eval $(call gb_Module_add_targets,setup_native,\
+       CustomTarget_scripts \
+       Package_scripts \
+       Package_scripts_generated \
+))
+endif
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Package_misc.mk b/setup_native/Package_misc.mk
new file mode 100644
index 0000000..90e37db
--- /dev/null
+++ b/setup_native/Package_misc.mk
@@ -0,0 +1,25 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Package_Package,setup_native/misc,$(SRCDIR)/setup_native/source))
+
+$(eval $(call 
gb_Package_add_file,setup_native/misc,bin/Info.plist.langpack,mac/Info.plist.langpack))
+$(eval $(call 
gb_Package_add_file,setup_native/misc,bin/ooo3_installer.icns,mac/ooo3_installer.icns))
+$(eval $(call gb_Package_add_file,setup_native/misc,bin/osl/DS_Store,mac/ooo/DS_Store))
+$(eval $(call gb_Package_add_file,setup_native/misc,bin/osl/DS_Store_Dev,mac/ooo/DS_Store_Dev))
+$(eval $(call 
gb_Package_add_file,setup_native/misc,bin/osl/DS_Store_Langpack,mac/ooo/DS_Store_Langpack))
+$(eval $(call 
gb_Package_add_file,setup_native/misc,bin/osl/osxdndinstall.png,mac/ooo/osxdndinstall.png))
+$(eval $(call gb_Package_add_file,setup_native/misc,bin/root3.dat,linux/root3.dat))
+$(eval $(call gb_Package_add_file,setup_native/misc,bin/root4.dat,linux/root4.dat))
+$(eval $(call gb_Package_add_file,setup_native/misc,bin/root5.dat,linux/root5.dat))
+$(eval $(call gb_Package_add_file,setup_native/misc,bin/patchlist.txt,win32/patchlist.txt))
+$(eval $(call gb_Package_add_file,setup_native/misc,bin/desktophelper.txt,win32/desktophelper.txt))
+$(eval $(call gb_Package_add_file,setup_native/misc,bin/get_retval.bat,win32/get_retval.bat))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Package_packinfo.mk b/setup_native/Package_packinfo.mk
new file mode 100644
index 0000000..945d3dc
--- /dev/null
+++ b/setup_native/Package_packinfo.mk
@@ -0,0 +1,36 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Package_Package,setup_native/packinfo,$(SRCDIR)/setup_native/source/packinfo))
+
+$(eval $(call 
gb_Package_add_file,setup_native/packinfo,bin/solariscopyrightfile,solariscopyrightfile))
+$(eval $(call gb_Package_add_file,setup_native/packinfo,bin/linuxcopyrightfile,linuxcopyrightfile))
+$(eval $(call gb_Package_add_file,setup_native/packinfo,bin/libreoffice.pcp,libreoffice.pcp))
+$(eval $(call 
gb_Package_add_file,setup_native/packinfo,bin/openofficelanguagepack.pcp,openofficelanguagepack.pcp))
+$(eval $(call gb_Package_add_file,setup_native/packinfo,bin/ure.pcp,ure.pcp))
+$(eval $(call 
gb_Package_add_file,setup_native/packinfo,bin/finals_instsetoo.txt,finals_instsetoo.txt))
+$(eval $(call gb_Package_add_file,setup_native/packinfo,bin/package.txt,package.txt))
+$(eval $(call gb_Package_add_file,setup_native/packinfo,bin/package_names.txt,package_names.txt))
+$(eval $(call 
gb_Package_add_file,setup_native/packinfo,bin/package_names_ext.txt,package_names_ext.txt))
+$(eval $(call 
gb_Package_add_file,setup_native/packinfo,bin/packinfo_accessories.txt,packinfo_accessories.txt))
+$(eval $(call gb_Package_add_file,setup_native/packinfo,bin/packinfo_brand.txt,packinfo_brand.txt))
+$(eval $(call 
gb_Package_add_file,setup_native/packinfo,bin/packinfo_extensions.txt,packinfo_extensions.txt))
+$(eval $(call 
gb_Package_add_file,setup_native/packinfo,bin/packinfo_office.txt,packinfo_office.txt))
+$(eval $(call 
gb_Package_add_file,setup_native/packinfo,bin/packinfo_office_help.txt,packinfo_office_help.txt))
+$(eval $(call 
gb_Package_add_file,setup_native/packinfo,bin/packinfo_office_lang.txt,packinfo_office_lang.txt))
+$(eval $(call gb_Package_add_file,setup_native/packinfo,bin/packinfo_sdkoo.txt,packinfo_sdkoo.txt))
+$(eval $(call gb_Package_add_file,setup_native/packinfo,bin/packinfo_test.txt,packinfo_test.txt))
+$(eval $(call gb_Package_add_file,setup_native/packinfo,bin/packinfo_ure.txt,packinfo_ure.txt))
+$(eval $(call gb_Package_add_file,setup_native/packinfo,bin/shellscripts.txt,shellscripts.txt))
+$(eval $(call 
gb_Package_add_file,setup_native/packinfo,bin/shellscripts_core01.txt,shellscripts_core01.txt))
+$(eval $(call 
gb_Package_add_file,setup_native/packinfo,bin/shellscripts_module.txt,shellscripts_module.txt))
+$(eval $(call 
gb_Package_add_file,setup_native/packinfo,bin/shellscripts_root.txt,shellscripts_root.txt))
+$(eval $(call 
gb_Package_add_file,setup_native/packinfo,bin/spellchecker_selection.txt,spellchecker_selection.txt))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Package_scripts.mk b/setup_native/Package_scripts.mk
new file mode 100644
index 0000000..82156a5
--- /dev/null
+++ b/setup_native/Package_scripts.mk
@@ -0,0 +1,24 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Package_Package,setup_native/scripts,$(SRCDIR)/setup_native/scripts))
+
+$(eval $(call gb_Package_add_file,setup_native/scripts,bin/admin.pl,admin.pl))
+$(eval $(call gb_Package_add_file,setup_native/scripts,bin/mac_install.script,mac_install.script))
+$(eval $(call 
gb_Package_add_file,setup_native/scripts,bin/osx_install_languagepack.applescript,osx_install_languagepack.applescript))
+$(eval $(call gb_Package_add_file,setup_native/scripts,bin/langpackscript.sh,langpackscript.sh))
+$(eval $(call gb_Package_add_file,setup_native/scripts,bin/javaloader.sh,javaloader.sh))
+$(eval $(call gb_Package_add_file,setup_native/scripts,bin/update,update.sh))
+$(eval $(call gb_Package_add_file,setup_native/scripts,bin/downloadscript.sh,downloadscript.sh))
+
+ifeq ($(ENABLE_ONLINUE_UPDATE),TRUE)
+$(eval $(call gb_Package_add_file,setup_native/scripts,bin/unpack_update,unpack_update.sh))
+endif
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Package_scripts_generated.mk b/setup_native/Package_scripts_generated.mk
new file mode 100644
index 0000000..df350e4
--- /dev/null
+++ b/setup_native/Package_scripts_generated.mk
@@ -0,0 +1,24 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Package_Package,scripts_generated,$(call 
gb_CustomTarget_get_workdir,setup_native/scripts)))
+
+ifeq ($(OS),SOLARIS)
+$(eval $(call gb_Package_add_file,scripts,bin/userscripts/install,install))
+$(eval $(call gb_Package_add_file,scripts,bin/userscripts/uninstall,uninstall))
+endif
+
+ifeq ($(OS),LINUX)
+ifneq ($(filter-out rpm,$(PKGFORMAT)),)
+$(eval $(call gb_Package_add_file,scripts,bin/userscripts/install,install))
+$(eval $(call gb_Package_add_file,scripts,bin/userscripts/uninstall,uninstall))
+$(eval $(call 
gb_Package_add_file,scripts,bin/openoffice-userland-1.0-0.noarch.rpm,fake-db-1.0-0.noarch.rpm))
+endif
+endif
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Package_spell.mk b/setup_native/Package_spell.mk
new file mode 100644
index 0000000..a951a2d
--- /dev/null
+++ b/setup_native/Package_spell.mk
@@ -0,0 +1,14 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Package_Package,spell,$(call gb_CustomTarget_get_workdir,setup_native/spell)))
+
+$(eval $(call gb_Package_add_file,spell,inc/spellchecker_selection.hxx,spellchecker_selection.hxx))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Package_ulf.mk b/setup_native/Package_ulf.mk
new file mode 100644
index 0000000..14f7b72
--- /dev/null
+++ b/setup_native/Package_ulf.mk
@@ -0,0 +1,14 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Package_Package,setup_native/ulf,$(SRCDIR)/setup_native/source/mac))
+
+$(eval $(call gb_Package_add_file,setup_native/misc,bin/macinstall.ulf,mac/macinstall.ulf))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/Package_wintools.mk b/setup_native/Package_wintools.mk
new file mode 100644
index 0000000..422b9cf
--- /dev/null
+++ b/setup_native/Package_wintools.mk
@@ -0,0 +1,20 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Package_Package,wintools,$(call 
gb_CustomTarget_get_workdir,setup_native/wintools)))
+
+$(eval $(call gb_Package_add_files,scripts,bin,\
+       mackcab.exe \
+       msidb.exe \
+       msiinfo.exe \
+       msimsp.exe \
+       msitran.exe\
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/StaticLibrary_quickstarter.mk b/setup_native/StaticLibrary_quickstarter.mk
new file mode 100755
index 0000000..1cd916c
--- /dev/null
+++ b/setup_native/StaticLibrary_quickstarter.mk
@@ -0,0 +1,16 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_StaticLibrary_StaticLibrary,quickstarter))
+
+$(eval $(call gb_StaticLibrary_add_exception_objects,quickstarter,\
+    setup_native/source/win32/customactions/quickstarter/quickstarter \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/StaticLibrary_seterror.mk b/setup_native/StaticLibrary_seterror.mk
new file mode 100755
index 0000000..9ba8c3c
--- /dev/null
+++ b/setup_native/StaticLibrary_seterror.mk
@@ -0,0 +1,16 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_StaticLibrary_StaticLibrary,seterror))
+
+$(eval $(call gb_StaticLibrary_add_exception_objects,seterror,\
+    setup_native/source/win32/customactions/tools/seterror \
+))
+
+# vim: set noet sw=4 ts=4:
diff --git a/setup_native/prj/build.lst b/setup_native/prj/build.lst
index 20ad1e58..be44d4e 100644
--- a/setup_native/prj/build.lst
+++ b/setup_native/prj/build.lst
@@ -1,21 +1,2 @@
 pk     setup_native    :       DESKTOP:l10ntools soltools sal NULL
-pk  setup_native                                          usr1    - all  sn_mkout NULL
-pk  setup_native\scripts\source                           nmake   -  u   sn_source NULL
-pk  setup_native\scripts                                  nmake   -  u   sn_scripts sn_source.u 
NULL
-pk  setup_native\source\mac                               nmake   -  u   sn_mac NULL
-pk  setup_native\source\packinfo                          nmake   -  w   sn_packinfo NULL
-pk  setup_native\source\win32\customactions\tools         nmake   -  w   sn_tools NULL
-pk  setup_native\source\win32\customactions\regactivex    nmake   -  w   sn_regactivex NULL
-pk  setup_native\source\win32\customactions\regpatchactivex nmake -  w   sn_regpatchactivex NULL
-pk  setup_native\source\win32\customactions\reg4allmsdoc  nmake   -  w   sn_reg4allmsdoc NULL
-pk  setup_native\source\win32\customactions\sellang       nmake   -  w   sn_sellang sn_packinfo.w 
NULL
-pk  setup_native\source\win32\customactions\thesaurus     nmake   -  w   sn_thesaurus NULL
-pk  setup_native\source\win32\customactions\javafilter    nmake   -  w   sn_javafilter NULL
-pk  setup_native\source\win32\customactions\quickstarter  nmake   -  w   sn_quickstarter NULL
-pk  setup_native\source\win32\customactions\shellextensions nmake   -  w   sn_shellextensions 
sn_tools.w NULL
-pk  setup_native\source\win32\customactions\indexingfilter nmake   -  w   sn_indexingfilter NULL
-pk  setup_native\source\win32\wintools\makecab            nmake   -  u   sn_makecab NULL
-pk  setup_native\source\win32\wintools\msidb              nmake   -  u   sn_msidb NULL
-pk  setup_native\source\win32\wintools\msiinfo            nmake   -  u   sn_msiinfo NULL
-pk  setup_native\source\win32\wintools\msimsp             nmake   -  u   sn_msimsp NULL
-pk  setup_native\source\win32\wintools\msitran            nmake   -  u   sn_msitrans NULL
+pk  setup_native\prj                           nmake   -  u   sn_setup_native NULL
diff --git a/setup_native/prj/d.lst b/setup_native/prj/d.lst
index 15abb0f..e69de29 100644
--- a/setup_native/prj/d.lst
+++ b/setup_native/prj/d.lst
@@ -1,42 +0,0 @@
-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
-..\%__SRC%\bin\uninstall %_DEST%\bin\userscripts\uninstall
-..\%__SRC%\bin\noarch\fake-db-1.0-0.noarch.rpm %_DEST%\bin\openoffice.org-userland-1.0-0.noarch.rpm
-
-..\%__SRC%\bin\langpackscript.sh %_DEST%\bin\langpackscript.sh
-..\%__SRC%\bin\downloadscript.sh %_DEST%\bin\downloadscript.sh
-..\%__SRC%\bin\unpack_update.sh %_DEST%\bin\unpack_update
-..\%__SRC%\bin\update.sh %_DEST%\bin\update
-..\%__SRC%\bin\javaloader.sh %_DEST%\bin\javaloader.sh
-..\%__SRC%\misc\mac_ulffiles_dest\*.ulf %_DEST%\bin\*.ulf
-..\source\win32\patchlist.txt %_DEST%\bin\patchlist.txt
-..\source\win32\desktophelper.txt %_DEST%\bin\desktophelper.txt
-..\source\win32\get_retval.bat %_DEST%\bin\get_retval.bat
-..\source\linux\*.dat %_DEST%\bin\*.dat
-..\source\mac\*.icns %_DEST%\bin\*.icns
-..\source\mac\Info.plist.langpack %_DEST%\bin\Info.plist.langpack
-..\source\mac\ooo\osxdndinstall.png %_DEST%\bin\osl\osxdndinstall.png
-..\source\mac\ooo\DS_Store %_DEST%\bin\osl\DS_Store
-..\source\mac\ooo\DS_Store_Dev %_DEST%\bin\osl\DS_Store_Dev
-..\source\mac\ooo\DS_Store_Langpack %_DEST%\bin\osl\DS_Store_Langpack
-..\source\packinfo\solariscopyrightfile %_DEST%\bin\solariscopyrightfile
-..\source\packinfo\linuxcopyrightfile %_DEST%\bin\linuxcopyrightfile
-..\source\packinfo\*.txt %_DEST%\bin\*.txt
-..\source\packinfo\*.pcp %_DEST%\bin\*.pcp
-..\scripts\admin.pl %_DEST%\bin\admin.pl
-..\scripts\*.txt %_DEST%\bin\*.txt
-..\scripts\mac_install.script %_DEST%\bin\mac_install.script
-..\scripts\osx_install_languagepack.applescript %_DEST%\bin\osx_install_languagepack.applescript
-
-..\%__SRC%\lib\getuid.so %_DEST%\bin\getuid.so
diff --git a/setup_native/prj/dmake b/setup_native/prj/dmake
deleted file mode 100644
index e69de29..0000000
--- a/setup_native/prj/dmake
+++ /dev/null
diff --git a/setup_native/scripts/makefile.mk b/setup_native/scripts/makefile.mk
deleted file mode 100644
index f7c828c..0000000
--- a/setup_native/scripts/makefile.mk
+++ /dev/null
@@ -1,90 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=..
-
-PRJNAME=setup_native
-TARGET=install
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE :     settings.mk
-.IF "$(L10N_framework)"==""
-# --- Files --------------------------------------------------------
-
-UNIXTEXT= \
-    $(BIN)$/langpackscript.sh \
-    $(BIN)$/javaloader.sh \
-    $(BIN)$/update.sh \
-    $(BIN)$/downloadscript.sh
-
-.IF "$(ENABLE_ONLINE_UPDATE)" == "TRUE"
-UNIXTEXT += $(BIN)$/unpack_update.sh
-.END
-
-NOARCH=$(BIN)$/noarch
-FAKEDB=$(NOARCH)/fake-db-1.0-0.noarch.rpm
-FAKEDBROOT=$(COMMONMISC)/$(TARGET)/fake-db-root
-
-# --- Targets ------------------------------------------------------
-
-.ENDIF # L10N_framework
-.INCLUDE :     target.mk
-.IF "$(L10N_framework)"==""
-.IF "$(OS)" == "SOLARIS" || ( "$(OS)" == "LINUX" && "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)" )
-
-ALLTAR: $(BIN)$/install $(BIN)$/uninstall
-
-$(BIN)$/install: install_$(OS:l).sh 
-    $(PERL) install_create.pl $& $@
-    -chmod 775 $@
-
-.ENDIF
-
-.IF "$(OS)" == "LINUX"
-.IF "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
-
-$(FAKEDB) : fake-db.spec 
-    $(MKDIRHIER) $(FAKEDBROOT)
-    $(RPM) --define "_builddir $(shell @cd $(FAKEDBROOT) && pwd)" --define "_rpmdir $(shell @cd 
$(BIN) && pwd)" -bb $<
-    chmod g+w $(NOARCH)
-
-$(BIN)$/install: $(FAKEDB)
-.ENDIF          # "$(PKGFORMAT)"!="$(PKGFORMAT:s/rpm//)"
-
-$(BIN)$/uninstall: uninstall_linux.sh
-    $(TYPE) $< | tr -d "\015" > $@
-    -chmod 775 $@
-
-.ENDIF          # "$(OS)" == "LINUX"
-
-.IF "$(OS)" == "SOLARIS"
-
-$(BIN)$/install: $(LB)$/getuid.so.stripped
-
-$(BIN)$/uninstall: uninstall_solaris.sh $(LB)$/getuid.so.stripped
-    $(PERL) install_create.pl $<  $@
-    -chmod 775 $@
-
-$(LB)$/getuid.so.stripped: $(LB)$/getuid.so
-    @$(COPY) $< $@
-    @/usr/ccs/bin/strip $@
-
-.ENDIF
-
-.ENDIF # L10N_framework
diff --git a/setup_native/scripts/source/makefile.mk b/setup_native/scripts/source/makefile.mk
deleted file mode 100644
index d4c86cb..0000000
--- a/setup_native/scripts/source/makefile.mk
+++ /dev/null
@@ -1,81 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=..$/..
-
-PRJNAME=setup_native
-TARGET=getuid
-
-NO_DEFAULT_STL=TRUE
-LIBSALCPPRT=$(0)
-LIBTARGET=NO
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE :  settings.mk
-
-# --- Files --------------------------------------------------------
-
-# no 'lib' prefix
-DLLPRE=
-
-# no _version.o
-VERSIONOBJ=
-
-.IF "$(OS)" == "LINUX" || "$(OS)" == "SOLARIS"
-
-.IF "$(OS)" == "LINUX" 
-CFLAGS+=-D_GNU_SOURCE
-.ENDIF
-
-.IF "$(OS)" == "SOLARIS"
-.IF "$(CPUNAME)" == "INTEL"
-.IF "$(COM)" != "GCC"
-CFLAGS+=-D_KERNEL
-.ENDIF
-.ENDIF
-.ENDIF
-
-# this object must not be a Ultra SPARC binary, this does not
-# work with /usr/bin/sort and such. Needs to be 32 bit even in
-# 64 bit builds
-.IF "$(OS)" == "SOLARIS"
-.IF "$(COM)" != "GCC"
-.IF "$(CPUNAME)" == "SPARC"
-ENVCFLAGS=-xarch=v8
-.ENDIF
-.IF "$(CPU)"=="U"
-CFLAGSAPPEND+=-m32
-LINKFLAGSSHL+=-m32
-.ENDIF
-.ENDIF
-.ENDIF
-
-SLOFILES = $(SLO)$/getuid.obj
-
-SHL1OBJS=$(SLOFILES)
-SHL1TARGET=$(TARGET)
-SHL1STDLIBS=-ldl
-SHL1CODETYPE=C
-
-.ENDIF
-
-# --- Targets ------------------------------------------------------
-
-.INCLUDE :  target.mk
-
diff --git a/setup_native/source/mac/makefile.mk b/setup_native/source/mac/makefile.mk
deleted file mode 100644
index e79f26c..0000000
--- a/setup_native/source/mac/makefile.mk
+++ /dev/null
@@ -1,48 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=..$/..
-
-PRJNAME=setup_native
-TARGET=mac_ulffiles
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE :  settings.mk
-
-# ------------------------------------------------------------------
-
-ULFFILES = macinstall.ulf
-
-ULFDESTFILES=$(foreach,i,$(ULFFILES) $(MISC)$/$(TARGET)_dest$/$i)
-
-# --- Targets ------------------------------------------------------
-
-.IF "$(OS)"=="MACOSX" 
-ALLTAR : $(ULFDESTFILES)
-.ENDIF
-
-.INCLUDE :     target.mk
-
-.IF "$(WITH_LANG)"!=""
-$(MISC)$/$(TARGET)_dest$/%.ulf : $(COMMONMISC)$/$(TARGET)$/%.ulf
-.ELSE                  # "$(WITH_LANG)"!=""
-$(MISC)$/$(TARGET)_dest$/%.ulf : %.ulf
-.ENDIF                 # "$(WITH_LANG)"!=""
-    @-$(MKDIRHIER) $(MISC)$/$(TARGET)_dest
-    $(COPY) $< $@
diff --git a/setup_native/source/packinfo/makefile.mk b/setup_native/source/packinfo/makefile.mk
deleted file mode 100644
index a2c6478..0000000
--- a/setup_native/source/packinfo/makefile.mk
+++ /dev/null
@@ -1,24 +0,0 @@
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-PRJ = ../..
-PRJNAME = setup_native
-TARGET = packinfo
-
-.INCLUDE: settings.mk
-
-ALLTAR: $(OUT)/inc/spellchecker_selection.hxx
-
-.INCLUDE: target.mk
-
-$(OUT)/inc/spellchecker_selection.hxx .ERRREMOVE : spellchecker_selection.pl \
-        spellchecker_selection.txt
-    $(PERL) -w spellchecker_selection.pl <spellchecker_selection.txt >$@
-
-# vim: set noet sw=4 ts=4:
diff --git a/setup_native/source/win32/customactions/indexingfilter/exports.dxp 
b/setup_native/source/win32/customactions/indexingfilter/exports.dxp
deleted file mode 100644
index bb23f3d..0000000
--- a/setup_native/source/win32/customactions/indexingfilter/exports.dxp
+++ /dev/null
@@ -1,3 +0,0 @@
-RestartIndexingService
-
-    
\ No newline at end of file
diff --git a/setup_native/source/win32/customactions/indexingfilter/makefile.mk 
b/setup_native/source/win32/customactions/indexingfilter/makefile.mk
deleted file mode 100644
index 874c965..0000000
--- a/setup_native/source/win32/customactions/indexingfilter/makefile.mk
+++ /dev/null
@@ -1,59 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=instooofiltmsi
-
-# --- Settings -----------------------------------------------------
-
-ENABLE_EXCEPTIONS=TRUE
-DYNAMIC_CRT=
-NO_DEFAULT_STL=TRUE
-USE_DEFFILE=TRUE
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-
-.IF "$(OS)"=="WNT"
-
-UWINAPILIB=
-
-SLOFILES =     $(SLO)$/restartindexingservice.obj
-
-SHL1LIBS = $(SLB)$/$(TARGET).lib 
-
-SHL1TARGET = $(TARGET)
-SHL1IMPLIB = i$(TARGET)
-
-SHL1DEF = $(MISC)$/$(SHL1TARGET).def
-SHL1DEPN = $(SLB)$/$(TARGET).lib
-SHL1BASE = 0x1c000000
-DEF1NAME=$(SHL1TARGET)
-DEF1EXPORTFILE=exports.dxp
-
-.ENDIF
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-# -------------------------------------------------------------------------
-
-
diff --git a/setup_native/source/win32/customactions/indexingfilter/restartindexingservice.cxx 
b/setup_native/source/win32/customactions/indexingfilter/restartindexingservice.cxx
index f68936f..d730807 100644
--- a/setup_native/source/win32/customactions/indexingfilter/restartindexingservice.cxx
+++ b/setup_native/source/win32/customactions/indexingfilter/restartindexingservice.cxx
@@ -148,7 +148,7 @@
     }
 }
 
-extern "C" UINT __stdcall RestartIndexingService(MSIHANDLE)
+extern "C" __declspec(dllexport) UINT __stdcall RestartIndexingService(MSIHANDLE)
 {
     //MessageBox(NULL, TEXT("Restarting Indexing Service"), TEXT("Message"), MB_OK | 
MB_ICONINFORMATION);
 
diff --git a/setup_native/source/win32/customactions/javafilter/exports.dxp 
b/setup_native/source/win32/customactions/javafilter/exports.dxp
deleted file mode 100644
index 209a9ed..0000000
--- a/setup_native/source/win32/customactions/javafilter/exports.dxp
+++ /dev/null
@@ -1,2 +0,0 @@
-install_jf
-uninstall_jf
diff --git a/setup_native/source/win32/customactions/javafilter/jfregca.cxx 
b/setup_native/source/win32/customactions/javafilter/jfregca.cxx
index 77c48c5..841bdf6 100644
--- a/setup_native/source/win32/customactions/javafilter/jfregca.cxx
+++ b/setup_native/source/win32/customactions/javafilter/jfregca.cxx
@@ -92,7 +92,7 @@
     return TRUE;
 }
 
-extern "C" UINT install_jf ( MSIHANDLE hModule ) {
+extern "C" UINT __declspec(dllexport) install_jf ( MSIHANDLE hModule ) {
     bool bMulti = isMulti(hModule);
 #ifdef _JRGREG_DEBUG
     MessageBox(NULL, bMulti ? "Multi" : "Single", "Install", MB_OK);
@@ -103,7 +103,7 @@
     return ERROR_SUCCESS;
 }
 
-extern "C" UINT uninstall_jf ( MSIHANDLE hModule ) {
+extern "C" UINT _declspec(dllexport) uninstall_jf ( MSIHANDLE hModule ) {
     bool bMulti = isMulti(hModule);
 #ifdef _JRGREG_DEBUG
     MessageBox(NULL, bMulti ? "Multi" : "Single", "Uninstall", MB_OK);
diff --git a/setup_native/source/win32/customactions/javafilter/makefile.mk 
b/setup_native/source/win32/customactions/javafilter/makefile.mk
deleted file mode 100644
index aef948c..0000000
--- a/setup_native/source/win32/customactions/javafilter/makefile.mk
+++ /dev/null
@@ -1,61 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=jfregca
-
-
-# --- Settings -----------------------------------------------------
-
-NO_DEFAULT_STL=TRUE
-ENABLE_EXCEPTIONS=TRUE
-DYNAMIC_CRT=
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-
-.IF "$(OS)"=="WNT" && "$(WINDOWS_SDK_HOME)"!=""
-
-UWINAPILIB=
-
-SLOFILES =     $(SLO)$/jfregca.obj
-
-STDSHL += \
-    $(ADVAPI32LIB)\
-    $(MSILIB)
-
-SHL1LIBS = $(SLB)$/$(TARGET).lib 
-
-SHL1TARGET = $(TARGET)
-SHL1IMPLIB = i$(TARGET)
-
-SHL1DEF = $(MISC)$/$(SHL1TARGET).def
-SHL1DEPN = $(SLB)$/$(TARGET).lib
-SHL1BASE = 0x1c000000
-DEF1NAME=$(SHL1TARGET)
-DEF1EXPORTFILE=exports.dxp
-
-.ENDIF
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-# -------------------------------------------------------------------------
diff --git a/setup_native/source/win32/customactions/quickstarter/exports.dxp 
b/setup_native/source/win32/customactions/quickstarter/exports.dxp
deleted file mode 100644
index c1343f8..0000000
--- a/setup_native/source/win32/customactions/quickstarter/exports.dxp
+++ /dev/null
@@ -1,3 +0,0 @@
-InstallExecSequenceEntry
-DeinstallExecSequenceEntry
-    
\ No newline at end of file
diff --git a/setup_native/source/win32/customactions/quickstarter/makefile.mk 
b/setup_native/source/win32/customactions/quickstarter/makefile.mk
deleted file mode 100644
index d0a6a3c..0000000
--- a/setup_native/source/win32/customactions/quickstarter/makefile.mk
+++ /dev/null
@@ -1,84 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=quickstarter
-TARGET1=sdqsmsi
-TARGET2=qslnkmsi
-
-# --- Settings -----------------------------------------------------
-
-LIBTARGET=NO
-ENABLE_EXCEPTIONS=TRUE
-NO_DEFAULT_STL=TRUE
-DYNAMIC_CRT=
-USE_DEFFILE=TRUE
-
-.INCLUDE : settings.mk
-
-UWINAPILIB=
-
-# --- Files --------------------------------------------------------
-
-.IF "$(OS)"=="WNT" && "$(WINDOWS_SDK_HOME)"!=""
-
-STDSHL += \
-    $(ADVAPI32LIB)\
-    $(SHELL32LIB)\
-    $(MSILIB)
-
-.IF "$(COM)"=="GCC"
-STDSHL+=       \
-    $(KERNEL32LIB)\
-    -lmsvcrt
-.ENDIF
-
-SHL1OBJS =     $(SLO)$/shutdown_quickstart.obj \
-            $(SLO)$/quickstarter.obj
-
-SHL1TARGET = $(TARGET1)
-SHL1IMPLIB = i$(TARGET1)
-
-SHL1DEF = $(MISC)$/$(SHL1TARGET).def
-SHL1BASE = 0x1c000000
-DEF1NAME=$(SHL1TARGET)
-SHL1DEPN=$(SHL1OBJS)
-DEF1EXPORTFILE=$(TARGET1).dxp
-
-# --- Files --------------------------------------------------------
-
-SHL2OBJS =     $(SLO)$/remove_quickstart_link.obj \
-            $(SLO)$/quickstarter.obj
-
-SHL2TARGET = $(TARGET2)
-SHL2IMPLIB = i$(TARGET2)
-
-SHL2DEF = $(MISC)$/$(SHL2TARGET).def
-SHL2BASE = 0x1c000000
-DEF2NAME=$(SHL2TARGET)
-SHL2DEPN=$(SHL1OBJS)
-DEF2EXPORTFILE=$(TARGET2).dxp
-
-.ENDIF
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-# -------------------------------------------------------------------------
diff --git a/setup_native/source/win32/customactions/quickstarter/qslnkmsi.dxp 
b/setup_native/source/win32/customactions/quickstarter/qslnkmsi.dxp
deleted file mode 100644
index 56f67cc..0000000
--- a/setup_native/source/win32/customactions/quickstarter/qslnkmsi.dxp
+++ /dev/null
@@ -1,2 +0,0 @@
-RemoveQuickstarterLink
-    
\ No newline at end of file
diff --git a/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx 
b/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx
index bbd4f02..298f9b6 100644
--- a/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx
+++ b/setup_native/source/win32/customactions/quickstarter/remove_quickstart_link.cxx
@@ -33,7 +33,7 @@
 #include "quickstarter.hxx"
 
 
-extern "C" UINT __stdcall RemoveQuickstarterLink( MSIHANDLE hMSI )
+extern "C" __declspec(dllexport) UINT __stdcall RemoveQuickstarterLink( MSIHANDLE hMSI )
 {
     CHAR    szStartupPath[MAX_PATH];
 
diff --git a/setup_native/source/win32/customactions/quickstarter/sdqsmsi.dxp 
b/setup_native/source/win32/customactions/quickstarter/sdqsmsi.dxp
deleted file mode 100644
index 49ec00a..0000000
--- a/setup_native/source/win32/customactions/quickstarter/sdqsmsi.dxp
+++ /dev/null
@@ -1,2 +0,0 @@
-ShutDownQuickstarter
-    
\ No newline at end of file
diff --git a/setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx 
b/setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx
index d40d378..bf128b4 100644
--- a/setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx
+++ b/setup_native/source/win32/customactions/quickstarter/shutdown_quickstart.cxx
@@ -62,7 +62,7 @@
 }
 
 
-extern "C" UINT __stdcall ShutDownQuickstarter( MSIHANDLE hMSI )
+extern "C" __declspec(dllexport) UINT __stdcall ShutDownQuickstarter( MSIHANDLE hMSI )
 {
     EnumWindows( EnumWindowsProc, hMSI );
 
diff --git a/setup_native/source/win32/customactions/reg4allmsdoc/exports.dxp 
b/setup_native/source/win32/customactions/reg4allmsdoc/exports.dxp
deleted file mode 100644
index 54ebb2f..0000000
--- a/setup_native/source/win32/customactions/reg4allmsdoc/exports.dxp
+++ /dev/null
@@ -1,4 +0,0 @@
-FindRegisteredExtensions
-LookForRegisteredExtensions
-RegisterSomeExtensions
-RestoreRegAllMSDoc
diff --git a/setup_native/source/win32/customactions/reg4allmsdoc/makefile.mk 
b/setup_native/source/win32/customactions/reg4allmsdoc/makefile.mk
deleted file mode 100644
index d9c111d..0000000
--- a/setup_native/source/win32/customactions/reg4allmsdoc/makefile.mk
+++ /dev/null
@@ -1,67 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=reg4allmsdoc
-
-# --- Settings -----------------------------------------------------
-
-ENABLE_EXCEPTIONS=TRUE
-NO_DEFAULT_STL=TRUE
-DYNAMIC_CRT=
-USE_DEFFILE=TRUE
-
-.INCLUDE : settings.mk
-
-CFLAGS+=-DUNICODE -D_UNICODE
-
-# --- Files --------------------------------------------------------
-
-.IF "$(OS)"=="WNT" && "$(WINDOWS_SDK_HOME)"!=""
-
-UWINAPILIB=
-
-SLOFILES =     $(SLO)$/reg4allmsi.obj            
-
-SHL1STDLIBS=   $(KERNEL32LIB)\
-                $(USER32LIB)\
-                $(ADVAPI32LIB)\
-                $(SHELL32LIB)\
-                $(MSILIB)\
-                $(SHLWAPILIB)
-
-SHL1LIBS = $(SLB)$/$(TARGET).lib 
-
-SHL1TARGET = $(TARGET)
-SHL1IMPLIB = i$(TARGET)
-
-SHL1DEF = $(MISC)$/$(SHL1TARGET).def
-SHL1DEPN = $(SLB)$/$(TARGET).lib
-SHL1BASE = 0x1c000000
-DEF1NAME=$(SHL1TARGET)
-DEF1EXPORTFILE=exports.dxp
-
-.ENDIF
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-# -------------------------------------------------------------------------
-
diff --git a/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx 
b/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
index a0f930a..fa0506e 100644
--- a/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
+++ b/setup_native/source/win32/customactions/reg4allmsdoc/reg4allmsi.cxx
@@ -302,7 +302,7 @@
     }
 }
 
-extern "C" UINT __stdcall LookForRegisteredExtensions( MSIHANDLE handle )
+extern "C" __declspec(dllexport) UINT __stdcall LookForRegisteredExtensions( MSIHANDLE handle )
 {
     OutputDebugStringFormat( "LookForRegisteredExtensions: " );
 
@@ -403,7 +403,7 @@
     return ERROR_SUCCESS;
 }
 
-extern "C" UINT __stdcall RegisterSomeExtensions( MSIHANDLE handle )
+extern "C" __declspec(dllexport) UINT __stdcall RegisterSomeExtensions( MSIHANDLE handle )
 {
     OutputDebugStringFormat( "RegisterSomeExtensions: " );
 
@@ -457,7 +457,7 @@
     return ERROR_SUCCESS;
 }
 
-extern "C" UINT __stdcall FindRegisteredExtensions( MSIHANDLE handle )
+extern "C" __declspec(dllexport) UINT __stdcall FindRegisteredExtensions( MSIHANDLE handle )
 {
     if ( IsSetMsiProp( handle, "FILETYPEDIALOGUSED" ) )
     {
@@ -546,7 +546,7 @@
     }
 }
 
-extern "C" UINT __stdcall RestoreRegAllMSDoc( MSIHANDLE /*handle*/ )
+extern "C" __declspec(dllexport) UINT __stdcall RestoreRegAllMSDoc( MSIHANDLE /*handle*/ )
 {
     OutputDebugStringFormat( "RestoreRegAllMSDoc\n" );
 
diff --git a/setup_native/source/win32/customactions/regactivex/exports.dxp 
b/setup_native/source/win32/customactions/regactivex/exports.dxp
deleted file mode 100644
index 0ad8ce4..0000000
--- a/setup_native/source/win32/customactions/regactivex/exports.dxp
+++ /dev/null
@@ -1,2 +0,0 @@
-InstallActiveXControl
-DeinstallActiveXControl
diff --git a/setup_native/source/win32/customactions/regactivex/makefile.mk 
b/setup_native/source/win32/customactions/regactivex/makefile.mk
deleted file mode 100644
index c96e298..0000000
--- a/setup_native/source/win32/customactions/regactivex/makefile.mk
+++ /dev/null
@@ -1,60 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=regactivex
-
-# --- Settings -----------------------------------------------------
-
-ENABLE_EXCEPTIONS=TRUE
-NO_DEFAULT_STL=TRUE
-DYNAMIC_CRT=
-USE_DEFFILE=TRUE
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-
-.IF "$(OS)"=="WNT" && "$(WINDOWS_SDK_HOME)"!=""
-
-UWINAPILIB=
-
-SLOFILES =     $(SLO)$/regactivex.obj
-
-STDSHL += \
-    $(MSILIB)
-
-SHL1LIBS = $(SLB)$/$(TARGET).lib 
-
-SHL1TARGET = $(TARGET)
-SHL1IMPLIB = i$(TARGET)
-
-SHL1DEF = $(MISC)$/$(SHL1TARGET).def
-SHL1DEPN = $(SLB)$/$(TARGET).lib
-SHL1BASE = 0x1c000000
-DEF1NAME=$(SHL1TARGET)
-DEF1EXPORTFILE=exports.dxp
-
-.ENDIF
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-# -------------------------------------------------------------------------
diff --git a/setup_native/source/win32/customactions/regactivex/regactivex.cxx 
b/setup_native/source/win32/customactions/regactivex/regactivex.cxx
index 7be03a2..10175d6 100644
--- a/setup_native/source/win32/customactions/regactivex/regactivex.cxx
+++ b/setup_native/source/win32/customactions/regactivex/regactivex.cxx
@@ -294,7 +294,7 @@
     return bResult;
 }
 //----------------------------------------------------------
-extern "C" UINT __stdcall InstallActiveXControl( MSIHANDLE hMSI )
+extern "C" __declspec(dllexport) UINT __stdcall InstallActiveXControl( MSIHANDLE hMSI )
 {
     INSTALLSTATE current_state;
     INSTALLSTATE future_state;
@@ -341,7 +341,7 @@
 }
 
 //----------------------------------------------------------
-extern "C" UINT __stdcall DeinstallActiveXControl( MSIHANDLE hMSI )
+extern "C" __declspec(dllexport) UINT __stdcall DeinstallActiveXControl( MSIHANDLE hMSI )
 {
     INSTALLSTATE current_state;
     INSTALLSTATE future_state;
diff --git a/setup_native/source/win32/customactions/regpatchactivex/exports.dxp 
b/setup_native/source/win32/customactions/regpatchactivex/exports.dxp
deleted file mode 100644
index c1d7513..0000000
--- a/setup_native/source/win32/customactions/regpatchactivex/exports.dxp
+++ /dev/null
@@ -1 +0,0 @@
-PatchActiveXControl
diff --git a/setup_native/source/win32/customactions/regpatchactivex/makefile.mk 
b/setup_native/source/win32/customactions/regpatchactivex/makefile.mk
deleted file mode 100644
index cbc2652..0000000
--- a/setup_native/source/win32/customactions/regpatchactivex/makefile.mk
+++ /dev/null
@@ -1,78 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=regpatchactivex
-USE_DEFFILE=TRUE
-
-# --- Settings -----------------------------------------------------
-
-ENABLE_EXCEPTIONS=TRUE
-
-.INCLUDE : settings.mk
-
-.IF "$(OS)"=="WNT" && "$(WINDOWS_SDK_HOME)"!=""
-
-STDSHL=
-
-# --- Files --------------------------------------------------------
-
-INCPRE+=.\Include
-.DIRCACHE=NO
-
-SLOFILES =     $(SLO)$/regpatchactivex.obj
-
-.IF "$(COM)"=="GCC"
-SHL1STDLIBS += -lstdc++
-.IF "$(MINGW_GCCLIB_EH)"=="YES"
-SHL1STDLIBS += -lgcc_eh
-.ENDIF
-SHL1STDLIBS += -lgcc -lmingw32 -lmoldname -lmsvcrt
-.ELSE
-SHL1STDLIBS=
-.ENDIF
-
-SHL1STDLIBS+=  $(KERNEL32LIB)\
-                $(USER32LIB)\
-                $(ADVAPI32LIB)\
-                $(SHELL32LIB)\
-                $(MSILIB)
-.IF "$(COM)"!="GCC"
-SHL1STDLIBS+=  libcmt.lib
-.ENDIF
-
-
-SHL1LIBS = $(SLB)$/$(TARGET).lib 
-
-SHL1TARGET = $(TARGET)
-SHL1IMPLIB = i$(TARGET)
-
-SHL1DEF = $(MISC)$/$(SHL1TARGET).def
-SHL1DEPN = $(SLB)$/$(TARGET).lib
-SHL1BASE = 0x1c000000
-DEF1NAME=$(SHL1TARGET)
-DEF1EXPORTFILE=exports.dxp
-
-.ENDIF
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-# -------------------------------------------------------------------------
diff --git a/setup_native/source/win32/customactions/regpatchactivex/regpatchactivex.cxx 
b/setup_native/source/win32/customactions/regpatchactivex/regpatchactivex.cxx
index 0c51ccb..c0945b7 100644
--- a/setup_native/source/win32/customactions/regpatchactivex/regpatchactivex.cxx
+++ b/setup_native/source/win32/customactions/regpatchactivex/regpatchactivex.cxx
@@ -80,7 +80,7 @@
 }
 
 //----------------------------------------------------------
-extern "C" UINT __stdcall PatchActiveXControl( MSIHANDLE hMSI )
+extern "C" __declspec(dllexport) UINT __stdcall PatchActiveXControl( MSIHANDLE hMSI )
 {
     // MessageBox(NULL, L"PatchActiveXControl", L"Information", MB_OK | MB_ICONINFORMATION);
 
diff --git a/setup_native/source/win32/customactions/sellang/exports.dxp 
b/setup_native/source/win32/customactions/sellang/exports.dxp
deleted file mode 100644
index c8a622e..0000000
--- a/setup_native/source/win32/customactions/sellang/exports.dxp
+++ /dev/null
@@ -1,2 +0,0 @@
-SelectLanguage
-SortTree
diff --git a/setup_native/source/win32/customactions/sellang/makefile.mk 
b/setup_native/source/win32/customactions/sellang/makefile.mk
deleted file mode 100644
index 7470886..0000000
--- a/setup_native/source/win32/customactions/sellang/makefile.mk
+++ /dev/null
@@ -1,68 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=sellangmsi
-
-# --- Settings -----------------------------------------------------
-
-ENABLE_EXCEPTIONS=TRUE
-NO_DEFAULT_STL=TRUE
-DYNAMIC_CRT=
-USE_DEFFILE=TRUE
-
-.INCLUDE : settings.mk
-
-.IF "$(OS)"=="WNT" && "$(WINDOWS_SDK_HOME)"!=""
-
-CFLAGS+=-D_STLP_USE_STATIC_LIB
-
-# --- Files --------------------------------------------------------
-
-UWINAPILIB=
-
-SLOFILES = \
-    $(SLO)/sellang.obj \
-    $(SLO)/sorttree.obj
-
-SHL1STDLIBS= \
-    $(KERNEL32LIB)\
-    $(USER32LIB)\
-    $(ADVAPI32LIB)\
-    $(SHELL32LIB)\
-    $(MSILIB)
-
-SHL1LIBS = $(SLB)$/$(TARGET).lib
-
-SHL1TARGET = $(TARGET)
-SHL1IMPLIB = i$(TARGET)
-
-SHL1DEF = $(MISC)$/$(SHL1TARGET).def
-SHL1DEPN = $(SLB)$/$(TARGET).lib
-SHL1BASE = 0x1c000000
-DEF1NAME=$(SHL1TARGET)
-DEF1EXPORTFILE=exports.dxp
-
-.ENDIF
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-# -------------------------------------------------------------------------
diff --git a/setup_native/source/win32/customactions/sellang/sellang.cxx 
b/setup_native/source/win32/customactions/sellang/sellang.cxx
index b6f7ec5..14576d1 100644
--- a/setup_native/source/win32/customactions/sellang/sellang.cxx
+++ b/setup_native/source/win32/customactions/sellang/sellang.cxx
@@ -232,7 +232,7 @@
 
 }
 
-extern "C" UINT __stdcall SelectLanguage( MSIHANDLE handle )
+extern "C" __declspec(dllexport) UINT __stdcall SelectLanguage( MSIHANDLE handle )
 {
     char feature[100];
     MSIHANDLE database, view, record;
diff --git a/setup_native/source/win32/customactions/sellang/sorttree.cxx 
b/setup_native/source/win32/customactions/sellang/sorttree.cxx
index 9472a49..e0f3169 100644
--- a/setup_native/source/win32/customactions/sellang/sorttree.cxx
+++ b/setup_native/source/win32/customactions/sellang/sorttree.cxx
@@ -18,7 +18,7 @@
 #pragma warning(pop)
 #endif
 
-extern "C" UINT __stdcall SortTree(MSIHANDLE)
+extern "C" __declspec(dllexport) UINT __stdcall SortTree(MSIHANDLE)
 {
     // Sort items (languages) in SelectionTree control, fdo#46355
 
diff --git a/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx 
b/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx
index 7b35b3c..224bdaf 100644
--- a/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/checkdirectory.cxx
@@ -74,7 +74,7 @@
     MsiSetProperty(handle, sProperty.c_str(), TEXT("1"));
 }
 
-extern "C" UINT __stdcall CheckInstallDirectory(MSIHANDLE handle)
+extern "C" __declspec(dllexport) UINT __stdcall CheckInstallDirectory(MSIHANDLE handle)
 {
     std::_tstring sInstallPath = GetMsiProperty(handle, TEXT("INSTALLLOCATION"));
     std::_tstring sOfficeHostnamePath = GetMsiProperty(handle, TEXT("OFFICEDIRHOSTNAME"));
diff --git a/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx 
b/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx
index 94a24cd..6e48e03 100644
--- a/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/checkpatches.cxx
@@ -86,7 +86,7 @@
     MsiSetProperty( handle, sProperty.c_str(), TEXT("1") );
 }
 
-extern "C" UINT __stdcall CheckPatchList( MSIHANDLE handle )
+extern "C" __declspec(dllexport) UINT __stdcall CheckPatchList( MSIHANDLE handle )
 {
     std::_tstring sPatchList = GetMsiProperty( handle, TEXT("PATCH") );
     std::_tstring sRequiredPatch = GetMsiProperty( handle, TEXT("PREREQUIREDPATCH") );
diff --git a/setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx 
b/setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx
index d56ad5e..c06413d 100644
--- a/setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/completeinstallpath.cxx
@@ -62,7 +62,7 @@
     }
 } // namespace
 
-extern "C" UINT __stdcall CompleteInstallPath( MSIHANDLE handle )
+extern "C" __declspec(dllexport) UINT __stdcall CompleteInstallPath( MSIHANDLE handle )
 {
     // This CustomAction is necessary for updates from OOo 3.0, OOo 3.1 and OOo 3.2 to versions
     // OOo 3.3 or later. This is caused by a change of INSTALLLOCATION, that starting with OOo 3.3
diff --git a/setup_native/source/win32/customactions/shellextensions/exports.dxp 
b/setup_native/source/win32/customactions/shellextensions/exports.dxp
deleted file mode 100644
index 59a8b3b..0000000
--- a/setup_native/source/win32/customactions/shellextensions/exports.dxp
+++ /dev/null
@@ -1,12 +0,0 @@
-InstallStartmenuFolderIcon
-DeinstallStartmenuFolderIcon
-SetProductInstallMode
-RebuildShellIconCache
-CompleteInstallPath
-MigrateInstallPath
-CheckInstallDirectory
-CreateLayerLinks
-RemoveLayerLinks
-RenamePrgFolder
-RemovePrgFolder
-CheckPatchList
diff --git a/setup_native/source/win32/customactions/shellextensions/iconcache.cxx 
b/setup_native/source/win32/customactions/shellextensions/iconcache.cxx
index 6e87a84..edc66a8 100644
--- a/setup_native/source/win32/customactions/shellextensions/iconcache.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/iconcache.cxx
@@ -29,7 +29,7 @@
 
 #include <stdlib.h>
 
-extern "C" UINT __stdcall RebuildShellIconCache(MSIHANDLE)
+extern "C" __declspec(dllexport) UINT __stdcall RebuildShellIconCache(MSIHANDLE)
 {
     // Rebuild icon cache on windows OS prior XP
 
diff --git a/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx 
b/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx
index 88e020f..893020f 100644
--- a/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/layerlinks.cxx
@@ -88,7 +88,7 @@
     }
 } // namespace
 
-extern "C" UINT __stdcall CreateLayerLinks(MSIHANDLE handle)
+extern "C" __declspec(dllexport) UINT __stdcall CreateLayerLinks(MSIHANDLE handle)
 {
     string sInstallPath = GetMsiProperty(handle, TEXT("INSTALLLOCATION"));
 
@@ -147,7 +147,7 @@
     return ERROR_SUCCESS;
 }
 
-extern "C" UINT __stdcall RemoveLayerLinks(MSIHANDLE handle)
+extern "C" __declspec(dllexport) UINT __stdcall RemoveLayerLinks(MSIHANDLE handle)
 {
     string sInstallPath = GetMsiProperty(handle, TEXT("INSTALLLOCATION"));
 
diff --git a/setup_native/source/win32/customactions/shellextensions/makefile.mk 
b/setup_native/source/win32/customactions/shellextensions/makefile.mk
deleted file mode 100644
index 93b9888..0000000
--- a/setup_native/source/win32/customactions/shellextensions/makefile.mk
+++ /dev/null
@@ -1,82 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=shlxtmsi
-
-# --- Settings -----------------------------------------------------
-
-ENABLE_EXCEPTIONS=TRUE
-NO_DEFAULT_STL=TRUE
-DYNAMIC_CRT=
-USE_DEFFILE=TRUE
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-
-.IF "$(OS)"=="WNT" && "$(WINDOWS_SDK_HOME)"!=""
-
-UWINAPILIB=
-CFLAGS+=-I$(WORKDIR)/UnpackedTarball/boost
-
-SLOFILES = \
-    $(SLO)$/startmenuicon.obj \
-    $(SLO)$/upgrade.obj \
-    $(SLO)$/iconcache.obj \
-    $(SLO)$/migrateinstallpath.obj \
-    $(SLO)$/completeinstallpath.obj \
-    $(SLO)$/checkdirectory.obj \
-    $(SLO)$/layerlinks.obj \
-    $(SLO)$/vistaspecial.obj \
-    $(SLO)$/checkpatches.obj
-
-STDSHL += \
-    $(ADVAPI32LIB)\
-    $(MSILIB)\
-        $(SHELL32LIB)                                                          
-
-.IF "$(COM)"=="GCC"
-STDSHL+=       \
-    $(KERNEL32LIB)\
-    -lmsvcrt
-.ELSE
-STDSHL+=    \
-    psapi.lib
-.ENDIF
-
-SHL1OBJS = $(SLOFILES) \
-    $(SLO)$/seterror.obj
-
-SHL1TARGET = $(TARGET)
-SHL1IMPLIB = i$(TARGET)
-
-SHL1DEF = $(MISC)$/$(SHL1TARGET).def
-SHL1DEPN = $(SLB)$/$(TARGET).lib
-SHL1BASE = 0x1c000000
-DEF1NAME=$(SHL1TARGET)
-DEF1EXPORTFILE=exports.dxp
-
-.ENDIF
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-# -------------------------------------------------------------------------
diff --git a/setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx 
b/setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx
index 1b159fd..8cf3e91 100644
--- a/setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/migrateinstallpath.cxx
@@ -62,7 +62,7 @@
     }
 } // namespace
 
-extern "C" UINT __stdcall MigrateInstallPath( MSIHANDLE handle )
+extern "C" __declspec(dllexport) UINT __stdcall MigrateInstallPath( MSIHANDLE handle )
 {
     TCHAR   szValue[8192];
     DWORD   nValueSize = sizeof(szValue);
diff --git a/setup_native/source/win32/customactions/shellextensions/startmenuicon.cxx 
b/setup_native/source/win32/customactions/shellextensions/startmenuicon.cxx
index de3f3f6..188a965 100644
--- a/setup_native/source/win32/customactions/shellextensions/startmenuicon.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/startmenuicon.cxx
@@ -63,7 +63,7 @@
     Called during installation to customize the start menu folder icon.
     See: 
http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_extending/custom.asp
 */
-extern "C" UINT __stdcall InstallStartmenuFolderIcon( MSIHANDLE handle )
+extern "C" __declspec(dllexport) UINT __stdcall InstallStartmenuFolderIcon( MSIHANDLE handle )
 {
     std::_tstring   sOfficeMenuFolder = GetMsiProperty( handle, TEXT("OfficeMenuFolder") );
     std::_tstring sDesktopFile = sOfficeMenuFolder + TEXT("Desktop.ini");
@@ -107,7 +107,7 @@
     return ERROR_SUCCESS;
 }
 
-extern "C" UINT __stdcall DeinstallStartmenuFolderIcon(MSIHANDLE handle)
+extern "C" __declspec(dllexport) UINT __stdcall DeinstallStartmenuFolderIcon(MSIHANDLE handle)
 {
     std::_tstring   sOfficeMenuFolder = GetMsiProperty( handle, TEXT("OfficeMenuFolder") );
     std::_tstring sDesktopFile = sOfficeMenuFolder + TEXT("Desktop.ini");
diff --git a/setup_native/source/win32/customactions/shellextensions/upgrade.cxx 
b/setup_native/source/win32/customactions/shellextensions/upgrade.cxx
index 9a54963..a58965e 100644
--- a/setup_native/source/win32/customactions/shellextensions/upgrade.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/upgrade.cxx
@@ -169,7 +169,7 @@
     }
 } // namespace
 
-extern "C" UINT __stdcall SetProductInstallMode(MSIHANDLE handle)
+extern "C" __declspec(dllexport) UINT __stdcall SetProductInstallMode(MSIHANDLE handle)
 {
     string upgradeCode = GetMsiProperty(handle, TEXT("UpgradeCode"));
     upgradeCode = ConvertGuid(string(upgradeCode.c_str() + 1, upgradeCode.length() - 2));
diff --git a/setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx 
b/setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx
index 7011fcd..5e01557 100644
--- a/setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx
+++ b/setup_native/source/win32/customactions/shellextensions/vistaspecial.cxx
@@ -141,7 +141,7 @@
 
 
 
-extern "C" UINT __stdcall RenamePrgFolder( MSIHANDLE handle )
+extern "C" __declspec(dllexport) UINT __stdcall RenamePrgFolder( MSIHANDLE handle )
 {
     std::_tstring sOfficeInstallPath = GetMsiProperty(handle, TEXT("INSTALLLOCATION"));
 
@@ -165,7 +165,7 @@
     return ERROR_SUCCESS;
 }
 
-extern "C" UINT __stdcall RemovePrgFolder( MSIHANDLE handle )
+extern "C" __declspec(dllexport) UINT __stdcall RemovePrgFolder( MSIHANDLE handle )
 {
     std::_tstring sOfficeInstallPath = GetMsiProperty(handle, TEXT("INSTALLLOCATION"));
     std::_tstring sRemoveDir = sOfficeInstallPath + TEXT("program_old");
diff --git a/setup_native/source/win32/customactions/thesaurus/exports.dxp 
b/setup_native/source/win32/customactions/thesaurus/exports.dxp
deleted file mode 100644
index 830addd..0000000
--- a/setup_native/source/win32/customactions/thesaurus/exports.dxp
+++ /dev/null
@@ -1 +0,0 @@
-CreateIndexes
diff --git a/setup_native/source/win32/customactions/thesaurus/makefile.mk 
b/setup_native/source/win32/customactions/thesaurus/makefile.mk
deleted file mode 100644
index 115b70e..0000000
--- a/setup_native/source/win32/customactions/thesaurus/makefile.mk
+++ /dev/null
@@ -1,66 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=thidxmsi
-
-# --- Settings -----------------------------------------------------
-
-ENABLE_EXCEPTIONS=TRUE
-NO_DEFAULT_STL=TRUE
-DYNAMIC_CRT=
-USE_DEFFILE=TRUE
-
-.INCLUDE : settings.mk
-
-.IF "$(OS)"=="WNT" && "$(WINDOWS_SDK_HOME)"!=""
-
-CFLAGS+=-D_STLP_USE_STATIC_LIB
-
-# --- Files --------------------------------------------------------
-
-UWINAPILIB=
-
-SLOFILES = \
-    $(SLO)$/thesaurus.obj
-
-SHL1STDLIBS=   kernel32.lib\
-                user32.lib\
-                advapi32.lib\
-                shell32.lib\
-                msi.lib
-
-SHL1LIBS = $(SLB)$/$(TARGET).lib
-
-SHL1TARGET = $(TARGET)
-SHL1IMPLIB = i$(TARGET)
-
-SHL1DEF = $(MISC)$/$(SHL1TARGET).def
-SHL1DEPN = $(SLB)$/$(TARGET).lib
-SHL1BASE = 0x1c000000
-DEF1NAME=$(SHL1TARGET)
-DEF1EXPORTFILE=exports.dxp
-
-.ENDIF
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-# -------------------------------------------------------------------------
diff --git a/setup_native/source/win32/customactions/thesaurus/thesaurus.cxx 
b/setup_native/source/win32/customactions/thesaurus/thesaurus.cxx
index 349ed75..b5c4aec 100644
--- a/setup_native/source/win32/customactions/thesaurus/thesaurus.cxx
+++ b/setup_native/source/win32/customactions/thesaurus/thesaurus.cxx
@@ -190,7 +190,7 @@
 
 // Creates the thesaurus .idx files for all installed .dat
 // thesaurus files
-extern "C" UINT __stdcall CreateIndexes( MSIHANDLE handle )
+extern "C" __declspec(dllexport) UINT __stdcall CreateIndexes( MSIHANDLE handle )
 {
 
     string sOfficeInstallPath = GetMsiProperty(handle, TEXT("INSTALLLOCATION"));
diff --git a/setup_native/source/win32/customactions/tools/checkversion.cxx 
b/setup_native/source/win32/customactions/tools/checkversion.cxx
index dc42bfa..d6fe1a0 100644
--- a/setup_native/source/win32/customactions/tools/checkversion.cxx
+++ b/setup_native/source/win32/customactions/tools/checkversion.cxx
@@ -72,7 +72,7 @@
 #endif
 
 //----------------------------------------------------------
-extern "C" UINT __stdcall CheckVersions( MSIHANDLE hMSI )
+extern "C" __declspec(dllexport) UINT __stdcall CheckVersions( MSIHANDLE hMSI )
 {
     // MessageBox(NULL, L"CheckVersions", L"Information", MB_OK | MB_ICONINFORMATION);
 
diff --git a/setup_native/source/win32/customactions/tools/exports.dxp 
b/setup_native/source/win32/customactions/tools/exports.dxp
deleted file mode 100644
index 18d8224..0000000
--- a/setup_native/source/win32/customactions/tools/exports.dxp
+++ /dev/null
@@ -1 +0,0 @@
-CheckVersions
diff --git a/setup_native/source/win32/customactions/tools/makefile.mk 
b/setup_native/source/win32/customactions/tools/makefile.mk
deleted file mode 100644
index daae318..0000000
--- a/setup_native/source/win32/customactions/tools/makefile.mk
+++ /dev/null
@@ -1,63 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-#   Licensed to the Apache Software Foundation (ASF) under one or more
-#   contributor license agreements. See the NOTICE file distributed
-#   with this work for additional information regarding copyright
-#   ownership. The ASF licenses this file to you under the Apache
-#   License, Version 2.0 (the "License"); you may not use this file
-#   except in compliance with the License. You may obtain a copy of
-#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=sn_tools
-
-
-# --- Settings -----------------------------------------------------
-
-ENABLE_EXCEPTIONS=TRUE
-NO_DEFAULT_STL=TRUE
-DYNAMIC_CRT=
-USE_DEFFILE=TRUE
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-
-.IF "$(OS)"=="WNT" && "$(WINDOWS_SDK_HOME)"!=""
-
-UWINAPILIB=
-
-SLOFILES =     $(SLO)$/seterror.obj \
-            $(SLO)$/checkversion.obj
-
-SHL1OBJS = $(SLOFILES)
-
-STDSHL+=       \
-    $(ADVAPI32LIB)\
-    $(MSILIB)
-
-SHL1TARGET = $(TARGET)
-SHL1IMPLIB = i$(TARGET)
-
-SHL1DEF = $(MISC)$/$(SHL1TARGET).def
-SHL1DEPN = $(SLB)$/$(TARGET).lib
-SHL1BASE = 0x1c000000
-DEF1NAME=$(SHL1TARGET)
-DEF1EXPORTFILE=exports.dxp
-
-.ENDIF
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-# -------------------------------------------------------------------------
diff --git a/setup_native/source/win32/wintools/makecab/makefile.mk 
b/setup_native/source/win32/wintools/makecab/makefile.mk
deleted file mode 100644
index 63604c3..0000000
--- a/setup_native/source/win32/wintools/makecab/makefile.mk
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=sn_makecab
-
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-
-.IF "$(WINEGCC)"==""
-@all:
-    @echo "No winegcc present, not building makecab..."
-.ELSE
-@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 -m32 -mconsole -lmsi
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-.ENDIF
diff --git a/setup_native/source/win32/wintools/msidb/makefile.mk 
b/setup_native/source/win32/wintools/msidb/makefile.mk
deleted file mode 100644
index 849f615..0000000
--- a/setup_native/source/win32/wintools/msidb/makefile.mk
+++ /dev/null
@@ -1,36 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=sn_msidb
-
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-
-.IF "$(WINEGCC)"==""
-@all:
-    @echo "No winegcc present, not building msidb..."
-.ELSE
-@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 -m32 -municode -lmsi
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-# -------------------------------------------------------------------------
-.ENDIF
diff --git a/setup_native/source/win32/wintools/msiinfo/makefile.mk 
b/setup_native/source/win32/wintools/msiinfo/makefile.mk
deleted file mode 100644
index 58d986e..0000000
--- a/setup_native/source/win32/wintools/msiinfo/makefile.mk
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=sn_msiinfo
-
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-
-.IF "$(WINEGCC)"==""
-@all:
-    @echo "No winegcc present, not building msiinfo..."
-.ELSE
-@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 -m32 -mconsole -municode -lmsi
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-.ENDIF
diff --git a/setup_native/source/win32/wintools/msimsp/makefile.mk 
b/setup_native/source/win32/wintools/msimsp/makefile.mk
deleted file mode 100644
index 0aabdf3..0000000
--- a/setup_native/source/win32/wintools/msimsp/makefile.mk
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=sn_msimsp
-
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-
-.IF "$(WINEGCC)"==""
-@all:
-    @echo "No winegcc present, not building msimsp..."
-.ELSE
-@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 -m32 -mconsole -lmsi
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-.ENDIF
diff --git a/setup_native/source/win32/wintools/msitran/makefile.mk 
b/setup_native/source/win32/wintools/msitran/makefile.mk
deleted file mode 100644
index f5a1dd4..0000000
--- a/setup_native/source/win32/wintools/msitran/makefile.mk
+++ /dev/null
@@ -1,35 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-
-PRJ=..$/..$/..$/..
-PRJNAME=setup_native
-TARGET=sn_msitran
-
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-# --- Files --------------------------------------------------------
-
-.IF "$(WINEGCC)"==""
-@all:
-    @echo "No winegcc present, not building msitran..."
-.ELSE
-@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 -m32 -mconsole -lmsi
-
-# --- Targets --------------------------------------------------------------
-
-.INCLUDE : target.mk
-
-.ENDIF

-- 
To view, visit https://gerrit.libreoffice.org/2063
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie12338dada22c59d55d89ed9611bb1a958b04223
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Peter Foley <pefoley2@verizon.net>

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.