-
Notifications
You must be signed in to change notification settings - Fork 5
/
mos.yml
94 lines (81 loc) · 2.64 KB
/
mos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
author: 'Deomid "rojer" Ryabkov'
description: Port of HomeKitADK to Mongoose OS
type: lib
version: 1.0.1
# Upstream commit: https://github.com/apple/HomeKitADK/commit/24f76f891c644e8124896ec48fe2b90e358fb73e
sources:
# Carefully avoiding IP and BLE files, will be added later if enabled.
- HomeKitADK/HAP/HAP[ACDJLMRSTUV]*.c
- HomeKitADK/HAP/HAPPairing.c
- HomeKitADK/HAP/HAPPairingPair*.c
- HomeKitADK/HAP/HAPPDU.c
- HomeKitADK/HAP/HAPBitSet.c
- HomeKitADK/PAL
- HomeKitADK/PAL/Crypto/MbedTLS
- HomeKitADK/External/Base64
- HomeKitADK/External/HTTP
- HomeKitADK/External/JSON
- src
- src/PAL
- src/${platform}
includes:
- include
- HomeKitADK/HAP
libs:
- location: https://github.com/mongoose-os-libs/core
- location: https://github.com/mongoose-os-libs/dns-sd
- location: https://github.com/mongoose-os-libs/mbedtls
init_after:
- bt-common
- rpc-common
build_vars:
# Override to 0 to disable BLE or IP transport.
MGOS_HAP_IP: 1
MGOS_HAP_BLE: 1
# Override this to 0 to disable setup info configuration settings.
MGOS_HAP_SIMPLE_CONFIG: 1
cdefs:
HAP_IP: 0
HAP_BLE: 0
HAP_VERSION: 1.0.1
HAP_IDENTIFICATION: https://github.com/mongoose-os-libs/homekit-adk
# Tips for saving space: override this to 0, disable asserts and preconditions.
HAP_LOG_LEVEL: 3
# HAP_DISABLE_ASSERTS: 1
# HAP_DISABLE_PRECONDITIONS: 1
config_schema:
- ["dns_sd.enable", true]
- ["dns_sd.host_name", ""] # Use device.id
conds:
- when: build_vars.MGOS_HAP_SIMPLE_CONFIG == "1"
apply:
config_schema:
# Setup code must not be stored in plain text on the device.
# Salt is a random 16-byte value and verifier is generated
# from setup code + salt by the AccessorySetupGenerator tool.
# Here they can be specified as either hex or base64 encoded string.
- ["hap", "o", {"title": "HAP settings"}]
- ["hap.salt", "s", "", {"title": "Device verifier salt"}]
- ["hap.verifier", "s", "", {"title": "Device verifier"}]
- ["hap.setup_id", "s", "", {"title": "Setup ID"}]
- ["hap.mfi_uuid", "s", "", {"title": "MFi UUID, in RFC 4122 representation (8-4-4-4-12)"}]
- ["hap.mfi_token", "s", "", {"title": "MFi token, Base64"}]
cdefs:
MGOS_HAP_SIMPLE_CONFIG: 1
MGOS_HAP_SIMPLE_CONFIG_LEVEL: 2 # Config level to use for HAP info.
- when: build_vars.MGOS_HAP_IP == "1"
apply:
sources:
- HomeKitADK/HAP/HAPIP*.c
cdefs:
HAP_IP: 1
- when: build_vars.MGOS_HAP_BLE == "1"
apply:
sources:
- HomeKitADK/HAP/HAP*BLE*.c
cdefs:
HAP_BLE: 1
tags:
- c
- homekit
manifest_version: 2018-06-12