os/kernelhwsrv/userlibandfileserver/fileserver/srofs/erofs.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) 2009 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(erofs)
    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(Includes REGULAR_EXPRESSION ".+\\.h$") 	
    25 source_group(Def REGULAR_EXPRESSION ".+\\.def$") 	
    26 #-------------------------------------------------------------------
    27 
    28 #-------------------------------------------------------------------
    29 # DEF file to make sure exports ordinals are correct
    30 #-------------------------------------------------------------------
    31 #set (sourcepath ../../bwins/)
    32 #add_source(elocdu.def)
    33 #-------------------------------------------------------------------
    34 
    35 
    36 #-------------------------------------------------------------------
    37 # Add sources
    38 #-------------------------------------------------------------------
    39 set (sourcepath ../srofs/)
    40 add_source(sr_rofs.cpp dircache.cpp)
    41 add_source(erofs_uid.cpp)
    42 
    43 ##-- Entry point
    44 #../../../kernel/eka/kernel/win32/d_entry.cpp
    45 set (sourcepath ../../../kernel/eka/euser/epoc/win32/)
    46 #add_source(uc_dll.cpp) #uc_atx.cpp
    47 #-------------------------------------------------------------------
    48 
    49 
    50 
    51 
    52 
    53 #-------------------------------------------------------------------
    54 #Define our source and target
    55 #-------------------------------------------------------------------
    56 get_source(source)
    57 add_library (erofs SHARED ${source})
    58 target_link_libraries(	erofs 
    59 						edll efile efsrv euser
    60 						) 
    61 set_target_properties(erofs PROPERTIES SUFFIX ".fsy")
    62 set_target_properties(erofs PROPERTIES LINK_FLAGS "/INCLUDE:__E32Dll")
    63 #set_target_properties(erofs PROPERTIES LINK_FLAGS "/INCLUDE:_DllMain")
    64 
    65 #-------------------------------------------------------------------
    66 
    67 
    68 #-------------------------------------------------------------------
    69 #Fix up include directories
    70 #-------------------------------------------------------------------
    71 system_include(/epoc32/include)
    72 system_include(/epoc32/include/platform)
    73 #-------------------------------------------------------------------
    74 
    75 
    76 
    77 #-------------------------------------------------------------------
    78 #Fix up compiler defines
    79 #-------------------------------------------------------------------
    80 add_define(SYMBIAN_TRACE_SYSTEM_INCLUDE)
    81 #-------------------------------------------------------------------
    82 
    83 
    84 
    85 
    86 
    87 ####################
    88 pop_target(erofs)
    89 ####################
    90 
    91 
    92