1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/boardsupport/emulator/emulatorbsp/soundsc.cmake Tue Jun 10 14:32:02 2014 +0200
1.3 @@ -0,0 +1,75 @@
1.4 +# Copyright (c) 2009-2012 Stéphane Lenclud.
1.5 +# All rights reserved.
1.6 +# This component and the accompanying materials are made available
1.7 +# under the terms of the License "Eclipse Public License v1.0"
1.8 +# which accompanies this distribution, and is available
1.9 +# at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +#
1.11 +# Initial Contributors:
1.12 +# Stéphane Lenclud.
1.13 +#
1.14 +
1.15 +push_target(soundsc)
1.16 +
1.17 +#Add current file to our source tree
1.18 +add_cmake_source()
1.19 +#Make sure all the output from all projects will go in one place
1.20 +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
1.21 +
1.22 +
1.23 +include_directories(./inc)
1.24 +include_directories(../../../kernelhwsrv/kernel/eka/include/kernel/win32)
1.25 +include_directories(../../../kernelhwsrv/kernel/eka/include/memmodel/emul)
1.26 +include_directories(../../../kernelhwsrv/kernel/eka/include)
1.27 +include_directories(../../../kernelhwsrv/kernel/eka/include/nkern)
1.28 +include_directories(../../../kernelhwsrv/kernel/eka/include/nkern/win32)
1.29 +
1.30 +
1.31 +#Hoping we include the right entry point
1.32 +set (sourcepath ../../../kernelhwsrv/kernel/eka/kernel/win32/)
1.33 +add_source(v_entry.cpp)
1.34 +
1.35 +set (sourcepath ../../../kernelhwsrv/kernel/eka/drivers/power/binary/)
1.36 +add_source(
1.37 +bpower.cpp
1.38 +)
1.39 +
1.40 +set (sourcepath ./specific/)
1.41 +add_source(
1.42 +variant.cpp timer.cpp property.cpp
1.43 +)
1.44 +
1.45 +#Hoping we include the right entry point
1.46 +set (sourcepath ./bwins/)
1.47 +add_source(vwinsu.def)
1.48 +
1.49 +get_source(source)
1.50 +add_library (ecust SHARED ${source})
1.51 +target_link_libraries(ecust emulator ekern)
1.52 +#WIN32 libraries
1.53 +target_link_libraries(ecust kernel32 user32 winmm)
1.54 +#
1.55 +add_define(__EXPORT_MEMCPY__)
1.56 +add_define(__IN_KERNEL__)
1.57 +add_define(__KERNEL_MODE__)
1.58 +add_define(__MEMMODEL_EMUL_SINGLE_HOST_PROCESS__)
1.59 +
1.60 +
1.61 +#Create our data directory for the emulator
1.62 +#See
1.63 +#file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/\${BUILD_TYPE}/data)
1.64 +#execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/${BUILD_TYPE}/data)
1.65 +
1.66 +#add_custom_command (
1.67 +# TARGET ecust
1.68 +# PRE_BUILD
1.69 +# COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}${CMAKE_CFG_INTDIR}/data
1.70 +# )
1.71 +
1.72 +
1.73 +add_custom_target (
1.74 + createEmuDataFolder
1.75 + COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/data
1.76 + )
1.77 +
1.78 +pop_target(ecust)
1.79 \ No newline at end of file