summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorKirk Shoop <kirk.shoop@microsoft.com>2015-07-23 18:56:01 -0700
committerKirk Shoop <kirk.shoop@microsoft.com>2015-07-23 18:56:01 -0700
commit638c334c6a283f3dea490beec2562cb25995432e (patch)
tree2bede275f1e696977abac221e02b58f8e94365da /projects
parent36f031be7b825f5e5b3579c906f857e7a6ad4821 (diff)
downloadRxCpp-638c334c6a283f3dea490beec2562cb25995432e.tar.gz
publish to biicode
Diffstat (limited to 'projects')
-rw-r--r--projects/biicode/CMakeLists.txt87
-rw-r--r--projects/biicode/README.bii.md6
-rw-r--r--projects/biicode/biicode.conf44
3 files changed, 137 insertions, 0 deletions
diff --git a/projects/biicode/CMakeLists.txt b/projects/biicode/CMakeLists.txt
new file mode 100644
index 0000000..409230f
--- /dev/null
+++ b/projects/biicode/CMakeLists.txt
@@ -0,0 +1,87 @@
+
+# Yes, INIT_BIICODE_BLOCKS() is no longer necessary
+ADD_BIICODE_TARGETS()
+
+# You can safely delete lines from here...
+
+###############################################################################
+# REFERENCE #
+###############################################################################
+#
+# This CMakeLists.txt file helps defining your block building and compiling
+# To learn more about the CMake use with biicode, visit http://docs.biicode.com/c++.html
+#
+# ----------------------------------------------------
+# NEW FEATURE! Include cmake files from remote blocks:
+# -----------------------------------------------------
+# Now you can handle cmake dependencies alike you do with c/c++:
+#
+# INCLUDE(user/block/myrecipe) # include myrecipe.cmake from remote user/block
+#
+# > EXAMPLE: Include our recipes and activate C++11 in your block (http://www.biicode.com/biicode/cmake)
+#
+# INCLUDE(biicode/cmake/tools) # Include tools.cmake file from "cmake" block from the "biicode" user
+# ACTIVATE_CPP11(INTERFACE ${BII_BLOCK_TARGET})
+#
+# Remember to run "bii find" to download out cmake tools file
+#
+# ---------------------
+# INIT_BIICODE_BLOCK()
+# ---------------------
+# This function creates several helper variables as ${BII_BLOCK_NAME} and ${BII_BLOCK_USER}
+# Also it loads variables from the cmake/bii_user_block_vars.cmake
+# ${BII_LIB_SRC} File list to create the library
+# ${BII_LIB_TYPE} Empty (default, STATIC most casess) STATIC or SHARED
+# ${BII_LIB_DEPS} Dependencies to other libraries (user2_block2, user3_blockX)
+# ${BII_LIB_SYSTEM_HEADERS} System linking requirements as windows.h, pthread.h, etc
+#
+# You can use or modify them here, for example, to add or remove files from targets based on OS
+# Or use typical cmake configurations done BEFORE defining targets. Examples:
+# ADD_DEFINITIONS(-DFOO)
+# FIND_PACKAGE(OpenGL QUIET)
+# You can add INCLUDE_DIRECTORIES here too
+#
+# ---------------------
+# ADD_BIICODE_TARGETS()
+# ---------------------
+#
+# This function creates the following variables:
+# ${BII_BLOCK_TARGET} Interface (no files) target for convenient configuration of all
+# targets in this block, as the rest of targets always depend on it
+# has name in the form "user_block_interface"
+# ${BII_LIB_TARGET} Target library name, usually in the form "user_block". May not exist
+# if BII_LIB_SRC is empty
+# ${BII_BLOCK_TARGETS} List of all targets defined in this block
+# ${BII_BLOCK_EXES} List of executables targets defined in this block
+# ${BII_exe_name_TARGET}: Executable target (e.g. ${BII_main_TARGET}. You can also use
+# directly the name of the executable target (e.g. user_block_main)
+#
+# > EXAMPLE: Add include directories to all targets of this block
+#
+# TARGET_INCLUDE_DIRECTORIES(${BII_BLOCK_TARGET} INTERFACE myincludedir)
+#
+# You can add private include directories to the Lib (if existing)
+#
+# > EXAMPLE: Link with pthread:
+#
+# TARGET_LINK_LIBRARIES(${BII_BLOCK_TARGET} INTERFACE pthread)
+# or link against library:
+# TARGET_LINK_LIBRARIES(${BII_LIB_TARGET} PUBLIC pthread)
+# or directly use the library target name:
+# TARGET_LINK_LIBRARIES(user_block PUBLIC pthread)
+#
+# NOTE: This can be also done adding pthread to ${BII_LIB_DEPS}
+# BEFORE calling ADD_BIICODE_TARGETS()
+#
+# > EXAMPLE: how to activate C++11
+#
+# IF(APPLE)
+# TARGET_COMPILE_OPTIONS(${BII_BLOCK_TARGET} INTERFACE "-std=c++11 -stdlib=libc++")
+# ELSEIF (WIN32 OR UNIX)
+# TARGET_COMPILE_OPTIONS(${BII_BLOCK_TARGET} INTERFACE "-std=c++11")
+# ENDIF(APPLE)
+#
+# > EXAMPLE: Set properties to target
+#
+# SET_TARGET_PROPERTIES(${BII_BLOCK_TARGET} PROPERTIES COMPILE_DEFINITIONS "IOV_MAX=255")
+# \ No newline at end of file
diff --git a/projects/biicode/README.bii.md b/projects/biicode/README.bii.md
new file mode 100644
index 0000000..092c98c
--- /dev/null
+++ b/projects/biicode/README.bii.md
@@ -0,0 +1,6 @@
+# rxcpp bii block
+
+## some samples using this block are:
+
+ - kirkshoop/rxcpp_sdltext
+ - kirkshoop/rxcpp_wintext \ No newline at end of file
diff --git a/projects/biicode/biicode.conf b/projects/biicode/biicode.conf
new file mode 100644
index 0000000..b37ce83
--- /dev/null
+++ b/projects/biicode/biicode.conf
@@ -0,0 +1,44 @@
+# Biicode configuration file
+
+[requirements]
+ # Blocks and versions this block depends on e.g.
+ # user/depblock1: 3
+ # user2/depblock2(track) @tag
+
+[parent]
+ kirkshoop/rxcpp: 0
+
+[paths]
+ # Local directories to look for headers (within block)
+ # /
+ # include
+ rxcpp
+
+[dependencies]
+ # Manual adjust file implicit dependencies, add (+), remove (-), or overwrite (=)
+ # hello.h + hello_imp.cpp hello_imp2.cpp
+ # *.h + *.cpp
+
+[mains]
+ # Manual adjust of files that define an executable
+ # !main.cpp # Do not build executable from this file
+ # main2.cpp # Build it (it doesnt have a main() function, but maybe it includes it)
+
+[tests]
+ # Manual adjust of files that define a CTest test
+ # test/* pattern to evaluate this test/ folder sources like tests
+
+[hooks]
+ # These are defined equal to [dependencies],files names matching bii*stage*hook.py
+ # will be launched as python scripts at stage = {post_process, clean}
+ # CMakeLists.txt + bii/my_post_process1_hook.py bii_clean_hook.py
+
+[includes]
+ # Mapping of include patterns to external blocks
+ # hello*.h: user3/depblock # includes will be processed as user3/depblock/hello*.h
+
+[data]
+ # Manually define data files dependencies, that will be copied to bin for execution
+ # By default they are copied to bin/user/block/... which should be taken into account
+ # when loading from disk such data
+ # image.cpp + image.jpg # code should write open("user/block/image.jpg")