set (CMAKE_USE_PYTHON_VERSION 2.7 2.6)
-find_package (PythonInterp REQUIRED)
+if (ANDROID)
+ set (ENABLE_GUI false)
+else ()
+ macro (find_host_package)
+ find_package (${ARGN})
+ endmacro()
+endif ()
+
+find_host_package (PythonInterp REQUIRED)
find_package (Threads)
if (ENABLE_GUI)
set (GETOPT_LIBRARIES getopt_bundled)
endif ()
+if (WIN32)
+ add_subdirectory (thirdparty/less)
+endif ()
+
# The Qt website provides binaries for Windows and MacOSX, and they are
# automatically found by cmake without any manual intervention. The situation
# for QJSON is substantially different: there are no binaries for QJSON
COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}"
)
+if (ANDROID)
+ target_link_libraries (common log)
+endif ()
+
##############################################################################
# API tracers
add_custom_command (
OUTPUT glstate_params.cpp
- COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/glstate.py > ${CMAKE_CURRENT_BINARY_DIR}/glstate_params.cpp
- DEPENDS glstate.py specs/glparams.py specs/gltypes.py specs/stdapi.py
+ COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/glstate_params.py > ${CMAKE_CURRENT_BINARY_DIR}/glstate_params.cpp
+ DEPENDS glstate_params.py specs/glparams.py specs/gltypes.py specs/stdapi.py
)
set (retrace_sources
glretrace_egl.cpp
glretrace_main.cpp
glstate.cpp
+ glstate_images.cpp
glstate_params.cpp
+ glstate_shaders.cpp
retrace.cpp
retrace_stdc.cpp
glws.cpp