REL_COMMON.mak 20.4 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
#
#  Copyright Statement:
#  --------------------
#  This software is protected by Copyright and the information contained
#  herein is confidential. The software may not be copied and the information
#  contained herein may not be used or disclosed except with the written
#  permission of MediaTek Inc. (C) 2005
#
#  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
#  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
#  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
#  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
#  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
#  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
#  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
#  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
#  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
#  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
#  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
#
#  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
#  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
#  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
#  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
#  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
#
#  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
#  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
#  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
#  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
#  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
#

# *************************************************************************
# Custom Release Common Configuration
# *************************************************************************


# bootloader
NON_REL_FILES_LIST += hal\system\bootloader\inc\bootrom.h \
                      hal\system\bootloader\src\bl_FactoryConn.c

# SST
NON_REL_FILES_LIST += SST\include\SST_internal.h
NON_REL_FILES_LIST += SST\include\SST_state_compare.h

# init
NON_REL_FILES_LIST += init\include\bus_monitor.h \
                      init\include\emi_bus_monitor.h

# bt stack
NON_REL_FILES_LIST += btstacka\inc\X_file.h

# ArmDraDecLib rvct
ifneq ($(strip $(EMPTY_RESOURCE)),FALSE)
NON_REL_FILES_LIST += l1audio\obj\ArmDraDecLib.a \
                      l1audio\obj\ArmDraDecLib_rvct.a
endif

# external mmi
ifneq ($(strip $(MMI_VERSION)),WISDOM_MMI)
NON_REL_DIRS_LIST += external_mmi
endif

# venus mmi
ifneq ($(strip $(RELEASE_VRT)),SRC)
ifneq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  NON_REL_DIRS_LIST += venusmmi\vrt\base \
                       venusmmi\vrt\canvas \
                       venusmmi\vrt\core
endif
endif
                     
# btstack
NON_REL_DIRS_LIST += btstacka\hcitrans\uart \
                     btstacka\hcitrans\modinit \
                     btstacka\stack

ifneq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  NON_REL_DIRS_LIST += Fast_DL
  NON_REL_DIRS_LIST += vendor\hp_fota\Lib
  NON_REL_DIRS_LIST += $(strip $(MMIDIR))\Customer\CustResource\PLUTO_MMI\ref_list
endif

ifeq ($(strip $(FOTA_ENABLE)),FOTA_DM)
  CUS_REL_FILES_LIST += vendor\redbend_fota\MTK_FPP_FW_rvct31_arm11.lib \
                        vendor\redbend_fota\MTK_FPP_FW_rvct31_arm7.lib \
                        vendor\redbend_fota\MTK_FPP_FW_rvct31_arm9.lib
endif

ifneq ($(strip $(DEMO_PROJECT)),TRUE)
  NON_REL_FILES_LIST += $(strip $(MMIDIR))\MMI\Inc\MMI_features_demo_proj_comm_switch.h \
                        $(strip $(MMIDIR))\MMI\Inc\MMI_features_undef_all_lang.h
endif

ifneq ($(strip $(EMPTY_RESOURCE)),FALSE)
# NOT release ipeer internal files
  NON_REL_DIRS_LIST += vendor\player\ipeer\lib\mtk_internal

# NOT release DOM internal files
  DOM_INTERNAL_FILES = $(shell dir Doc\DOM\Config\*_internal.* /b 2>nul)
  ifneq ($(words $(DOM_INTERNAL_FILES)),0)
    NON_REL_FILES_LIST += $(foreach file,$(DOM_INTERNAL_FILES),Doc\DOM\Config\$(file))
  endif

  NON_REL_FILES_LIST += Doc\DOM\Config\Template6.0.dox
endif

# NOT release global option switchalbe reference file
#ifneq ($(strip $(MTK_SUBSIDIARY)),TRUE)
#  GLB_OPT_SWTCH_REF_FILE = $(shell dir tools\GLBOptionSwtichRef\Global_option_Switchable_in_custom_release*.xls /b 2>nul)
#  ifneq ($(words $(GLB_OPT_SWTCH_REF_FILE)),0)
#    NON_REL_FILES_LIST += $(foreach file,$(GLB_OPT_SWTCH_REF_FILE),tools\GLBOptionSwtichRef\$(file))
#  endif
#endif

# Only release chm files under DOC folder
CUS_REL_BASE_COMP += Doc
NON_REL_DIRS_LIST += Doc\DOM

# LAST_S_C.bat
NON_REL_FILES_LIST += LAST_S_C.bat

