build/Makefile.subsystem
changeset 78 71ad690e91f5
parent 67 63b81d807542
child 80 d6dafc5d983f
equal deleted inserted replaced
72:1f0034e370aa 78:71ad690e91f5
   121 
   121 
   122 
   122 
   123 # Symbian ----------------------------------
   123 # Symbian ----------------------------------
   124 ifeq ($(BUILDENV),symbian)
   124 ifeq ($(BUILDENV),symbian)
   125 
   125 
   126 ifeq ($(COMPONENT_NAME),jrt)
   126 ifdef COMPONENT_ROOT
   127 # When building from top level, the native compilation does also export, java and finalactions
   127 # When building from top level, the native compilation does also export, java and finalactions
   128 all: configure qmake native
   128 all: configure qmake native
   129 clean: clean_native clean_generated
   129 clean: clean_native clean_generated
   130 else
   130 else
   131 all: configure qmake export java native finalactions
   131 all: configure qmake export java native finalactions
   133 endif
   133 endif
   134 
   134 
   135 # On top level symbian build, the java building happens always during native
   135 # On top level symbian build, the java building happens always during native
   136 # phase, through bld.inf -file, so no direct Java building is done (unless it 
   136 # phase, through bld.inf -file, so no direct Java building is done (unless it 
   137 # building _is_ made from the bld.inf).
   137 # building _is_ made from the bld.inf).
   138 ifeq ($(COMPONENT_NAME),jrt)
   138 ifdef COMPONENT_ROOT
   139 ifndef BLD_INF_JAVA
   139 ifndef BLD_INF_JAVA
   140 NOJAVA=1
   140 NOJAVA=1
   141 endif
   141 endif
   142 endif
   142 endif
   143 
   143 
   160 qmakefix:
   160 qmakefix:
   161 	$(PHASEINFO)
   161 	$(PHASEINFO)
   162 	$(call RMFILES,bld.inf* Makefile*)
   162 	$(call RMFILES,bld.inf* Makefile*)
   163 	$(MAKE) -f subsystem.mk TARGET_PHASE=qmakefix subtargets
   163 	$(MAKE) -f subsystem.mk TARGET_PHASE=qmakefix subtargets
   164 	$(call CATCOMMAND,$(JAVA_SRC_ROOT)/build/templates/bld.inf) > bld.inf \
   164 	$(call CATCOMMAND,$(JAVA_SRC_ROOT)/build/templates/bld.inf) > bld.inf \
   165 	$(foreach d, $(REALTARGETS), && echo #include "$d/bld.inf" >> bld.inf )
   165 	$(foreach d, $(filter-out $(SKIP_IN_SF),$(REALTARGETS)), && echo #include "$d/bld.inf" >> bld.inf )
       
   166 ifdef SKIP_IN_SF
       
   167 	echo #ifndef RD_JAVA_SF_BUILD >> bld.inf \
       
   168 	$(foreach d, $(filter $(SKIP_IN_SF),$(REALTARGETS)), && echo #include "$d/bld.inf" >> bld.inf )
       
   169 	echo #endif >> bld.inf
       
   170 endif
   166 
   171 
   167 build_all: configure qmake
   172 build_all: configure qmake
   168 ifdef USESBS
   173 ifdef USESBS
   169 	$(SBS) -c winscw_udeb -c armv5_urel -f -
   174 	$(SBS) -c winscw_udeb -c armv5_urel -f -
   170 else
   175 else
   186 
   191 
   187 # Target for cleaning, in case bld.inf does not exist
   192 # Target for cleaning, in case bld.inf does not exist
   188 bld.inf:
   193 bld.inf:
   189 	$(MAKE) -f subsystem.mk makestubs qmake
   194 	$(MAKE) -f subsystem.mk makestubs qmake
   190 
   195 
   191 # Use Carbide CodeScanner to list high-level issues
   196 # Use Carbide CodeScanner to list high-level issues, and checkjava.py for Java issues
   192 codescanner:
   197 codescanner:
       
   198 	-python $(JAVA_SRC_ROOT)/build/buildutils/checkjava.py --exclude tsrc .
   193 ifneq ($(call PATHSEARCH,codescanner.exe),)
   199 ifneq ($(call PATHSEARCH,codescanner.exe),)
   194 	$(call CODESCANNER,.)
   200 	$(call CODESCANNER,.)
   195 endif
   201 endif
   196 
   202 
   197 # Symbian SBS ------------------------------
   203 # Symbian SBS ------------------------------
   198 ifdef USESBS
   204 ifdef USESBS
   199 
   205 
   200 export:
   206 export:
   201 	$(PHASEINFO)
   207 	$(PHASEINFO)
   202 	$(SBS) -c $(PLATFORM)_$(CFG) EXPORT
   208 	$(SBS) -c $(SBSCONFIG) EXPORT
   203 
   209 
   204 cleanexport:
   210 cleanexport:
   205 	$(PHASEINFO)
   211 	$(PHASEINFO)
   206 	$(SBS) -c $(PLATFORM)_$(CFG) CLEANEXPORT
   212 	$(SBS) -c $(SBSCONFIG) CLEANEXPORT
   207 
   213 
   208 # BUILD combines commands EXPORT MAKEFILE BITMAP RESOURCE LIBRARY TARGET FINAL
   214 # BUILD combines commands EXPORT MAKEFILE BITMAP RESOURCE LIBRARY TARGET FINAL
   209 native:
   215 native:
   210 	$(PHASEINFO)
   216 	$(PHASEINFO)
   211 	$(SBS) -c $(PLATFORM)_$(CFG)
   217 	$(SBS) -c $(SBSCONFIG)
   212 
   218 
   213 fastbuild: export java
   219 fastbuild: export java
   214 	$(SBS) -c $(PLATFORM)_$(CFG)
   220 	$(SBS) -c $(SBSCONFIG)
   215 
   221 
   216 clean_native:
   222 clean_native:
   217 	$(PHASEINFO)
   223 	$(PHASEINFO)
   218 	$(SBS) -c $(PLATFORM)_$(CFG) clean
   224 	$(SBS) -c $(SBSCONFIG) clean
   219 
   225 
   220 reallyclean: reallyclean_native clean_java clean_generated
   226 reallyclean: reallyclean_native clean_java clean_generated
   221 reallyclean_native: bld.inf
   227 reallyclean_native: bld.inf
   222 	$(PHASEINFO)
   228 	$(PHASEINFO)
   223 	$(SBS) -c $(PLATFORM)_$(CFG) reallyclean
   229 	$(SBS) -c $(SBSCONFIG) reallyclean
   224 
   230 
   225 
   231 
   226 # Symbian ABLD MAKEFILE --------------------
   232 # Symbian ABLD MAKEFILE --------------------
   227 else
   233 else
   228 
   234