24
|
1 |
# Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
#
|
|
3 |
# Permission is hereby granted, free of charge, to any person obtaining a
|
|
4 |
# copy of this software and /or associated documentation files
|
|
5 |
# (the "Materials "), to deal in the Materials without restriction,
|
|
6 |
# including without limitation the rights to use, copy, modify, merge,
|
|
7 |
# publish, distribute, sublicense, and/or sell copies of the Materials,
|
|
8 |
# and to permit persons to whom the Materials are furnished to do so,
|
|
9 |
# subject to the following conditions:
|
|
10 |
#
|
|
11 |
# The above copyright notice and this permission notice shall be included
|
|
12 |
# in all copies or substantial portions of the Materials.
|
|
13 |
#
|
|
14 |
# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15 |
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16 |
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
17 |
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
18 |
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
19 |
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MATERIALS OR
|
|
20 |
# THE USE OR OTHER DEALINGS IN THE MATERIALS.
|
|
21 |
#
|
|
22 |
# Initial Contributors:
|
|
23 |
# Nokia Corporation - initial contribution.
|
|
24 |
#
|
|
25 |
# Contributors:
|
|
26 |
#
|
|
27 |
# Description:
|
|
28 |
# CMake meta build file for host libGLESv1
|
|
29 |
|
|
30 |
set(GLES_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
|
|
31 |
set(GLES_INC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/inc)
|
|
32 |
|
|
33 |
if(WIN32)
|
|
34 |
message("*** EGL Win32")
|
|
35 |
set(GLES_SSE_FLAGS "/arch:SSE2")
|
|
36 |
set(GLES_PLATFORM_LINK_LIBRARIES "")
|
|
37 |
else(WIN32)
|
|
38 |
set(GLES_SSE_FLAGS "-msse2 -mfpmath=sse -march=pentium4")
|
|
39 |
set(GLES_PLATFORM_LINK_LIBRARIES m stdc++)
|
|
40 |
endif(WIN32)
|
|
41 |
|
|
42 |
set(GLES_SRC_FILES
|
|
43 |
${GLES_INC_DIR}/EGLInterface.h
|
|
44 |
${GLES_INC_DIR}/glDefinitions.h
|
|
45 |
${GLES_INC_DIR}/GLESArray.h
|
|
46 |
${GLES_INC_DIR}/GLESBuffer.h
|
|
47 |
${GLES_INC_DIR}/GLESContext.h
|
|
48 |
${GLES_INC_DIR}/GLESDesktopGL.h
|
|
49 |
${GLES_INC_DIR}/glesGet.h
|
|
50 |
${GLES_INC_DIR}/glesInternal.h
|
|
51 |
${GLES_INC_DIR}/glesOS.h
|
|
52 |
${GLES_INC_DIR}/GLESTexture.h
|
|
53 |
|
|
54 |
${GLES_SRC_DIR}/EGLInterface.cpp
|
|
55 |
${GLES_SRC_DIR}/glesapi.cpp
|
|
56 |
${GLES_SRC_DIR}/GLESArray.cpp
|
|
57 |
${GLES_SRC_DIR}/GLESContext.cpp
|
|
58 |
${GLES_SRC_DIR}/GLESDesktopGL.cpp
|
|
59 |
${GLES_SRC_DIR}/glesGet.cpp
|
|
60 |
${GLES_SRC_DIR}/glesOS.cpp
|
|
61 |
${GLES_SRC_DIR}/GLESTexture.cpp
|
|
62 |
)
|
|
63 |
|
|
64 |
include_directories(
|
|
65 |
${GLES_SRC_DIR}
|
|
66 |
${GLES_INC_DIR}
|
|
67 |
${COMMON_INC_DIR}
|
|
68 |
)
|
|
69 |
|
|
70 |
add_definitions(-DKHRONOS_APICALL_EXPORT)
|
|
71 |
|
|
72 |
add_library(${LIBRARY_NAME_PREFIX}GLESv1 SHARED ${GLES_SRC_FILES})
|
|
73 |
|
|
74 |
target_link_libraries(${LIBRARY_NAME_PREFIX}GLESv1 ${GLES_PLATFORM_LINK_LIBRARIES})
|