Skip to contentSkip to conversation

ui/Makefile.objs: delete unnecessary cocoa.o dependency

PATCH In review Peter Maydell 3 participants 4 messages Sep 11, 2013 – Sep 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ui/Makefile.objs: delete unnecessary cocoa.o dependency

Delete an unnecessary dependency for cocoa.o; we already have a general rule that tells Make that we can build a .o file from a .m source using an ObjC compiler, so this specific rule is unnecessary. Further, it is using the dubious construct "$(SRC_PATH)/$(obj)" to get at the source directory, which will break when $(obj) is redefined as part of the preparation for per-object library support.

---
This needs to go in before Fam's patchset for modules can be applied, either via a cocoa maintainer queue or via -trivial or just as a first patch on the front of Fam's patches if they would otherwise be being held up by this.

 ui/Makefile.objs | 2 --
 1 file changed, 2 deletions(-)
ui/Makefile.objs +0 -2
index 6ddc0de..f33be47 100644
@@ -17,6 +17,4 @@ common-obj-$(CONFIG_GTK) += gtk.o x_keymap.o
 
 $(obj)/sdl.o $(obj)/sdl_zoom.o: QEMU_CFLAGS += $(SDL_CFLAGS) 
 
-$(obj)/cocoa.o: $(SRC_PATH)/$(obj)/cocoa.m
-
 $(obj)/gtk.o: QEMU_CFLAGS += $(GTK_CFLAGS) $(VTE_CFLAGS)
Signature · 1 line
1.7.11.4
#1 lore raw
Quoted 8 lines · Peter Maydell

Delete an unnecessary dependency for cocoa.o; we already have a general rule that tells Make that we can build a .o file from a .m source using an ObjC compiler, so this specific rule is unnecessary. Further, it is using the dubious construct "$(SRC_PATH)/$(obj)" to get at the source directory, which will break when $(obj) is redefined as part of the preparation for per-object library support.

Quoted 7 lines

---
This needs to go in before Fam's patchset for modules can be applied, either via a cocoa maintainer queue or via -trivial or just as a first patch on the front of Fam's patches if they would otherwise be being held up by this.

Sure, I'll apply to my tree and rebase if it's merged.

Thanks,

Fam

Quoted 17 lines
 ui/Makefile.objs | 2 --
 1 file changed, 2 deletions(-)
ui/Makefile.objs +0 -2
index 6ddc0de..f33be47 100644
@@ -17,6 +17,4 @@ common-obj-$(CONFIG_GTK) += gtk.o x_keymap.o
 
 $(obj)/sdl.o $(obj)/sdl_zoom.o: QEMU_CFLAGS += $(SDL_CFLAGS) 
 
-$(obj)/cocoa.o: $(SRC_PATH)/$(obj)/cocoa.m
-
 $(obj)/gtk.o: QEMU_CFLAGS += $(GTK_CFLAGS) $(VTE_CFLAGS)
Signature · 1 line
1.7.11.4
Reviewed-by
#2 lore raw

Am 12.09.2013 03:23, schrieb Fam Zheng:

Quoted 17 lines · Peter Maydell
Quoted 8 lines

Delete an unnecessary dependency for cocoa.o; we already have a general rule that tells Make that we can build a .o file from a .m source using an ObjC compiler, so this specific rule is unnecessary. Further, it is using the dubious construct "$(SRC_PATH)/$(obj)" to get at the source directory, which will break when $(obj) is redefined as part of the preparation for per-object library support.

Quoted 7 lines

---
This needs to go in before Fam's patchset for modules can be applied, either via a cocoa maintainer queue or via -trivial or just as a first patch on the front of Fam's patches if they would otherwise be being held up by this.

Quoted 1 line

Sure, I'll apply to my tree and rebase if it's merged.

If it works, fine with me:

I don't think I have any other Cocoa patches queued - or did I miss a more acceptable version of the command-key workaround?

Regards,
Andreas

Quoted 22 lines

Thanks,

Fam

Quoted 17 lines
 ui/Makefile.objs | 2 --
 1 file changed, 2 deletions(-)
ui/Makefile.objs +0 -2
index 6ddc0de..f33be47 100644
@@ -17,6 +17,4 @@ common-obj-$(CONFIG_GTK) += gtk.o x_keymap.o
 
 $(obj)/sdl.o $(obj)/sdl_zoom.o: QEMU_CFLAGS += $(SDL_CFLAGS) 
 
-$(obj)/cocoa.o: $(SRC_PATH)/$(obj)/cocoa.m
-
 $(obj)/gtk.o: QEMU_CFLAGS += $(GTK_CFLAGS) $(VTE_CFLAGS)
Signature · 1 line
1.7.11.4
#3 lore raw
Quoted 2 lines · Andreas Färber

I don't think I have any other Cocoa patches queued - or did I miss a more acceptable version of the command-key workaround?

http://lists.nongnu.org/archive/html/qemu-devel/2013-08/msg02300.html
is the latest on that front: it is no longer trying to add new command line options, at least. It was on my todo list to look at and test but I never got round to it :-(

-- PMM