Resgen.mak
45.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
ifndef MMI_PROJ
MMI_PROJ := $(subst _MMI,,$(MMI_VERSION))
endif
ifndef MMI_BASE_PRJ
MMI_BASE_PRJ := $(subst _MMI,,$(strip $(MMI_BASE)))
endif
NEED_COPY_MMIFEATURE := CUSTOMER_MMI
ifneq ($(filter PLUTO_MMI COSMOS_MMI NEPTUNE_MMI,$(strip $(MMI_VERSION))),)
NEED_COPY_MMIFEATURE := $(strip $(MMI_VERSION))
endif
ifdef EMPTY_RESOURCE
ifeq ($(strip $(EMPTY_RESOURCE)),TRUE)
NEED_COPY_MMIFEATURE := CUSTOMER_MMI
endif
endif
ifneq ($(filter L1S BASIC UDVT,$(call Upper,$(PROJECT))),)
NEED_COPY_MMIFEATURE := NONE
endif
ifeq ($(strip $(MMI_IME_V3_SUPPORT)),TRUE)
RESGEN_CMD_OPTION_IME_VERSION := IMEv3
else ifneq ($(strip $(FINGER_TOUCH_SUPPORT)),NONE)
RESGEN_CMD_OPTION_IME_VERSION := IMEv2
else
RESGEN_CMD_OPTION_IME_VERSION := IMEv1
endif
ifeq ($(strip $(FONT_ENGINE)),FONT_ENGINE_FREETYPE)
RESGEN_OPTION_FREETYPE := --FREETYPE
else ifeq ($(strip $(FONT_ENGINE)),FONT_ENGINE_FREETYPE_DEMO)
RESGEN_OPTION_FREETYPE := --FREETYPE
else
RESGEN_OPTION_FREETYPE := --NO_FREETYPE
endif
ifdef DRV_CUSTOM_TOOL_SUPPORT
ifeq ($(strip $(DRV_CUSTOM_TOOL_SUPPORT)),TRUE)
ifneq ($(strip $(call Upper,$(LEVEL))),VENDOR)
ifeq ($(wildcard $(FIXPATH)\custom\drv\Drv_Tool\DrvGen.exe),)
$(shell perl -e "print \"Error: $(FIXPATH)\\custom\\drv\\Drv_Tool\\DrvGen.exe is not found\".\"\n\" ";> $(strip $(COMPLOGDIR))\ckDrvGen.log)
$(error Error: Please check $(strip $(COMPLOGDIR))\ckDrvGen.log)
else
RUN_DRVGEN_INPUT := custom\codegen\$(strip $(BOARD_VER))\codegen.dws
# For RF_MODULE = MT6129D
ifeq ($(findstring MT6129D,$(strip $(RF_MODULE))),MT6129D)
RUN_DRVGEN_INPUT := $(FIXPATH)\custom\codegen\$(strip $(BOARD_VER))\codegen_MT6129D.dws
endif
# For RF_MODULE = MT6139E
ifeq ($(findstring MT6139E,$(strip $(RF_MODULE))),MT6139E)
RUN_DRVGEN_INPUT := $(FIXPATH)\custom\codegen\$(strip $(BOARD_VER))\codegen_MT6139E.dws
endif
ifeq ($(strip $(BOARD_VER)),SUPERMAN29_DEMO_BB)
RUN_DRVGEN_INPUT := $(FIXPATH)\custom\codegen\$(strip $(BOARD_VER))\codegen_$(strip $(SUB_BOARD_VER)).dws
endif
# For rotated keypad on Tianyu28_demo/UNICORN53V3_DEMO/UNICORN53V4_DEMO landscape MMI
ifneq ($(filter $(strip $(BOARD_VER)),TIANYU28_DEMO_BB UNICORN53V3_DEMO_EVB UNICORN53V4_DEMO_EVB),)
ifeq ($(strip $(MAIN_LCD_SIZE)),320X240)
RUN_DRVGEN_INPUT := $(FIXPATH)\custom\codegen\$(strip $(BOARD_VER))\codegen1.dws
endif
endif
endif
endif
endif
endif
ifneq ($(strip $(call Upper,$(PROJECT))),BASIC)
ifneq ($(strip $(MMI_VERSION)),WISDOM_MMI)
ifeq ($(strip $(MMI_BASE)),NEPTUNE_MMI)
NEED_COPY_FONTRES := $(strip $(FONTRES_PATH_MTK))\FontRes.c $(strip $(FONTRES_PATH_CUST))\FontRes.c
NEED_COPY_FONTRES := $(call CheckNeedCopy,$(NEED_COPY_FONTRES))
else
NEED_COPY_RES_GEN_FONT := $(strip $(FONTRES_PATH_MTK))\res_gen_font.cpp $(strip $(FONTRES_PATH_CUST))\res_gen_font.cpp
NEED_COPY_RES_GEN_FONT := $(call CheckNeedCopy,$(NEED_COPY_RES_GEN_FONT))
endif
endif
endif
ifeq ($(filter BASIC UDVT,$(call Upper,$(PROJECT))),)
NEED_COPY_LCDRESOURCE_DIR := $(FIXPATH)\$(MMIDIR)\Customer\LcdResource\MainLcd$(strip $(MAIN_LCD_SIZE))
ifeq ($(strip $(MMI_VERSION)),COSMOS_MMI)
NEED_COPY_LCDRESOURCE_DIR += $(FIXPATH)\plutommi\Customer\LcdResource\MainLcd$(strip $(MAIN_LCD_SIZE))\FTO
else
ifneq ($(strip $(call Upper,$(FINGER_TOUCH_SUPPORT))),NONE)
NEED_COPY_LCDRESOURCE_DIR += $(FIXPATH)\$(MMIDIR)\Customer\LcdResource\MainLcd$(strip $(MAIN_LCD_SIZE))\FTE
else ifneq ($(strip $(call Upper,$(TOUCH_PANEL_SUPPORT))),NONE)
NEED_COPY_LCDRESOURCE_DIR += $(FIXPATH)\$(MMIDIR)\Customer\LcdResource\MainLcd$(strip $(MAIN_LCD_SIZE))\touch
ifneq ($(filter __LOW_COST_SUPPORT_COMMON__,$(strip $(COM_DEFS))),)
NEED_COPY_LCDRESOURCE_DIR += $(FIXPATH)\$(MMIDIR)\Customer\LcdResource\MainLcd$(strip $(MAIN_LCD_SIZE))\slim_touch
endif
else
NEED_COPY_LCDRESOURCE_DIR += $(FIXPATH)\$(MMIDIR)\Customer\LcdResource\MainLcd$(strip $(MAIN_LCD_SIZE))\non_touch
ifneq ($(filter __LOW_COST_SUPPORT_COMMON__,$(strip $(COM_DEFS))),)
NEED_COPY_LCDRESOURCE_DIR += $(FIXPATH)\$(MMIDIR)\Customer\LcdResource\MainLcd$(strip $(MAIN_LCD_SIZE))\slim_non_touch
endif
endif
endif
ifeq ($(call Upper,$(strip $(CUSTOM_RELEASE))),FALSE)
NEED_COPY_LCDRESOURCE := $(call CheckNeedCopyDir,$(NEED_COPY_LCDRESOURCE_DIR),.c) $(call CheckNeedCopyDir,$(NEED_COPY_LCDRESOURCE_DIR),.h)
else ifneq ($(strip $(call Upper,$(LEVEL))),LEVEL2_OBJ)
NEED_COPY_LCDRESOURCE := $(call CheckNeedCopyDir,$(NEED_COPY_LCDRESOURCE_DIR),.c) $(call CheckNeedCopyDir,$(NEED_COPY_LCDRESOURCE_DIR),.h)
endif
endif
ifneq ($(filter L1S BASIC,$(call Upper,$(PROJECT))),)
NEED_COPY_MMISWITCH_LIST := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\EMPTY_MMI\MMI_features_switchEMPTY.h
else
NEED_COPY_MMISWITCH_LIST := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(MMI_VERSION))\MMI_features_switch$(strip $(MMI_PROJ)).h
ifeq ($(strip $(MMI_VERSION)),COSMOS_MMI)
NEED_COPY_CUSTMISCDATA_LIST := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\COSMOS_MMI\CustMiscData$(strip $(MMI_PROJ)).c
NEED_COPY_CUSTRESDEF_LIST := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\COSMOS_MMI\CustResDef$(strip $(MMI_PROJ)).h
NEED_COPY_REFLIST_LIST := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\PLUTO_MMI\ref_list.txt
else
NEED_COPY_CUSTMISCDATA_LIST := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(MMI_BASE))\CustMiscData$(strip $(MMI_BASE_PRJ)).c
NEED_COPY_CUSTRESDEF_LIST := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(MMI_BASE))\CustResDef$(strip $(MMI_BASE_PRJ)).h
NEED_COPY_REFLIST_LIST := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(MMI_BASE))\ref_list.txt
endif
ifneq ($(strip $(MMI_VERSION)),EMPTY_MMI)
NEED_COPY_MMISWITCH_LIST += $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(ORIGINAL_CUSTOMER))_MMI\MMI_features_switch$(strip $(ORIGINAL_CUSTOMER)).h
ifdef FLAVOR
ifneq ($(strip $(FLAVOR)),NONE)
NEED_COPY_MMISWITCH_LIST += $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(ORIGINAL_CUSTOMER))_MMI\MMI_features_switch$(strip $(ORIGINAL_CUSTOMER))($(strip $(FLAVOR))).h
endif
endif
endif
ifneq ($(filter PLUTO_MMI COSMOS_MMI NEPTUNE_MMI,$(strip $(MMI_VERSION))),)
ifneq ($(strip $(EMPTY_RESOURCE)),FALSE)
NEED_COPY_CUSTMISCDATA_LIST += $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(ORIGINAL_CUSTOMER))_MMI\CustMiscData$(strip $(ORIGINAL_CUSTOMER)).c
NEED_COPY_CUSTRESDEF_LIST += $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(ORIGINAL_CUSTOMER))_MMI\CustResDef$(strip $(ORIGINAL_CUSTOMER)).h
endif
else
NEED_COPY_CUSTMISCDATA_LIST += $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(ORIGINAL_CUSTOMER))_MMI\CustMiscData$(strip $(ORIGINAL_CUSTOMER)).c
NEED_COPY_CUSTRESDEF_LIST += $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(ORIGINAL_CUSTOMER))_MMI\CustResDef$(strip $(ORIGINAL_CUSTOMER)).h
endif
NEED_COPY_REFLIST_LIST += $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(ORIGINAL_CUSTOMER))_MMI\ref_list.txt
endif
NEED_COPY_MMISWITCH := $(call CheckNeedCopy,$(NEED_COPY_MMISWITCH_LIST))
NEED_COPY_CUSTMISCDATA := $(call CheckNeedCopy,$(NEED_COPY_CUSTMISCDATA_LIST))
NEED_COPY_CUSTRESDEF := $(call CheckNeedCopy,$(NEED_COPY_CUSTRESDEF_LIST))
NEED_COPY_REFLIST := $(call CheckNeedCopy,$(NEED_COPY_REFLIST_LIST))
ifeq ($(strip $(RUN_RESGEN_NEW)),TRUE)
ifeq ($(strip $(MMI_VERSION)),COSMOS_MMI)
NEED_COPY_RES_MMI_DIR := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\PLUTO_MMI\Res_MMI
NEED_COPY_CUSTRESOURCE_DIR := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\PLUTO_MMI
else
NEED_COPY_RES_MMI_DIR := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(MMI_VERSION))\Res_MMI
NEED_COPY_CUSTRESOURCE_DIR := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(MMI_VERSION))
endif
NEED_COPY_CUSTRESOURCE_DIR += $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(ORIGINAL_CUSTOMER))_MMI
NEED_COPY_RES_MMI := $(call CheckNeedCopyDir,$(NEED_COPY_RES_MMI_DIR),.c)
NEED_COPY_CUSTRESOURCE_H := $(filter-out $(NEED_COPY_MMISWITCH_LIST) $(NEED_COPY_CUSTMISCDATA_LIST) $(NEED_COPY_CUSTRESDEF_LIST) $(NEED_COPY_REFLIST_LIST),$(call CheckNeedCopyDir,$(NEED_COPY_CUSTRESOURCE_DIR),.h))
NEED_COPY_CUSTRESOURCE_H := $(filter-out $(FIXPATH)\$(MMIDIR)\Customer\CustResource\PLUTO_MMI\Themecomponents.h $(FIXPATH)\$(MMIDIR)\Customer\CustResource\PLUTO_MMI\CustResDef%.h $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(MMI_VERSION))\CustResDef%.h $(FIXPATH)\$(MMIDIR)\Customer\CustResource\PLUTO_MMI\MMI_features_switch%.h $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(MMI_VERSION))\MMI_features_switch%.h $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(MMI_VERSION))\MMI_Features_Switch%.h $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(ORIGINAL_CUSTOMER))_MMI\MMI_features_switch%.h $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(ORIGINAL_CUSTOMER))_MMI\MMI_Features_Switch%.h,$(NEED_COPY_CUSTRESOURCE_H))
NEED_COPY_CUSTRESOURCE_C := $(filter-out $(NEED_COPY_MMISWITCH_LIST) $(NEED_COPY_CUSTMISCDATA_LIST) $(NEED_COPY_CUSTRESDEF_LIST) $(NEED_COPY_REFLIST_LIST) %.h %.tmp %.xls %.vkw %.exe,$(call CheckNeedCopyDir,$(NEED_COPY_CUSTRESOURCE_DIR),.*))
NEED_COPY_CUSTRESOURCE_C := $(filter-out $(FIXPATH)\$(MMIDIR)\Customer\CustResource\PLUTO_MMI\ThemeRes.c $(FIXPATH)\$(MMIDIR)\Customer\CustResource\PLUTO_MMI\CustMiscData%.c $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(MMI_VERSION))\CustMiscData%.c,$(NEED_COPY_CUSTRESOURCE_C))
ifneq ($(filter PLUTO_MMI COSMOS_MMI,$(strip $(MMI_VERSION))),)
NEED_COPY_VKV2VKW_LIST := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\PLUTO_MMI\VKV2.vkw $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(ORIGINAL_CUSTOMER))_MMI\VKV2.vkw
NEED_COPY_VKV2EXE_LIST := $(FIXPATH)\$(MMIDIR)\Customer\CustResource\PLUTO_MMI\VKV2ResourceGen.exe $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(ORIGINAL_CUSTOMER))_MMI\VKV2ResourceGen.exe
NEED_COPY_VKV2VKW := $(call CheckNeedCopy,$(NEED_COPY_VKV2VKW_LIST))
NEED_COPY_VKV2EXE := $(call CheckNeedCopy,$(NEED_COPY_VKV2EXE_LIST))
endif
endif
ifeq ($(filter L1S BASIC,$(PROJECT)),)
ifdef J2ME_SUPPORT
ifneq ($(strip $(J2ME_SUPPORT)),NONE)
J2ME_BORADBB_DIR := $(strip $(BOARD_VER))
J2ME_SUPPORT_DIR := $(strip $(J2ME_SUPPORT))
ifneq ($(filter IJET NEMO,$(strip $(J2ME_SUPPORT))),)
ifdef FLAVOR
ifneq ($(strip $(FLAVOR)),NONE)
J2ME_BORADBB_DIR := $(strip $(BOARD_VER))($(strip $(FLAVOR)))
endif
endif
else ifeq ($(strip $(J2ME_SUPPORT)),MTK_DUMMY_MVM)
J2ME_SUPPORT_DIR := DUMMY
endif
J2ME_GAMEGEN_EXE := $(wildcard custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\builtin_game_generator\DefaultGameGen.exe)
ifneq ($(strip $(J2ME_GAMEGEN_EXE)),)
J2ME_GAMEGEN_INPUTSYSTEM := _DEFAULT_BB
J2ME_GAMEGEN_INPUTMIDLET := _DEFAULT_BB
J2ME_GAMEGEN_OUTPUT := _DEFAULT_BB
ifneq ($(wildcard custom\j2me\$(J2ME_SUPPORT_DIR)\$(J2ME_BORADBB_DIR)\_main.ks),)
ifneq ($(wildcard custom\j2me\$(J2ME_SUPPORT_DIR)\$(J2ME_BORADBB_DIR)\_policy.txt),)
ifneq ($(wildcard custom\j2me\$(J2ME_SUPPORT_DIR)\$(J2ME_BORADBB_DIR)\_tck.ks),)
J2ME_GAMEGEN_INPUTSYSTEM := $(J2ME_BORADBB_DIR)
J2ME_GAMEGEN_OUTPUT := $(J2ME_BORADBB_DIR)
endif
endif
endif
ifneq ($(filter PLUTO_MMI COSMOS_MMI NEPTUNE_MMI,$(strip $(MMI_VERSION))),)
ifneq ($(wildcard custom/j2me/$(J2ME_SUPPORT_DIR)/$(J2ME_BORADBB_DIR)/*.jar custom/j2me/$(J2ME_SUPPORT_DIR)/$(J2ME_BORADBB_DIR)/*.jad),)
J2ME_GAMEGEN_INPUTMIDLET := $(J2ME_BORADBB_DIR)
J2ME_GAMEGEN_OUTPUT := $(J2ME_BORADBB_DIR)
endif
else
J2ME_GAMEGEN_INPUTMIDLET := $(J2ME_BORADBB_DIR)
J2ME_GAMEGEN_OUTPUT := $(J2ME_BORADBB_DIR)
endif
endif
endif
endif
endif
NEED_COPY_RGB565 := $(subst /,\,$(wildcard $(MMIDIR)/Customer/Images/decoder/RGB565/*.*))
# *************************************************************************
# Generate Custom Information
# *************************************************************************
gencustominfo: flavor_conf
$(eval $(call CheckNeedDependTarget,gencustominfo,pregen_dep))
$(strip $(RULESDIR_TARGET))\pregen_dep\gencustominfo.det: $(NEED_CHECK_RESGEN_LIST)
# mbis time probe
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_S,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
@if exist $(strip $(TARGDIR))\build.log \
(@perl -e "print 'gencustominfo START TIME='";>>$(strip $(TARGDIR))\build.log & \
@perl tools\time.pl -n>>$(strip $(TARGDIR))\build.log)
ifeq ($(strip $(AUTO_CHECK_DEPEND)),TRUE)
-@echo $@: $?
endif
@if exist $(basename $@).log del /q $(basename $@).log
@if not exist $(patsubst %\,%,$(dir $@)) mkdir $(patsubst %\,%,$(dir $@))
ifneq ($(strip $(RUN_DRVGEN_INPUT)),)
@echo [Dependency] $(FIXPATH)\custom\drv\Drv_Tool\DrvGen.exe $(RUN_DRVGEN_INPUT) >>$(basename $@).log
@echo [Dependency] $(wildcard $(FIXPATH)/custom/drv/Drv_Tool/*.fig $(FIXPATH)/custom/drv/Drv_Tool/*.cmp) >>$(basename $@).log
$(FIXPATH)\custom\drv\Drv_Tool\DrvGen.exe $(RUN_DRVGEN_INPUT) $(strip $(COMPLOGDIR)) 2>&1 & \
(if ERRORLEVEL 1 (echo DrvGen.exe Error. Please check $(strip $(COMPLOGDIR))\DrvGen.log & exit 1))
endif
ifneq ($(strip $(NEED_COPY_LCDRESOURCE)),)
@echo [Dependency] $(NEED_COPY_LCDRESOURCE) >>$(basename $@).log
# ifeq ($(strip $(MMI_VERSION)),COSMOS_MMI)
@for %%i in ($(strip $(NEED_COPY_LCDRESOURCE))) do (copy /y %%i $(FIXPATH)\$(MMIDIR)\Customer\CustResource\ >NUL)
# else
# @for %%i in ($(strip $(NEED_COPY_LCDRESOURCE))) do (copy /y %%i $(FIXPATH)\$(MMIDIR)\Customer\CustResource\$(strip $(MMI_VERSION))\ >NUL)
# endif
endif
ifneq ($(strip $(NEED_COPY_MMISWITCH)),)
@echo MMI_features_switch.h is from $(NEED_COPY_MMISWITCH)
@echo [Dependency] $(NEED_COPY_MMISWITCH) >>$(basename $@).log
@copy /y $(NEED_COPY_MMISWITCH) $(FIXPATH)\$(MMIDIR)\MMI\Inc\MMI_features_switch.h >NUL
else
@echo MMI_features_switch.h is from $(FIXPATH)\$(MMIDIR)\MMI\Inc\MMI_features_switch.h
endif
ifneq ($(strip $(NEED_COPY_CUSTMISCDATA)),)
@echo [Dependency] $(NEED_COPY_CUSTMISCDATA) >>$(basename $@).log
@copy /y $(NEED_COPY_CUSTMISCDATA) $(FIXPATH)\$(MMIDIR)\Customer\CustResource\CustMiscData.c >NUL
endif
ifneq ($(strip $(NEED_COPY_CUSTRESDEF)),)
@echo [Dependency] $(NEED_COPY_CUSTRESDEF) >>$(basename $@).log
@copy /y $(NEED_COPY_CUSTRESDEF) $(FIXPATH)\$(MMIDIR)\Customer\CustomerInc\CustResDef.h >NUL
endif
ifneq ($(strip $(NEED_COPY_REFLIST)),)
# It seems only NEPTUNE resgen needs it
@echo [Dependency] $(NEED_COPY_REFLIST) >>$(basename $@).log
@copy /y $(NEED_COPY_REFLIST) $(FIXPATH)\$(MMIDIR)\Customer\CustResource\ref_list.txt >NUL
endif
ifneq ($(strip $(NEED_COPY_RES_GEN_FONT)),)
@echo [Dependency] $(NEED_COPY_RES_GEN_FONT) >>$(basename $@).log
@if not exist $(FIXPATH)\$(MMIDIR)\Customer\FontResgen mkdir $(FIXPATH)\$(MMIDIR)\Customer\FontResgen
@copy /y $(NEED_COPY_RES_GEN_FONT) $(FIXPATH)\$(MMIDIR)\Customer\FontResgen\res_gen_font.cpp >NUL
endif
ifneq ($(strip $(NEED_COPY_FONTRES)),)
@echo [Dependency] $(NEED_COPY_FONTRES) >>$(basename $@).log
@copy /y $(NEED_COPY_FONTRES) $(FIXPATH)\$(MMIDIR)\Customer\CustResource\FontRes.c >NUL
endif
# clean font related files in $(FIXPATH)\$(MMIDIR)\Customer\CustResource
ifneq ($(filter L1S BASIC UDVT,$(strip $(call Upper,$(PROJECT)))),)
else
ifneq ($(strip $(CUSTOM_RELEASE)),TRUE)
@if exist $(FIXPATH)\$(MMIDIR)\Customer\CustResource\L_*.h \
(if exist $(FIXPATH)\$(MMIDIR)\Customer\CustResource\L_MMIProp.h \
(copy /y $(FIXPATH)\$(MMIDIR)\Customer\CustResource\L_MMIProp.h $(FIXPATH)\make\ >NUL) \
) & \
(del /q $(FIXPATH)\$(MMIDIR)\Customer\CustResource\L_*.h) & \
(if exist $(FIXPATH)\make\L_MMIProp.h \
(copy /y $(FIXPATH)\make\L_MMIProp.h $(FIXPATH)\$(MMIDIR)\Customer\CustResource\ >NUL) & \
(del $(FIXPATH)\make\L_MMIProp.h) \
)
endif
endif
@perl tools\pack_dep_gen.pl $@ $@ $(patsubst %\,%,$(dir $@)) $(basename $(notdir $@))\.(log^|lis)
ifneq ($(AUTO_CHECK_DEBUG),TRUE)
@if exist $(basename $@).log del /q $(basename $@).log
@if exist $(basename $@).lis del /q $(basename $@).lis
endif
@if exist $(strip $(TARGDIR))\build.log \
(@perl -e "print 'gencustominfo END TIME='";>>$(strip $(TARGDIR))\build.log & \
@perl tools\time.pl -n>>$(strip $(TARGDIR))\build.log)
# mbis time probe
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_E,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
gencustomlists: gencustominfo
$(eval $(call CheckNeedDependTarget,gencustomlists,pregen_dep))
$(strip $(RULESDIR_TARGET))\pregen_dep\gencustomlists.det: $(strip $(RULESDIR_TARGET))\pregen_dep\gencustominfo.det
$(strip $(RULESDIR_TARGET))\pregen_dep\gencustomlists.det: $(NEED_CHECK_RESGEN_LIST)
# mbis time probe
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_S,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
@perl -e "print 'gencustomlists START TIME='";>>$(strip $(TARGDIR))\build.log
@perl tools\time.pl -n>>$(strip $(TARGDIR))\build.log
# If module "custom" is released to customer with .lib only, don't run custominfo.pl
ifneq ($(strip $(call Upper,$(LEVEL))),VENDOR)
ifeq ($(strip $(call Upper,$(CUSTOM_EXIST))),TRUE)
@if exist $(basename $@).log del /q $(basename $@).log
@echo Generate customization information ... >> $(LOG)
ifneq ($(J2ME_SUPPORT_DIR),)
ifneq ($(J2ME_BORADBB_DIR),)
# switch file
ifneq ($(wildcard custom\j2me\$(J2ME_SUPPORT_DIR)\$(J2ME_BORADBB_DIR)\j2me_custom_option.h),)
@if exist custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\j2me_custom_option.h del /q custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\j2me_custom_option.h
else
@if exist custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\_j2me_custom_option.h copy /y custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\_j2me_custom_option.h custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\j2me_custom_option.h >NUL
@echo [Dependency] custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\_j2me_custom_option.h >>$(basename $@).log
endif
ifneq ($(wildcard custom\j2me\$(J2ME_SUPPORT_DIR)\$(J2ME_BORADBB_DIR)\j2me_custom_param.h),)
@if exist custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\j2me_custom_param.h del /q custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\j2me_custom_param.h
else
@if exist custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\_j2me_custom_param.h copy /y custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\_j2me_custom_param.h custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\j2me_custom_param.h >NUL
@echo [Dependency] custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\_j2me_custom_param.h >>$(basename $@).log
endif
# check romizing
ifneq ($(filter IJET NEMO,$(strip $(J2ME_SUPPORT))),)
@echo ROMizing folder is custom\j2me\$(J2ME_SUPPORT_DIR)\$(J2ME_BORADBB_DIR)
@if not exist custom\j2me\$(J2ME_SUPPORT_DIR)\$(J2ME_BORADBB_DIR) ((echo ROMizing folder does not exist. Please execute romizing first.) && (exit 1))
endif
# game gen
ifneq ($(strip $(J2ME_GAMEGEN_EXE)),)
@(cd custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\builtin_game_generator) && \
(DefaultGameGen.exe -certfolder -setpath .\setting -inputSystem "..\..\$(J2ME_GAMEGEN_INPUTSYSTEM)" -inputMidlet "..\..\$(J2ME_GAMEGEN_INPUTMIDLET)" -output "..\..\$(J2ME_GAMEGEN_OUTPUT)" -create -logpath "..\..\$(J2ME_GAMEGEN_INPUTMIDLET)") & \
(exit 0)
@echo [Dependency] custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\builtin_game_generator\DefaultGameGen.exe custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\builtin_game_generator\setting\setting.txt >>$(basename $@).log
@echo [Dependency] $(wildcard custom/j2me/$(J2ME_SUPPORT_DIR)/$(J2ME_GAMEGEN_INPUTSYSTEM)/_main.ks custom/j2me/$(J2ME_SUPPORT_DIR)/$(J2ME_GAMEGEN_INPUTSYSTEM)/_policy.txt custom/j2me/$(J2ME_SUPPORT_DIR)/$(J2ME_GAMEGEN_INPUTSYSTEM)/_tck.ks) >>$(basename $@).log
@echo [Dependency] $(wildcard custom/j2me/$(J2ME_SUPPORT_DIR)/$(J2ME_GAMEGEN_INPUTMIDLET)/*.jar custom/j2me/$(J2ME_SUPPORT_DIR)/$(J2ME_GAMEGEN_INPUTMIDLET)/*.jad custom/j2me/$(J2ME_SUPPORT_DIR)/$(J2ME_GAMEGEN_INPUTMIDLET)/*.keystore custom/j2me/$(J2ME_SUPPORT_DIR)/$(J2ME_GAMEGEN_INPUTMIDLET)/*.policy) >>$(basename $@).log
@echo [Dependency] $(wildcard custom/j2me/$(J2ME_SUPPORT_DIR)/_DEFAULT_BB/builtin_game_generator/temp/TCK/*.* custom/j2me/$(J2ME_SUPPORT_DIR)/_DEFAULT_BB/builtin_game_generator/TCK/*.*) >>$(basename $@).log
else
@echo Skip to generate JAVA game due to no custom\j2me\$(J2ME_SUPPORT_DIR)\_DEFAULT_BB\builtin_game_generator\DefaultGameGen.exe
endif
endif
endif
ifeq ($(strip $(TOUCH_PANEL_SHORTCUT_SUPPORT)),TRUE)
@if not exist custom\app\$(strip $(BOARD_VER))\touch_panel_shortcut_custom.c \
(copy /y custom\common\touch_panel_shortcut_custom.c.tmp custom\app\$(strip $(BOARD_VER))\touch_panel_shortcut_custom.c >NUL) && \
(echo [Dependency] custom\common\touch_panel_shortcut_custom.c.tmp >>$(basename $@).log)
@if not exist custom\app\$(strip $(BOARD_VER))\touch_panel_shortcut_custom.h \
(copy /y custom\common\touch_panel_shortcut_custom.h.tmp custom\app\$(strip $(BOARD_VER))\touch_panel_shortcut_custom.h >NUL) && \
(echo [Dependency] custom\common\touch_panel_shortcut_custom.h.tmp >>$(basename $@).log)
endif
ifneq ($(strip $(NEED_COPY_RGB565)),)
@tools\strcmpex.exe TRUE TRUE e $(basename $@).lis $(NEED_COPY_RGB565)
@perl tools\lnitem.pl $(basename $@).lis
@for /f %%i in ($(basename $@).lis) do (copy /y %%i $(MMIDIR)\Customer\Images\ >NUL)
endif
@perl tools\pack_dep_gen.pl $@ $@ $(patsubst %\,%,$(dir $@)) $(basename $(notdir $@))\.(log^|lis)
ifneq ($(AUTO_CHECK_DEBUG),TRUE)
@if exist $(basename $@).log del /q $(basename $@).log
@if exist $(basename $@).lis del /q $(basename $@).lis
endif
endif
endif
ifeq ($(strip $(call Upper,$(MAUI_IN_ROM))),TRUE)
@if exist make\rompatch\$(strip $(PLATFORM))\$(strip $(CHIP_VER))\rompatch.* \
(xcopy /Y make\rompatch\$(strip $(PLATFORM))\$(strip $(CHIP_VER)) make\rompatch >nul 2>&1) \
else \
(echo Directory make\rompatch\$(strip $(PLATFORM))\$(strip $(CHIP_VER)) Does NOT exist.)
endif
@perl -e "print 'gencustomlists END TIME='";>>$(strip $(TARGDIR))\build.log
@perl tools\time.pl -n>>$(strip $(TARGDIR))\build.log
# mbis time probe
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_E,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
xml_parser: mmi_feature_check resgen_public
ifneq ($(filter PLUTO_MMI COSMOS_MMI,$(strip $(MMI_VERSION))),)
ifeq ($(filter ANDROID_MODEM,$(strip $(SMART_PHONE_CORE))),)
$(eval $(call CheckNeedDependTarget,xml_parser,pregen_dep))
$(strip $(RULESDIR_TARGET))\pregen_dep\xml_parser.det: $(NEED_CHECK_RESGEN_LIST)
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_S,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
@perl -e "print 'xml_parser START TIME='";>>$(strip $(TARGDIR))\build.log
@perl tools\time.pl -n>>$(strip $(TARGDIR))\build.log
ifeq ($(strip $(AUTO_CHECK_DEPEND)),TRUE)
-@echo $@: $?
endif
# generate dummy ps_trace.h and *_trc_gen.h
@if not exist $(strip $(TST_DB_TARGET))\pstrace_db mkdir $(strip $(TST_DB_TARGET))\pstrace_db
ifneq ($(strip $(call Upper,$(PROJECT))),BASIC)
ifneq ($(strip $(call Upper,$(PROJECT))),UDVT)
@if not exist $(strip $(TST_DB_TARGET))\pstrace_db\ps_trace.h \
((echo #ifdef PSTRC_Mainh_DEF_H > $(strip $(TST_DB_TARGET))\pstrace_db\ps_trace.h) & \
(echo #undef PSTRC_Mainh_DEF_H >> $(strip $(TST_DB_TARGET))\pstrace_db\ps_trace.h) & \
(echo #endif >> $(strip $(TST_DB_TARGET))\pstrace_db\ps_trace.h))
endif
endif
@if exist $(strip $(TST_DB))\CompTrcDefs.lst (del $(strip $(TST_DB))\CompTrcDefs.lst)
@tools\strcmpex.exe TRUE TRUE e $(strip $(TST_DB))\CompTrcDefs.lst $(call sort, $(foreach def,$(COMP_TRACE_DEFS),$(def)))
@tools\CreateEmptyTrcGenFiles.exe $(strip $(TST_DB_TARGET))\pstrace_db $(strip $(TST_DB))\CompTrcDefs.lst $(strip $(TSTDIR))\database\TrcGen.lst
@if exist $(basename $@)_*.d del /q $(basename $@)_*.d
ifneq ($(strip $(call Upper,$(LEVEL))),VENDOR)
ifneq ($(filter $(strip $(ACTION)),new bm_new),)
# new_resgen
$(MMIDIR)\Customer\ResGenerator_XML.bat $(MMI_VERSION) $(CUSTOMER) B C $(strip $(RESGEN_CMD_OPTION_IME_VERSION))
else ifneq ($(filter $(MAKECMDGOALS),new new_modis),)
# new_resgen
$(MMIDIR)\Customer\ResGenerator_XML.bat $(MMI_VERSION) $(CUSTOMER) B C $(strip $(RESGEN_CMD_OPTION_IME_VERSION))
else
# remake_resgen
$(MMIDIR)\Customer\ResGenerator_XML.bat $(MMI_VERSION) $(CUSTOMER) R 0 $(strip $(RESGEN_CMD_OPTION_IME_VERSION))
endif
@perl tools\pack_dep_gen.pl $(basename $@)_1.d $@ $(COMPLOGDIR) resgen_xml_\w+\.log
@perl tools\pack_dep_gen.pl $(basename $@)_2.d $@ $(MMIDIR)\Customer\ResGenerator\debug\dep ^(common^|xml_parser)\.dep
ifdef OPTR_SPEC
ifneq ($(strip $(OPTR_SPEC)),NONE)
@perl tools\pack_dep_gen.pl $(basename $@)_3.d $@ $(OPTR_PATH) \w+mmi_copy\.log
endif
endif
@perl tools\pack_dep_gen.pl $@ $@ $(patsubst %\,%,$(dir $@)) $(basename $(notdir $@))_\d+\.d
ifneq ($(AUTO_CHECK_DEBUG),TRUE)
@if exist $(basename $@)_*.d del /q $(basename $@)_*.d
endif
# @if exist $(MMIDIR)\Customer\ResGenerator\Debug\dep\xml_parser.dep (copy /y $(MMIDIR)\Customer\ResGenerator\Debug\dep\xml_parser.dep $(strip $(RULESDIR_TARGET))\xml_parser.dep >NUL)
endif
endif
endif
@perl -e "print 'xml_parser END TIME='";>>$(strip $(TARGDIR))\build.log
@perl tools\time.pl -n>>$(strip $(TARGDIR))\build.log
# mbis time probe
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_E,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
# *************************************************************************
# Resgen
# *************************************************************************
ifeq ($(strip $(RUN_RESGEN)),TRUE)
resgen: xml_parser resgen_mtk
else
resgen:
endif
##############################################################
# Resource generate
##############################################################
resgen_public:
ifeq ($(strip $(RUN_RESGEN_NEW)),TRUE)
ifneq ($(strip $(call Upper,$(LEVEL))),VENDOR)
$(eval $(call CheckNeedDependTarget,resgen_public,pregen_dep))
$(strip $(RULESDIR_TARGET))\pregen_dep\xml_parser.det: $(strip $(RULESDIR_TARGET))\pregen_dep\resgen_public.det
$(strip $(RULESDIR_TARGET))\pregen_dep\resgen_mtk.det: $(strip $(RULESDIR_TARGET))\pregen_dep\resgen_public.det
$(strip $(RULESDIR_TARGET))\pregen_dep\resgen_public.det: $(NEED_CHECK_RESGEN_LIST)
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_S,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
ifeq ($(strip $(AUTO_CHECK_DEPEND)),TRUE)
-@echo $@: $?
endif
@if exist $(basename $@)_*.lis del /q $(basename $@)_*.lis
@tools\strcmpex.exe TRUE TRUE e make\~cus_opt.tmp $(foreach def,$(sort $(COM_DEFS_TARGET)),-D \"$(def)\")
@tools\strcmpex.exe TRUE TRUE e make\~tgt_opt.tmp $(foreach def,$(COM_DEFS_TARGET) $(LCD_MODULE),/D \"$(def)\")
@tools\strcmpex.exe TRUE TRUE e make\~inc.tmp $(foreach inc,$(COMMINCDIRS_TARGET),$(inc))
@echo CUSTOM_OPTION = $(foreach def,$(BOARD_VER) $(PLATFORM) $(LCD_MODULE) $(EXT_CAM_MODULE) $(CMOS_SENSOR),-D "$(def)") \> $(MMIDIR)\Customer\resGenerator\custom_option.txt
@type make\~cus_opt.tmp >> $(MMIDIR)\Customer\resGenerator\custom_option.txt
@type make\~inc.tmp > $(MMIDIR)\Customer\resGenerator\custom_include.tmp
@perl -e "open F,'<$(MMIDIR)\Customer\resGenerator\custom_include.tmp';my $$i=join('',<F>);close F;$$i =~s/\s+/ /gs;$$i =~ s/(\S+)/-I \"..\\..\\..\\$$1\"/gs;print \"CUSTOM_INC = $$i\";" > $(MMIDIR)\Customer\resGenerator\custom_include.txt
@perl -e "open F,'<$(MMIDIR)\Customer\resGenerator\custom_include.tmp';my $$i=join('',<F>);close F;$$i =~s/\s+/ /gs;$$i =~ s/(\S+)/\/I \"..\\..\\$$1\"\n/gs;print \"$$i\";" > $(MMIDIR)\MMI\GlobalTargetPathDef
@if exist $(MMIDIR)\Customer\resGenerator\custom_include.tmp del $(MMIDIR)\Customer\resGenerator\custom_include.tmp
@if exist $(MMIDIR)\mmi\TargetOption.txt del $(MMIDIR)\mmi\TargetOption.txt
@copy /Y make\~tgt_opt.tmp $(MMIDIR)\MMI\TargetOption.txt >NUL
ifeq ($(RESGEN_MACRO_BY_FILE_SUPPORT),TRUE)
@if exist $(MMIDIR)\customer\resGenerator\custom_option_def.tmp (del /q $(MMIDIR)\customer\resGenerator\custom_option_def.tmp)
@if exist $(MMIDIR)\customer\resGenerator\custom_option_def.txt (del /q $(MMIDIR)\customer\resGenerator\custom_option_def.txt)
@tools\strcmpex.exe TRUE TRUE e $(MMIDIR)\customer\resGenerator\custom_option_def.tmp $(foreach def,$(sort $(BOARD_VER) $(PLATFORM) $(LCD_MODULE) $(EXT_CAM_MODULE) $(CMOS_SENSOR)),$(def))
@tools\strcmpex.exe TRUE TRUE e make\~cus_opt_def.tmp $(foreach def,$(sort $(COM_DEFS_TARGET)),$(def))
@type make\~cus_opt_def.tmp >> $(MMIDIR)\Customer\resGenerator\custom_option_def.tmp
@perl tools\lnitem.pl $(MMIDIR)\customer\resGenerator\custom_option_def.tmp
@for /F %%i in ($(MMIDIR)\customer\resGenerator\custom_option_def.tmp) do \
(echo #define %%i >> $(MMIDIR)\customer\resGenerator\custom_option_def.txt)
@if exist $(MMIDIR)\customer\resGenerator\custom_option_def.tmp (del /q $(MMIDIR)\customer\resGenerator\custom_option_def.tmp)
@perl $(MMIDIR)\customer\replace_project_name.pl $(MMIDIR)\customer\resGenerator\custom_option_def.txt = " " $(MMIDIR)\customer\resGenerator\custom_option_def.txt
endif
@tools\strcmpex.exe TRUE TRUE e $(basename $@)_1.lis $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_XML.tmp $(MMIDIR)\Customer\ResGenerator_HW.tmp $(MMIDIR)\Customer\ResGenerator.tmp $(MMIDIR)\Customer\remakeResource.tmp $(MMIDIR)\Customer\UpdateSkin.tmp
@perl tools\lnitem.pl $(basename $@)_1.lis
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_HW.tmp XXX $(patsubst %_MMI,%,$(MMI_VERSION)) $(MMIDIR)\Customer\ResGenerator_HW.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator.tmp XXX $(patsubst %_MMI,%,$(MMI_VERSION)) $(MMIDIR)\Customer\ResGenerator.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\remakeResource.tmp XXX $(patsubst %_MMI,%,$(MMI_VERSION)) $(MMIDIR)\Customer\remakeResource.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\UpdateSkin.tmp XXX $(patsubst %_MMI,%,$(MMI_VERSION)) $(MMIDIR)\Customer\UpdateSkin.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_XML.tmp XXX $(patsubst %_MMI,%,$(MMI_VERSION)) $(MMIDIR)\Customer\ResGenerator_XML.bat
ifneq ($(strip $(MMI_VERSION)),NEPTUNE_MMI)
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_XML.bat YYY $(patsubst %_MMI,%,$(CUSTOMER)) $(MMIDIR)\Customer\ResGenerator_XML.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_XML.bat SSS $(strip $(OPTR_SPEC)) $(MMIDIR)\Customer\ResGenerator_XML.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_XML.bat MMM $(strip $(MAIN_LCD_SIZE)) $(MMIDIR)\Customer\ResGenerator_XML.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_XML.bat PPP $(strip $(OPTR_PATH)) $(MMIDIR)\Customer\ResGenerator_XML.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_XML.bat QQQ $(strip $(TOUCH_PANEL_SUPPORT)) $(MMIDIR)\Customer\ResGenerator_XML.bat
endif
ifeq ($(strip $(NEED_COPY_MMIFEATURE)),CUSTOMER_MMI)
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_HW.bat YYY $(patsubst %_MMI,%,$(CUSTOMER)) $(MMIDIR)\Customer\ResGenerator_HW.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator.bat YYY $(patsubst %_MMI,%,$(CUSTOMER)) $(MMIDIR)\Customer\ResGenerator.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\remakeResource.bat YYY $(patsubst %_MMI,%,$(CUSTOMER)) $(MMIDIR)\Customer\remakeResource.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\UpdateSkin.bat YYY $(patsubst %_MMI,%,$(CUSTOMER)) $(MMIDIR)\Customer\UpdateSkin.bat
else
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_HW.bat YYY $(patsubst %_MMI,%,$(MMI_VERSION)) $(MMIDIR)\Customer\ResGenerator_HW.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator.bat YYY $(patsubst %_MMI,%,$(MMI_VERSION)) $(MMIDIR)\Customer\ResGenerator.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\remakeResource.bat YYY $(patsubst %_MMI,%,$(MMI_VERSION)) $(MMIDIR)\Customer\remakeResource.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\UpdateSkin.bat YYY $(patsubst %_MMI,%,$(MMI_VERSION)) $(MMIDIR)\Customer\UpdateSkin.bat
endif
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_HW.bat SSS $(strip $(OPTR_SPEC)) $(MMIDIR)\Customer\ResGenerator_HW.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_HW.bat MMM $(strip $(MAIN_LCD_SIZE)) $(MMIDIR)\Customer\ResGenerator_HW.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_HW.bat PPP $(strip $(OPTR_PATH)) $(MMIDIR)\Customer\ResGenerator_HW.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator_HW.bat QQQ $(strip $(TOUCH_PANEL_SUPPORT)) $(MMIDIR)\Customer\ResGenerator_HW.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator.bat SSS $(strip $(OPTR_SPEC)) $(MMIDIR)\Customer\ResGenerator.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator.bat MMM $(strip $(MAIN_LCD_SIZE)) $(MMIDIR)\Customer\ResGenerator.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator.bat PPP $(strip $(OPTR_PATH)) $(MMIDIR)\Customer\ResGenerator.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\ResGenerator.bat QQQ $(strip $(TOUCH_PANEL_SUPPORT)) $(MMIDIR)\Customer\ResGenerator.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\remakeResource.bat SSS $(strip $(OPTR_SPEC)) $(MMIDIR)\Customer\remakeResource.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\remakeResource.bat MMM $(strip $(MAIN_LCD_SIZE)) $(MMIDIR)\Customer\remakeResource.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\remakeResource.bat PPP $(strip $(OPTR_PATH)) $(MMIDIR)\Customer\remakeResource.bat
@perl $(MMIDIR)\Customer\replace_project_name.pl $(MMIDIR)\Customer\remakeResource.bat QQQ $(strip $(TOUCH_PANEL_SUPPORT)) $(MMIDIR)\Customer\remakeResource.bat
ifdef OPTR_SPEC
ifneq ($(strip $(OPTR_SPEC)),NONE)
@if exist $(OPTR_PATH)\ResGenerator_OP.tmp \
(@perl $(MMIDIR)\Customer\replace_project_name.pl $(OPTR_PATH)\ResGenerator_OP.tmp {OP_NAME} $(strip $(word 1,$(subst _, ,$(OPTR_SPEC)))) $(OPTR_PATH)\ResGenerator_OP.bat) && \
(@perl $(MMIDIR)\Customer\replace_project_name.pl $(OPTR_PATH)\ResGenerator_OP.bat {VER_NUM} $(strip $(word 2,$(subst _, ,$(OPTR_SPEC)))) $(OPTR_PATH)\ResGenerator_OP.bat) && \
(@perl $(MMIDIR)\Customer\replace_project_name.pl $(OPTR_PATH)\ResGenerator_OP.bat {SEG_NAME} $(strip $(word 3,$(subst _, ,$(OPTR_SPEC)))) $(OPTR_PATH)\ResGenerator_OP.bat) && \
(@perl $(MMIDIR)\Customer\replace_project_name.pl $(OPTR_PATH)\ResGenerator_OP.bat {OP_FTE} $(strip $(FINGER_TOUCH_SUPPORT)) $(OPTR_PATH)\ResGenerator_OP.bat) && \
(@perl $(MMIDIR)\Customer\replace_project_name.pl $(OPTR_PATH)\ResGenerator_OP.bat {OP_BROWSER} $(strip $(BROWSER_SUPPORT)) $(OPTR_PATH)\ResGenerator_OP.bat) && \
(echo $(OPTR_PATH)\ResGenerator_OP.tmp >>$(basename $@)_1.lis)
@if exist $(OPTR_PATH)\operator_CustResDef.tmp \
(@perl $(MMIDIR)\Customer\replace_project_name.pl $(OPTR_PATH)\operator_CustResDef.tmp {OP_NAME} $(strip $(word 1,$(subst _, ,$(OPTR_SPEC)))) $(OPTR_PATH)\operator_CustResDef.h) && \
(@perl $(MMIDIR)\Customer\replace_project_name.pl $(OPTR_PATH)\operator_CustResDef.h {VER_NUM} $(strip $(word 2,$(subst _, ,$(OPTR_SPEC)))) $(OPTR_PATH)\operator_CustResDef.h) && \
(@perl $(MMIDIR)\Customer\replace_project_name.pl $(OPTR_PATH)\operator_CustResDef.h {SEG_NAME} $(strip $(word 3,$(subst _, ,$(OPTR_SPEC)))) $(OPTR_PATH)\operator_CustResDef.h) && \
(echo $(OPTR_PATH)\operator_CustResDef.tmp >>$(basename $@)_1.lis)
@if exist $(OPTR_PATH)\ResGenerator_OP_pre.tmp \
(@perl $(MMIDIR)\Customer\replace_project_name.pl $(OPTR_PATH)\ResGenerator_OP_pre.tmp {OP_BROWSER} $(strip $(BROWSER_SUPPORT)) $(OPTR_PATH)\ResGenerator_OP_pre.bat) && \
(echo $(OPTR_PATH)\ResGenerator_OP_pre.tmp >>$(basename $@)_1.lis)
endif
endif
# copy rule in ResGenerator_XML.bat
ifneq ($(strip $(NEED_COPY_RES_MMI)),)
@if not exist $(MMIDIR)\Customer\Res_MMI (mkdir $(MMIDIR)\Customer\Res_MMI) else (del /q $(MMIDIR)\Customer\Res_MMI\*.*)
@tools\strcmpex.exe TRUE TRUE e $(basename $@)_2.lis $(NEED_COPY_RES_MMI)
@perl tools\lnitem.pl $(basename $@)_2.lis
@for /f %%i in ($(basename $@)_2.lis) do (copy /y %%i $(MMIDIR)\Customer\Res_MMI\ >NUL)
ifneq ($(strip $(MMI_VERSION)),NEPTUNE_MMI)
@ren $(MMIDIR)\Customer\Res_MMI\Res_*.* res_*.*
endif
endif
ifneq ($(strip $(NEED_COPY_CUSTRESOURCE_C)),)
@tools\strcmpex.exe TRUE TRUE e $(basename $@)_3.lis $(NEED_COPY_CUSTRESOURCE_C)
@perl tools\lnitem.pl $(basename $@)_3.lis
@for /f %%i in ($(basename $@)_3.lis) do (copy /y %%i $(MMIDIR)\Customer\CustResource\ >NUL)
endif
ifneq ($(strip $(NEED_COPY_CUSTRESOURCE_H)),)
@tools\strcmpex.exe TRUE TRUE e $(basename $@)_4.lis $(NEED_COPY_CUSTRESOURCE_H)
@perl tools\lnitem.pl $(basename $@)_4.lis
@for /f %%i in ($(basename $@)_4.lis) do (copy /y %%i $(MMIDIR)\MMI\Inc\ >NUL)
endif
ifneq ($(strip $(NEED_COPY_VKV2VKW)),)
# @echo $(NEED_COPY_VKV2VKW) >>$(basename $@)_1.lis
# @copy /y $(NEED_COPY_VKV2VKW) $(MMIDIR)\Customer\ResGenerator\ >NUL
endif
ifneq ($(strip $(NEED_COPY_VKV2EXE)),)
# @echo $(NEED_COPY_VKV2EXE) >>$(basename $@)_1.lis
# @copy /y $(NEED_COPY_VKV2EXE) $(MMIDIR)\Customer\ResGenerator\ >NUL
endif
@perl tools\pack_dep_gen.pl $@ $@ $(patsubst %\,%,$(dir $@)) $(basename $(notdir $@))_\d+\.lis
ifneq ($(AUTO_CHECK_DEBUG),TRUE)
@if exist $(basename $@)_*.lis del /q $(basename $@)_*.lis
endif
# mbis time probe
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_E,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
endif
endif
# new_resgen and remake_resgen are merged into resgen_mtk, because the dep file should has an unified name
resgen_mtk: resgen_public
ifeq ($(strip $(RUN_RESGEN_NEW)),TRUE)
$(eval $(call CheckNeedDependTarget,resgen_mtk,pregen_dep))
$(strip $(RULESDIR_TARGET))\pregen_dep\resgen_mtk.det: $(NEED_CHECK_RESGEN_LIST)
# mbis time probe
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_S,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
@perl -e "print 'resgen START TIME='";>>$(strip $(TARGDIR))\build.log
@perl tools\time.pl -n>>$(strip $(TARGDIR))\build.log
ifeq ($(strip $(AUTO_CHECK_DEPEND)),TRUE)
-@echo $@: $?
endif
ifeq ($(strip $(call Upper,$(LEVEL))),VENDOR)
@if exist $(MMIDIR)\VendorApp\DevResource\ResGenerator.bat \
($(MMIDIR)\VendorApp\DevResource\ResGenerator.bat -t $(CUSTOMER))
else
@if exist $(strip $(RULESDIR_TARGET))\resgen.dep (del /q $(strip $(RULESDIR_TARGET))\resgen.dep)
@if exist $(basename $@)_*.d del /q $(basename $@)_*.d
ifneq ($(filter $(strip $(ACTION)),new bm_new),)
# new_resgen
$(MMIDIR)\Customer\ResGenerator_HW.bat $(MMI_VERSION) $(CUSTOMER) $(strip $(RESGEN_CMD_OPTION_IME_VERSION)) $(strip $(RESGEN_OPTION_FREETYPE))
else ifneq ($(filter $(MAKECMDGOALS),new new_modis),)
# new_resgen
$(MMIDIR)\Customer\ResGenerator_HW.bat $(MMI_VERSION) $(CUSTOMER) $(strip $(RESGEN_CMD_OPTION_IME_VERSION)) $(strip $(RESGEN_OPTION_FREETYPE))
else
# remake_resgen
$(MMIDIR)\Customer\ResGenerator_HW.bat $(MMI_VERSION) $(CUSTOMER) R $(strip $(RESGEN_CMD_OPTION_IME_VERSION)) $(strip $(RESGEN_OPTION_FREETYPE))
endif
ifneq ($(strip $(MMI_VERSION)),NEPTUNE_MMI)
@perl tools\pack_dep_gen.pl $(basename $@)_1.d $@ $(MMIDIR)\Customer\ResGenerator\debug\dep ^(common^|resgen)\.dep
@perl tools\pack_dep_gen.pl $(basename $@)_2.d $@ $(COMPLOGDIR) resgen_font_\w+\.log plutommi\Customer\FontResgen
@perl tools\pack_dep_gen.pl $(basename $@)_3.d $@ $(COMPLOGDIR) resgen_ref_list_\w+\.log plutommi\Customer\ResGenerator
@perl tools\pack_dep_gen.pl $(basename $@)_4.d $@ $(COMPLOGDIR) (resgen_mtk_resgenerator_run^|resgen_misc_tool^|resgen_venus_theme_gen)\.log
else
@perl tools\pack_dep_gen.pl $(basename $@)_1.d $@ $(MMIDIR)\Customer\ResGenerator\debug\dep resgen\.dep
@perl tools\pack_dep_gen.pl $(basename $@)_2.d $@ $(MMIDIR)\Customer\ResGenerator (mtk_resgenerator^|resgen_misc_tool)\.log
endif
@perl tools\pack_dep_gen.pl $@ $@ $(patsubst %\,%,$(dir $@)) $(basename $(notdir $@))_\d+\.d
ifneq ($(AUTO_CHECK_DEBUG),TRUE)
@if exist $(basename $@)_*.d del /q $(basename $@)_*.d
endif
@if exist $(MMIDIR)\Customer\ResGenerator\Debug\dep\resgen.dep (copy /y $(MMIDIR)\Customer\ResGenerator\Debug\dep\resgen.dep $(strip $(RULESDIR_TARGET))\resgen.dep >NUL)
ifneq ($(strip $(VENDOR)),NONE)
@for %%i in (bmp2ems.o BMPLoader.o GIFLoader.o ResBytestream.o UCS2.o ImageGetDimension.o FontRes.o) do if exist $(MMIDIR)\Customer\ResGenerator\debug\obj\mtk_resgenerator\%%i copy /y .\debug\obj\mtk_resgenerator\%%i $(MMIDIR)\Customer\VendorApp\ResGenerator\obj\ >NUL
@if exist $(MMIDIR)\Customer\ResGenerator\custom_option.txt (copy /y /z $(MMIDIR)\Customer\ResGenerator\custom_option.txt $(MMIDIR)\VendorApp\resGenerator\custom_option.txt >NUL)
@if exist $(MMIDIR)\Customer\ResGenerator\custom_include.txt (copy /y /z $(MMIDIR)\Customer\ResGenerator\custom_include.txt $(MMIDIR)\VendorApp\resGenerator\custom_include.txt >NUL)
endif
endif
@perl -e "print 'resgen END TIME='";>>$(strip $(TARGDIR))\build.log
@perl tools\time.pl -n>>$(strip $(TARGDIR))\build.log
# mbis time probe
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_E,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
endif
#Fuzhong add begin
ifdef TOPWELL_FONT_NAME_1
if exist $(FIXPATH)\vendor\font\inc\$(TOPWELL_FONT_NAME_1).h (copy /y /z $(FIXPATH)\vendor\\font\TOPWELL\$(TOPWELL_FONT_NAME_1)_$(TOPWELL_FONT_SIZE).h $(FIXPATH)\vendor\font\inc\$(TOPWELL_FONT_NAME_1).h >NUL)
endif
ifdef TOPWELL_FONT_NAME_2
if exist $(FIXPATH)\vendor\font\inc\$(TOPWELL_FONT_NAME_2).h (copy /y /z $(FIXPATH)\vendor\\font\TOPWELL\$(TOPWELL_FONT_NAME_2)_$(TOPWELL_FONT_SIZE).h $(FIXPATH)\vendor\font\inc\$(TOPWELL_FONT_NAME_2).h >NUL)
endif
ifdef TOPWELL_FONT_NAME_3
if exist $(FIXPATH)\vendor\font\inc\$(TOPWELL_FONT_NAME_3).h (copy /y /z $(FIXPATH)\vendor\\font\TOPWELL\$(TOPWELL_FONT_NAME_3)_$(TOPWELL_FONT_SIZE).h $(FIXPATH)\vendor\font\inc\$(TOPWELL_FONT_NAME_3).h >NUL)
endif
ifdef TOPWELL_FONT_NAME_4
if exist $(FIXPATH)\vendor\font\inc\$(TOPWELL_FONT_NAME_4).h (copy /y /z $(FIXPATH)\vendor\\font\TOPWELL\$(TOPWELL_FONT_NAME_4)_$(TOPWELL_FONT_SIZE).h $(FIXPATH)\vendor\font\inc\$(TOPWELL_FONT_NAME_4).h >NUL)
endif
ifdef TOPWELL_FONT_NAME_5
if exist $(FIXPATH)\vendor\font\inc\$(TOPWELL_FONT_NAME_5).h (copy /y /z $(FIXPATH)\vendor\\font\TOPWELL\$(TOPWELL_FONT_NAME_5)_$(TOPWELL_FONT_SIZE).h $(FIXPATH)\vendor\font\inc\$(TOPWELL_FONT_NAME_5).h >NUL)
endif
ifdef TOPWELL_FONT_NAME_6
if exist $(FIXPATH)\vendor\font\inc\$(TOPWELL_FONT_NAME_6).h (copy /y /z $(FIXPATH)\vendor\\font\TOPWELL\$(TOPWELL_FONT_NAME_6)_$(TOPWELL_FONT_SIZE).h $(FIXPATH)\vendor\font\inc\$(TOPWELL_FONT_NAME_6).h >NUL)
endif
#Fuzhong add end
# *************************************************************************
# Check Custom Menu Tree
# *************************************************************************
cust_menu_tree_check:
# mbis time probe
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_S,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
@perl -e "print 'cust_menu_tree_check START TIME='";>>$(strip $(TARGDIR))\build.log
@perl tools\time.pl -n>>$(strip $(TARGDIR))\build.log
ifneq ($(strip $(CUSTOM_RELEASE)),TRUE)
@if exist $(FIXPATH)\MoDIS_VC9\NetSim\get_resname_for_CustMenuTreeID_Out_c.pl \
if exist $(FIXPATH)\$(MMIDIR)\Customer\CustResource\CustMenuTreeID_Out.c \
if exist $(FIXPATH)\$(MMIDIR)\Customer\ResGenerator\menu_resource_usage.txt \
(perl $(FIXPATH)\MoDIS_VC9\NetSim\get_resname_for_CustMenuTreeID_Out_c.pl $(FIXPATH)\$(MMIDIR)\Customer\CustResource\CustMenuTreeID_Out.c $(FIXPATH)\$(MMIDIR)\Customer\ResGenerator\menu_resource_usage.txt $(FIXPATH)\$(MMIDIR)\Customer\CustResource\owner.txt)
@if exist $(FIXPATH)\MoDIS_VC9\NetSim\CustMenuTreeOutVerifier.exe \
if exist $(FIXPATH)\$(MMIDIR)\Customer\CustResource\CustMenuTree_Out.c \
($(FIXPATH)\MoDIS_VC9\NetSim\CustMenuTreeOutVerifier.exe $(FIXPATH)\$(MMIDIR)\Customer\CustResource\CustMenuTree_Out.c)
@if exist $(FIXPATH)\MoDIS_VC9\NetSim\CustMenuTreeOutVerifier_Reporter.pl \
if exist $(FIXPATH)\MoDIS_VC9\NetSim\CustMenuTreeOutResult.txt \
(perl $(FIXPATH)\MoDIS_VC9\NetSim\CustMenuTreeOutVerifier_Reporter.pl $(VERNO) $(MMIDIR) $(MMI_BASE) $(CUSTOMER) $(PROJECT))
endif
@perl -e "print 'cust_menu_tree_check END TIME='";>>$(strip $(TARGDIR))\build.log
@perl tools\time.pl -n>>$(strip $(TARGDIR))\build.log
# mbis time probe
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_E,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
# *************************************************************************
# Check MMI Obj Values
# *************************************************************************
mmi_obj_check: sysgen mmi_feature_check genmoduleinfo
ifeq ($(strip $(MODIS_CONFIG)),FALSE)
ifeq ($(filter BASIC UDVT,$(strip $(call Upper,$(PROJECT)))),)
ifneq ($(filter PLUTO_MMI COSMOS_MMI,$(strip $(MMI_VERSION))),)
ifneq ($(strip $(AUTO_CHECK_DEPEND)),TRUE)
# mbis time probe
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_S,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
@perl -e "print 'mmi_obj_check START TIME='";>>$(strip $(TARGDIR))\build.log
@perl tools\time.pl -n>>$(strip $(TARGDIR))\build.log
ifeq ($(strip $(CUSTOM_RELEASE)),FALSE)
@if exist tools\objcheck.pl \
(perl tools\objcheck.pl $(strip $(CUSTOMER)) $(firstword $(strip $(CC))) $(strip $(VIA)))
else
ifneq ($(strip $(call Upper,$(LEVEL))),LEVEL2_OBJ)
@if exist tools\objcheck.pl \
(perl tools\objcheck.pl $(strip $(CUSTOMER)) $(firstword $(strip $(CC))) $(strip $(VIA)))
endif # ifneq ($(strip $(call Upper,$(LEVEL))),LEVEL2_OBJ)
endif # ifeq ($(strip $(CUSTOM_RELEASE)),FALSE)
@perl -e "print 'mmi_obj_check END TIME='";>>$(strip $(TARGDIR))\build.log
@perl tools\time.pl -n>>$(strip $(TARGDIR))\build.log
# mbis time probe
@if /I "$(strip $(MBIS_EN))" EQU "TRUE" (@perl -e "print 'T_E,$@,T,'. time . \"\n\"";>>$(MBIS_BUILD_TIME_TMP))
endif
endif
endif
endif #ifeq ($(strip $(MODIS_CONFIG)),TRUE)