# EmptyImages are not needed in SLIM branches.
# Release all images to customers in SLIM branches.
ifneq ($(filter PLUTO_MMI COSMOS_MMI,$(strip $(MMI_VERSION))),)
  ifeq ($(strip $(call Upper,$(LEVEL))),LEVEL2_SRC)
    CUS_REL_BASE_COMP += plutommi\Customer\Images
    NON_REL_DIRS_LIST += plutommi\Customer\Images\swtr
  endif
endif

ifeq ($(strip $(MMI_VERSION)),NEPTUNE_MMI)
  ifeq ($(strip $(call Upper,$(LEVEL))),LEVEL2_SRC)
    CUS_REL_BASE_COMP += lcmmi\Customer\Images
  endif
endif

ifneq ($(strip $(MMI_VERSION)),NEPTUNE_MMI)
  CUS_REL_BASE_COMP += plutommi\VendorApp
endif

#Not release DwarfUtility for Customer
ifneq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  NON_REL_DIRS_LIST += tools\DwarfUtility
endif

#Not release MemoryDeviceList_*Internal.xls for Customer
ifneq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  ifeq ($(call Upper ,$(strip $(VENDOR))),NONE)
    MEMORY_INTERNAL_FILE = $(shell dir tools\MemoryDeviceList\MemoryDeviceList_*Internal.xls /b 2>nul)
    ifneq ($(words $(MEMORY_INTERNAL_FILE)),0)
      NON_REL_FILES_LIST += $(foreach file,$(MEMORY_INTERNAL_FILE),tools\MemoryDeviceList\$(file))
    endif
  endif
endif

# MAUI_02602762
NON_REL_FILES_LIST += dsp_bin\Viti_Issue_Owner_Guide.pptx \
                      dsp_bin\VitiFileOwner.txt \
                      dsp_bin\VitiTaskDirOwner.xlsx

# MAUI_02838590
CUS_REL_BASE_COMP += tools\DebuggingSuite

# MAUI_02619934
ifeq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  CUS_REL_FILES_LIST += mtk_tools\notify_err.pl
endif

ifeq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  CUS_REL_FILES_LIST += mtk_tools\NocodeCMMAutoGen.pl
endif
# MAUI_02634406
CUS_REL_BASE_COMP += MCT_TOOL

# mtk_tools
ifeq ($(strip $(DEMO_PROJECT)),TRUE)
  ifndef VENDOR
    CUS_REL_FILES_LIST += mtk_tools\PsTrcInfo.exe
  else
    ifeq ($(strip $(VENDOR)),NONE)
      CUS_REL_FILES_LIST += mtk_tools\PsTrcInfo.exe
    endif
  endif
endif

ifeq ($(strip $(call Upper,$(LEVEL))),LEVEL2_SRC)
  CUS_REL_BASE_COMP += $(strip $(MMIDIR))\Customer\FontResgen
endif

CUS_REL_NVRAM_AUTO_GEN_PAR_SRC_LIST = nvram\src\nvram_factory_config.c \
                                      custom\common\$(strip $(MMI_FOLDER))\nvram_common_config.c \
                                      custom\common\$(strip $(MMI_FOLDER))\common_mmi_cache_config.c \
                                      custom\common\$(strip $(MMI_FOLDER))\nvram_cust_pack.c \
                                      custom\common\hal\nvram\custom_nvram_sec.c \
                                      custom\common\hal\nvram\custom_nvram_cat.c \
                                      custom\app\$(strip $(PROJECT_BB))\custom_mmi_cache_config.c \
                                      custom\app\$(strip $(PROJECT_BB))\nvram_user_config.c \
                                      tools\NVRAMStatistic\src\nvram_auto_gen.c \
                                      tools\NVRAMStatistic\src\nvram_gen_util.c \
                                      tools\NVRAMStatistic\src\nvram_gen_mmi_cache.c \
                                      tools\NVRAMStatistic\src\nvram_compress.c \
                                      custom\common\nvram_data_items.c \
                                      tools\NVRAMStatistic\src\fs_quota_entry_dump.c

#MAUI_02871341                                      
CUS_REL_FILES_LIST += l1assertbypass.men

ifeq ($(strip $(MTK_SUBSIDIARY)),TRUE)
ifeq ($(strip $(J2ME_SUPPORT)),NEMO)
  CUS_REL_BASE_COMP += custom\j2me\NEMO\_DEFAULT_BB
endif
endif

