os/kernelhwsrv/userlibandfileserver/fileserver/sfat/elocal.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(elocal)
    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 ../swins/)
    40 add_source(elocal.cpp)
    41 
    42 set (sourcepath ../sfat/)
    43 #add_source(fat_config.cpp sl_cache.cpp sl_dir.cpp)
    44 #add_source(sl_disk.cpp sl_drv.cpp sl_file.cpp)
    45 #add_source(sl_fmt.cpp sl_fsy.cpp sl_main.cpp sl_mnt.cpp)
    46 #add_source(sl_utl.cpp sl_vfat.cpp sl_bpb.cpp)
    47 #add_source(sl_scan.cpp sl_check.cpp)
    48 #add_source(sl_fat16.cpp sl_mnt16.cpp sl_fatcache.cpp fat_table.cpp ram_fat_table.cpp)
    49 #add_source(sl_leafdir_cache.cpp)
    50 #add_source(sl_dir_cache.cpp)
    51 #
    52 add_source(elocal_uid.cpp)
    53 
    54 ##-- Entry point
    55 #../../../kernel/eka/kernel/win32/d_entry.cpp
    56 set (sourcepath ../../../kernel/eka/euser/epoc/win32/)
    57 add_source(uc_dll.cpp) #uc_atx.cpp
    58 #-------------------------------------------------------------------
    59 
    60 
    61 
    62 
    63 
    64 #-------------------------------------------------------------------
    65 #Define our source and target
    66 #-------------------------------------------------------------------
    67 get_source(source)
    68 add_library (elocal SHARED ${source})
    69 target_link_libraries(	elocal 
    70 						emulator hal efsrv euser efile
    71 						kernel32) #win32
    72 set_target_properties(elocal PROPERTIES SUFFIX ".fsy")
    73 #-------------------------------------------------------------------
    74 
    75 
    76 #-------------------------------------------------------------------
    77 #Fix up include directories
    78 #-------------------------------------------------------------------
    79 system_include(/epoc32/include)
    80 system_include(/epoc32/include/platform)
    81 #system_include(/epoc32/include/platform/memmodel/emul)
    82 #system_include(/epoc32/include/platform/nkern)
    83 #system_include(/epoc32/include/platform/nkern/win32)
    84 #system_include(/epoc32/include/platform/kernel)
    85 #user_include(../sfat)
    86 #user_include(../sfat/inc)
    87 #user_include(../sfile)
    88 user_include(../inc)
    89 #-------------------------------------------------------------------
    90 
    91 
    92 
    93 #-------------------------------------------------------------------
    94 #Fix up compiler defines
    95 #-------------------------------------------------------------------
    96 add_define(SYMBIAN_TRACE_SYSTEM_INCLUDE)
    97 #-------------------------------------------------------------------
    98 
    99 
   100 
   101 
   102 
   103 ####################
   104 pop_target(elocal)
   105 ####################
   106 
   107 
   108