kernel/eka/euser/CMakeLists.txt
branchanywhere
changeset 95 f561f9ae805b
parent 94 f36eb4948686
child 96 428c5911a502
equal deleted inserted replaced
94:f36eb4948686 95:f561f9ae805b
    25 #Target specific definitions will be add using set_target_properties
    25 #Target specific definitions will be add using set_target_properties
    26 #add_definitions(-DUNICODE)
    26 #add_definitions(-DUNICODE)
    27 add_definitions(-D__VC32__)
    27 add_definitions(-D__VC32__)
    28 add_definitions(-D_UNICODE)
    28 add_definitions(-D_UNICODE)
    29 add_definitions(-D__LEAVE_EQUALS_THROW__)
    29 add_definitions(-D__LEAVE_EQUALS_THROW__)
       
    30 add_definitions(-D__SUPPORT_CPP_EXCEPTIONS__)
    30 add_definitions(-D__WINS__)
    31 add_definitions(-D__WINS__)
    31 #__CPU_X86 is declared by __WINS__ 
    32 #__CPU_X86 is declared by __WINS__ 
    32 #add_definitions(-D__CPU_X86)
    33 #add_definitions(-D__CPU_X86)
    33 #add_definitions(-D__DLL__)
    34 #add_definitions(-D__DLL__)
    34 
    35 
    75 
    76 
    76 #Adding the sources from common/win32
    77 #Adding the sources from common/win32
    77 set (sourcepath ../common/win32/)
    78 set (sourcepath ../common/win32/)
    78 add_source(
    79 add_source(
    79 atomics.cpp
    80 atomics.cpp
       
    81 seh.cpp
    80 )
    82 )
    81 
    83 
    82 #Adding the sources from maths
    84 #Adding the sources from maths
    83 set (sourcepath ../euser/maths/)
    85 set (sourcepath ../euser/maths/)
    84 add_source(
    86 add_source(
    92 
    94 
    93 #Adding the sources from epoc/win32
    95 #Adding the sources from epoc/win32
    94 set (sourcepath ../euser/epoc/win32/)
    96 set (sourcepath ../euser/epoc/win32/)
    95 add_source(
    97 add_source(
    96 uc_i64.cpp uc_realx.cpp
    98 uc_i64.cpp uc_realx.cpp
    97 uc_trp.cpp uc_utl.cpp 
    99 uc_trp.cpp
       
   100 uc_utl.cpp 
    98 uc_dll.cpp
   101 uc_dll.cpp
    99 #uc_exec.cpp
   102 #uc_exec.cpp
   100 )
   103 )
   101 
   104 
   102 #Adding the sources from epoc/symc
   105 #Adding the sources from epoc/symc
   244 
   247 
   245 ### EUSER: many user library
   248 ### EUSER: many user library
   246 add_library (euser SHARED ${source})
   249 add_library (euser SHARED ${source})
   247 add_dependencies(euser genexec emulator scppnwdl)
   250 add_dependencies(euser genexec emulator scppnwdl)
   248 target_link_libraries(euser emulator)
   251 target_link_libraries(euser emulator)
   249 set_target_properties(euser PROPERTIES COMPILE_DEFINITIONS "__DLL__")
   252 #set_target_properties(euser PROPERTIES COMPILE_DEFINITIONS "__DLL__")
       
   253 
       
   254 set_property(
       
   255    TARGET euser
       
   256    PROPERTY COMPILE_DEFINITIONS __DLL__
       
   257    )
       
   258 
       
   259 
   250 
   260 
   251 
   261 
   252 ### ESTUB: not sure why need that yet
   262 ### ESTUB: not sure why need that yet
   253 add_library (estub STATIC ../euser/epoc/win32/uc_stub.cpp)
   263 add_library (estub STATIC ../euser/epoc/win32/uc_stub.cpp)
   254 #set_target_properties(estub PROPERTIES LINK_FLAGS /ENTRY:E32Bootstrap)
   264 #set_target_properties(estub PROPERTIES LINK_FLAGS /ENTRY:E32Bootstrap)