ifneq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  DATABSE_FILE = $(shell dir $(TST_DB))\MTK_databaseinfo.csv /b 2>nul)
  ifneq ($(words $(DATABSE_FILE)),0)
    CUS_REL_FILES_LIST += $(TST_DB)\MTK_databaseinfo.csv
  endif
endif

ifeq ($(strip $(FONT_RESOURCE)),OFFICIAL)
  NON_REL_DIRS_LIST += vendor\font\FontData\DemoFont
  ifeq ($(strip $(MTK_SUBSIDIARY)),TRUE)
    CUS_REL_BASE_COMP += vendor\font\FontData\OfficialFont
  else
    CUS_REL_BASE_COMP += vendor\font\FontData\OfficialFont\MTK_Proprietary
    CUS_REL_FILES_LIST += vendor\font\FontData\OfficialFont\Latin\pluto_small.bdf \
                          vendor\font\FontData\OfficialFont\Latin\pluto_medium.bdf \
                          vendor\font\FontData\OfficialFont\Latin\pluto_large.bdf \
                          vendor\font\FontData\OfficialFont\Latin\L_MTK_En_Medium_20.bdf \
                          vendor\font\FontData\OfficialFont\Latin\L_MTK_En_Large_22.bdf \
                          vendor\font\FontData\OfficialFont\Latin\MTK_En_large_24.bdf \
                          vendor\font\FontData\OfficialFont\Dialing\L_MTK_DiallingFont_27.bdf \
                          vendor\font\FontData\OfficialFont\Dialing\Dialing.bdf \
                          vendor\font\FontData\OfficialFont\Dialing\number_12.bdf \
                          vendor\font\FontData\OfficialFont\VK\Latin_10.bdf \
                          vendor\font\FontData\OfficialFont\VK\vk_latin_14.bdf \
                          vendor\font\FontData\OfficialFont\VK\vk_latin_20.bdf \
                          vendor\font\FontData\OfficialFont\VK\vk_latin_30.bdf
  endif
else
  ifeq ($(strip $(FONT_RESOURCE)),DEMO)
    NON_REL_DIRS_LIST += vendor\font\FontData\OfficialFont
    CUS_REL_BASE_COMP += vendor\font\FontData\DemoFont
  endif
endif

#release IG src to all customer
CUS_REL_BASE_COMP += vendor\intergrafx
CUS_REL_BASE_COMP += vendor\intergrafx_hw
CUS_REL_BASE_COMP += make\intergrafx_hw \
                     make\intergrafx_sw

#MAUI_02901930
CUS_REL_BASE_COMP += custom\system\$(strip $(BOARD_VER))

CUS_REL_BASE_COMP += custom\drv\misc_drv\_Default_BB\$(strip $(PLATFORM)) \
                     custom\drv\misc_drv\$(strip $(BOARD_VER))

#mre
CUS_REL_BASE_COMP += mre\custom\romapp

ifdef YAHOO_CONTENT_SUPPORT
  ifeq ($(strip $(YAHOO_CONTENT_SUPPORT)),TRUE)
    ifneq ($(strip $(call Upper,$(LEVEL))),LEVEL2_SRC)
      NON_REL_DIRS_LIST += mre\custom\romapp\yahoo
    endif
  else
    NON_REL_DIRS_LIST += mre\custom\romapp\yahoo
    NON_REL_DIRS_LIST += vendor\widget\google\gadgets\yahoo
  endif
else
  NON_REL_DIRS_LIST += mre\custom\romapp\yahoo
  NON_REL_DIRS_LIST += vendor\widget\google\gadgets\yahoo
endif

ifdef FACEBOOK_CONTENT_SUPPORT
  ifeq ($(strip $(FACEBOOK_CONTENT_SUPPORT)),TRUE)
    ifneq ($(strip $(call Upper,$(LEVEL))),LEVEL2_SRC)
      NON_REL_DIRS_LIST += mre\custom\romapp\facebook
    endif
  else
    NON_REL_DIRS_LIST += mre\custom\romapp\facebook
    NON_REL_DIRS_LIST += vendor\widget\google\gadgets\facebook
  endif
else
  NON_REL_DIRS_LIST += mre\custom\romapp\facebook
  NON_REL_DIRS_LIST += vendor\widget\google\gadgets\facebook
endif

#Release header file for COMBO_MEMORY_SUPPORT switch
CUS_REL_FILES_LIST += hal\storage\flash\mtd\inc\combo_flash_defs.h
CUS_REL_BASE_COMP += hal\system\GFH\public

