os/persistentdata/persistentstorage/store/BMAKE/estor.cmake
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
parent 0 bde4ae8d615e
permissions -rw-r--r--
Update contrib.
     1 # Copyright (c) 2012 Stéphane Lenclud.
     2 # All rights reserved.
     3 # This component and the accompanying materials are made available
     4 # under the terms of the License "Eclipse Public License v1.0"
     5 # which accompanies this distribution, and is available
     6 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 #
     8 # Initial Contributors:
     9 # Stéphane Lenclud.
    10 #
    11 
    12 ####################
    13 push_target(estor)
    14 ####################
    15 
    16 #-------------------------------------------------------------------
    17 #Add this *.cmake file to our source tree
    18 #-------------------------------------------------------------------
    19 add_cmake_source()
    20 #Make sure all the output from all projects will go in one place
    21 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
    22 #Visual Studio IDE folders
    23 source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
    24 source_group(Sources REGULAR_EXPRESSION ".+\\.CPP$")
    25 source_group(Includes REGULAR_EXPRESSION ".+\\.h$") 	
    26 source_group(Includes REGULAR_EXPRESSION ".+\\.H$") 	
    27 source_group(Def REGULAR_EXPRESSION ".+\\.def$") 	
    28 #-------------------------------------------------------------------
    29 
    30 #-------------------------------------------------------------------
    31 #Add our sources
    32 #-------------------------------------------------------------------
    33 set (sourcepath ../BMAKE/)
    34 add_source(estor_uid.cpp)
    35 
    36 set (sourcepath	../UBTREE/)
    37 add_source(UB_FIX.CPP UB_INL.CPP UB_KEY.CPP UB_NODE.CPP UB_TREE.CPP UB_UTL.CPP)
    38  
    39 set (sourcepath ../UCONT/)
    40 add_source(UC_SET.CPP UC_UTL.CPP)
    41  
    42 set (sourcepath ../UCRYPT/)
    43 add_source(UE_FLTR.CPP UE_STOR.CPP UE_STRM.CPP UE_UTL.CPP)
    44  
    45 set (sourcepath ../UFILE/)
    46 add_source(UF_BUF.CPP UF_DICT.CPP UF_DIR.CPP UF_PERM.CPP UF_STOR.CPP)
    47 add_source(UF_STRM.CPP UF_UTL.CPP)
    48  
    49 set (sourcepath ../ULIB/)
    50 add_source(UL_UTL.CPP)
    51  
    52 set (sourcepath ../UMEM/)
    53 add_source(UM_BUF.CPP UM_STOR.CPP UM_STRM.CPP UM_UTL.CPP)
    54  
    55 set (sourcepath ../UPAGE/)
    56 add_source(UP_CACHE.CPP UP_FILE.CPP UP_PAGE.CPP UP_STOR.CPP UP_UTL.CPP)
    57  
    58 set (sourcepath ../USTOR/)
    59 add_source(UT_COLL.CPP UT_DICT.CPP UT_EMBED.CPP UT_MAP.CPP UT_PERM.CPP)
    60 add_source(UT_STOR.CPP UT_STRM.CPP UT_SWZ.CPP UT_UTL.CPP UT_Iter.cpp)
    61  
    62 set (sourcepath ../USTRM/)
    63 add_source(US_BUF.CPP US_FLTR.CPP US_FRAME.CPP US_FUNC.CPP US_HOST.CPP)
    64 add_source(US_IO.CPP US_SHARE.CPP US_STRM.CPP US_UTL.CPP US_UCMP.CPP)
    65 
    66 #-------------------------------------------------------------------
    67 set (sourcepath ../bwins/)
    68 add_source(estor3.def)
    69 #-------------------------------------------------------------------
    70 
    71 #-------------------------------------------------------------------
    72 #Define our source and target
    73 #-------------------------------------------------------------------
    74 get_source(source)
    75 add_library(estor SHARED ${source})
    76 target_link_libraries(estor edll euser efsrv)
    77 set_target_properties(estor PROPERTIES LINK_FLAGS "/INCLUDE:__E32Dll")
    78 #-------------------------------------------------------------------
    79 
    80 
    81 #-------------------------------------------------------------------
    82 #Fix up include directories
    83 #-------------------------------------------------------------------
    84 user_include(../INC)
    85 user_include(../../../../security/crypto/weakcrypto/inc)
    86 system_include(/epoc32/include)
    87 system_include(/epoc32/include/platform)
    88 #-------------------------------------------------------------------
    89 
    90 
    91 #-------------------------------------------------------------------
    92 #Fix up compiler defines
    93 #-------------------------------------------------------------------
    94 add_define(SYMBIAN_PKCS12)
    95 #add_define(SYMBIAN_ENABLE_SPLIT_HEADERS)
    96 #add_define(SYMBIAN_ENABLE_PUBLIC_PLATFORM_HEADER_SPLIT)
    97 #add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)				
    98 #add_define(__KERNEL_MODE__)
    99 #-------------------------------------------------------------------
   100 
   101 
   102 
   103 
   104 
   105 ####################
   106 pop_target(estor)
   107 ####################
   108 
   109 
   110