Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / app / zap-templates / README.md
1 # ZAP generation templates
2
3 ## What is this repo?
4
5 This directory contains generation templates for ZAP, ZCL Advanced Platform.
6
7 **IMPORTANT**: Changes to templates will affect all examples.
8
9 # Useful command for CHIP
10
11 Run ZAP with UI to configure endpoints and clusters
12
13 ```
14 cd ./third_party/zap/repo/
15 node src-script/zap-start.js --logToStdout  --gen ../../../src/app/zap-templates/app/templates.json
16 ```
17
18 Generate files in headless mode
19
20 ```
21 cd ./third_party/zap/repo/
22 node src-script/zap-generate.js -z ../../../../src/app/zap-templates/zcl/zcl.json -g ../../../src/app/zap-templates/app-templates.json -i <path to *.zap file> -o <Path to /gen/ folder>
23 node src-script/zap-generate.js -z ../../../../src/app/zap-templates/zcl/zcl.json -g ../../../src/app/zap-templates/chip-templates.json -i <path to *.zap file> -o ../../../
24 ```
25
26 For more information please see the documentation under `docs/` in
27 [ZAP](https://github.com/project-chip/zap)