src/platforms/symbian/configurations/hbconfig.flm
changeset 21 4633027730f5
child 30 80e4d18b72f5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/platforms/symbian/configurations/hbconfig.flm	Wed Aug 18 10:05:37 2010 +0300
@@ -0,0 +1,38 @@
+# /****************************************************************************
+# **
+# ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+# ** Contact: Nokia Corporation (developer.feedback@nokia.com)
+# **
+# ****************************************************************************/
+
+# FLM to configure hb
+# set environment variable HB_CONFIG_PARAMS if custom configure parameters needs to be added
+
+
+HBDIR:=$(EXTENSION_ROOT)/$(HB_ROOT)
+CONFIGURE_OPTIONS:= $(OPTIONS) $(HB_CONFIG_PARAMS) $(OPTION_QMAKE) $(OPTION_QMKSPEC) $(OPTION_QFLAG)
+
+GUARD:=done_$(call sanitise,$(HBDIR)/.qmake.cache)
+ifeq ($($(GUARD)),)
+$(GUARD):=1
+
+define hbconf
+FINAL:: $(HBDIR)/.qmake.cache
+
+$(HBDIR)/.qmake.cache : $(HBDIR)/hb.pro EXPORT
+	$(call startrule,hbconf) \
+	cd $(HBDIR) && \
+	$(SBS_PYTHON) configure.py $(CONFIGURE_OPTIONS) && \
+	$(GNUCP) hb.prf $(EPOCROOT)/epoc32/tools/qt/mkspecs/features && \
+	$(GNUCP) hb_install.prf $(EPOCROOT)/epoc32/tools/qt/mkspecs/features && \
+	$(GNUCP) mkspecs/hb_functions.prf $(EPOCROOT)/epoc32/tools/qt/mkspecs/features && \
+	$(GNUCP) mkspecs/docml2bin.prf $(EPOCROOT)/epoc32/tools/qt/mkspecs/features \
+	$(call endrule,hbconf)
+endef
+
+$(eval $(hbconf))
+
+# Covenience headers etc. this should be a call to make distclean on the $(HBDIR)
+$(eval $(call GenerateStandardCleanTarget, $(HBDIR)/.qmake.cache))
+endif
+