#Release files for WEBCAM_SUPPORT switch
CUS_REL_BASE_COMP += media\webcam \
                     plutommi\MtkApp\Connectivity \
                     venusmmi\app\Cosmos\Webcam
                     
ifneq ($(strip $(FOTA_ENABLE)),FOTA_DM)
  NON_REL_DIRS_LIST += vendor\redbend_fota\include
endif

#Release files for BACKGROUND_SOUND switch
ifneq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  CUS_REL_BASE_COMP += media\audio
endif

#Release header file for ZIMAGE_SUPPORT switch
CUS_REL_FILES_LIST += interface\hal\graphics\lzmadec.h
CUS_REL_FILES_LIST += interface\hal\graphics\lzmatypes.h
CUS_REL_FILES_LIST += hal\graphics\gfx_core\compress\lzma\src\lzmadec.c

CUS_REL_BASE_COMP += hal\peripheral

CUS_REL_BASE_COMP += custom\drv\camera_common

ifeq ($(strip $(call Upper,$(LEVEL))),LEVEL2_SRC)
  ifeq ($(strip $(MMI_BASE)),VENUS_MMI)
    CUS_REL_BASE_COMP += plutommi\Framework
    CUS_REL_BASE_COMP += plutommi\CUI
    CUS_REL_BASE_COMP += plutommi\Service
    CUS_REL_BASE_COMP += venusmmi\app\Cosmos
  endif
endif

#release setting for xgen.mak
CUS_REL_BASE_COMP += make\xgen

#Release header file for PANORAMA_VIEW_SUPPORT switch
CUS_REL_BASE_COMP += hal\graphics\jpeg\common\inc \
                     hal\graphics\jpeg\jaia\inc \
                     hal\graphics\gfx_core\jpeg\jaia\inc

#Release files for WEBCAM_SUPPORT switch
CUS_REL_BASE_COMP +=  plutommi\Service\MDI\MDIInc \
                      plutommi\Service\MDI\MDISrc \
                      hal\connectivity\usb_driver\inc

#temp release for sysgen error
ifeq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  CUS_REL_BASE_COMP += kal\oscar\include
  CUS_REL_BASE_COMP += MoDIS_VC9\oscar\include
endif

#release files for support TOUCH_PANEL_SHORTCUT_SUPPORT switch(from FALSE to TRUE)
CUS_REL_FILES_LIST += custom\common\touch_panel_shortcut_custom.h.tmp \
                      custom\common\touch_panel_shortcut_custom.c.tmp

ifdef ALIPAY_SUPPORT
  ifeq ($(strip $(ALIPAY_SUPPORT)),TRUE)
    CUS_REL_OBJ_LIST += vendor\alipay\lib\alixpay.a
    CUS_REL_OBJ_LIST += vendor\alipay\lib\alixpay.lib
  endif
endif

#Release file for MODIS_FDM
CUS_REL_FILES_LIST += MoDIS_VC9\drv_sim\src\w32_file_disk.c

CUS_REL_BASE_COMP += hal\video
CUS_REL_BASE_COMP += interface\media
CUS_REL_BASE_COMP += custom\video
CUS_REL_BASE_COMP += hal\video_codec\interface
CUS_REL_BASE_COMP += interface\hal\video
CUS_REL_BASE_COMP += hal\mdp\include
CUS_REL_BASE_COMP += plutommi\CUI\VdoRecCui
NON_REL_DIRS_LIST += hal\video\demuxer\provider_sec

ifneq ($(strip $(CLOUD_SUPPORT)),SOURCE)
  NON_REL_FILES_LIST += plutommi\Service\SsoSrv\SsoSrvMain.c
  NON_REL_FILES_LIST += plutommi\Service\SsoSrv\plugin\yahoo\YAHOO_vpp.c
  NON_REL_FILES_LIST += plutommi\Service\CloudSrv\BackupRestoreSrvApi.c
  NON_REL_FILES_LIST += plutommi\Service\CloudSrv\BackupRestoreSrvCard.c
  NON_REL_FILES_LIST += plutommi\Service\CloudSrv\BackupRestoreSrvSms.c
  NON_REL_FILES_LIST += plutommi\Service\CloudSrv\BackupRestoreSrvScheduler.c
  NON_REL_FILES_LIST += plutommi\Service\EmailSrv\EmailSrvSso.c
endif

ifneq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  NON_REL_DIRS_LIST += hal\video\fluency_sec
endif

