]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
ui: move all ui components in ui/
authorCorentin Chary <corentincj@iksaif.net>
Wed, 7 Jul 2010 18:57:52 +0000 (20:57 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 26 Jul 2010 22:35:54 +0000 (17:35 -0500)
Move sdl, vnc, curses and cocoa UI into ui/ to cleanup
the root directory. Also remove some unnecessary explicit
targets from Makefile.

aliguori: fix build when srcdir != objdir

Signed-off-by: Corentin Chary <corentincj@iksaif.net>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
31 files changed:
Makefile
Makefile.objs
configure
ui/cocoa.m [moved from cocoa.m with 100% similarity]
ui/curses.c [moved from curses.c with 100% similarity]
ui/curses_keys.h [moved from curses_keys.h with 100% similarity]
ui/d3des.c [moved from d3des.c with 100% similarity]
ui/d3des.h [moved from d3des.h with 100% similarity]
ui/keymaps.c [moved from keymaps.c with 100% similarity]
ui/keymaps.h [moved from keymaps.h with 100% similarity]
ui/sdl.c [moved from sdl.c with 100% similarity]
ui/sdl_keysym.h [moved from sdl_keysym.h with 100% similarity]
ui/sdl_zoom.c [moved from sdl_zoom.c with 100% similarity]
ui/sdl_zoom.h [moved from sdl_zoom.h with 100% similarity]
ui/sdl_zoom_template.h [moved from sdl_zoom_template.h with 100% similarity]
ui/vnc-auth-sasl.c [moved from vnc-auth-sasl.c with 100% similarity]
ui/vnc-auth-sasl.h [moved from vnc-auth-sasl.h with 100% similarity]
ui/vnc-auth-vencrypt.c [moved from vnc-auth-vencrypt.c with 100% similarity]
ui/vnc-auth-vencrypt.h [moved from vnc-auth-vencrypt.h with 100% similarity]
ui/vnc-encoding-hextile.c [moved from vnc-encoding-hextile.c with 100% similarity]
ui/vnc-encoding-tight.c [moved from vnc-encoding-tight.c with 100% similarity]
ui/vnc-encoding-tight.h [moved from vnc-encoding-tight.h with 100% similarity]
ui/vnc-encoding-zlib.c [moved from vnc-encoding-zlib.c with 100% similarity]
ui/vnc-tls.c [moved from vnc-tls.c with 100% similarity]
ui/vnc-tls.h [moved from vnc-tls.h with 100% similarity]
ui/vnc.c [moved from vnc.c with 100% similarity]
ui/vnc.h [moved from vnc.h with 100% similarity]
ui/vnc_keysym.h [moved from vnc_keysym.h with 100% similarity]
ui/vnchextile.h [moved from vnchextile.h with 100% similarity]
ui/x_keymap.c [moved from x_keymap.c with 100% similarity]
ui/x_keymap.h [moved from x_keymap.h with 100% similarity]

index 6fc1b2c89bb30a580af23c682e47279c7cbb4c89..f95cc2fd01f253d1970cb78a429ec543607d0691 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -96,42 +96,14 @@ audio/audio.o audio/fmodaudio.o: QEMU_CFLAGS += $(FMOD_CFLAGS)
 
 QEMU_CFLAGS+=$(CURL_CFLAGS)
 
-cocoa.o: cocoa.m
+ui/cocoa.o: ui/cocoa.m
 
-keymaps.o: keymaps.c keymaps.h
+ui/sdl.o audio/sdlaudio.o ui/sdl_zoom.o baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
 
-sdl_zoom.o: sdl_zoom.c sdl_zoom.h sdl_zoom_template.h
-
-sdl.o: sdl.c keymaps.h sdl_keysym.h sdl_zoom.h
-
-sdl.o audio/sdlaudio.o sdl_zoom.o baum.o: QEMU_CFLAGS += $(SDL_CFLAGS)
-
-acl.o: acl.h acl.c
-
-vnc.h: vnc-tls.h vnc-auth-vencrypt.h vnc-auth-sasl.h keymaps.h
-
-vnc.o: vnc.c vnc.h vnc_keysym.h vnchextile.h d3des.c d3des.h acl.h
-
-vnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
-
-vnc-tls.o: vnc-tls.c vnc.h
-
-vnc-auth-vencrypt.o: vnc-auth-vencrypt.c vnc.h
-
-vnc-auth-sasl.o: vnc-auth-sasl.c vnc.h
-
-vnc-encoding-zlib.o: vnc-encoding-zlib.c vnc.h
-
-vnc-encoding-hextile.o: vnc-encoding-hextile.c vnc.h
-
-vnc-encoding-tight.o: vnc-encoding-tight.c vnc.h vnc-encoding-tight.h
-
-curses.o: curses.c keymaps.h curses_keys.h
+ui/vnc.o: QEMU_CFLAGS += $(VNC_TLS_CFLAGS)
 
 bt-host.o: QEMU_CFLAGS += $(BLUEZ_CFLAGS)
 
-iov.o: iov.c iov.h
-
 ######################################################################
 
 qemu-img.o: qemu-img-cmds.h
@@ -159,7 +131,7 @@ clean:
 # avoid old build problems by removing potentially incorrect old files
        rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
        rm -f *.o *.d *.a $(TOOLS) TAGS cscope.* *.pod *~ */*~
-       rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d fsdev/*.o fsdev/*.d
+       rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d fsdev/*.o fsdev/*.d ui/*.o ui/*.d
        rm -f qemu-img-cmds.h
        $(MAKE) -C tests clean
        for d in $(ALL_SUBDIRS) libhw32 libhw64 libuser libdis libdis-user; do \
@@ -345,4 +317,4 @@ tarbin:
        $(mandir)/man8/qemu-nbd.8
 
 # Include automatically generated dependency files
--include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d)
+-include $(wildcard *.d audio/*.d slirp/*.d block/*.d net/*.d ui/*.d)
index 67f1b215b146bf9f2b6f35ab04a8f4c5f9c5b8ee..43b4e169e333be6a83f34952c3cccb9f563ca3fe 100644 (file)
@@ -102,16 +102,18 @@ audio-obj-$(CONFIG_AUDIO_WIN_INT) += audio_win_int.o
 audio-obj-y += wavcapture.o
 common-obj-y += $(addprefix audio/, $(audio-obj-y))
 
-common-obj-y += keymaps.o
-common-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
-common-obj-$(CONFIG_CURSES) += curses.o
-common-obj-y += vnc.o acl.o d3des.o
-common-obj-y += vnc-encoding-zlib.o vnc-encoding-hextile.o
-common-obj-y += vnc-encoding-tight.o
-common-obj-y += iov.o
-common-obj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o
-common-obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
-common-obj-$(CONFIG_COCOA) += cocoa.o
+ui-obj-y += keymaps.o
+ui-obj-$(CONFIG_SDL) += sdl.o sdl_zoom.o x_keymap.o
+ui-obj-$(CONFIG_CURSES) += curses.o
+ui-obj-y += vnc.o d3des.o
+ui-obj-y += vnc-encoding-zlib.o vnc-encoding-hextile.o
+ui-obj-y += vnc-encoding-tight.o
+ui-obj-$(CONFIG_VNC_TLS) += vnc-tls.o vnc-auth-vencrypt.o
+ui-obj-$(CONFIG_VNC_SASL) += vnc-auth-sasl.o
+ui-obj-$(CONFIG_COCOA) += cocoa.o
+common-obj-y += $(addprefix ui/, $(ui-obj-y))
+
+common-obj-y += iov.o acl.o
 common-obj-$(CONFIG_IOTHREAD) += qemu-thread.o
 common-obj-y += notify.o event_notifier.o
 common-obj-y += qemu-timer.o
index 27791b530e4ff97c80fcf0d693b7bc45f0d0fae7..33e98a499367753985b05ebd660529d59399ff7c 100755 (executable)
--- a/configure
+++ b/configure
@@ -2864,7 +2864,7 @@ done # for target in $targets
 if test "$source_path_used" = "yes" ; then
     DIRS="tests tests/cris slirp audio block net pc-bios/optionrom"
     DIRS="$DIRS roms/seabios roms/vgabios"
-    DIRS="$DIRS fsdev"
+    DIRS="$DIRS fsdev ui"
     FILES="Makefile tests/Makefile"
     FILES="$FILES tests/cris/Makefile tests/cris/.gdbinit"
     FILES="$FILES tests/test-mmap.c"
similarity index 100%
rename from cocoa.m
rename to ui/cocoa.m
similarity index 100%
rename from curses.c
rename to ui/curses.c
similarity index 100%
rename from curses_keys.h
rename to ui/curses_keys.h
similarity index 100%
rename from d3des.c
rename to ui/d3des.c
similarity index 100%
rename from d3des.h
rename to ui/d3des.h
similarity index 100%
rename from keymaps.c
rename to ui/keymaps.c
similarity index 100%
rename from keymaps.h
rename to ui/keymaps.h
diff --git a/sdl.c b/ui/sdl.c
similarity index 100%
rename from sdl.c
rename to ui/sdl.c
similarity index 100%
rename from sdl_keysym.h
rename to ui/sdl_keysym.h
similarity index 100%
rename from sdl_zoom.c
rename to ui/sdl_zoom.c
similarity index 100%
rename from sdl_zoom.h
rename to ui/sdl_zoom.h
similarity index 100%
rename from sdl_zoom_template.h
rename to ui/sdl_zoom_template.h
similarity index 100%
rename from vnc-auth-sasl.c
rename to ui/vnc-auth-sasl.c
similarity index 100%
rename from vnc-auth-sasl.h
rename to ui/vnc-auth-sasl.h
similarity index 100%
rename from vnc-auth-vencrypt.c
rename to ui/vnc-auth-vencrypt.c
similarity index 100%
rename from vnc-auth-vencrypt.h
rename to ui/vnc-auth-vencrypt.h
similarity index 100%
rename from vnc-encoding-tight.c
rename to ui/vnc-encoding-tight.c
similarity index 100%
rename from vnc-encoding-tight.h
rename to ui/vnc-encoding-tight.h
similarity index 100%
rename from vnc-encoding-zlib.c
rename to ui/vnc-encoding-zlib.c
similarity index 100%
rename from vnc-tls.c
rename to ui/vnc-tls.c
similarity index 100%
rename from vnc-tls.h
rename to ui/vnc-tls.h
diff --git a/vnc.c b/ui/vnc.c
similarity index 100%
rename from vnc.c
rename to ui/vnc.c
diff --git a/vnc.h b/ui/vnc.h
similarity index 100%
rename from vnc.h
rename to ui/vnc.h
similarity index 100%
rename from vnc_keysym.h
rename to ui/vnc_keysym.h
similarity index 100%
rename from vnchextile.h
rename to ui/vnchextile.h
similarity index 100%
rename from x_keymap.c
rename to ui/x_keymap.c
similarity index 100%
rename from x_keymap.h
rename to ui/x_keymap.h