diff --git a/CMakeLists.txt b/CMakeLists.txt index d8f87fd0..6eabe32f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,15 +1,23 @@ cmake_minimum_required(VERSION 2.6) -enable_testing() - -project(jaytea) +project(chaiscript) SET (CMAKE_BUILD_TYPE gdb) SET (CMAKE_C_FLAGS_GDB " -Wall -ggdb") SET (CMAKE_CXX_FLAGS_GDB " -Wall -ggdb") -include_directories(dispatchkit) +#SET (CMAKE_BUILD_TYPE rel) +#SET (CMAKE_C_FLAGS_REL " -Wall -O3") +#SET (CMAKE_CXX_FLAGS_REL " -Wall -O3") -add_subdirectory(dispatchkit bin) -add_subdirectory(chaiscript bin) +include_directories(dispatchkit chaiscript) +find_package(Boost 1.36.0) +if (Boost_FOUND) + include_directories(${Boost_INCLUDE_DIRS}) + add_executable(chaiscript_eval chaiscript/main.cpp) + #add_executable(dispatchkit_test dispatchkit/test.cpp) + target_link_libraries(chaiscript_eval ${Boost_LIBRARIES}) + install(TARGETS chaiscript_eval DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/bin) +endif(Boost_FOUND) + diff --git a/build_package.sh b/build_package.sh new file mode 100755 index 00000000..fd78dc3c --- /dev/null +++ b/build_package.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo . +make install + +INCLUDED_FILES="dispatchkit/bootstrap_stl.hpp dispatchkit/bootstrap.hpp dispatchkit/boxed_value.hpp dispatchkit/dispatchkit.hpp dispatchkit/function_call.hpp dispatchkit/proxy_constructors.hpp dispatchkit/proxy_functions.hpp dispatchkit/type_info.hpp chaiscript/chaiscript_engine.hpp chaiscript/chaiscript_eval.hpp chaiscript/chaiscript_parser.hpp chaiscript/chaiscript_prelude.hpp chaiscript/chaiscript.hpp bin/chaiscript_eval" + +zip chaiscript-1.0.zip $INCLUDED_FILES diff --git a/chaiscript/CMakeLists.txt b/chaiscript/CMakeLists.txt deleted file mode 100644 index ac24a346..00000000 --- a/chaiscript/CMakeLists.txt +++ /dev/null @@ -1,28 +0,0 @@ -cmake_minimum_required(VERSION 2.6) -enable_testing() - -project(chaiscript) - -SET (CMAKE_BUILD_TYPE gdb) -SET (CMAKE_C_FLAGS_GDB " -Wall -ggdb") -SET (CMAKE_CXX_FLAGS_GDB " -Wall -ggdb") - -find_package(Boost 1.36.0 COMPONENTS) -if(Boost_FOUND) - include_directories(${Boost_INCLUDE_DIRS}) - include_directories(../dispatchkit) - - add_executable(chaiscript_eval main.cpp) - target_link_libraries(chaiscript_eval ${Boost_LIBRARIES}) - - #add_executable(chaiscript_callbacktest callbacktest.cpp) - #target_link_libraries(chaiscript_callbacktest ${Boost_LIBRARIES}) - - #add_executable(sensors sensors.cpp) - #target_link_libraries(sensors ${Boost_LIBRARIES}) - - -endif() - - - \ No newline at end of file diff --git a/dispatchkit/CMakeLists.txt b/dispatchkit/CMakeLists.txt deleted file mode 100644 index 6c9b64d1..00000000 --- a/dispatchkit/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -cmake_minimum_required(VERSION 2.6) -enable_testing() - -project(boxedcpp) - -SET (CMAKE_BUILD_TYPE gdb) -SET (CMAKE_C_FLAGS_GDB " -Wall -ggdb") -SET (CMAKE_CXX_FLAGS_GDB " -Wall -ggdb") - -find_package( Boost 1.36.0 COMPONENTS unit_test_framework) -if(Boost_FOUND) - include_directories(${Boost_INCLUDE_DIRS}) - include_directories(.) - - add_executable(dispatchkit_test test.cpp) - - add_executable(dispatchkit_unittest unittest.cpp) - - target_link_libraries(dispatchkit_unittest ${Boost_LIBRARIES}) - -endif() - -add_test(dispatchkit_unittest dispatchkit_unittest) diff --git a/license.txt b/license.txt new file mode 100644 index 00000000..fdd9a5e9 --- /dev/null +++ b/license.txt @@ -0,0 +1,26 @@ +Copyright 2009 Jason and Jonathan Turner. All Rights Reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of Jason Turner nor Jonathan Turner nor the + name of contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.