ifeq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  CUS_REL_BASE_COMP += hal\video_codec\lib
endif

ifeq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  CUS_REL_FILES_LIST += $(strip $(PS_FOLDER))\tools\Ini.pm
  CUS_REL_FILES_LIST += $(strip $(PS_FOLDER))\tools\mcd.ini
  CUS_REL_FILES_LIST += $(strip $(PS_FOLDER))\tools\mcdparser.pl
  CUS_REL_FILES_LIST += $(strip $(PS_FOLDER))\tools\mcd_l4.ini
  CUS_REL_FILES_LIST += $(strip $(PS_FOLDER))\tools\pre_mcdparser.pl
  CUS_REL_BASE_COMP += $(strip $(PS_FOLDER))\interfaces\asn
endif

CUS_REL_BASE_COMP += plutommi\CUI\InlineCui

CUS_REL_BASE_COMP += custom\system\Template

#suppor __MMI_CLOG_CALL_TIME__ & __MMI_NITZ__ to be switchable
CUS_REL_BASE_COMP += plutommi\Service\CallLogSrv
CUS_REL_BASE_COMP += plutommi\Service\NITZSrv

CUS_REL_BASE_COMP += interface\nfc

CUS_REL_FILES_LIST += mtk_tools\CMMAutoGen.pl
CUS_REL_FILES_LIST += Debug.men
# release hal\system\regbase\inc folder for CMMAutoGen.pl
CUS_REL_BASE_COMP += hal\system\regbase\inc

#for FM radio chip switchable
CUS_REL_BASE_COMP += fm_drv

ifneq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  NON_REL_DIRS_LIST += gps\mnl\internal_lib
endif

ifdef GAMELOFT_CONTENT_SUPPORT
  ifeq ($(strip $(GAMELOFT_CONTENT_SUPPORT)),TRUE)
    ifneq ($(strip $(call Upper,$(LEVEL))),LEVEL2_SRC)
      NON_REL_DIRS_LIST += mre\custom\romapp\gameloft
    endif
  else
    NON_REL_DIRS_LIST += mre\custom\romapp\gameloft
  endif
else
  NON_REL_DIRS_LIST += mre\custom\romapp\gameloft
endif

NON_REL_DIRS_LIST += Doc\MMI_CONFIG_GUIDE\Source

ifdef TWITTER_CONTENT_SUPPORT
  ifeq ($(strip $(TWITTER_CONTENT_SUPPORT)),TRUE)
    ifneq ($(strip $(call Upper,$(LEVEL))),LEVEL2_SRC)
      NON_REL_DIRS_LIST += mre\custom\romapp\twitter
    endif
  else
    NON_REL_DIRS_LIST += mre\custom\romapp\twitter
  endif
else
  NON_REL_DIRS_LIST += mre\custom\romapp\twitter
endif

ifneq ($(strip $(MTK_SUBSIDIARY)),TRUE)
  ifdef SOCIAL_NETWORK_SUPPORT
    ifneq ($(strip $(SOCIAL_NETWORK_SUPPORT)),NONE)
      ifeq ($(strip $(call Upper,$(LEVEL))),LEVEL2_SRC)
        CUS_REL_BASE_COMP += plutommi\Service\SnsSrv\plugin
        ifdef FACEBOOK_SNS_SUPPORT
          ifeq ($(strip $(FACEBOOK_SNS_SUPPORT)),FALSE)
            NON_REL_DIRS_LIST += plutommi\Service\SnsSrv\plugin\facebook
          endif
        else
          NON_REL_DIRS_LIST += plutommi\Service\SnsSrv\plugin\facebook
        endif
        ifdef TWITTER_SNS_SUPPORT
          ifeq ($(strip $(TWITTER_SNS_SUPPORT)),FALSE)
            NON_REL_DIRS_LIST += plutommi\Service\SnsSrv\plugin\twitter
          endif
        else
          NON_REL_DIRS_LIST += plutommi\Service\SnsSrv\plugin\twitter
        endif
      endif
    else
      NON_REL_DIRS_LIST += plutommi\Service\SnsSrv\plugin
    endif
  else
    NON_REL_DIRS_LIST += plutommi\Service\SnsSrv\plugin
  endif
  NON_REL_DIRS_LIST += plutommi\Service\SnsSrv\src

  ifneq ($(strip $(SOCIAL_NETWORK_SUPPORT)),APP_SOURCE)
    NON_REL_DIRS_LIST += venusmmi\app\Cosmos\SNS\src
    NON_REL_DIRS_LIST += venusmmi\app\Cosmos\SNS\Widget\src
    NON_REL_DIRS_LIST += plutommi\mmi\sns\snssrc
    NON_REL_DIRS_LIST += plutommi\cui\SnsCui
    NON_REL_FILES_LIST += plutommi\Framework\GUI\gui_src\wgui_categories_sns.c
    NON_REL_FILES_LIST += plutommi\mmi\phonebook\phonebooksrc\phonebookSns.c
    NON_REL_FILES_LIST += venusmmi\app\pluto_variation\LauncherKey\Widget\SNS\vapp_widget_sns.cpp	
    NON_REL_FILES_LIST += venusmmi\app\pluto_variation\LauncherKey\Widget\SNS\vapp_widget_key_sns.cpp
  endif
