os/kernelhwsrv/userlibandfileserver/fileserver/group/efile.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(efile)
    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 
    30 #-------------------------------------------------------------------
    31 #Add our sources
    32 #-------------------------------------------------------------------
    33 set (sourcepath ../sfsrv/)
    34 add_source(
    35 cl_file.cpp
    36 cl_cli.cpp
    37 cl_dir.cpp
    38 )
    39 
    40 set (sourcepath ../sfile/)
    41 add_source(
    42 sf_amh.cpp sf_dat.cpp sf_debug.cpp sf_dir.cpp
    43 sf_drv.cpp sf_file.cpp sf_fmt.cpp
    44 sf_ldr.cpp sf_main.cpp sf_nbs.cpp sf_ses.cpp
    45 sf_svr.cpp sf_sys.cpp sf_utl.cpp sf_mnt.cpp
    46 sf_raw.cpp sf_prel.cpp sf_disk.cpp
    47 sf_request.cpp sf_ops.cpp sf_notify.cpp
    48 sf_thread.cpp sf_local.cpp sf_obj.cpp
    49 sf_ext.cpp sf_hash.cpp
    50 sf_plugin.cpp sf_plugin_ops.cpp sf_plugin_man.cpp
    51 Sf_plugin_util.cpp
    52 sf_cache_man.cpp sf_cache_client.cpp
    53 sf_file_cache.cpp
    54 sf_memory_man.cpp sf_memory_client.cpp
    55 sf_plugin_shim.cpp
    56 sf_notifier_handlers.cpp
    57 #ifdef SYMBIAN_F32_ENHANCED_CHANGE_NOTIFICATION
    58 #sf_pool.cpp sf_notifier.cpp
    59 #endif
    60 sf_lwins.cpp
    61 )
    62 
    63 
    64 #Guessing our entry point
    65 set (sourcepath ../../../kernel/eka/euser/epoc/win32/)
    66 add_source(
    67 uc_exe.cpp
    68 )
    69 
    70 
    71 set (sourcepath ../bwins/)
    72 add_source(efileu.def)
    73 #-------------------------------------------------------------------
    74 
    75 
    76 #-------------------------------------------------------------------
    77 #Define our source and target
    78 #-------------------------------------------------------------------
    79 get_source(source)
    80 add_library(efile SHARED ${source} efile_uid.cpp)
    81 set_target_properties(efile PROPERTIES SUFFIX ".exe")
    82 set_target_properties(efile PROPERTIES LINK_FLAGS /ENTRY:_Win32DllMain)
    83 #add_executable(efile WIN32 ${source} efile_uid.cpp)
    84 target_link_libraries(	efile
    85 						efsrv euser hal btracec emulator
    86 						#scppnwdl
    87 						kernel32 ) #win32												
    88 #-------------------------------------------------------------------
    89 
    90 
    91 #-------------------------------------------------------------------
    92 #Fix up include directories
    93 #-------------------------------------------------------------------
    94 #include_directories(../../include/nkern)
    95 #include_directories(../../include/nkern/win32)
    96 #include_directories(../../include/memmodel/emul)
    97 #include_directories(../../include/kernel/win32)
    98 system_include(/epoc32/include)
    99 system_include(/epoc32/include/platform)
   100 user_include(../sfsrv)
   101 user_include(../ftrace)
   102 user_include(.)
   103 user_include(../inc)
   104 user_include(../../../kernel/eka/include)
   105 #-------------------------------------------------------------------
   106 
   107 
   108 #-------------------------------------------------------------------
   109 #Fix up compiler defines
   110 #-------------------------------------------------------------------
   111 add_define(SYMBIAN_TRACE_SYSTEM_INCLUDE)
   112 #add_define(SYMBIAN_F32_ENHANCED_CHANGE_NOTIFICATION)
   113 #add_define(__EXPORT_MEMCPY__)
   114 #add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)				
   115 #add_define(__IN_KERNEL__)
   116 #add_define(__KERNEL_MODE__)
   117 #-------------------------------------------------------------------
   118 
   119 
   120 
   121 
   122 
   123 ####################
   124 pop_target(efile)
   125 ####################
   126 
   127 
   128