Skip to content

Commit 7fe4428

Browse files
authored
Merge pull request #138 from kionz/config
config: implement references to nodes across YAML files
2 parents 92a94cd + b7c3918 commit 7fe4428

24 files changed

+2077
-1118
lines changed

data/test/config_compiler_test.yaml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# tests for ConfigCompiler features
2+
3+
include_local_reference:
4+
- __include: starcraft
5+
- __include: /starcraft
6+
- __include: :starcraft
7+
- __include: :/starcraft
8+
9+
include_external_reference:
10+
terrans:
11+
__include: config_test:/terrans
12+
13+
include_external_file:
14+
__include: config_test:/
15+
16+
patch_reference:
17+
__patch: /local/patch
18+
battlefields:
19+
- lost temple
20+
- luna
21+
- hunters
22+
23+
patch_literal:
24+
__patch:
25+
zerg/ground_units/@next: lurker
26+
zerg:
27+
__include: /starcraft/zerg
28+
29+
patch_list:
30+
protoss:
31+
__include: /starcraft/protoss
32+
__patch:
33+
- protoss/ground_units/@next: dark templar
34+
- protoss/ground_units/@next: dark archon
35+
36+
dependency_chaining:
37+
alpha:
38+
__include: /dependency_chaining/beta
39+
beta:
40+
__include: /dependency_chaining/epsilon
41+
delta:
42+
__include: /dependency_chaining/beta
43+
epsilon: success
44+
45+
local:
46+
patch:
47+
battlefields/@next: match point
48+
49+
starcraft:
50+
terrans:
51+
player: slayers_boxer
52+
protoss:
53+
ground_units:
54+
- probe
55+
- zealot
56+
- dragoon
57+
- high templar
58+
- archon
59+
- reaver
60+
player: grrrr
61+
zerg:
62+
ground_units:
63+
- drone
64+
- zergling
65+
- hydralisk
66+
- ultralisk
67+
- defiler
68+
player: yellow

src/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib)
33
aux_source_directory(. rime_src_api)
44
aux_source_directory(rime rime_src_base)
55
aux_source_directory(rime/algo rime_src_algo)
6+
aux_source_directory(rime/config rime_src_config)
67
aux_source_directory(rime/dict rime_src_dict)
78
aux_source_directory(rime/gear rime_src_gear)
89
aux_source_directory(rime/lever rime_src_lever)

0 commit comments

Comments
 (0)