Kaydet (Commit) dc397aae authored tarafından Michael Stahl's avatar Michael Stahl

gbuild: gb_Library_PLAINLIBS_NONE cleanup for WNT:

add a new gb_LinkTarget_use_system_win32_libs to abstract different
linker options on MSVC and GCC.

Change-Id: Ic9bf2545f59bf7871e6fc06b290c486ddfbec03d
üst 80374355
...@@ -107,14 +107,14 @@ $(eval $(call gb_Library_add_libs,merged,\ ...@@ -107,14 +107,14 @@ $(eval $(call gb_Library_add_libs,merged,\
endif endif
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,merged,\ $(eval $(call gb_Library_use_system_win32_libs,merged,\
advapi32 \ advapi32 \
gdi32 \ gdi32 \
gdiplus \ gdiplus \
imm32 \ imm32 \
mpr \ mpr \
msimg32 \ msimg32 \
$(gb_Library_win32_OLDNAMES) \ oldnames \
ole32 \ ole32 \
oleaut32 \ oleaut32 \
shell32 \ shell32 \
......
...@@ -1468,7 +1468,7 @@ $(call gb_LinkTarget_add_libs,$(1),\ ...@@ -1468,7 +1468,7 @@ $(call gb_LinkTarget_add_libs,$(1),\
-lobjc \ -lobjc \
) )
else ifeq ($(OS),WNT) else ifeq ($(OS),WNT)
$(call gb_LinkTarget_use_libraries,$(1),\ $(call gb_LinkTarget_use_system_win32_libs,$(1),\
advapi32 \ advapi32 \
gdi32 \ gdi32 \
) )
...@@ -1614,7 +1614,7 @@ $(call gb_LinkTarget_use_static_libraries,$(1),\ ...@@ -1614,7 +1614,7 @@ $(call gb_LinkTarget_use_static_libraries,$(1),\
ifeq ($(GUI)$(COM),WNTMSC) ifeq ($(GUI)$(COM),WNTMSC)
$(call gb_LinkTarget_use_external,$(1),openssl) $(call gb_LinkTarget_use_external,$(1),openssl)
$(call gb_LinkTarget_use_libraries,$(1),\ $(call gb_LinkTarget_use_system_win32_libs,$(1),\
secur32 \ secur32 \
ws2_32 \ ws2_32 \
) )
......
...@@ -132,21 +132,17 @@ gb_Library_FILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_FILENAMES)) ...@@ -132,21 +132,17 @@ gb_Library_FILENAMES := $(patsubst z:z%,z:zlib%,$(gb_Library_FILENAMES))
# change the names of all import libraries that don't have an "i" prefix as in our standard naming schema # change the names of all import libraries that don't have an "i" prefix as in our standard naming schema
gb_Library_NOILIBFILENAMES := $(gb_Library_PLAINLIBS_NONE) gb_Library_NOILIBFILENAMES := \
gb_Library_NOILIBFILENAMES += \
glib-2.0 \ glib-2.0 \
gmodule-2.0 \ gmodule-2.0 \
graphite2_off \ graphite2_off \
icudt icuin icule icuuc \ icudt icuin icule icuuc \
langtag \ langtag \
lcms2 \ lcms2 \
msvcprt \
nspr4 \ nspr4 \
nss3 \ nss3 \
shlwapi \
smime3 \ smime3 \
uwinapi \ uwinapi \
version \
gb_Library_FILENAMES := $(filter-out $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):%),$(gb_Library_FILENAMES)) gb_Library_FILENAMES := $(filter-out $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):%),$(gb_Library_FILENAMES))
gb_Library_FILENAMES += $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):$(lib)$(gb_Library_PLAINEXT)) gb_Library_FILENAMES += $(foreach lib,$(gb_Library_NOILIBFILENAMES),$(lib):$(lib)$(gb_Library_PLAINEXT))
......
...@@ -41,9 +41,6 @@ $(eval $(call gb_Library_use_libraries,avmediawin,\ ...@@ -41,9 +41,6 @@ $(eval $(call gb_Library_use_libraries,avmediawin,\
comphelper \ comphelper \
cppu \ cppu \
cppuhelper \ cppuhelper \
gdi32 \
ole32 \
oleaut32 \
sal \ sal \
tl \ tl \
utl \ utl \
...@@ -53,8 +50,11 @@ $(eval $(call gb_Library_use_libraries,avmediawin,\ ...@@ -53,8 +50,11 @@ $(eval $(call gb_Library_use_libraries,avmediawin,\
$(eval $(call gb_Library_add_standard_system_libs,avmediawin)) $(eval $(call gb_Library_add_standard_system_libs,avmediawin))
$(eval $(call gb_Library_add_libs,avmediawin,\ $(eval $(call gb_Library_use_system_win32_libs,avmediawin,\
strmiids.lib \ gdi32 \
ole32 \
oleaut32 \
strmiids \
)) ))
$(eval $(call gb_Library_add_exception_objects,avmediawin,\ $(eval $(call gb_Library_add_exception_objects,avmediawin,\
......
...@@ -124,7 +124,7 @@ $(eval $(call gb_SdiTarget_set_include,basctl/sdi/basslots,\ ...@@ -124,7 +124,7 @@ $(eval $(call gb_SdiTarget_set_include,basctl/sdi/basslots,\
)) ))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,basctl,\ $(eval $(call gb_Library_use_system_win32_libs,basctl,\
advapi32 \ advapi32 \
gdi32 \ gdi32 \
shell32 \ shell32 \
......
...@@ -34,7 +34,7 @@ $(eval $(call gb_CppunitTest_use_libraries,basic_enable, \ ...@@ -34,7 +34,7 @@ $(eval $(call gb_CppunitTest_use_libraries,basic_enable, \
$(eval $(call gb_CppunitTest_add_standard_system_libs,basic_enable)) $(eval $(call gb_CppunitTest_add_standard_system_libs,basic_enable))
ifeq ($(GUI),WNT) ifeq ($(GUI),WNT)
$(eval $(call gb_CppunitTest_use_libraries,basic_enable, \ $(eval $(call gb_CppunitTest_use_system_win32_libs,basic_enable, \
oleaut32 \ oleaut32 \
)) ))
endif endif
......
...@@ -35,7 +35,7 @@ $(eval $(call gb_CppunitTest_use_libraries,basic_nested_struct, \ ...@@ -35,7 +35,7 @@ $(eval $(call gb_CppunitTest_use_libraries,basic_nested_struct, \
$(eval $(call gb_CppunitTest_add_standard_system_libs,basic_nested_struct)) $(eval $(call gb_CppunitTest_add_standard_system_libs,basic_nested_struct))
ifeq ($(GUI),WNT) ifeq ($(GUI),WNT)
$(eval $(call gb_CppunitTest_use_libraries,basic_nested_struct, \ $(eval $(call gb_CppunitTest_use_system_win32_libs,basic_nested_struct, \
oleaut32 \ oleaut32 \
)) ))
endif endif
......
...@@ -35,7 +35,7 @@ $(eval $(call gb_CppunitTest_use_libraries,basic_scanner, \ ...@@ -35,7 +35,7 @@ $(eval $(call gb_CppunitTest_use_libraries,basic_scanner, \
$(eval $(call gb_CppunitTest_add_standard_system_libs,basic_scanner)) $(eval $(call gb_CppunitTest_add_standard_system_libs,basic_scanner))
ifeq ($(GUI),WNT) ifeq ($(GUI),WNT)
$(eval $(call gb_CppunitTest_use_libraries,basic_scanner, \ $(eval $(call gb_CppunitTest_use_system_win32_libs,basic_scanner, \
oleaut32 \ oleaut32 \
)) ))
endif endif
......
...@@ -47,10 +47,13 @@ endif ...@@ -47,10 +47,13 @@ endif
ifeq ($(GUI),WNT) ifeq ($(GUI),WNT)
$(eval $(call gb_Library_use_libraries,officebean,\ $(eval $(call gb_Library_use_libraries,officebean,\
jawt \
$(gb_UWINAPI) \ $(gb_UWINAPI) \
)) ))
$(eval $(call gb_Library_use_system_win32_libs,officebean,\
jawt \
))
else else
$(eval $(call gb_Library_add_libs,officebean,\ $(eval $(call gb_Library_add_libs,officebean,\
......
...@@ -87,7 +87,7 @@ endif ...@@ -87,7 +87,7 @@ endif
endif endif
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,canvastools,\ $(eval $(call gb_Library_use_system_win32_libs,canvastools,\
winmm \ winmm \
)) ))
endif endif
......
...@@ -60,7 +60,7 @@ $(eval $(call gb_Library_use_libraries,directx9canvas,\ ...@@ -60,7 +60,7 @@ $(eval $(call gb_Library_use_libraries,directx9canvas,\
$(eval $(call gb_Library_add_standard_system_libs,directx9canvas)) $(eval $(call gb_Library_add_standard_system_libs,directx9canvas))
$(eval $(call gb_Library_use_libraries,directx9canvas,\ $(eval $(call gb_Library_use_system_win32_libs,directx9canvas,\
d3d9 \ d3d9 \
gdi32 \ gdi32 \
gdiplus \ gdiplus \
......
...@@ -66,7 +66,7 @@ $(eval $(call gb_Library_use_libraries,gdipluscanvas,\ ...@@ -66,7 +66,7 @@ $(eval $(call gb_Library_use_libraries,gdipluscanvas,\
$(eval $(call gb_Library_add_standard_system_libs,gdipluscanvas)) $(eval $(call gb_Library_add_standard_system_libs,gdipluscanvas))
$(eval $(call gb_Library_use_libraries,gdipluscanvas,\ $(eval $(call gb_Library_use_system_win32_libs,gdipluscanvas,\
gdi32 \ gdi32 \
gdiplus \ gdiplus \
)) ))
......
...@@ -24,13 +24,16 @@ $(eval $(call gb_Executable_use_internal_bootstrap_api,climaker,\ ...@@ -24,13 +24,16 @@ $(eval $(call gb_Executable_use_internal_bootstrap_api,climaker,\
$(eval $(call gb_Executable_use_libraries,climaker,\ $(eval $(call gb_Executable_use_libraries,climaker,\
cppu \ cppu \
cppuhelper \ cppuhelper \
sal \
$(gb_UWINAPI) \
))
$(eval $(call gb_Executable_use_system_win32_libs,climaker,\
mscoree \ mscoree \
$(if $(USE_DEBUG_RUNTIME) \ $(if $(USE_DEBUG_RUNTIME) \
,msvcmrtd \ ,msvcmrtd \
,msvcmrt \ ,msvcmrt \
) \ ) \
sal \
$(gb_UWINAPI) \
)) ))
$(eval $(call gb_Executable_add_standard_system_libs,climaker)) $(eval $(call gb_Executable_add_standard_system_libs,climaker))
......
...@@ -33,16 +33,19 @@ $(eval $(call gb_Library_use_packages,cli_cppuhelper_native,\ ...@@ -33,16 +33,19 @@ $(eval $(call gb_Library_use_packages,cli_cppuhelper_native,\
)) ))
$(eval $(call gb_Library_use_libraries,cli_cppuhelper_native,\ $(eval $(call gb_Library_use_libraries,cli_cppuhelper_native,\
advapi32 \
cppu \ cppu \
cppuhelper \ cppuhelper \
sal \
))
$(eval $(call gb_Library_use_system_win32_libs,cli_cppuhelper_native,\
advapi32 \
delayimp \ delayimp \
mscoree \ mscoree \
$(if $(USE_DEBUG_RUNTIME)\ $(if $(USE_DEBUG_RUNTIME)\
,msvcmrtd \ ,msvcmrtd \
,msvcmrt \ ,msvcmrt \
) \ ) \
sal \
)) ))
$(eval $(call gb_Library_add_exception_objects,cli_cppuhelper_native,\ $(eval $(call gb_Library_add_exception_objects,cli_cppuhelper_native,\
......
...@@ -19,12 +19,15 @@ $(eval $(call gb_Library_use_udk_api,cli_uno)) ...@@ -19,12 +19,15 @@ $(eval $(call gb_Library_use_udk_api,cli_uno))
$(eval $(call gb_Library_use_libraries,cli_uno,\ $(eval $(call gb_Library_use_libraries,cli_uno,\
cppu \ cppu \
sal \
))
$(eval $(call gb_Library_use_system_win32_libs,cli_uno,\
mscoree \ mscoree \
$(if $(USE_DEBUG_RUNTIME)\ $(if $(USE_DEBUG_RUNTIME)\
,msvcmrtd \ ,msvcmrtd \
,msvcmrt \ ,msvcmrt \
) \ ) \
sal \
)) ))
$(eval $(call gb_Library_add_exception_objects,cli_uno,\ $(eval $(call gb_Library_add_exception_objects,cli_uno,\
......
...@@ -42,14 +42,17 @@ $(eval $(call gb_Library_add_cxxflags,ado,\ ...@@ -42,14 +42,17 @@ $(eval $(call gb_Library_add_cxxflags,ado,\
)) ))
endif endif
$(eval $(call gb_Library_use_system_win32_libs,ado,\
ole32 \
oleaut32 \
uuid \
))
$(eval $(call gb_Library_use_libraries,ado,\ $(eval $(call gb_Library_use_libraries,ado,\
cppu \ cppu \
cppuhelper \ cppuhelper \
sal \ sal \
salhelper \ salhelper \
ole32 \
oleaut32 \
uuid \
dbtools \ dbtools \
comphelper \ comphelper \
$(gb_UWINAPI) \ $(gb_UWINAPI) \
......
...@@ -46,7 +46,7 @@ $(eval $(call gb_Library_use_libraries,postgresql-sdbc-impl,\ ...@@ -46,7 +46,7 @@ $(eval $(call gb_Library_use_libraries,postgresql-sdbc-impl,\
$(eval $(call gb_Library_add_standard_system_libs,postgresql-sdbc-impl)) $(eval $(call gb_Library_add_standard_system_libs,postgresql-sdbc-impl))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,postgresql-sdbc-impl,\ $(eval $(call gb_Library_use_system_win32_libs,postgresql-sdbc-impl,\
shell32 \ shell32 \
wldap32 \ wldap32 \
)) ))
......
...@@ -78,7 +78,7 @@ $(eval $(call gb_Library_use_externals,cui,\ ...@@ -78,7 +78,7 @@ $(eval $(call gb_Library_use_externals,cui,\
)) ))
ifeq ($(GUI),WNT) ifeq ($(GUI),WNT)
$(eval $(call gb_Library_use_libraries,cui,\ $(eval $(call gb_Library_use_system_win32_libs,cui,\
advapi32 \ advapi32 \
shlwapi \ shlwapi \
)) ))
......
...@@ -76,7 +76,7 @@ $(eval $(call gb_Library_use_libraries,dbu,\ ...@@ -76,7 +76,7 @@ $(eval $(call gb_Library_use_libraries,dbu,\
$(eval $(call gb_Library_add_standard_system_libs,dbu)) $(eval $(call gb_Library_add_standard_system_libs,dbu))
ifeq ($(GUI),WNT) ifeq ($(GUI),WNT)
$(eval $(call gb_Library_use_libraries,dbu,\ $(eval $(call gb_Library_use_system_win32_libs,dbu,\
ole32 \ ole32 \
oleaut32 \ oleaut32 \
uuid \ uuid \
......
...@@ -33,12 +33,15 @@ $(eval $(call gb_Executable_set_include,quickstart,\ ...@@ -33,12 +33,15 @@ $(eval $(call gb_Executable_set_include,quickstart,\
$$(INCLUDE) \ $$(INCLUDE) \
)) ))
$(eval $(call gb_Executable_use_libraries,quickstart,\ $(eval $(call gb_Executable_use_system_win32_libs,quickstart,\
comdlg32 \ comdlg32 \
gdi32 \ gdi32 \
ole32 \ ole32 \
oleaut32 \ oleaut32 \
shell32 \ shell32 \
))
$(eval $(call gb_Executable_use_libraries,quickstart,\
$(gb_UWINAPI) \ $(gb_UWINAPI) \
)) ))
...@@ -46,14 +49,14 @@ $(eval $(call gb_Executable_add_standard_system_libs,quickstart)) ...@@ -46,14 +49,14 @@ $(eval $(call gb_Executable_add_standard_system_libs,quickstart))
ifeq ($(COM),GCC) ifeq ($(COM),GCC)
$(eval $(call gb_Executable_use_libraries,quickstart,\ $(eval $(call gb_Executable_use_system_win32_libs,quickstart,\
uuid \ uuid \
)) ))
else else
$(eval $(call gb_Executable_add_libs,quickstart,\ $(eval $(call gb_Executable_use_system_win32_libs,quickstart,\
comsupp.lib \ comsupp \
)) ))
endif endif
......
...@@ -30,10 +30,13 @@ $(eval $(call gb_Executable_Executable,soffice)) ...@@ -30,10 +30,13 @@ $(eval $(call gb_Executable_Executable,soffice))
$(eval $(call gb_Executable_set_targettype_gui,soffice,YES)) $(eval $(call gb_Executable_set_targettype_gui,soffice,YES))
$(eval $(call gb_Executable_use_libraries,soffice,\ $(eval $(call gb_Executable_use_libraries,soffice,\
$(gb_UWINAPI) \
))
$(eval $(call gb_Executable_use_system_win32_libs,soffice,\
advapi32 \ advapi32 \
shell32 \ shell32 \
shlwapi \ shlwapi \
$(gb_UWINAPI) \
)) ))
$(eval $(call gb_Executable_add_standard_system_libs,soffice)) $(eval $(call gb_Executable_add_standard_system_libs,soffice))
......
...@@ -60,7 +60,7 @@ $(eval $(call gb_Library_add_standard_system_libs,deploymentgui)) ...@@ -60,7 +60,7 @@ $(eval $(call gb_Library_add_standard_system_libs,deploymentgui))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,deploymentgui,\ $(eval $(call gb_Library_use_system_win32_libs,deploymentgui,\
ole32 \ ole32 \
)) ))
......
...@@ -37,17 +37,19 @@ $(eval $(call gb_Library_set_include,dnd,\ ...@@ -37,17 +37,19 @@ $(eval $(call gb_Library_set_include,dnd,\
$(eval $(call gb_Library_use_sdk_api,dnd)) $(eval $(call gb_Library_use_sdk_api,dnd))
$(eval $(call gb_Library_use_libraries,dnd,\ $(eval $(call gb_Library_use_libraries,dnd,\
advapi32 \
cppu \ cppu \
cppuhelper \ cppuhelper \
sal \
$(gb_UWINAPI) \
))
$(eval $(call gb_Library_use_system_win32_libs,dnd,\
advapi32 \
gdi32 \ gdi32 \
ole32 \ ole32 \
oleaut32 \ oleaut32 \
sal \
shell32 \ shell32 \
uuid \ uuid \
uwinapi \
$(gb_UWINAPI) \
)) ))
$(eval $(call gb_Library_add_standard_system_libs,dnd)) $(eval $(call gb_Library_add_standard_system_libs,dnd))
......
...@@ -37,16 +37,18 @@ $(eval $(call gb_Library_set_include,ftransl,\ ...@@ -37,16 +37,18 @@ $(eval $(call gb_Library_set_include,ftransl,\
$(eval $(call gb_Library_use_sdk_api,ftransl)) $(eval $(call gb_Library_use_sdk_api,ftransl))
$(eval $(call gb_Library_use_libraries,ftransl,\ $(eval $(call gb_Library_use_libraries,ftransl,\
advapi32 \
cppu \ cppu \
cppuhelper \ cppuhelper \
gdi32 \
ole32 \
sal \ sal \
uwinapi \
$(gb_UWINAPI) \ $(gb_UWINAPI) \
)) ))
$(eval $(call gb_Library_use_system_win32_libs,ftransl,\
advapi32 \
gdi32 \
ole32 \
))
$(eval $(call gb_Library_add_standard_system_libs,ftransl)) $(eval $(call gb_Library_add_standard_system_libs,ftransl))
$(eval $(call gb_Library_use_static_libraries,ftransl,\ $(eval $(call gb_Library_use_static_libraries,ftransl,\
......
...@@ -42,17 +42,19 @@ $(eval $(call gb_Library_add_defs,sysdtrans,\ ...@@ -42,17 +42,19 @@ $(eval $(call gb_Library_add_defs,sysdtrans,\
)) ))
$(eval $(call gb_Library_use_libraries,sysdtrans,\ $(eval $(call gb_Library_use_libraries,sysdtrans,\
advapi32 \
cppu \ cppu \
cppuhelper \ cppuhelper \
sal \
$(gb_UWINAPI) \
))
$(eval $(call gb_Library_use_system_win32_libs,sysdtrans,\
advapi32 \
gdi32 \ gdi32 \
ole32 \ ole32 \
oleaut32 \ oleaut32 \
sal \
shell32 \ shell32 \
uuid \ uuid \
uwinapi \
$(gb_UWINAPI) \
)) ))
$(eval $(call gb_Library_add_standard_system_libs,sysdtrans)) $(eval $(call gb_Library_add_standard_system_libs,sysdtrans))
......
...@@ -63,6 +63,9 @@ ifeq ($(OS),WNT) ...@@ -63,6 +63,9 @@ ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,emboleobj,\ $(eval $(call gb_Library_use_libraries,emboleobj,\
embobj \ embobj \
))
$(eval $(call gb_Library_use_system_win32_libs,emboleobj,\
gdi32 \ gdi32 \
ole32 \ ole32 \
oleaut32 \ oleaut32 \
......
...@@ -45,12 +45,15 @@ $(eval $(call gb_Library_use_libraries,emser,\ ...@@ -45,12 +45,15 @@ $(eval $(call gb_Library_use_libraries,emser,\
comphelper \ comphelper \
cppu \ cppu \
cppuhelper \ cppuhelper \
sal \
$(gb_UWINAPI) \
))
$(eval $(call gb_Library_use_system_win32_libs,emser,\
gdi32 \ gdi32 \
ole32 \ ole32 \
oleaut32 \ oleaut32 \
sal \
uuid \ uuid \
$(gb_UWINAPI) \
)) ))
$(eval $(call gb_Library_add_standard_system_libs,emser)) $(eval $(call gb_Library_add_standard_system_libs,emser))
......
...@@ -32,10 +32,13 @@ $(eval $(call gb_Library_set_include,inprocserv,\ ...@@ -32,10 +32,13 @@ $(eval $(call gb_Library_set_include,inprocserv,\
$$(INCLUDE) \ $$(INCLUDE) \
)) ))
$(eval $(call gb_Library_use_libraries,inprocserv,\ $(eval $(call gb_Library_use_system_win32_libs,inprocserv,\
gdi32 \ gdi32 \
ole32 \ ole32 \
uuid \ uuid \
))
$(eval $(call gb_Library_use_libraries,inprocserv,\
$(gb_UWINAPI) \ $(gb_UWINAPI) \
)) ))
......
...@@ -45,7 +45,7 @@ $(eval $(call gb_CppunitTest_use_libraries,extensions_test_update, \ ...@@ -45,7 +45,7 @@ $(eval $(call gb_CppunitTest_use_libraries,extensions_test_update, \
$(eval $(call gb_CppunitTest_add_standard_system_libs,extensions_test_update)) $(eval $(call gb_CppunitTest_add_standard_system_libs,extensions_test_update))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_CppunitTest_use_libraries,extensions_test_update,\ $(eval $(call gb_CppunitTest_use_system_win32_libs,extensions_test_update,\
shell32 \ shell32 \
ole32 \ ole32 \
)) ))
......
...@@ -67,18 +67,18 @@ $(eval $(call gb_Executable_use_static_libraries,nsplugin,\ ...@@ -67,18 +67,18 @@ $(eval $(call gb_Executable_use_static_libraries,nsplugin,\
ooopathutils \ ooopathutils \
)) ))
$(eval $(call gb_Executable_use_libraries,nsplugin,\ $(eval $(call gb_Executable_use_system_win32_libs,nsplugin,\
ws2_32 \
shell32 \
ole32 \
kernel32 \
user32 \
gdi32 \
winspool \
comdlg32 \
advapi32 \ advapi32 \
comdlg32 \
gdi32 \
kernel32 \
ole32 \
oleaut32 \ oleaut32 \
shell32 \
user32 \
uuid \ uuid \
winspool \
ws2_32 \
)) ))
endif # WNT endif # WNT
......
...@@ -54,7 +54,7 @@ $(eval $(call gb_Library_use_libraries,ldapbe2,\ ...@@ -54,7 +54,7 @@ $(eval $(call gb_Library_use_libraries,ldapbe2,\
)) ))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,ldapbe2,\ $(eval $(call gb_Library_use_system_win32_libs,ldapbe2,\
wldap32 \ wldap32 \
)) ))
else # 0S!=WNT else # 0S!=WNT
......
...@@ -69,18 +69,18 @@ $(eval $(call gb_Library_use_static_libraries,npsoplugin,\ ...@@ -69,18 +69,18 @@ $(eval $(call gb_Library_use_static_libraries,npsoplugin,\
ooopathutils \ ooopathutils \
)) ))
$(eval $(call gb_Library_use_libraries,npsoplugin,\ $(eval $(call gb_Library_use_system_win32_libs,npsoplugin,\
ws2_32 \
shell32 \
ole32 \
kernel32 \
user32 \
gdi32 \
winspool \
comdlg32 \
advapi32 \ advapi32 \
comdlg32 \
gdi32 \
kernel32 \
ole32 \
oleaut32 \ oleaut32 \
shell32 \
user32 \
uuid \ uuid \
winspool \
ws2_32 \
)) ))
$(eval $(call gb_Library_add_defs,npsoplugin,\ $(eval $(call gb_Library_add_defs,npsoplugin,\
......
...@@ -43,6 +43,9 @@ $(eval $(call gb_Library_use_libraries,oleautobridge,\ ...@@ -43,6 +43,9 @@ $(eval $(call gb_Library_use_libraries,oleautobridge,\
cppuhelper \ cppuhelper \
cppu \ cppu \
sal \ sal \
))
$(eval $(call gb_Library_use_system_win32_libs,oleautobridge,\
advapi32 \ advapi32 \
ole32 \ ole32 \
oleaut32 \ oleaut32 \
......
...@@ -47,6 +47,9 @@ $(eval $(call gb_Library_use_libraries,oleautobridge2,\ ...@@ -47,6 +47,9 @@ $(eval $(call gb_Library_use_libraries,oleautobridge2,\
cppuhelper \ cppuhelper \
cppu \ cppu \
sal \ sal \
))
$(eval $(call gb_Library_use_system_win32_libs,oleautobridge2,\
advapi32 \ advapi32 \
ole32 \ ole32 \
oleaut32 \ oleaut32 \
......
...@@ -63,10 +63,10 @@ $(eval $(call gb_Library_add_libs,pl,\ ...@@ -63,10 +63,10 @@ $(eval $(call gb_Library_add_libs,pl,\
endif # OS=SOLARIS endif # OS=SOLARIS
ifeq ($(GUI),WNT) ifeq ($(GUI),WNT)
$(eval $(call gb_Library_use_libraries,pl,\ $(eval $(call gb_Library_use_system_win32_libs,pl,\
version \
ole32 \
advapi32 \ advapi32 \
ole32 \
version \
)) ))
$(eval $(call gb_Library_add_exception_objects,pl,\ $(eval $(call gb_Library_add_exception_objects,pl,\
......
...@@ -54,14 +54,14 @@ $(eval $(call gb_Library_add_ldflags,so_activex,\ ...@@ -54,14 +54,14 @@ $(eval $(call gb_Library_add_ldflags,so_activex,\
/DEF:$(SRCDIR)/extensions/source/activex/so_activex.def \ /DEF:$(SRCDIR)/extensions/source/activex/so_activex.def \
)) ))
$(eval $(call gb_Library_use_libraries,so_activex,\ $(eval $(call gb_Library_use_system_win32_libs,so_activex,\
uuid \
advapi32 \ advapi32 \
gdi32 \
ole32 \ ole32 \
oleaut32 \ oleaut32 \
gdi32 \
urlmon \
shlwapi \ shlwapi \
urlmon \
uuid \
)) ))
ifneq ($(USE_DEBUG_RUNTIME),) ifneq ($(USE_DEBUG_RUNTIME),)
......
...@@ -57,14 +57,14 @@ $(eval $(call gb_Library_add_ldflags,so_activex_x64,\ ...@@ -57,14 +57,14 @@ $(eval $(call gb_Library_add_ldflags,so_activex_x64,\
/DEF:$(SRCDIR)/extensions/source/activex/so_activex.def \ /DEF:$(SRCDIR)/extensions/source/activex/so_activex.def \
)) ))
$(eval $(call gb_Library_use_libraries,so_activex_x64,\ $(eval $(call gb_Library_use_system_win32_libs,so_activex_x64,\
uuid \
advapi32 \ advapi32 \
gdi32 \
ole32 \ ole32 \
oleaut32 \ oleaut32 \
gdi32 \
urlmon \
shlwapi \ shlwapi \
urlmon \
uuid \
)) ))
ifneq ($(USE_DEBUG_RUNTIME),) ifneq ($(USE_DEBUG_RUNTIME),)
......
...@@ -45,7 +45,7 @@ $(eval $(call gb_Library_use_libraries,updchk,\ ...@@ -45,7 +45,7 @@ $(eval $(call gb_Library_use_libraries,updchk,\
)) ))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,updchk,\ $(eval $(call gb_Library_use_system_win32_libs,updchk,\
ole32 \ ole32 \
shell32 \ shell32 \
wininet \ wininet \
......
...@@ -52,6 +52,10 @@ $(eval $(call gb_Library_use_libraries,fps,\ ...@@ -52,6 +52,10 @@ $(eval $(call gb_Library_use_libraries,fps,\
tl \ tl \
utl \ utl \
vcl \ vcl \
$(gb_UWINAPI) \
))
$(eval $(call gb_Library_use_system_win32_libs,fps,\
advapi32 \ advapi32 \
comdlg32 \ comdlg32 \
gdi32 \ gdi32 \
...@@ -60,7 +64,6 @@ $(eval $(call gb_Library_use_libraries,fps,\ ...@@ -60,7 +64,6 @@ $(eval $(call gb_Library_use_libraries,fps,\
oleaut32 \ oleaut32 \
shell32 \ shell32 \
uuid \ uuid \
$(gb_UWINAPI) \
)) ))
$(eval $(call gb_Library_add_standard_system_libs,fps)) $(eval $(call gb_Library_add_standard_system_libs,fps))
......
...@@ -76,7 +76,7 @@ $(eval $(call gb_Library_add_exception_objects,fwi,\ ...@@ -76,7 +76,7 @@ $(eval $(call gb_Library_add_exception_objects,fwi,\
)) ))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,fwi,\ $(eval $(call gb_Library_use_system_win32_libs,fwi,\
advapi32 \ advapi32 \
)) ))
endif endif
......
...@@ -47,7 +47,7 @@ $(eval $(call gb_Library_use_external,hwp,zlib)) ...@@ -47,7 +47,7 @@ $(eval $(call gb_Library_use_external,hwp,zlib))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,hwp,\ $(eval $(call gb_Library_use_system_win32_libs,hwp,\
ole32 \ ole32 \
uuid \ uuid \
)) ))
......
...@@ -50,8 +50,8 @@ $(eval $(call gb_Library_use_libraries,jvmfwk,\ ...@@ -50,8 +50,8 @@ $(eval $(call gb_Library_use_libraries,jvmfwk,\
$(eval $(call gb_Library_add_standard_system_libs,jvmfwk)) $(eval $(call gb_Library_add_standard_system_libs,jvmfwk))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,jvmfwk,\ $(eval $(call gb_Library_use_system_win32_libs,jvmfwk,\
advapi32 \ advapi32 \
)) ))
endif endif
......
...@@ -62,9 +62,8 @@ $(eval $(call gb_Library_use_libraries,sunjavaplugin,\ ...@@ -62,9 +62,8 @@ $(eval $(call gb_Library_use_libraries,sunjavaplugin,\
endif endif
ifeq ($(GUI),WNT) ifeq ($(GUI),WNT)
$(eval $(call gb_Library_use_libraries,sunjavaplugin,\ $(eval $(call gb_Library_use_system_win32_libs,sunjavaplugin,\
advapi32 \ advapi32 \
uwinapi \
)) ))
endif endif
......
...@@ -47,7 +47,7 @@ $(eval $(call gb_Library_add_generated_cobjects,neon,\ ...@@ -47,7 +47,7 @@ $(eval $(call gb_Library_add_generated_cobjects,neon,\
)) ))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,neon,\ $(eval $(call gb_Library_use_system_win32_libs,neon,\
ws2_32 \ ws2_32 \
)) ))
......
...@@ -57,21 +57,22 @@ $(eval $(call gb_Library_add_defs,sal,\ ...@@ -57,21 +57,22 @@ $(eval $(call gb_Library_add_defs,sal,\
)) ))
$(eval $(call gb_Library_use_libraries,sal,\ $(eval $(call gb_Library_use_libraries,sal,\
$(if $(filter $(OS),WNT), \
advapi32 \
comdlg32 \
mpr \
ole32 \
shell32 \
user32 \
ws2_32 \
) \
$(if $(filter $(OS),ANDROID), \ $(if $(filter $(OS),ANDROID), \
lo-bootstrap \ lo-bootstrap \
) \ ) \
$(gb_UWINAPI) \ $(gb_UWINAPI) \
)) ))
$(eval $(call gb_Library_use_system_win32_libs,sal,\
advapi32 \
comdlg32 \
mpr \
ole32 \
shell32 \
user32 \
ws2_32 \
))
$(eval $(call gb_Library_add_libs,sal,\ $(eval $(call gb_Library_add_libs,sal,\
$(if $(filter $(GUI),UNX), \ $(if $(filter $(GUI),UNX), \
$(if $(filter $(OS),ANDROID),, \ $(if $(filter $(OS),ANDROID),, \
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
$(eval $(call gb_Library_Library,uwinapi)) $(eval $(call gb_Library_Library,uwinapi))
$(eval $(call gb_Library_use_libraries,uwinapi,\ $(eval $(call gb_Library_use_system_win32_libs,uwinapi,\
$(if $(filter $(COM),MSC), \ $(if $(filter $(COM),MSC), \
kernel32 \ kernel32 \
msvcrt \ msvcrt \
......
...@@ -121,10 +121,10 @@ $(eval $(call gb_Library_add_exception_objects,scui,\ ...@@ -121,10 +121,10 @@ $(eval $(call gb_Library_add_exception_objects,scui,\
)) ))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,scui,\ $(eval $(call gb_Library_use_system_win32_libs,scui,\
advapi32 \ advapi32 \
$(gb_Library_win32_OLDNAMES) \ oldnames \
uwinapi \
)) ))
endif endif
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -143,10 +143,10 @@ $(eval $(call gb_Library_add_exception_objects,vbaobj,\ ...@@ -143,10 +143,10 @@ $(eval $(call gb_Library_add_exception_objects,vbaobj,\
endif endif
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,vbaobj,\ $(eval $(call gb_Library_use_system_win32_libs,vbaobj,\
advapi32 \ advapi32 \
$(gb_Library_win32_OLDNAMES) \ oldnames \
uwinapi \
)) ))
endif endif
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
...@@ -77,7 +77,7 @@ $(eval $(call gb_CppunitTest_use_libraries,sd_uimpress,\ ...@@ -77,7 +77,7 @@ $(eval $(call gb_CppunitTest_use_libraries,sd_uimpress,\
$(eval $(call gb_CppunitTest_add_standard_system_libs,sd_uimpress)) $(eval $(call gb_CppunitTest_add_standard_system_libs,sd_uimpress))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_CppunitTest_use_libraries,sd_uimpress,\ $(eval $(call gb_CppunitTest_use_system_win32_libs,sd_uimpress,\
ws2_32 \ ws2_32 \
)) ))
endif endif
......
...@@ -114,7 +114,7 @@ $(eval $(call gb_Library_use_externals,sd,\ ...@@ -114,7 +114,7 @@ $(eval $(call gb_Library_use_externals,sd,\
)) ))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,sd,\ $(eval $(call gb_Library_use_system_win32_libs,sd,\
ws2_32 \ ws2_32 \
)) ))
endif endif
......
...@@ -295,12 +295,12 @@ $(eval $(call gb_Library_add_exception_objects,sfx,\ ...@@ -295,12 +295,12 @@ $(eval $(call gb_Library_add_exception_objects,sfx,\
sfx2/source/doc/syspathw32 \ sfx2/source/doc/syspathw32 \
)) ))
$(eval $(call gb_Library_use_libraries,sfx,\ $(eval $(call gb_Library_use_system_win32_libs,sfx,\
gdi32 \ advapi32 \
advapi32 \ gdi32 \
ole32 \ ole32 \
shell32 \ shell32 \
uuid \ uuid \
)) ))
endif endif
......
...@@ -27,8 +27,11 @@ ...@@ -27,8 +27,11 @@
$(eval $(call gb_Executable_Executable,senddoc)) $(eval $(call gb_Executable_Executable,senddoc))
$(eval $(call gb_Executable_use_libraries,senddoc,\ $(eval $(call gb_Executable_use_system_win32_libs,senddoc,\
kernel32 \ kernel32 \
))
$(eval $(call gb_Executable_use_libraries,senddoc,\
sal \ sal \
)) ))
......
...@@ -53,19 +53,19 @@ $(eval $(call gb_Library_use_externals,ooofilt,\ ...@@ -53,19 +53,19 @@ $(eval $(call gb_Library_use_externals,ooofilt,\
zlib \ zlib \
)) ))
$(eval $(call gb_Library_use_libraries,ooofilt,\ $(eval $(call gb_Library_use_system_win32_libs,ooofilt,\
advapi32 \ advapi32 \
comctl32 \ comctl32 \
kernel32 \ kernel32 \
msvcprt \ msvcprt \
oldnames \
ole32 \ ole32 \
shell32 \ shell32 \
uuid \ uuid \
$(gb_Library_win32_OLDNAMES) \
)) ))
ifneq ($(PRODUCT),full) ifneq ($(PRODUCT),full)
$(eval $(call gb_Library_use_libraries,ooofilt,\ $(eval $(call gb_Library_use_system_win32_libs,ooofilt,\
msvcrt \ msvcrt \
)) ))
endif endif
......
...@@ -59,7 +59,7 @@ $(eval $(call gb_Library_use_externals,ooofilt_x64,\ ...@@ -59,7 +59,7 @@ $(eval $(call gb_Library_use_externals,ooofilt_x64,\
zlib \ zlib \
)) ))
$(eval $(call gb_Library_use_libraries,ooofilt_x64,\ $(eval $(call gb_Library_use_system_win32_libs,ooofilt_x64,\
advapi32 \ advapi32 \
comctl32 \ comctl32 \
gdi32 \ gdi32 \
...@@ -67,13 +67,13 @@ $(eval $(call gb_Library_use_libraries,ooofilt_x64,\ ...@@ -67,13 +67,13 @@ $(eval $(call gb_Library_use_libraries,ooofilt_x64,\
kernel32 \ kernel32 \
msvcprt \ msvcprt \
msvcrt \ msvcrt \
oldnames \
ole32 \ ole32 \
oleaut32 \ oleaut32 \
propsys \ propsys \
shell32 \ shell32 \
user32 \ user32 \
uuid \ uuid \
$(gb_Library_win32_OLDNAMES) \
)) ))
$(eval $(call gb_Library_use_static_libraries,ooofilt_x64,\ $(eval $(call gb_Library_use_static_libraries,ooofilt_x64,\
......
...@@ -53,7 +53,7 @@ $(eval $(call gb_Library_use_externals,propertyhdl,\ ...@@ -53,7 +53,7 @@ $(eval $(call gb_Library_use_externals,propertyhdl,\
zlib \ zlib \
)) ))
$(eval $(call gb_Library_use_libraries,propertyhdl,\ $(eval $(call gb_Library_use_system_win32_libs,propertyhdl,\
advapi32 \ advapi32 \
comctl32 \ comctl32 \
gdi32 \ gdi32 \
......
...@@ -59,7 +59,7 @@ $(eval $(call gb_Library_use_externals,propertyhdl_x64,\ ...@@ -59,7 +59,7 @@ $(eval $(call gb_Library_use_externals,propertyhdl_x64,\
zlib \ zlib \
)) ))
$(eval $(call gb_Library_use_libraries,propertyhdl_x64,\ $(eval $(call gb_Library_use_system_win32_libs,propertyhdl_x64,\
advapi32 \ advapi32 \
comctl32 \ comctl32 \
gdi32 \ gdi32 \
...@@ -67,6 +67,7 @@ $(eval $(call gb_Library_use_libraries,propertyhdl_x64,\ ...@@ -67,6 +67,7 @@ $(eval $(call gb_Library_use_libraries,propertyhdl_x64,\
kernel32 \ kernel32 \
msvcprt \ msvcprt \
msvcrt \ msvcrt \
oldnames \
ole32 \ ole32 \
oleaut32 \ oleaut32 \
propsys \ propsys \
...@@ -74,7 +75,6 @@ $(eval $(call gb_Library_use_libraries,propertyhdl_x64,\ ...@@ -74,7 +75,6 @@ $(eval $(call gb_Library_use_libraries,propertyhdl_x64,\
shlwapi \ shlwapi \
user32 \ user32 \
uuid \ uuid \
$(gb_Library_win32_OLDNAMES) \
)) ))
$(eval $(call gb_Library_use_static_libraries,propertyhdl_x64,\ $(eval $(call gb_Library_use_static_libraries,propertyhdl_x64,\
......
...@@ -53,7 +53,7 @@ $(eval $(call gb_Library_use_externals,shlxthdl,\ ...@@ -53,7 +53,7 @@ $(eval $(call gb_Library_use_externals,shlxthdl,\
zlib \ zlib \
)) ))
$(eval $(call gb_Library_use_libraries,shlxthdl,\ $(eval $(call gb_Library_use_system_win32_libs,shlxthdl,\
advapi32 \ advapi32 \
comctl32 \ comctl32 \
gdi32 \ gdi32 \
......
...@@ -59,7 +59,7 @@ $(eval $(call gb_Library_use_externals,shlxthdl_x64,\ ...@@ -59,7 +59,7 @@ $(eval $(call gb_Library_use_externals,shlxthdl_x64,\
zlib \ zlib \
)) ))
$(eval $(call gb_Library_use_libraries,shlxthdl_x64,\ $(eval $(call gb_Library_use_system_win32_libs,shlxthdl_x64,\
advapi32 \ advapi32 \
comctl32 \ comctl32 \
gdi32 \ gdi32 \
...@@ -67,13 +67,13 @@ $(eval $(call gb_Library_use_libraries,shlxthdl_x64,\ ...@@ -67,13 +67,13 @@ $(eval $(call gb_Library_use_libraries,shlxthdl_x64,\
kernel32 \ kernel32 \
msvcprt \ msvcprt \
msvcrt \ msvcrt \
oldnames \
ole32 \ ole32 \
oleaut32 \ oleaut32 \
shell32 \ shell32 \
shlwapi \ shlwapi \
user32 \ user32 \
uuid \ uuid \
$(gb_Library_win32_OLDNAMES) \
)) ))
$(eval $(call gb_Library_use_static_libraries,shlxthdl_x64,\ $(eval $(call gb_Library_use_static_libraries,shlxthdl_x64,\
......
...@@ -29,8 +29,11 @@ $(eval $(call gb_Library_Library,smplmail)) ...@@ -29,8 +29,11 @@ $(eval $(call gb_Library_Library,smplmail))
$(eval $(call gb_Library_use_sdk_api,smplmail)) $(eval $(call gb_Library_use_sdk_api,smplmail))
$(eval $(call gb_Library_use_libraries,smplmail,\ $(eval $(call gb_Library_use_system_win32_libs,smplmail,\
advapi32 \ advapi32 \
))
$(eval $(call gb_Library_use_libraries,smplmail,\
cppu \ cppu \
cppuhelper \ cppuhelper \
sal \ sal \
......
...@@ -32,12 +32,15 @@ $(eval $(call gb_Library_use_sdk_api,syssh)) ...@@ -32,12 +32,15 @@ $(eval $(call gb_Library_use_sdk_api,syssh))
$(eval $(call gb_Library_use_libraries,syssh,\ $(eval $(call gb_Library_use_libraries,syssh,\
cppu \ cppu \
cppuhelper \ cppuhelper \
ole32 \
sal \ sal \
shell32 \
$(gb_UWINAPI) \ $(gb_UWINAPI) \
)) ))
$(eval $(call gb_Library_use_system_win32_libs,syssh,\
ole32 \
shell32 \
))
$(eval $(call gb_Library_add_standard_system_libs,syssh)) $(eval $(call gb_Library_add_standard_system_libs,syssh))
$(eval $(call gb_Library_set_componentfile,syssh,shell/source/win32/syssh)) $(eval $(call gb_Library_set_componentfile,syssh,shell/source/win32/syssh))
......
...@@ -81,7 +81,7 @@ $(eval $(call gb_Library_use_system_darwin_frameworks,OGLTrans,\ ...@@ -81,7 +81,7 @@ $(eval $(call gb_Library_use_system_darwin_frameworks,OGLTrans,\
)) ))
else ifeq ($(strip $(OS)),WNT) else ifeq ($(strip $(OS)),WNT)
$(eval $(call gb_Library_use_libraries,OGLTrans,\ $(eval $(call gb_Library_use_system_win32_libs,OGLTrans,\
gdi32 \ gdi32 \
glu32 \ glu32 \
opengl32 \ opengl32 \
......
...@@ -343,6 +343,7 @@ $(eval $(foreach method,\ ...@@ -343,6 +343,7 @@ $(eval $(foreach method,\
add_libs \ add_libs \
add_standard_system_libs \ add_standard_system_libs \
use_system_darwin_frameworks \ use_system_darwin_frameworks \
use_system_win32_libs \
use_sdk_api \ use_sdk_api \
use_udk_api \ use_udk_api \
use_internal_api \ use_internal_api \
......
...@@ -107,6 +107,7 @@ $(eval $(foreach method,\ ...@@ -107,6 +107,7 @@ $(eval $(foreach method,\
add_libs \ add_libs \
add_standard_system_libs \ add_standard_system_libs \
use_system_darwin_frameworks \ use_system_darwin_frameworks \
use_system_win32_libs \
set_library_path_flags \ set_library_path_flags \
add_api \ add_api \
use_api \ use_api \
......
...@@ -187,6 +187,7 @@ $(eval $(foreach method,\ ...@@ -187,6 +187,7 @@ $(eval $(foreach method,\
add_libs \ add_libs \
add_standard_system_libs \ add_standard_system_libs \
use_system_darwin_frameworks \ use_system_darwin_frameworks \
use_system_win32_libs \
set_library_path_flags \ set_library_path_flags \
add_api \ add_api \
use_api \ use_api \
......
...@@ -186,6 +186,10 @@ $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(call gb_LinkTarget__command_d ...@@ -186,6 +186,10 @@ $(if $(filter Library CppunitTest,$(TARGETTYPE)),$(call gb_LinkTarget__command_d
$(if $(filter StaticLibrary,$(TARGETTYPE)),$(call gb_LinkTarget__command_staticlinklibrary,$(1))) $(if $(filter StaticLibrary,$(TARGETTYPE)),$(call gb_LinkTarget__command_staticlinklibrary,$(1)))
endef endef
define gb_LinkTarget_use_system_win32_libs
$(call gb_LinkTarget_add_libs,$(1),$(foreach lib,$(2),-l$(patsubst oldnames,moldname,$(lib))))
endef
# Library class # Library class
...@@ -213,46 +217,6 @@ gb_Library_OOODLLEXT := $(gb_Library_DLLPOSTFIX)$(gb_Library_DLLEXT) ...@@ -213,46 +217,6 @@ gb_Library_OOODLLEXT := $(gb_Library_DLLPOSTFIX)$(gb_Library_DLLEXT)
gb_Library_UNODLLEXT := .uno$(gb_Library_DLLEXT) gb_Library_UNODLLEXT := .uno$(gb_Library_DLLEXT)
gb_Library_UNOVERDLLEXT := $(gb_Library_UDK_MAJORVER)$(gb_Library_DLLEXT) gb_Library_UNOVERDLLEXT := $(gb_Library_UDK_MAJORVER)$(gb_Library_DLLEXT)
gb_Library_win32_OLDNAMES := moldname
gb_Library_PLAINLIBS_NONE += \
mingwthrd \
mingw32 \
mingwex \
advapi32 \
comctl32 \
comdlg32 \
crypt32 \
d3d9 \
d3dx \
ddraw \
gdi32 \
gdiplus \
imm32 \
kernel32 \
jawt \
msi \
msimg32 \
msvcrt \
msvcprt \
mpr \
$(gb_Library_win32_OLDNAMES) \
ole32 \
oleaut32 \
propsys \
shell32 \
shlwapi \
urlmon \
user32 \
usp10 \
uuid \
winmm \
version \
wininet \
winspool \
wldap32 \
ws2_32 \
gb_Library_LAYER := \ gb_Library_LAYER := \
$(foreach lib,$(gb_Library_OOOLIBS),$(lib):OOO) \ $(foreach lib,$(gb_Library_OOOLIBS),$(lib):OOO) \
$(foreach lib,$(gb_Library_PLAINLIBS_NONE),$(lib):OOO) \ $(foreach lib,$(gb_Library_PLAINLIBS_NONE),$(lib):OOO) \
......
...@@ -374,6 +374,9 @@ $(call gb_Helper_abbreviate_dirs,\ ...@@ -374,6 +374,9 @@ $(call gb_Helper_abbreviate_dirs,\
; exit $$RC) ; exit $$RC)
endef endef
define gb_LinkTarget_use_system_win32_libs
$(call gb_LinkTarget_add_libs,$(1),$(foreach lib,$(2),$(lib).lib))
endef
# Flags common for PE executables (EXEs and DLLs) # Flags common for PE executables (EXEs and DLLs)
gb_Windows_PE_TARGETTYPEFLAGS := \ gb_Windows_PE_TARGETTYPEFLAGS := \
...@@ -401,50 +404,6 @@ gb_Library_get_rpath := ...@@ -401,50 +404,6 @@ gb_Library_get_rpath :=
gb_Library_SYSPRE := i gb_Library_SYSPRE := i
gb_Library_PLAINEXT := .lib gb_Library_PLAINEXT := .lib
gb_Library_win32_OLDNAMES := oldnames
gb_Library_PLAINLIBS_NONE += \
advapi32 \
comctl32 \
comdlg32 \
crypt32 \
d3d9 \
d3dx \
ddraw \
delayimp \
gdi32 \
gdiplus \
imm32\
kernel32 \
jawt \
libcmt \
libcmtd \
mpr \
mscoree \
msi \
msimg32 \
msvcmrt \
msvcmrtd \
msvcrt \
msvcprt \
$(gb_Library_win32_OLDNAMES) \
ole32 \
oleaut32 \
propsys \
secur32 \
shell32 \
shlwapi \
urlmon \
user32 \
usp10 \
uuid \
version \
wininet \
winmm \
winspool \
wldap32 \
ws2_32 \
gb_Library_LAYER := \ gb_Library_LAYER := \
$(foreach lib,$(gb_Library_OOOLIBS),$(lib):OOO) \ $(foreach lib,$(gb_Library_OOOLIBS),$(lib):OOO) \
$(foreach lib,$(gb_Library_PLAINLIBS_NONE),$(lib):OOO) \ $(foreach lib,$(gb_Library_PLAINLIBS_NONE),$(lib):OOO) \
......
...@@ -45,7 +45,7 @@ $(eval $(call gb_CppunitTest_use_libraries,svl_lngmisc, \ ...@@ -45,7 +45,7 @@ $(eval $(call gb_CppunitTest_use_libraries,svl_lngmisc, \
$(eval $(call gb_CppunitTest_add_standard_system_libs,svl_lngmisc)) $(eval $(call gb_CppunitTest_add_standard_system_libs,svl_lngmisc))
ifeq ($(GUI),WNT) ifeq ($(GUI),WNT)
$(eval $(call gb_CppunitTest_use_libraries,svl_lngmisc, \ $(eval $(call gb_CppunitTest_use_system_win32_libs,svl_lngmisc, \
oleaut32 \ oleaut32 \
)) ))
endif endif
......
...@@ -271,7 +271,7 @@ $(eval $(call gb_Library_add_cobjects,svt,\ ...@@ -271,7 +271,7 @@ $(eval $(call gb_Library_add_cobjects,svt,\
)) ))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,svt,\ $(eval $(call gb_Library_use_system_win32_libs,svt,\
advapi32 \ advapi32 \
gdi32 \ gdi32 \
ole32 \ ole32 \
......
...@@ -71,12 +71,11 @@ $(eval $(call gb_Executable_use_static_libraries,$(svx_GENGALBIN),\ ...@@ -71,12 +71,11 @@ $(eval $(call gb_Executable_use_static_libraries,$(svx_GENGALBIN),\
)) ))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Executable_use_libraries,$(svx_GENGALBIN),\ $(eval $(call gb_Executable_use_system_win32_libs,$(svx_GENGALBIN),\
kernel32 \ kernel32 \
msvcrt \ msvcrt \
$(gb_Library_win32_OLDNAMES) \ oldnames \
user32 \ user32 \
uwinapi \
)) ))
endif endif
......
...@@ -117,11 +117,11 @@ $(eval $(call gb_Library_add_exception_objects,tl,\ ...@@ -117,11 +117,11 @@ $(eval $(call gb_Library_add_exception_objects,tl,\
tools/win/source/dll/toolsdll \ tools/win/source/dll/toolsdll \
)) ))
$(eval $(call gb_Library_use_libraries,tl,\ $(eval $(call gb_Library_use_system_win32_libs,tl,\
mpr \ mpr \
ole32 \ ole32 \
shell32 \ shell32 \
uuid \ uuid \
)) ))
endif endif
......
...@@ -74,7 +74,7 @@ $(eval $(call gb_Library_add_exception_objects,ucpdav1,\ ...@@ -74,7 +74,7 @@ $(eval $(call gb_Library_add_exception_objects,ucpdav1,\
)) ))
ifeq ($(OS),WNT) ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,ucpdav1,\ $(eval $(call gb_Library_use_system_win32_libs,ucpdav1,\
ws2_32 \ ws2_32 \
)) ))
endif endif
......
...@@ -314,11 +314,6 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\ ...@@ -314,11 +314,6 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
vcl/generic/glyphs/graphite_serverfont \ vcl/generic/glyphs/graphite_serverfont \
)) ))
endif endif
ifeq ($(OS),WNT)
$(eval $(call gb_Library_use_libraries,vcl,\
version \
))
endif
$(eval $(call gb_Library_use_external,vcl,graphite)) $(eval $(call gb_Library_use_external,vcl,graphite))
...@@ -640,21 +635,20 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\ ...@@ -640,21 +635,20 @@ $(eval $(call gb_Library_add_exception_objects,vcl,\
vcl/win/source/window/salobj \ vcl/win/source/window/salobj \
)) ))
$(eval $(call gb_Library_use_libraries,vcl,\ $(eval $(call gb_Library_use_system_win32_libs,vcl,\
advapi32 \ advapi32 \
gdi32 \ gdi32 \
gdiplus \ gdiplus \
imm32 \ imm32 \
mpr \ mpr \
msimg32 \ msimg32 \
$(gb_Library_win32_OLDNAMES) \ oldnames \
ole32 \ ole32 \
shell32 \ shell32 \
uuid \
usp10 \ usp10 \
uwinapi \ uuid \
winspool \ version \
version \ winspool \
)) ))
$(eval $(call gb_Library_add_nativeres,vcl,vcl/src)) $(eval $(call gb_Library_add_nativeres,vcl,vcl/src))
......
...@@ -101,7 +101,7 @@ $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\ ...@@ -101,7 +101,7 @@ $(eval $(call gb_Library_use_libraries,xsec_xmlsec,\
xmlsec1-mscrypto \ xmlsec1-mscrypto \
)) ))
$(eval $(call gb_Library_use_libraries,xsec_xmlsec,\ $(eval $(call gb_Library_use_system_win32_libs,xsec_xmlsec,\
crypt32 \ crypt32 \
advapi32 \ advapi32 \
)) ))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment