Permalink
Browse files

Merge pull request #79 from blackberry-webworks/master

Updating to what was released at DevCon 2011 - Ripple 0.9
  • Loading branch information...
2 parents cc9b72a + 248260a commit ea0ea91e4a5a8ec05239979417f41f4fd2000ca2 @jasondscott jasondscott committed Oct 31, 2011
Showing 2,036 changed files with 2,389 additions and 363,640 deletions.
View
@@ -1,5 +1,5 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
-PROJECT(Starbuck)
+PROJECT(Ripple)
# -----------------------------------------------------------------------------
@@ -42,53 +42,41 @@ ENDIF ()
# Default target names (can be overrriden in Options${PORT}.cmake file)
# -----------------------------------------------------------------------------
SET(WebKit_LIBRARY_NAME WebKit)
-SET(IPC_LIBRARY_NAME IPC)
-SET(STARBUCKLIBRARY_LIBRARY_NAME StarbuckLibrary)
+SET(RIPPLELIBRARY_LIBRARY_NAME RippleLibrary)
# -----------------------------------------------------------------------------
# Default library types (can be overrriden in Options${PORT}.cmake file)
# -----------------------------------------------------------------------------
-SET(IPC_LIBRARY_TYPE STATIC)
-SET(STARBUCKLIBRARY_LIBRARY_TYPE STATIC)
+SET(RIPPLELIBRARY_LIBRARY_TYPE STATIC)
# -----------------------------------------------------------------------------
# Port-specific options
# -----------------------------------------------------------------------------
#INCLUDE(OptionsCommon)
SET(CMAKE_SRC ${CMAKE_SOURCE_DIR})
-#SET(CMAKE_SOURCE_DIR "${OLYMPIA_DIR}")
-#INCLUDE(Options${PORT})
SET(CMAKE_SOURCE_DIR ${CMAKE_SRC})
# -----------------------------------------------------------------------------
# Add module directories
# -----------------------------------------------------------------------------
-ADD_SUBDIRECTORY(IPC)
-ADD_SUBDIRECTORY(StarbuckLibrary)
-ADD_SUBDIRECTORY(Starbuck)
-ADD_SUBDIRECTORY(TestFramework)
+#ADD_SUBDIRECTORY(IPC)
+ADD_SUBDIRECTORY(RippleLibrary)
+ADD_SUBDIRECTORY(Ripple)
+#ADD_SUBDIRECTORY(TestFramework)
-#ADD_DEPENDENCIES(${IPC_LIBRARY_NAME} ${WebKit_LIBRARY_NAME})
-ADD_DEPENDENCIES(${STARBUCKLIBRARY_LIBRARY_NAME}
- ${IPC_LIBRARY_NAME}
-# ${WebKit_LIBRARY_NAME}
+ADD_DEPENDENCIES(Ripple
+ ${RIPPLELIBRARY_LIBRARY_NAME}
)
-ADD_DEPENDENCIES(Starbuck
- ${STARBUCKLIBRARY_LIBRARY_NAME}
- ${IPC_LIBRARY_NAME}
+#ADD_DEPENDENCIES(TestFramework
+# ${RIPPLELIBRARY_LIBRARY_NAME}
+# ${IPC_LIBRARY_NAME}
# ${WebKit_LIBRARY_NAME}
-)
-
-ADD_DEPENDENCIES(TestFramework
- ${STARBUCKLIBRARY_LIBRARY_NAME}
- ${IPC_LIBRARY_NAME}
-# ${WebKit_LIBRARY_NAME}
-)
+#)
#install olympia output to target
#INSTALL(DIRECTORY ${OLYMPIA_DIR}/build/bin DESTINATION ${CMAKE_BINARY_DIR})
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+#
+# This script is used to check the progress of Framework build on Mac.
+# A file which names FRAME_CI_Build_Finished will be touched in a
+# shared folder, which is defined by $WORKSPACE. The script will exit
+# the while-loop once the flag file is detected.
+#
+
+# Exit code
+EXIT_FAILED=-1
+EXIT_SUCCESS=0
+
+#Check environment variables
+if [ -z "$FRAMEWORK_CI_SHARED_FOLDER" ]; then
+ echo "Environment variable: FRAMEWORK_CI_SHARED_FOLDER must be set"
+ exit $EXIT_FAILED
+fi
+
+if [ ! -d "$FRAMEWORK_CI_SHARED_FOLDER" ]; then
+ echo "$FRAMEWORK_CI_SHARED_FOLDER is not valid folder"
+ exit $EXIT_FAILED
+fi
+
+WORKSPACE=$FRAMEWORK_CI_SHARED_FOLDER
+BUILD_JOB_FINISHED_FLAG="Framework_CI_Build_Finished"
+
+TIMEOUT=$((30 * 60))
+counter=0
+
+# Wait until build job is finished
+echo "Waiting until build job is finished"
+echo "Waiting..."
+while [ 1 ]
+do
+ if [ -f $WORKSPACE/$BUILD_JOB_FINISHED_FLAG ]; then
+ exit $EXIT_SUCCESS
+ else
+ sleep 5
+ counter=$(($counter + 1))
+ TimeElapsed=$(($counter * 5))
+ if [ $TimeElapsed -gt $TIMEOUT ]; then
+ echo "time out to wait build job on Mac."
+ echo "Stop waiting and return failed..."
+ exit $EXIT_FAILED
+ fi
+ fi
+done
View
@@ -1,41 +0,0 @@
-find_package(Qt4 COMPONENTS QtCore QtGui QtXml QtSql QtNetwork QtWebKit REQUIRED)
-include(${QT_USE_FILE})
-
-SET(IPC_INCLUDE_DIRECTORIES
- "${CMAKE_BINARY_DIR}"
- "${CMAKE_SOURCE_DIR}"
- "${CMAKE_CURRENT_SOURCE_DIR}"
-)
-
-LIST(APPEND IPC_SOURCES
- ipcbridge.cpp
- ipcbridgeworker.cpp
- message.cpp
- messagehandler.cpp
- messagequeue.cpp
- samplemessagehandler.cpp
- stdafx.cpp
-)
-
-set(IPC_MOC_HEADERS
- ipcbridge.h
- ipcbridgeworker.h
- messagehandler.h
- samplemessagehandler.h
- messagequeue.h
-)
-
-QT4_WRAP_CPP(IPC_MOC_SRCS ${IPC_MOC_HEADERS})
-
-list(APPEND IPC_SOURCES ${IPC_MOC_SRCS})
-
-include_directories(${IPC_INCLUDE_DIRECTORIES})
-include_directories(${QT_INCLUDE_DIR})
-
-set(IPC_LIBRARIES
-)
-
-ADD_LIBRARY(IPC ${IPC_SOURCES})
-TARGET_LINK_LIBRARIES(IPC ${IPC_LIBRARIES} ${QT_LIBRARIES} ${optionalLibs})
-
-INSTALL(TARGETS IPC DESTINATION ${CMAKE_BINARY_DIR}/bin)
View
@@ -1,131 +0,0 @@
-//
-// boost/assert.hpp - BOOST_ASSERT(expr)
-// BOOST_ASSERT_MSG(expr, msg)
-// BOOST_VERIFY(expr)
-//
-// Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd.
-// Copyright (c) 2007 Peter Dimov
-// Copyright (c) Beman Dawes 2011
-//
-// Distributed under the Boost Software License, Version 1.0. (See
-// accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-//
-// Note: There are no include guards. This is intentional.
-//
-// See http://www.boost.org/libs/utility/assert.html for documentation.
-//
-
-//
-// Stop inspect complaining about use of 'assert':
-//
-// boostinspect:naassert_macro
-//
-
-//--------------------------------------------------------------------------------------//
-// BOOST_ASSERT //
-//--------------------------------------------------------------------------------------//
-
-#undef BOOST_ASSERT
-
-#if defined(BOOST_DISABLE_ASSERTS)
-
-# define BOOST_ASSERT(expr) ((void)0)
-
-#elif defined(BOOST_ENABLE_ASSERT_HANDLER)
-
-#include <boost/current_function.hpp>
-
-namespace boost
-{
- void assertion_failed(char const * expr,
- char const * function, char const * file, long line); // user defined
-} // namespace boost
-
-#define BOOST_ASSERT(expr) ((expr) \
- ? ((void)0) \
- : ::boost::assertion_failed(#expr, BOOST_CURRENT_FUNCTION, __FILE__, __LINE__))
-
-#else
-# include <assert.h> // .h to support old libraries w/o <cassert> - effect is the same
-# define BOOST_ASSERT(expr) assert(expr)
-#endif
-
-//--------------------------------------------------------------------------------------//
-// BOOST_ASSERT_MSG //
-//--------------------------------------------------------------------------------------//
-
-# undef BOOST_ASSERT_MSG
-
-#if defined(BOOST_DISABLE_ASSERTS) || defined(NDEBUG)
-
- #define BOOST_ASSERT_MSG(expr, msg) ((void)0)
-
-#elif defined(BOOST_ENABLE_ASSERT_HANDLER)
-
- #include <boost/current_function.hpp>
-
- namespace boost
- {
- void assertion_failed_msg(char const * expr, char const * msg,
- char const * function, char const * file, long line); // user defined
- } // namespace boost
-
- #define BOOST_ASSERT_MSG(expr, msg) ((expr) \
- ? ((void)0) \
- : ::boost::assertion_failed_msg(#expr, msg, BOOST_CURRENT_FUNCTION, __FILE__, __LINE__))
-
-#else
- #ifndef BOOST_ASSERT_HPP
- #define BOOST_ASSERT_HPP
- #include <cstdlib>
- #include <iostream>
- #include <boost/current_function.hpp>
-
- // IDE's like Visual Studio perform better if output goes to std::cout or
- // some other stream, so allow user to configure output stream:
- #ifndef BOOST_ASSERT_MSG_OSTREAM
- # define BOOST_ASSERT_MSG_OSTREAM std::cerr
- #endif
-
- namespace boost
- {
- namespace assertion
- {
- namespace detail
- {
- inline void assertion_failed_msg(char const * expr, char const * msg, char const * function,
- char const * file, long line)
- {
- BOOST_ASSERT_MSG_OSTREAM
- << "***** Internal Program Error - assertion (" << expr << ") failed in "
- << function << ":\n"
- << file << '(' << line << "): " << msg << std::endl;
- std::abort();
- }
- } // detail
- } // assertion
- } // detail
- #endif
-
- #define BOOST_ASSERT_MSG(expr, msg) ((expr) \
- ? ((void)0) \
- : ::boost::assertion::detail::assertion_failed_msg(#expr, msg, \
- BOOST_CURRENT_FUNCTION, __FILE__, __LINE__))
-#endif
-
-//--------------------------------------------------------------------------------------//
-// BOOST_VERIFY //
-//--------------------------------------------------------------------------------------//
-
-#undef BOOST_VERIFY
-
-#if defined(BOOST_DISABLE_ASSERTS) || ( !defined(BOOST_ENABLE_ASSERT_HANDLER) && defined(NDEBUG) )
-
-# define BOOST_VERIFY(expr) ((void)(expr))
-
-#else
-
-# define BOOST_VERIFY(expr) BOOST_ASSERT(expr)
-
-#endif
@@ -1,69 +0,0 @@
-#ifndef BOOST_CHECKED_DELETE_HPP_INCLUDED
-#define BOOST_CHECKED_DELETE_HPP_INCLUDED
-
-// MS compatible compilers support #pragma once
-
-#if defined(_MSC_VER) && (_MSC_VER >= 1020)
-# pragma once
-#endif
-
-//
-// boost/checked_delete.hpp
-//
-// Copyright (c) 2002, 2003 Peter Dimov
-// Copyright (c) 2003 Daniel Frey
-// Copyright (c) 2003 Howard Hinnant
-//
-// Distributed under the Boost Software License, Version 1.0. (See
-// accompanying file LICENSE_1_0.txt or copy at
-// http://www.boost.org/LICENSE_1_0.txt)
-//
-// See http://www.boost.org/libs/utility/checked_delete.html for documentation.
-//
-
-namespace boost
-{
-
-// verify that types are complete for increased safety
-
-template<class T> inline void checked_delete(T * x)
-{
- // intentionally complex - simplification causes regressions
- typedef char type_must_be_complete[ sizeof(T)? 1: -1 ];
- (void) sizeof(type_must_be_complete);
- delete x;
-}
-
-template<class T> inline void checked_array_delete(T * x)
-{
- typedef char type_must_be_complete[ sizeof(T)? 1: -1 ];
- (void) sizeof(type_must_be_complete);
- delete [] x;
-}
-
-template<class T> struct checked_deleter
-{
- typedef void result_type;
- typedef T * argument_type;
-
- void operator()(T * x) const
- {
- // boost:: disables ADL
- boost::checked_delete(x);
- }
-};
-
-template<class T> struct checked_array_deleter
-{
- typedef void result_type;
- typedef T * argument_type;
-
- void operator()(T * x) const
- {
- boost::checked_array_delete(x);
- }
-};
-
-} // namespace boost
-
-#endif // #ifndef BOOST_CHECKED_DELETE_HPP_INCLUDED
Oops, something went wrong.

0 comments on commit ea0ea91

Please sign in to comment.