Merge remote-tracking branch 'remotes/kraxel/tags/input-20171023-pull-request' into...
[qemu.git] / qga / vss-win32 / Makefile.objs
blob23d08da2259a92d16dc2eeb3c78ff9ef39860f9d
1 # rules to build qga-vss.dll
3 qga-vss-dll-obj-y += requester.o provider.o install.o
5 obj-qga-vss-dll-obj-y = $(addprefix $(obj)/, $(qga-vss-dll-obj-y))
6 $(obj-qga-vss-dll-obj-y): QEMU_CXXFLAGS = $(filter-out -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wold-style-declaration -Wold-style-definition -Wredundant-decls -fstack-protector-all -fstack-protector-strong, $(QEMU_CFLAGS)) -Wno-unknown-pragmas -Wno-delete-non-virtual-dtor
8 $(obj)/qga-vss.dll: LDFLAGS = -shared -Wl,--add-stdcall-alias,--enable-stdcall-fixup -lole32 -loleaut32 -lshlwapi -luuid -static
9 $(obj)/qga-vss.dll: $(obj-qga-vss-dll-obj-y) $(SRC_PATH)/$(obj)/qga-vss.def
10         $(call quiet-command,$(CXX) -o $@ $(qga-vss-dll-obj-y) $(SRC_PATH)/qga/vss-win32/qga-vss.def $(CXXFLAGS) $(LDFLAGS),"LINK","$(TARGET_DIR)$@")
13 # rules to build qga-provider.tlb
14 # Currently, only native build is supported because building .tlb
15 # (TypeLibrary) from .idl requires WindowsSDK and MIDL (and cl.exe in VC++).
16 MIDL=$(WIN_SDK)/Bin/midl
18 $(obj)/qga-vss.tlb: $(SRC_PATH)/$(obj)/qga-vss.idl
19 ifeq ($(WIN_SDK),"")
20         $(call quiet-command,cp $(dir $<)qga-vss.tlb $@,"COPY","$(TARGET_DIR)$@")
21 else
22         $(call quiet-command,$(MIDL) -tlb $@ -I $(WIN_SDK)/Include $<,"MIDL","$(TARGET_DIR)$@")
23 endif