sl@0: # Copyright (c) 2012 Stéphane Lenclud. sl@0: # All rights reserved. sl@0: # This component and the accompanying materials are made available sl@0: # under the terms of the License "Eclipse Public License v1.0" sl@0: # which accompanies this distribution, and is available sl@0: # at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: # sl@0: # Initial Contributors: sl@0: # Stéphane Lenclud. sl@0: # sl@0: sl@0: #################### sl@0: push_target(estor) sl@0: #################### sl@0: sl@0: #------------------------------------------------------------------- sl@0: #Add this *.cmake file to our source tree sl@0: #------------------------------------------------------------------- sl@0: add_cmake_source() sl@0: #Make sure all the output from all projects will go in one place sl@1: set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) sl@0: #Visual Studio IDE folders sl@0: source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$") sl@0: source_group(Sources REGULAR_EXPRESSION ".+\\.CPP$") sl@0: source_group(Includes REGULAR_EXPRESSION ".+\\.h$") sl@0: source_group(Includes REGULAR_EXPRESSION ".+\\.H$") sl@0: source_group(Def REGULAR_EXPRESSION ".+\\.def$") sl@0: #------------------------------------------------------------------- sl@0: sl@0: #------------------------------------------------------------------- sl@0: #Add our sources sl@0: #------------------------------------------------------------------- sl@0: set (sourcepath ../BMAKE/) sl@0: add_source(estor_uid.cpp) sl@0: sl@0: set (sourcepath ../UBTREE/) sl@0: add_source(UB_FIX.CPP UB_INL.CPP UB_KEY.CPP UB_NODE.CPP UB_TREE.CPP UB_UTL.CPP) sl@0: sl@0: set (sourcepath ../UCONT/) sl@0: add_source(UC_SET.CPP UC_UTL.CPP) sl@0: sl@0: set (sourcepath ../UCRYPT/) sl@0: add_source(UE_FLTR.CPP UE_STOR.CPP UE_STRM.CPP UE_UTL.CPP) sl@0: sl@0: set (sourcepath ../UFILE/) sl@0: add_source(UF_BUF.CPP UF_DICT.CPP UF_DIR.CPP UF_PERM.CPP UF_STOR.CPP) sl@0: add_source(UF_STRM.CPP UF_UTL.CPP) sl@0: sl@0: set (sourcepath ../ULIB/) sl@0: add_source(UL_UTL.CPP) sl@0: sl@0: set (sourcepath ../UMEM/) sl@0: add_source(UM_BUF.CPP UM_STOR.CPP UM_STRM.CPP UM_UTL.CPP) sl@0: sl@0: set (sourcepath ../UPAGE/) sl@0: add_source(UP_CACHE.CPP UP_FILE.CPP UP_PAGE.CPP UP_STOR.CPP UP_UTL.CPP) sl@0: sl@0: set (sourcepath ../USTOR/) sl@0: add_source(UT_COLL.CPP UT_DICT.CPP UT_EMBED.CPP UT_MAP.CPP UT_PERM.CPP) sl@0: add_source(UT_STOR.CPP UT_STRM.CPP UT_SWZ.CPP UT_UTL.CPP UT_Iter.cpp) sl@0: sl@0: set (sourcepath ../USTRM/) sl@0: add_source(US_BUF.CPP US_FLTR.CPP US_FRAME.CPP US_FUNC.CPP US_HOST.CPP) sl@0: add_source(US_IO.CPP US_SHARE.CPP US_STRM.CPP US_UTL.CPP US_UCMP.CPP) sl@0: sl@0: #------------------------------------------------------------------- sl@0: set (sourcepath ../bwins/) sl@0: add_source(estor3.def) sl@0: #------------------------------------------------------------------- sl@0: sl@0: #------------------------------------------------------------------- sl@0: #Define our source and target sl@0: #------------------------------------------------------------------- sl@0: get_source(source) sl@0: add_library(estor SHARED ${source}) sl@0: target_link_libraries(estor edll euser efsrv) sl@0: set_target_properties(estor PROPERTIES LINK_FLAGS "/INCLUDE:__E32Dll") sl@0: #------------------------------------------------------------------- sl@0: sl@0: sl@0: #------------------------------------------------------------------- sl@0: #Fix up include directories sl@0: #------------------------------------------------------------------- sl@0: user_include(../INC) sl@0: user_include(../../../../security/crypto/weakcrypto/inc) sl@0: system_include(/epoc32/include) sl@0: system_include(/epoc32/include/platform) sl@0: #------------------------------------------------------------------- sl@0: sl@0: sl@0: #------------------------------------------------------------------- sl@0: #Fix up compiler defines sl@0: #------------------------------------------------------------------- sl@0: add_define(SYMBIAN_PKCS12) sl@0: #add_define(SYMBIAN_ENABLE_SPLIT_HEADERS) sl@0: #add_define(SYMBIAN_ENABLE_PUBLIC_PLATFORM_HEADER_SPLIT) sl@0: #add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__) sl@0: #add_define(__KERNEL_MODE__) sl@0: #------------------------------------------------------------------- sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: #################### sl@0: pop_target(estor) sl@0: #################### sl@0: sl@0: sl@0: