kernel/eka/euser/CMakeLists.txt
branchanywhere
changeset 38 422372aa20a3
parent 28 9642313072c3
child 40 04a1b74efd48
equal deleted inserted replaced
28:9642313072c3 38:422372aa20a3
   114 
   114 
   115 ### EMULATOR: used by euser and kernel for emulation
   115 ### EMULATOR: used by euser and kernel for emulation
   116 add_library (emulator SHARED ../kernel/win32/l_entry.cpp ../euser/epoc/win32/emulator.cpp) #Compile the KLIB target entry point which is l_entry.cpp 
   116 add_library (emulator SHARED ../kernel/win32/l_entry.cpp ../euser/epoc/win32/emulator.cpp) #Compile the KLIB target entry point which is l_entry.cpp 
   117 target_link_libraries(emulator kernel32) #kernel32
   117 target_link_libraries(emulator kernel32) #kernel32
   118 #set_target_properties(emulator PROPERTIES COMPILE_FLAGS "/Zl") #No default library
   118 #set_target_properties(emulator PROPERTIES COMPILE_FLAGS "/Zl") #No default library
   119 set_target_properties(emulator PROPERTIES LINK_FLAGS "/ENTRY:_Win32DllMain") #Change the entry point
   119 #set_target_properties(emulator PROPERTIES LINK_FLAGS "/ENTRY:_Win32DllMain") #Change the entry point
   120 
   120 
   121 ### EUSER: many user library
   121 ### EUSER: many user library
   122 add_library (euser SHARED ${source})
   122 add_library (euser SHARED ${source})
   123 add_dependencies(euser genexec emulator)
   123 add_dependencies(euser genexec emulator)
   124 set_target_properties(euser PROPERTIES COMPILE_DEFINITIONS "__DLL__")
   124 set_target_properties(euser PROPERTIES COMPILE_DEFINITIONS "__DLL__")
   125 
   125 
   126 
   126 
   127 ### ESTUB: not sure why need that yet
   127 ### ESTUB: not sure why need that yet
   128 add_library (estub STATIC ../euser/epoc/win32/uc_stub.cpp)
   128 #add_library (estub STATIC ../euser/epoc/win32/uc_stub.cpp)
   129 #set_target_properties(estub PROPERTIES LINK_FLAGS /ENTRY:E32Bootstrap)
   129 #set_target_properties(estub PROPERTIES LINK_FLAGS /ENTRY:E32Bootstrap)
   130 
   130 
   131 ### SCPPNWDL_KERN: used by kernel. It contains new operators override.
   131 ### SCPPNWDL_KERN: used by kernel. It contains new operators override.
   132 #To be linked by kernel
   132 #To be linked by kernel
   133 add_library (scppnwdl_kern STATIC ../euser/epoc/win32/scppnwdl.cpp)
   133 #add_library (scppnwdl_kern STATIC ../euser/epoc/win32/scppnwdl.cpp)
   134 add_dependencies(scppnwdl_kern euser)
   134 #add_dependencies(scppnwdl_kern euser)
   135 
   135 
   136 ### EPOC: emulator executable
   136 ### EPOC: emulator executable
   137 add_executable(epoc ../euser/epoc/win32/uc_exe.cpp ../euser/epoc/win32/uc_epoc.cpp) #Compile the EXE target entry point which is uc_exe.cpp 
   137 #add_executable(epoc ../euser/epoc/win32/uc_exe.cpp ../euser/epoc/win32/uc_epoc.cpp) #Compile the EXE target entry point which is uc_exe.cpp 
   138 add_dependencies(epoc estub euser)
   138 #add_dependencies(epoc estub euser)
   139 set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:_E32Bootstrap /SUBSYSTEM:WINDOWS /NODEFAULTLIB")
   139 #set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:_E32Bootstrap /SUBSYSTEM:WINDOWS /NODEFAULTLIB")
   140 target_link_libraries(epoc msvcrt)
   140 #target_link_libraries(epoc msvcrt)
   141 #set_target_properties(epoc PROPERTIES COMPILE_FLAGS "/Zl")
   141 #set_target_properties(epoc PROPERTIES COMPILE_FLAGS "/Zl")
   142 #set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup /SUBSYSTEM:WINDOWS")
   142 #set_target_properties(epoc PROPERTIES LINK_FLAGS "/ENTRY:mainCRTStartup /SUBSYSTEM:WINDOWS")
   143 #set_target_properties(epoc PROPERTIES LINK_FLAGS "/NODEFAULTLIB")
   143 #set_target_properties(epoc PROPERTIES LINK_FLAGS "/NODEFAULTLIB")
   144 
   144 
   145  #set_target_properties(target1 target2 ... PROPERTIES prop1 value1 prop2 value2 ...)
   145  #set_target_properties(target1 target2 ... PROPERTIES prop1 value1 prop2 value2 ...)