os/kernelhwsrv/userlibandfileserver/fileserver/sfat/elocal.cmake
changeset 0 bde4ae8d615e
child 1 260cb5ec6c19
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/userlibandfileserver/fileserver/sfat/elocal.cmake	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,108 @@
     1.4 +# Copyright (c) 2009 Stéphane Lenclud.
     1.5 +# All rights reserved.
     1.6 +# This component and the accompanying materials are made available
     1.7 +# under the terms of the License "Eclipse Public License v1.0"
     1.8 +# which accompanies this distribution, and is available
     1.9 +# at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +#
    1.11 +# Initial Contributors:
    1.12 +# Stéphane Lenclud.
    1.13 +#
    1.14 +
    1.15 +####################
    1.16 +push_target(elocal)
    1.17 +####################
    1.18 +
    1.19 +#-------------------------------------------------------------------
    1.20 +#Add this *.cmake file to our source tree
    1.21 +#-------------------------------------------------------------------
    1.22 +add_cmake_source()
    1.23 +#Make sure all the output from all projects will go in one place
    1.24 +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin)
    1.25 +#Visual Studio IDE folders
    1.26 +source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$")
    1.27 +source_group(Includes REGULAR_EXPRESSION ".+\\.h$") 	
    1.28 +source_group(Def REGULAR_EXPRESSION ".+\\.def$") 	
    1.29 +#-------------------------------------------------------------------
    1.30 +
    1.31 +#-------------------------------------------------------------------
    1.32 +# DEF file to make sure exports ordinals are correct
    1.33 +#-------------------------------------------------------------------
    1.34 +#set (sourcepath ../../bwins/)
    1.35 +#add_source(elocdu.def)
    1.36 +#-------------------------------------------------------------------
    1.37 +
    1.38 +
    1.39 +#-------------------------------------------------------------------
    1.40 +# Add sources
    1.41 +#-------------------------------------------------------------------
    1.42 +set (sourcepath ../swins/)
    1.43 +add_source(elocal.cpp)
    1.44 +
    1.45 +set (sourcepath ../sfat/)
    1.46 +#add_source(fat_config.cpp sl_cache.cpp sl_dir.cpp)
    1.47 +#add_source(sl_disk.cpp sl_drv.cpp sl_file.cpp)
    1.48 +#add_source(sl_fmt.cpp sl_fsy.cpp sl_main.cpp sl_mnt.cpp)
    1.49 +#add_source(sl_utl.cpp sl_vfat.cpp sl_bpb.cpp)
    1.50 +#add_source(sl_scan.cpp sl_check.cpp)
    1.51 +#add_source(sl_fat16.cpp sl_mnt16.cpp sl_fatcache.cpp fat_table.cpp ram_fat_table.cpp)
    1.52 +#add_source(sl_leafdir_cache.cpp)
    1.53 +#add_source(sl_dir_cache.cpp)
    1.54 +#
    1.55 +add_source(elocal_uid.cpp)
    1.56 +
    1.57 +##-- Entry point
    1.58 +#../../../kernel/eka/kernel/win32/d_entry.cpp
    1.59 +set (sourcepath ../../../kernel/eka/euser/epoc/win32/)
    1.60 +add_source(uc_dll.cpp) #uc_atx.cpp
    1.61 +#-------------------------------------------------------------------
    1.62 +
    1.63 +
    1.64 +
    1.65 +
    1.66 +
    1.67 +#-------------------------------------------------------------------
    1.68 +#Define our source and target
    1.69 +#-------------------------------------------------------------------
    1.70 +get_source(source)
    1.71 +add_library (elocal SHARED ${source})
    1.72 +target_link_libraries(	elocal 
    1.73 +						emulator hal efsrv euser efile
    1.74 +						kernel32) #win32
    1.75 +set_target_properties(elocal PROPERTIES SUFFIX ".fsy")
    1.76 +#-------------------------------------------------------------------
    1.77 +
    1.78 +
    1.79 +#-------------------------------------------------------------------
    1.80 +#Fix up include directories
    1.81 +#-------------------------------------------------------------------
    1.82 +system_include(/epoc32/include)
    1.83 +system_include(/epoc32/include/platform)
    1.84 +#system_include(/epoc32/include/platform/memmodel/emul)
    1.85 +#system_include(/epoc32/include/platform/nkern)
    1.86 +#system_include(/epoc32/include/platform/nkern/win32)
    1.87 +#system_include(/epoc32/include/platform/kernel)
    1.88 +#user_include(../sfat)
    1.89 +#user_include(../sfat/inc)
    1.90 +#user_include(../sfile)
    1.91 +user_include(../inc)
    1.92 +#-------------------------------------------------------------------
    1.93 +
    1.94 +
    1.95 +
    1.96 +#-------------------------------------------------------------------
    1.97 +#Fix up compiler defines
    1.98 +#-------------------------------------------------------------------
    1.99 +add_define(SYMBIAN_TRACE_SYSTEM_INCLUDE)
   1.100 +#-------------------------------------------------------------------
   1.101 +
   1.102 +
   1.103 +
   1.104 +
   1.105 +
   1.106 +####################
   1.107 +pop_target(elocal)
   1.108 +####################
   1.109 +
   1.110 +
   1.111 +