os/boardsupport/emulator/emulatorbsp/soundsc.cmake
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
sl@1
     1
# Copyright (c) 2009-2012 Stéphane Lenclud.
sl@1
     2
# All rights reserved.
sl@1
     3
# This component and the accompanying materials are made available
sl@1
     4
# under the terms of the License "Eclipse Public License v1.0"
sl@1
     5
# which accompanies this distribution, and is available
sl@1
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@1
     7
#
sl@1
     8
# Initial Contributors:
sl@1
     9
# Stéphane Lenclud.
sl@1
    10
#
sl@1
    11
sl@1
    12
push_target(soundsc)
sl@1
    13
sl@1
    14
#Add current file to our source tree
sl@1
    15
add_cmake_source()
sl@1
    16
#Make sure all the output from all projects will go in one place
sl@1
    17
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
sl@1
    18
sl@1
    19
sl@1
    20
include_directories(./inc)
sl@1
    21
include_directories(../../../kernelhwsrv/kernel/eka/include/kernel/win32)
sl@1
    22
include_directories(../../../kernelhwsrv/kernel/eka/include/memmodel/emul)
sl@1
    23
include_directories(../../../kernelhwsrv/kernel/eka/include)
sl@1
    24
include_directories(../../../kernelhwsrv/kernel/eka/include/nkern)
sl@1
    25
include_directories(../../../kernelhwsrv/kernel/eka/include/nkern/win32)
sl@1
    26
sl@1
    27
sl@1
    28
#Hoping we include the right entry point
sl@1
    29
set (sourcepath ../../../kernelhwsrv/kernel/eka/kernel/win32/)
sl@1
    30
add_source(v_entry.cpp)
sl@1
    31
sl@1
    32
set (sourcepath ../../../kernelhwsrv/kernel/eka/drivers/power/binary/)
sl@1
    33
add_source(
sl@1
    34
bpower.cpp
sl@1
    35
)
sl@1
    36
sl@1
    37
set (sourcepath ./specific/)
sl@1
    38
add_source(
sl@1
    39
variant.cpp timer.cpp property.cpp
sl@1
    40
)
sl@1
    41
sl@1
    42
#Hoping we include the right entry point
sl@1
    43
set (sourcepath ./bwins/)
sl@1
    44
add_source(vwinsu.def)
sl@1
    45
sl@1
    46
get_source(source)
sl@1
    47
add_library (ecust SHARED ${source})
sl@1
    48
target_link_libraries(ecust emulator ekern)
sl@1
    49
#WIN32 libraries
sl@1
    50
target_link_libraries(ecust kernel32 user32 winmm)
sl@1
    51
#
sl@1
    52
add_define(__EXPORT_MEMCPY__)				
sl@1
    53
add_define(__IN_KERNEL__)
sl@1
    54
add_define(__KERNEL_MODE__)
sl@1
    55
add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)
sl@1
    56
sl@1
    57
sl@1
    58
#Create our data directory for the emulator
sl@1
    59
#See 
sl@1
    60
#file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/\${BUILD_TYPE}/data)				
sl@1
    61
#execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/${BUILD_TYPE}/data)
sl@1
    62
sl@1
    63
#add_custom_command (
sl@1
    64
# 	TARGET ecust
sl@1
    65
#   	PRE_BUILD
sl@1
    66
#   	COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}${CMAKE_CFG_INTDIR}/data
sl@1
    67
# 	)
sl@1
    68
sl@1
    69
sl@1
    70
add_custom_target (
sl@1
    71
	createEmuDataFolder
sl@1
    72
   	COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/data
sl@1
    73
 	)
sl@1
    74
sl@1
    75
pop_target(ecust)