10
|
1 |
# /****************************************************************************
|
|
2 |
# **
|
|
3 |
# ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
4 |
# ** Contact:
|
|
5 |
# **
|
|
6 |
# ****************************************************************************/
|
|
7 |
|
|
8 |
# FLM to generate Qt style headers for QtMobility
|
|
9 |
QTMOBILITY_ROOT := $(subst group,,$(subst \,/,$(EXTENSION_ROOT)qtmobility/))
|
|
10 |
QTMOBILITY_BIN := $(QTMOBILITY_ROOT)bin
|
|
11 |
QTMOBILITY_INCLUDE := $(QTMOBILITY_ROOT)include
|
|
12 |
QTMOBILITY_BEARER_INCLUDE := $(QTMOBILITY_INCLUDE)/QtBearer
|
|
13 |
QTMOBILITY_CONTACTS_INCLUDE := $(QTMOBILITY_INCLUDE)/QtContacts
|
|
14 |
QTMOBILITY_LOCATION_INCLUDE := $(QTMOBILITY_INCLUDE)/QtLocation
|
|
15 |
QTMOBILITY_MESSAGING_INCLUDE := $(QTMOBILITY_INCLUDE)/QtMessaging
|
|
16 |
QTMOBILITY_MULTIMEDIA_INCLUDE := $(QTMOBILITY_INCLUDE)/QtMultimediaKit
|
|
17 |
QTMOBILITY_PUBLISHSUBSCRIBE_INCLUDE := $(QTMOBILITY_INCLUDE)/QtPublishSubscribe
|
|
18 |
QTMOBILITY_SYSTEMINFO_INCLUDE := $(QTMOBILITY_INCLUDE)/QtSystemInfo
|
|
19 |
QTMOBILITY_SERVICEFRAMEWORK_INCLUDE := $(QTMOBILITY_INCLUDE)/QtServiceFramework
|
|
20 |
QTMOBILITY_VERSIT_INCLUDE := $(QTMOBILITY_INCLUDE)/QtVersit
|
|
21 |
QTMOBILITY_SENSORS_INCLUDE := $(QTMOBILITY_INCLUDE)/QtSensors
|
|
22 |
QTMOBILITY_SRC := $(QTMOBILITY_ROOT)src
|
|
23 |
QTMOBILITY_GLOBAL_SRC := $(QTMOBILITY_SRC)/global
|
|
24 |
QTMOBILITY_BEARER_SRC := $(QTMOBILITY_SRC)/bearer
|
|
25 |
QTMOBILITY_CONTACTS_SRC := $(QTMOBILITY_SRC)/contacts
|
|
26 |
QTMOBILITY_LOCATION_SRC := $(QTMOBILITY_SRC)/location
|
|
27 |
QTMOBILITY_MESSAGING_SRC := $(QTMOBILITY_SRC)/messaging
|
|
28 |
QTMOBILITY_MULTIMEDIA_SRC := $(QTMOBILITY_SRC)/multimedia
|
|
29 |
QTMOBILITY_PUBLISHSUBSCRIBE_SRC := $(QTMOBILITY_SRC)/publishsubscribe
|
|
30 |
QTMOBILITY_SYSTEMINFO_SRC := $(QTMOBILITY_SRC)/systeminfo
|
|
31 |
QTMOBILITY_SERVICEFRAMEWORK_SRC := $(QTMOBILITY_SRC)/serviceframework
|
|
32 |
QTMOBILITY_VERSIT_SRC := $(QTMOBILITY_SRC)/versit
|
|
33 |
QTMOBILITY_SENSORS_SRC := $(QTMOBILITY_SRC)/sensors
|
|
34 |
|
|
35 |
define generate_module_headers
|
|
36 |
|
|
37 |
EXPORT::
|
|
38 |
$(call startrule,generate_module_headers,FORCESUCCESS) \
|
|
39 |
cd $(QTMOBILITY_ROOT) && \
|
|
40 |
$(PERL) -S $(QTMOBILITY_BIN)/$(SYNCHEADERS) $(1) $(2) \
|
|
41 |
$(call endrule,generate_module_headers)
|
|
42 |
|
|
43 |
CLEAN::
|
|
44 |
$(call startrule,clean) \
|
|
45 |
$(GNURM) -rf $(1) \
|
|
46 |
$(call endrule,clean)
|
|
47 |
|
|
48 |
WHAT::
|
|
49 |
@(echo "<whatlog bldinf='$(COMPONENT_META)' mmp='$(PROJECT_META)' config='$(SBS_CONFIGURATION)'>"; \
|
|
50 |
$(GNUFIND) $(1) -type f -print | (read LINE; \
|
|
51 |
while [ $$$$? -eq 0 ]; do \
|
|
52 |
echo "<build>$$$$LINE</build>"; \
|
|
53 |
read LINE; \
|
|
54 |
done); \
|
|
55 |
echo "</whatlog>") $(if $(DESCRAMBLE),2>&1 | $(DESCRAMBLE))
|
|
56 |
|
|
57 |
endef
|
|
58 |
|
|
59 |
GUARD:=done_$(call sanitise,$(QTMOBILITY_INCLUDE))
|
|
60 |
ifeq ($($(GUARD)),)
|
|
61 |
$(GUARD) := 1
|
|
62 |
|
|
63 |
ifneq (,$(findstring bearer,$(MODULES)))
|
|
64 |
$(eval $(call generate_module_headers, $(QTMOBILITY_BEARER_INCLUDE), $(QTMOBILITY_BEARER_SRC)))
|
|
65 |
endif
|
|
66 |
|
|
67 |
ifneq (,$(findstring contacts,$(MODULES)))
|
|
68 |
$(eval $(call generate_module_headers, $(QTMOBILITY_CONTACTS_INCLUDE), $(QTMOBILITY_CONTACTS_SRC)))
|
|
69 |
$(eval $(call generate_module_headers, $(QTMOBILITY_CONTACTS_INCLUDE), $(QTMOBILITY_CONTACTS_SRC)/requests))
|
|
70 |
$(eval $(call generate_module_headers, $(QTMOBILITY_CONTACTS_INCLUDE), $(QTMOBILITY_CONTACTS_SRC)/filters))
|
|
71 |
$(eval $(call generate_module_headers, $(QTMOBILITY_CONTACTS_INCLUDE), $(QTMOBILITY_CONTACTS_SRC)/details))
|
|
72 |
endif
|
|
73 |
|
|
74 |
ifneq (,$(findstring location,$(MODULES)))
|
|
75 |
$(eval $(call generate_module_headers, $(QTMOBILITY_LOCATION_INCLUDE), $(QTMOBILITY_LOCATION_SRC)))
|
|
76 |
endif
|
|
77 |
|
|
78 |
ifneq (,$(findstring messaging,$(MODULES)))
|
|
79 |
$(eval $(call generate_module_headers, $(QTMOBILITY_MESSAGING_INCLUDE), $(QTMOBILITY_MESSAGING_SRC)))
|
|
80 |
endif
|
|
81 |
|
|
82 |
ifneq (,$(findstring multimedia,$(MODULES)))
|
|
83 |
$(eval $(call generate_module_headers, $(QTMOBILITY_MULTIMEDIA_INCLUDE), $(QTMOBILITY_MULTIMEDIA_SRC)))
|
|
84 |
$(eval $(call generate_module_headers, $(QTMOBILITY_MULTIMEDIA_INCLUDE), $(QTMOBILITY_MULTIMEDIA_SRC)/audio))
|
|
85 |
$(eval $(call generate_module_headers, $(QTMOBILITY_MULTIMEDIA_INCLUDE), $(QTMOBILITY_MULTIMEDIA_SRC)/video))
|
|
86 |
endif
|
|
87 |
|
|
88 |
ifneq (,$(findstring publishsubscribe,$(MODULES)))
|
|
89 |
$(eval $(call generate_module_headers, $(QTMOBILITY_PUBLISHSUBSCRIBE_INCLUDE), $(QTMOBILITY_PUBLISHSUBSCRIBE_SRC)))
|
|
90 |
endif
|
|
91 |
|
|
92 |
ifneq (,$(findstring systeminfo,$(MODULES)))
|
|
93 |
$(eval $(call generate_module_headers, $(QTMOBILITY_SYSTEMINFO_INCLUDE), $(QTMOBILITY_SYSTEMINFO_SRC)))
|
|
94 |
endif
|
|
95 |
|
|
96 |
ifneq (,$(findstring serviceframework,$(MODULES)))
|
|
97 |
$(eval $(call generate_module_headers, $(QTMOBILITY_SERVICEFRAMEWORK_INCLUDE), $(QTMOBILITY_SERVICEFRAMEWORK_SRC)))
|
|
98 |
endif
|
|
99 |
|
|
100 |
ifneq (,$(findstring versit,$(MODULES)))
|
|
101 |
$(eval $(call generate_module_headers, $(QTMOBILITY_VERSIT_INCLUDE), $(QTMOBILITY_VERSIT_SRC)))
|
|
102 |
endif
|
|
103 |
|
|
104 |
ifneq (,$(findstring sensors,$(MODULES)))
|
|
105 |
$(eval $(call generate_module_headers, $(QTMOBILITY_SENSORS_INCLUDE), $(QTMOBILITY_SENSORS_SRC)))
|
|
106 |
endif
|
|
107 |
|
|
108 |
endif
|