Skip to content

Commit f139689

Browse files
author
gabriel pettier
committed
add recipe to build the task binary
1 parent 5973774 commit f139689

File tree

6 files changed

+1096
-0
lines changed

6 files changed

+1096
-0
lines changed

distribute.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ ROOT_PATH="$(dirname $($PYTHON -c 'from __future__ import print_function; import
4141
RECIPES_PATH="$ROOT_PATH/recipes"
4242
BUILD_PATH="$ROOT_PATH/build"
4343
LIBS_PATH="$ROOT_PATH/build/libs"
44+
BIN_PATH="$ROOT_PATH/build/bin"
4445
JAVACLASS_PATH="$ROOT_PATH/build/java"
4546
PACKAGES_PATH="${PACKAGES_PATH:-$ROOT_PATH/.packages}"
4647
SRC_PATH="$ROOT_PATH/src"
@@ -399,6 +400,7 @@ function run_prepare() {
399400
test -d $PACKAGES_PATH || mkdir -p $PACKAGES_PATH
400401
test -d $BUILD_PATH || mkdir -p $BUILD_PATH
401402
test -d $LIBS_PATH || mkdir -p $LIBS_PATH
403+
test -d $BIN_PATH || mkdir -p $BIN_PATH
402404
test -d $JAVACLASS_PATH || mkdir -p $JAVACLASS_PATH
403405
test -d $LIBLINK_PATH || mkdir -p $LIBLINK_PATH
404406

recipes/task/CMakeLists.txt.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- a/src/CMakeLists.txt 2015-05-10 22:57:48.000000000 +0200
2+
+++ b/src/CMakeLists.txt 2015-08-14 02:22:27.020473858 +0200
3+
@@ -43,8 +43,10 @@
4+
text.cpp text.h
5+
utf8.cpp utf8.h
6+
util.cpp util.h
7+
+ glob.c glob.h
8+
wcwidth6.cpp)
9+
10+
+add_library (glob glob.c)
11+
add_library (task STATIC ${task_SRCS})
12+
add_executable (task_executable main.cpp)
13+
add_executable (calc_executable calc.cpp)

recipes/task/Nibbler.h.patch

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- a/src/Nibbler.h 2015-05-10 22:57:49.000000000 +0200
2+
+++ b/src/Nibbler.h 2015-08-09 22:57:45.791057015 +0200
3+
@@ -36,6 +36,7 @@
4+
#include <string>
5+
#include <vector>
6+
#include <time.h>
7+
+#include <util.h>
8+
9+
class Nibbler
10+
{

0 commit comments

Comments
 (0)