aboutsummaryrefslogtreecommitdiff
path: root/build/import/libqt/core
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-03-22 10:49:56 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-04-22 17:54:50 +0200
commit8e29be9f2229a6c618f95b725502f7082f02d50a (patch)
tree77eb79933015300a398a10135122534bfa5abaa3 /build/import/libqt/core
parentd206125ed2d85891d946c3c12c9b7eb95d5af41e (diff)
Add Qt profile example
Diffstat (limited to 'build/import/libqt/core')
-rw-r--r--build/import/libqt/core/rules.make28
-rw-r--r--build/import/libqt/core/stub.make36
2 files changed, 64 insertions, 0 deletions
diff --git a/build/import/libqt/core/rules.make b/build/import/libqt/core/rules.make
new file mode 100644
index 0000000..b0d5e2e
--- /dev/null
+++ b/build/import/libqt/core/rules.make
@@ -0,0 +1,28 @@
+# file : build/import/libqt/core/rules.make
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2005-2011 Boris Kolpackov
+# license : GNU GPL v2; see accompanying LICENSE file
+
+$(dcf_root)/import/libqt/%: root := $(libqt_root)
+$(dcf_root)/import/libqt/core/core.l: | $(dcf_root)/import/libqt/core/.
+
+ifeq ($(libqt_type),archive)
+$(dcf_root)/import/libqt/core/core.l: $(libqt_root)/lib/libQtCore.a
+ @echo $^ >$@
+else
+$(dcf_root)/import/libqt/core/core.l: $(libqt_root)/lib/libQtCore.so
+ @echo $^ >$@
+ @echo rpath:$(root)/lib >>$@
+endif
+
+$(dcf_root)/import/libqt/core/core.l.cpp-options: | $(dcf_root)/import/libqt/core/.
+ @echo include: -I$(root)/include -I$(root)/include/QtCore >$@
+
+ifndef %foreign%
+
+disfigure::
+ $(call message,rm $(dcf_root)/import/libqt/core/core.l,\
+rm -f $(dcf_root)/import/libqt/core/core.l)
+ $(call message,,rm -f $(dcf_root)/import/libqt/core/core.l.cpp-options)
+
+endif
diff --git a/build/import/libqt/core/stub.make b/build/import/libqt/core/stub.make
new file mode 100644
index 0000000..821eab7
--- /dev/null
+++ b/build/import/libqt/core/stub.make
@@ -0,0 +1,36 @@
+# file : build/import/libqt/core/stub.make
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2005-2011 Boris Kolpackov
+# license : GNU GPL v2; see accompanying LICENSE file
+
+$(call include-once,$(scf_root)/import/libqt/configuration-rules.make,$(dcf_root))
+
+libqt_installed :=
+
+$(call -include,$(dcf_root)/import/libqt/configuration-dynamic.make)
+
+ifdef libqt_installed
+
+ifeq ($(libqt_installed),y)
+
+$(call export,\
+ l: $(libqt_core_libs),\
+ cpp-options: ,\
+ cpp-options-inline: $(libqt_core_cppflags))
+
+else
+
+$(call include-once,$(scf_root)/import/libqt/core/rules.make,$(dcf_root))
+
+$(call export,\
+ l: $(dcf_root)/import/libqt/core/core.l,\
+ cpp-options: $(dcf_root)/import/libqt/core/core.l.cpp-options,\
+ cpp-options-inline: )
+
+endif
+
+else
+
+.NOTPARALLEL:
+
+endif