author | Matt Plumtree <matt.plumtree@nokia.com> |
Tue, 02 Nov 2010 09:40:31 +0000 | |
branch | bug235_bringup_0 |
changeset 71 | 243bbc1d70db |
parent 56 | 40cc73c24bf8 |
permissions | -rw-r--r-- |
24 | 1 |
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
2 |
# All rights reserved. |
|
3 |
# This component and the accompanying materials are made available |
|
4 |
# under the terms of "Eclipse Public License v1.0" |
|
5 |
# which accompanies this distribution, and is available |
|
49
3b4f7e9d873f
Fix accidentally corrupted EPL URLs in CMakeLists.txt files.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
24
diff
changeset
|
6 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
24 | 7 |
# |
8 |
# Initial Contributors: |
|
9 |
# Nokia Corporation - initial contribution. |
|
10 |
# |
|
11 |
# Contributors: |
|
12 |
# |
|
13 |
# Description: |
|
14 |
# CMake meta build file for the simulator host-side API wrapper |
|
15 |
||
16 |
set(WRAPPER_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src) |
|
17 |
set(WRAPPER_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/inc) |
|
53
c2ef9095503a
Copy code from the holdingarea into the target locations.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
49
diff
changeset
|
18 |
set(SERIALIZER_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../vghwserialiser/inc) |
c2ef9095503a
Copy code from the holdingarea into the target locations.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
49
diff
changeset
|
19 |
set(SERIALIZER_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../vghwserialiser/src) |
24 | 20 |
# For guestvideodriverinterfaceconstants.h file |
53
c2ef9095503a
Copy code from the holdingarea into the target locations.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
49
diff
changeset
|
21 |
set(VIDEODRIVER_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../inc) |
24 | 22 |
|
23 |
if(WIN32) |
|
24 |
message("*** KhronosAPIWrapper Win32") |
|
25 |
set(WRAPPER_SSE_FLAGS "/arch:SSE2") |
|
53
c2ef9095503a
Copy code from the holdingarea into the target locations.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
49
diff
changeset
|
26 |
set(WRAPPER_PLATFORM_LINK_LIBRARIES libEGL libOpenVG libGLESv1 libGLESv2) |
24 | 27 |
else(WIN32) |
28 |
set(WRAPPER_SSE_FLAGS "-msse2 -mfpmath=sse -march=pentium4") |
|
29 |
set(WRAPPER_PLATFORM_LINK_LIBRARIES m stdc++) |
|
30 |
endif(WIN32) |
|
31 |
||
32 |
set(WRAPPER_SRC_FILES |
|
33 |
${WRAPPER_INC_DIR}/apiwrapper.h |
|
34 |
${WRAPPER_INC_DIR}/eglapiwrapper.h |
|
35 |
${WRAPPER_INC_DIR}/graphicsvhwcallback.h |
|
36 |
${WRAPPER_INC_DIR}/KhronosAPIWrapper.h |
|
37 |
${WRAPPER_INC_DIR}/khronosapiwrapperdefs.h |
|
38 |
${WRAPPER_INC_DIR}/openvgapiwrapper.h |
|
39 |
${WRAPPER_INC_DIR}/driverapiwrapper.h |
|
40 |
${WRAPPER_INC_DIR}/opengles11apiwrapper.h |
|
71
243bbc1d70db
Expose wrapper C interface for Syborg from KhronosAPIWrapper. Needs update to QEMU!
Matt Plumtree <matt.plumtree@nokia.com>
parents:
56
diff
changeset
|
41 |
${WRAPPER_INC_DIR}/simulator_graphicswrapper.h |
53
c2ef9095503a
Copy code from the holdingarea into the target locations.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
49
diff
changeset
|
42 |
${WRAPPER_INC_DIR}/hostthreadadapter.h |
c2ef9095503a
Copy code from the holdingarea into the target locations.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
49
diff
changeset
|
43 |
${WRAPPER_INC_DIR}/platformthreading.h |
c2ef9095503a
Copy code from the holdingarea into the target locations.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
49
diff
changeset
|
44 |
${WRAPPER_INC_DIR}/platformtypes.h |
24 | 45 |
|
46 |
${SERIALIZER_INC_DIR}/remotefunctioncall.h |
|
47 |
${SERIALIZER_INC_DIR}/requestbuffer.h |
|
48 |
${SERIALIZER_INC_DIR}/serializedfunctioncall.h |
|
49 |
${SERIALIZER_INC_DIR}/serializerplatform.h |
|
50 |
${SERIALIZER_INC_DIR}/driverrfc.h |
|
51 |
${SERIALIZER_INC_DIR}/opengles11rfc.h |
|
52 |
||
53 |
${WRAPPER_SRC_DIR}/apiwrapper.cpp |
|
54 |
${WRAPPER_SRC_DIR}/eglapiwrapper.cpp |
|
55 |
${WRAPPER_SRC_DIR}/KhronosAPIWrapper.cpp |
|
56 |
${WRAPPER_SRC_DIR}/openvgapiwrapper.cpp |
|
57 |
${WRAPPER_SRC_DIR}/driverapiwrapper.cpp |
|
58 |
${WRAPPER_SRC_DIR}/opengles11apiwrapper.cpp |
|
71
243bbc1d70db
Expose wrapper C interface for Syborg from KhronosAPIWrapper. Needs update to QEMU!
Matt Plumtree <matt.plumtree@nokia.com>
parents:
56
diff
changeset
|
59 |
${WRAPPER_SRC_DIR}/simulator_graphicswrapper.cpp |
53
c2ef9095503a
Copy code from the holdingarea into the target locations.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
49
diff
changeset
|
60 |
${WRAPPER_SRC_DIR}/platformthreading.cpp |
24 | 61 |
|
62 |
${SERIALIZER_SRC_DIR}/eglrfc.cpp |
|
63 |
${SERIALIZER_SRC_DIR}/openvgrfc.cpp |
|
64 |
${SERIALIZER_SRC_DIR}/remotefunctioncall.cpp |
|
65 |
${SERIALIZER_SRC_DIR}/serializedfunctioncall.cpp |
|
66 |
${SERIALIZER_SRC_DIR}/driverrfc.cpp |
|
67 |
${SERIALIZER_SRC_DIR}/opengles11rfc.cpp |
|
68 |
) |
|
69 |
||
70 |
include_directories( |
|
71 |
${WRAPPER_INC_DIR} |
|
72 |
${SERIALIZER_INC_DIR} |
|
73 |
${VIDEODRIVER_INC_DIR} |
|
74 |
${COMMON_INC_DIR} |
|
56
40cc73c24bf8
Host components now buildable in their correct locations (although stil using CMake). Use build.bat in package root.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
53
diff
changeset
|
75 |
${EXPORTED_INC_DIR} |
24 | 76 |
) |
77 |
||
56
40cc73c24bf8
Host components now buildable in their correct locations (although stil using CMake). Use build.bat in package root.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
53
diff
changeset
|
78 |
link_directories(${GLOBAL_LIB_DIR}) |
24 | 79 |
|
71
243bbc1d70db
Expose wrapper C interface for Syborg from KhronosAPIWrapper. Needs update to QEMU!
Matt Plumtree <matt.plumtree@nokia.com>
parents:
56
diff
changeset
|
80 |
add_definitions(-DKHRONOSAPIWRAPPER_EXPORTS -DSIMULATOR_GRAPHICSWRAPPER_EXPORTS) |
24 | 81 |
|
82 |
add_library(KhronosAPIWrapper SHARED ${WRAPPER_SRC_FILES}) |
|
83 |
||
53
c2ef9095503a
Copy code from the holdingarea into the target locations.
Matt Plumtree <matt.plumtree@nokia.com>
parents:
49
diff
changeset
|
84 |
target_link_libraries(KhronosAPIWrapper ${WRAPPER_PLATFORM_LINK_LIBRARIES}) |