Skip to content

Commit

Permalink
chore(sample): add sample travis-install script
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Apr 1, 2019
1 parent 98045f9 commit f4ce5ec
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ and build script.
To build the sample plugin as standard Rime plugin, link or copy the source code
directory to `plugins/sample` and turn off cmake flag `BUILD_SAMPLE=OFF`.

https://github.com/rime/librime-sample is the same sample plugin in its separate
GitHub repository. You can checkout plugins (a list of slugs) with this command:

``` shell
cd librime
bash install-plugins.sh rime/librime-sample # ...
```

The cmake option `BUILD_MERGED_PLUGINS` merges all detected plugins into the
built `rime` library. Set the option off to build each plugin as a standalone
(shared) library. In the latter case, the user needs to explicitly load the
Expand Down
7 changes: 7 additions & 0 deletions sample/travis-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

if [[ "$TRAVIS_OS_NAME" == linux ]]; then
echo "TODO: in this script, install the Rime plugin's dependencies for Linux"
elif [[ "$TRAVIS_OS_NAME" == osx ]]; then
echo "TODO: in this script, install the Rime plugin's dependencies for macOS"
fi

0 comments on commit f4ce5ec

Please sign in to comment.