]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
build: move qobject files to qobject/ and libqemuutil.a
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 20 Dec 2012 15:10:26 +0000 (16:10 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 12 Jan 2013 17:42:50 +0000 (18:42 +0100)
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
15 files changed:
Makefile
Makefile.objs
qobject/Makefile.objs [new file with mode: 0644]
qobject/json-lexer.c [moved from json-lexer.c with 100% similarity]
qobject/json-parser.c [moved from json-parser.c with 100% similarity]
qobject/json-streamer.c [moved from json-streamer.c with 100% similarity]
qobject/qbool.c [moved from qbool.c with 100% similarity]
qobject/qdict.c [moved from qdict.c with 100% similarity]
qobject/qerror.c [moved from qerror.c with 100% similarity]
qobject/qfloat.c [moved from qfloat.c with 100% similarity]
qobject/qint.c [moved from qint.c with 100% similarity]
qobject/qjson.c [moved from qjson.c with 100% similarity]
qobject/qlist.c [moved from qlist.c with 100% similarity]
qobject/qstring.c [moved from qstring.c with 100% similarity]
tests/Makefile

index 989cb1f6a597069b4bb0d1895fd0a11b6e520ed3..ee39b364fb7d0cb3f937ae131e340a7dfbdcfddb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -206,7 +206,7 @@ $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/scripts/qapi-commands.py $(qapi-py)
 QGALIB_GEN=$(addprefix qga/qapi-generated/, qga-qapi-types.h qga-qapi-visit.h qga-qmp-commands.h)
 $(qga-obj-y) qemu-ga.o: $(QGALIB_GEN)
 
-qemu-ga$(EXESUF): $(qga-obj-y) $(trace-obj-y) $(qapi-obj-y) $(qobject-obj-y) $(version-obj-y) libqemuutil.a libqemustub.a
+qemu-ga$(EXESUF): $(qga-obj-y) $(trace-obj-y) $(qapi-obj-y) $(version-obj-y) libqemuutil.a libqemustub.a
        $(call LINK, $^)
 
 clean:
index 3b777c822e5f2bfada019d92cd62a19051fb72f7..d412d8c6a8f880638ea563554c55a977cc325c14 100644 (file)
@@ -1,20 +1,13 @@
 #######################################################################
-# Stub library, linked in tools
+# Common libraries for tools and emulators
 stub-obj-y = stubs/
+util-obj-y = util/ qobject/
 
 #######################################################################
 # Target-independent parts used in system and user emulation
 universal-obj-y =
 universal-obj-y += qemu-log.o
 
-#######################################################################
-# QObject
-qobject-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
-qobject-obj-y += qjson.o json-lexer.o json-streamer.o json-parser.o
-qobject-obj-y += qerror.o
-
-universal-obj-y += $(qobject-obj-y)
-
 #######################################################################
 # QOM
 qom-obj-y = qom/
@@ -27,10 +20,6 @@ hw-core-obj-y += hw/
 
 universal-obj-y += $(hw-core-obj-y)
 
-#######################################################################
-# util-obj-y is code depending on the OS (win32 vs posix)
-util-obj-y += util/
-
 #######################################################################
 # coroutines
 coroutine-obj-y = qemu-coroutine.o qemu-coroutine-lock.o qemu-coroutine-io.o
@@ -53,7 +42,7 @@ coroutine-obj-$(CONFIG_WIN32) += coroutine-win32.o
 
 block-obj-y = async.o thread-pool.o
 block-obj-y += nbd.o block.o blockjob.o
-block-obj-y += $(coroutine-obj-y) $(qobject-obj-y) $(version-obj-y)
+block-obj-y += $(coroutine-obj-y) $(version-obj-y)
 block-obj-y += main-loop.o iohandler.o qemu-timer.o
 block-obj-$(CONFIG_POSIX) += aio-posix.o
 block-obj-$(CONFIG_WIN32) += aio-win32.o
diff --git a/qobject/Makefile.objs b/qobject/Makefile.objs
new file mode 100644 (file)
index 0000000..c9ff59c
--- /dev/null
@@ -0,0 +1,3 @@
+util-obj-y = qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o
+util-obj-y += qjson.o json-lexer.o json-streamer.o json-parser.o
+util-obj-y += qerror.o
similarity index 100%
rename from json-lexer.c
rename to qobject/json-lexer.c
similarity index 100%
rename from json-parser.c
rename to qobject/json-parser.c
similarity index 100%
rename from json-streamer.c
rename to qobject/json-streamer.c
similarity index 100%
rename from qbool.c
rename to qobject/qbool.c
similarity index 100%
rename from qdict.c
rename to qobject/qdict.c
similarity index 100%
rename from qerror.c
rename to qobject/qerror.c
similarity index 100%
rename from qfloat.c
rename to qobject/qfloat.c
similarity index 100%
rename from qint.c
rename to qobject/qint.c
similarity index 100%
rename from qjson.c
rename to qobject/qjson.c
similarity index 100%
rename from qlist.c
rename to qobject/qlist.c
similarity index 100%
rename from qstring.c
rename to qobject/qstring.c
index a398b4afb9c8c7c6e1ffaa81d8cd76f2f735a153..837f769433f10adbb308e89ea519a707084a9ba4 100644 (file)
@@ -70,17 +70,17 @@ test-obj-y = tests/check-qint.o tests/check-qstring.o tests/check-qdict.o \
        tests/test-qmp-input-visitor.o tests/test-qmp-input-strict.o \
        tests/test-qmp-commands.o tests/test-visitor-serialization.o
 
-test-qapi-obj-y =  $(qobject-obj-y) $(qapi-obj-y)
+test-qapi-obj-y =  $(qapi-obj-y)
 test-qapi-obj-y += tests/test-qapi-visit.o tests/test-qapi-types.o
 
 $(test-obj-y): QEMU_INCLUDES += -Itests
 
-tests/check-qint$(EXESUF): tests/check-qint.o qint.o
-tests/check-qstring$(EXESUF): tests/check-qstring.o qstring.o
-tests/check-qdict$(EXESUF): tests/check-qdict.o qdict.o qfloat.o qint.o qstring.o qbool.o qlist.o
-tests/check-qlist$(EXESUF): tests/check-qlist.o qlist.o qint.o
-tests/check-qfloat$(EXESUF): tests/check-qfloat.o qfloat.o
-tests/check-qjson$(EXESUF): tests/check-qjson.o $(qobject-obj-y) libqemuutil.a libqemustub.a
+tests/check-qint$(EXESUF): tests/check-qint.o libqemuutil.a
+tests/check-qstring$(EXESUF): tests/check-qstring.o libqemuutil.a
+tests/check-qdict$(EXESUF): tests/check-qdict.o libqemuutil.a
+tests/check-qlist$(EXESUF): tests/check-qlist.o libqemuutil.a
+tests/check-qfloat$(EXESUF): tests/check-qfloat.o libqemuutil.a
+tests/check-qjson$(EXESUF): tests/check-qjson.o libqemuutil.a libqemustub.a
 tests/test-coroutine$(EXESUF): tests/test-coroutine.o $(block-obj-y) libqemuutil.a libqemustub.a
 tests/test-aio$(EXESUF): tests/test-aio.o $(block-obj-y) libqemuutil.a libqemustub.a
 tests/test-thread-pool$(EXESUF): tests/test-thread-pool.o $(block-obj-y) libqemuutil.a libqemustub.a