Permalink
Browse files

Update CBSE readme instructions on CMake dep install instructions

  • Loading branch information...
DolceTriade committed Nov 15, 2015
1 parent 326fb86 commit 7f1612e5b289aee362ab851dd45c2c56bc5aef14
Showing with 6 additions and 7 deletions.
  1. +4 −6 README.md
  2. +2 −1 daemon/cmake/DaemonCBSE.cmake
@@ -56,13 +56,11 @@ Instead of `make`, you can use `make -jN` where `N` is your number of CPU cores

###CBSE Toolchain

If you want to mess around with the gamelogic code and modify entities, you'll need the cbse toolchain.
Get it using:
If you want to build the gamelogic, you'll need the following tools:

This comment has been minimized.

@Viech

Viech Nov 15, 2015

Member

There is a buildtime dependency section above. You could make a subsection for gamelogic buildtime dependencies there if you insisted on splitting that, though I fear this may bloat the readme.



cd src/utils/cbse
git submodule init
git submodule update
`python` ≥ 2
`python-yaml`
`python-jinja`

Then you can modify the entities.yml file in src/sgame/. After modifying the entites.yml file,
you can run the generate_entities.sh script o regenerate the auto generated component code.

This comment has been minimized.

@Viech

Viech Nov 15, 2015

Member

This text seems outdated. It still references generate_entities.sh. Also, this is not the right place to talk about "modify[ing] the entities.yml file", these are just the short build instructions!

@@ -52,7 +52,8 @@ function(CBSE target definition output)
COMMAND ${PYTHON_EXECUTABLE} -c "import jinja2, yaml, collections, argparse, sys, os.path, re"
RESULT_VARIABLE RET)
if (NOT RET EQUAL 0)
message(FATAL_ERROR "Missing dependences for CBSE generation. Use pip -r install src/utils/cbse/requirements.txt to install")
message(FATAL_ERROR "Missing dependences for CBSE generation. Please ensure you have python ≥ 2, python-yaml, and python-jinja installed.
Use pip -r install src/utils/cbse/requirements.txt to install")
endif()
set(GENERATED_CBSE ${output}/backend/CBSEBackend.cpp
${output}/backend/CBSEBackend.h

0 comments on commit 7f1612e

Please sign in to comment.