Kaydet (Commit) c9f8cfd2 authored tarafından Damjan Jovanovic's avatar Damjan Jovanovic

Build fixes for main/fpicker on Windows:

* add comdlg32 to the list of known libraries for Windows
* fix the postprocess/packcomponents paths to the fps and fop components
* fix the WinResTarget name in Module_fpicker.mk
* hack for calling $(shell) (recipe before target error)
* only try to build fps_gnome on *nix
* link to the stl library where necessary
* link to the user32 DLL where necessary
* fi -> endif typos
* fix capitalization of filenames
* move fps and fop to the OOOLIBS layer where they belong

Patch by: me
üst 2cebc018
......@@ -73,8 +73,10 @@ $(eval $(call gb_Helper_register_libraries,OOOLIBS, \
evtatt \
file \
fileacc \
fop \
for \
forui \
fps \
ftransl \
fwe \
fwi \
......@@ -178,9 +180,7 @@ $(eval $(call gb_Helper_register_libraries,UNOLIBS_OOO, \
directx9canvas \
expwrap \
fastsax \
fop \
fpicker \
fps \
fps_aqua \
fps_gnome \
fps_kde4 \
......
......@@ -40,6 +40,7 @@ $(eval $(call gb_Library_add_linked_libs,fop,\
cppu \
cppuhelper \
sal \
stl \
tl \
vcl \
$(gb_STDLIBS) \
......@@ -51,13 +52,14 @@ $(eval $(call gb_Library_add_linked_libs,fop,\
ole32 \
oleaut32 \
shell32 \
user32 \
uwinapi \
))
$(eval $(call gb_Library_add_exception_objects,fop,\
fpicker/source/win32/folderpicker/fopentry \
fpicker/source/win32/folderpicker/folderpicker \
fpicker/source/win32/folderpicker/WinFopImpl \
fpicker/source/win32/folderpicker/Fopentry \
fpicker/source/win32/folderpicker/FolderPicker \
fpicker/source/win32/folderpicker/WinFOPImpl \
fpicker/source/win32/folderpicker/MtaFop \
))
......@@ -75,6 +77,6 @@ $(eval $(call gb_Library_add_cxxobjects,fop,\
fpicker/source/win32/misc/resourceprovider \
, -DUNICODE -D_UNICODE $(gb_LinkTarget_EXCEPTIONFLAGS) \
))
fi
endif
# vim: set noet sw=4 ts=4:
......@@ -40,6 +40,7 @@ $(eval $(call gb_Library_add_linked_libs,fps,\
cppu \
cppuhelper \
sal \
stl \
tl \
vcl \
$(gb_STDLIBS) \
......@@ -53,6 +54,7 @@ $(eval $(call gb_Library_add_linked_libs,fps,\
ole32 \
oleaut32 \
shell32 \
user32\
uuid \
uwinapi \
))
......@@ -99,6 +101,6 @@ $(eval $(call gb_Library_add_cxxobjects,fps,\
fpicker/source/win32/misc/resourceprovider \
, -DUNICODE -D_UNICODE $(gb_LinkTarget_EXCEPTIONFLAGS) \
))
fi
endif
# vim: set noet sw=4 ts=4:
......@@ -41,6 +41,7 @@ $(eval $(call gb_Library_add_linked_libs,fps_office,\
cppuhelper \
ootk \
sal \
stl \
svl \
svt \
tl \
......
......@@ -30,6 +30,7 @@ $(eval $(call gb_Module_add_targets,fpicker,\
Package_xml \
))
ifeq ($(GUIBASE),unx)
ifeq ($(ENABLE_GTK),TRUE)
GTK_TWO_FOUR:=$(shell pkg-config --exists 'gtk+-2.0 >= 2.4.0' && echo ok)
ifeq ($(GTK_TWO_FOUR),ok)
......@@ -37,7 +38,8 @@ $(eval $(call gb_Module_add_targets,fpicker,\
Library_fps_gnome \
))
else
$(shell pkg-config --print-errors --exists 'gtk+-2.0 >= 2.4.0')
_GTK_VERSION_ERR := $(shell pkg-config --print-errors --exists 'gtk+-2.0 >= 2.4.0')
endif
endif
endif
......@@ -53,9 +55,8 @@ ifeq ($(GUI),WNT)
$(eval $(call gb_Module_add_targets,fpicker,\
Library_fps \
Library_fop \
WinResTarget_vcl \
WinResTarget_fpicker \
))
$(eval
endif
# vim: set noet sw=4 ts=4:
......@@ -331,8 +331,8 @@ my_components += \
component/dtrans/util/dnd \
component/dtrans/util/ftransl \
component/dtrans/util/sysdtrans \
component/fpicker/source/win32/folderpicker/fop \
component/fpicker/source/win32/filepicker/fps \
component/fpicker/util/fop \
component/fpicker/util/fps \
java_uno_accessbridge \
sysmail \
winaccessibility \
......
......@@ -441,6 +441,7 @@ gb_Library_PLAINEXT := .lib
gb_Library_PLAINLIBS_NONE += \
advapi32 \
comdlg32 \
d3d9 \
d3dx \
ddraw \
......
......@@ -462,6 +462,7 @@ gb_Library_PLAINLIBS_NONE += \
$(gb_MINGW_LIBSTDCPP) \
$(gb_MINGW_LIBGCC) \
advapi32 \
comdlg32 \
d3d9 \
d3dx \
ddraw \
......
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