endif

CUS_REL_BASE_COMP += media\bitstream

#release folder for support TOUCH_PANEL_SUPPORT switch
CUS_REL_BASE_COMP += custom\drv\Motion_sensor \
                     custom\drv\Proximity_Sensor \
                     custom\drv\CTP_module

#release for MCARE switch
CUS_REL_BASE_COMP += make\tencentmcarev31adp \
                     vendor\mcare

#release for VKV3 switch
CUS_REL_BASE_COMP += plutommi\Customer\VKResourece

# release for switch ability
CUS_REL_BASE_COMP += make\guobihw
CUS_REL_BASE_COMP += make\winguo
CUS_REL_BASE_COMP += vendor\search_engine\GUOBI

ifdef SOCKET_SSL_SUPPORT
  ifeq ($(strip $(SOCKET_SSL_SUPPORT)),TRUE)
    CUS_REL_FILES_LIST += interface\security\tls_api.h
  endif
endif

ifdef SSL_SUPPORT
  ifneq ($(strip $(SSL_SUPPORT)),NONE)
    CUS_REL_FILES_LIST += interface\hal\cipher\include\ssl_api.h
  endif
endif

#MAUI_03231497
CUS_REL_FILES_LIST += inet_ps\interfaces\local_inc\mmi2abm_struct.h
CUS_REL_FILES_LIST += inet_ps\interfaces\local_inc\abm2soc_struct.h
CUS_REL_FILES_LIST += interface\inet_ps\abm_api.h
CUS_REL_FILES_LIST += interface\wifi\hostap_abm_msgs.h

# release handwriting guobi folder for switchability
CUS_REL_BASE_COMP += vendor\handwriting\guobi
# release vendor database to customer
CUS_REL_BASE_COMP += vendor\InputMethod\GUOBI\MemoryCard

CUS_REL_BASE_COMP += interface\security
CUS_REL_BASE_COMP += interface\hal\cipher\include

CUS_REL_BASE_COMP += interface\hal\opengles

# MAUI_03354743
# To avoid customer getting too many patch files,
# add this relese rule in REL_COMMON.mak not Option.mak on MP branch
ifneq ($(strip $(MMI_VERSION)),NEPTUNE_MMI)
  CUS_REL_FILES_LIST += plutommi\Customer\CustResource\PlutoAppIcon1.xml
endif

#release the bootloader_bin folder to customer
CUS_REL_BASE_COMP += bootloader_bin

# add non-release for btnotification_conn module
NON_REL_FILES_LIST += plutommi\Service\BTNotificationConn\BTNotiSrvDisp.c
NON_REL_FILES_LIST += plutommi\Service\BTNotificationConn\BTNotiSrvRecv.c

# release bam to customer
BROWSER_SUPPORT_Q03C_TYPES = OBIGO_Q03C OBIGO_Q03C_SLIM
ifdef BROWSER_SUPPORT
  ifneq ($(filter $(strip $(BROWSER_SUPPORT)) ,$(BROWSER_SUPPORT_Q03C_TYPES)),)
    CUS_REL_BASE_COMP += vendor\wap\obigo_Q03C\adaptation\modules\bam\include
  endif
endif

# release Etrump folder for switch ability
CUS_REL_BASE_COMP += make\vectorfont_etrump
CUS_REL_BASE_COMP += vendor\vectorfont\etrump
CUS_REL_BASE_COMP += plutommi\Customer\Fonts\Android \
                     plutommi\Customer\Fonts\MTK \
                     plutommi\Customer\Fonts\Arphic_demo \
                     plutommi\Customer\Fonts\Monotype_demo \
                     plutommi\Customer\Fonts\Etrump