Sunday, August 15, 2010

Delve into HTML5

Following link points to good resources on HTML5

http://playground.html5rocks.com/

Friday, August 6, 2010

Tuesday, August 3, 2010

CMake on OSX

Here I create my first CMakeList for OSX to create a library


cmake_minimum_required(VERSION 2.6)
project (cmakeTest)

set(PROJECT_ROOT $ENV{PROJECT_ROOT})
set(CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.5.sdk)
set(CMAKE_OSX_ARCHITECTURES "i386")

SET(CMAKE_AR ar)
add_definitions( -Wall )

set( CMAKE_ARCHIVE_OUTPUT_DIRECTORY ./CMAKE_build)

set( CMAKE_RUNTIME_OUTPUT_DIRECTORY ./CMAKE_build/bin)

set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ./CMAKE_build/bin)

include_directories(${PLUGIN_ROOT}/cmakeTest/API)

add_definitions(-DMACOSX)
add_library(cmakeTest STATIC
${PROJECT_ROOT}/cmakeTest/src/File1.cpp
${PROJECT_ROOT}/cmakeTest/src/File2.cpp
${PROJECT_ROOT}/cmakeTest/src/File3.cpp
${PROJECT_ROOT}/cmakeTest/src/File4.cpp
${PROJECT_ROOT}/cmakeTest/src/File5.cpp)



It was bit of a struggle to get to this point because the cmake documentation is very bad I felt..
http://www.cmake.org/Wiki/CMake_Cross_Compiling
http://www.cmake.org/cmake/help/cmake2.6docs.html

Following couple of link came to my rescue.
http://sites.google.com/site/michaelsafyan/coding/resources/how-to-guides/cross-compile-for-the-iphone/how-to-cross-compile-for-the-iphone-using-cmake
http://stackoverflow.com/questions/794137/how-to-set-up-cmake-to-build-a-library-for-the-iphone

LinkWithin

Related Posts with Thumbnails