Update contrib.
1 # Copyright (c) 2012 Stéphane Lenclud.
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".
8 # Initial Contributors:
13 push_target(domainpolicy)
16 #-------------------------------------------------------------------
17 #Add this *.cmake file to our source tree
18 #-------------------------------------------------------------------
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 #-------------------------------------------------------------------
28 #-------------------------------------------------------------------
30 #-------------------------------------------------------------------
31 set (sourcepath ../src/)
36 set (sourcepath ../bwins/)
37 add_source(domainpolicyu.def)
40 #set (sourcepath ../../../../kernelhwsrv/kernel/eka/euser/epoc/win32/)
41 #add_source(uc_dll.cpp) #uc_atx.cpp
43 #-------------------------------------------------------------------
45 #-------------------------------------------------------------------
46 #Define our source and target
47 #-------------------------------------------------------------------
49 add_library(domainpolicy SHARED ${source} domainpolicy_uid.cpp)
50 set_target_properties(domainpolicy PROPERTIES LINK_FLAGS "/INCLUDE:__E32Dll")
51 #set_target_properties(domainpolicy PROPERTIES LINK_FLAGS "/INCLUDE:_DllMain")
52 target_link_libraries(domainpolicy edll euser)
53 #-------------------------------------------------------------------
56 #-------------------------------------------------------------------
57 #Fix up include directories
58 #-------------------------------------------------------------------
59 system_include(/epoc32/include)
60 system_include(/epoc32/include/platform)
63 #-------------------------------------------------------------------
66 #-------------------------------------------------------------------
67 #Fix up compiler defines
68 #-------------------------------------------------------------------
69 #add_define(SYMBIAN_TRACE_SYSTEM_INCLUDE)
70 #add_define(__EXPORT_MEMCPY__)
71 #add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)
72 #add_define(__IN_KERNEL__)
73 #add_define(__KERNEL_MODE__)
74 #-------------------------------------------------------------------
81 pop_target(domainpolicy)