forked from intel/zephyr.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ocf] Fixed iotivity-constrained build
The problem is that all the required preprocessor defines added to iotivity-constrained using -include doesn't work with CMake, so instead, we should pass those definitions to cmake using add_definitions(). Fixes intel#1707 Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
- Loading branch information
1 parent
ba69d2a
commit 555fb40
Showing
4 changed files
with
47 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
{ | ||
"module": "iotivity_constrained", | ||
"src": [ | ||
"${IOTC_BASE}/deps/tinycbor/src/cborencoder.c", | ||
"${IOTC_BASE}/deps/tinycbor/src/cborencoder_close_container_checked.c", | ||
"${IOTC_BASE}/deps/tinycbor/src/cborparser.c", | ||
"${IOTC_BASE}/api/oc_buffer.c", | ||
"${IOTC_BASE}/api/oc_client_api.c", | ||
"${IOTC_BASE}/api/oc_core_res.c", | ||
"${IOTC_BASE}/api/oc_discovery.c", | ||
"${IOTC_BASE}/api/oc_endpoint.c", | ||
"${IOTC_BASE}/api/oc_helpers.c", | ||
"${IOTC_BASE}/api/oc_introspection.c", | ||
"${IOTC_BASE}/api/oc_main.c", | ||
"${IOTC_BASE}/api/oc_network_events.c", | ||
"${IOTC_BASE}/api/oc_rep.c", | ||
"${IOTC_BASE}/api/oc_ri.c", | ||
"${IOTC_BASE}/api/oc_server_api.c", | ||
"${IOTC_BASE}/api/oc_uuid.c", | ||
"${IOTC_BASE}/messaging/coap/coap.c", | ||
"${IOTC_BASE}/messaging/coap/engine.c", | ||
"${IOTC_BASE}/messaging/coap/observe.c", | ||
"${IOTC_BASE}/messaging/coap/separate.c", | ||
"${IOTC_BASE}/messaging/coap/transactions.c", | ||
"${IOTC_BASE}/port/zephyr/src/abort.c", | ||
"${IOTC_BASE}/port/zephyr/src/clock.c", | ||
"${IOTC_BASE}/port/zephyr/src/ipadapter.c", | ||
"${IOTC_BASE}/port/zephyr/src/random.c", | ||
"${IOTC_BASE}/port/zephyr/src/storage.c", | ||
"${IOTC_BASE}/util/oc_etimer.c", | ||
"${IOTC_BASE}/util/oc_list.c", | ||
"${IOTC_BASE}/util/oc_memb.c", | ||
"${IOTC_BASE}/util/oc_mmem.c", | ||
"${IOTC_BASE}/util/oc_process.c", | ||
"${IOTC_BASE}/util/oc_timer.c" | ||
"${IOTC_BASE}/deps/tinycbor/src/cborencoder.c", | ||
"${IOTC_BASE}/deps/tinycbor/src/cborencoder_close_container_checked.c", | ||
"${IOTC_BASE}/deps/tinycbor/src/cborparser.c", | ||
"${IOTC_BASE}/api/oc_buffer.c", | ||
"${IOTC_BASE}/api/oc_client_api.c", | ||
"${IOTC_BASE}/api/oc_core_res.c", | ||
"${IOTC_BASE}/api/oc_discovery.c", | ||
"${IOTC_BASE}/api/oc_endpoint.c", | ||
"${IOTC_BASE}/api/oc_helpers.c", | ||
"${IOTC_BASE}/api/oc_introspection.c", | ||
"${IOTC_BASE}/api/oc_main.c", | ||
"${IOTC_BASE}/api/oc_network_events.c", | ||
"${IOTC_BASE}/api/oc_rep.c", | ||
"${IOTC_BASE}/api/oc_ri.c", | ||
"${IOTC_BASE}/api/oc_server_api.c", | ||
"${IOTC_BASE}/api/oc_uuid.c", | ||
"${IOTC_BASE}/messaging/coap/coap.c", | ||
"${IOTC_BASE}/messaging/coap/engine.c", | ||
"${IOTC_BASE}/messaging/coap/observe.c", | ||
"${IOTC_BASE}/messaging/coap/separate.c", | ||
"${IOTC_BASE}/messaging/coap/transactions.c", | ||
"${IOTC_BASE}/port/zephyr/src/abort.c", | ||
"${IOTC_BASE}/port/zephyr/src/clock.c", | ||
"${IOTC_BASE}/port/zephyr/src/ipadapter.c", | ||
"${IOTC_BASE}/port/zephyr/src/random.c", | ||
"${IOTC_BASE}/port/zephyr/src/storage.c", | ||
"${IOTC_BASE}/util/oc_etimer.c", | ||
"${IOTC_BASE}/util/oc_list.c", | ||
"${IOTC_BASE}/util/oc_memb.c", | ||
"${IOTC_BASE}/util/oc_mmem.c", | ||
"${IOTC_BASE}/util/oc_process.c", | ||
"${IOTC_BASE}/util/oc_timer.c" | ||
], | ||
"zjs_config": [ | ||
"-I${IOTC_BASE}", | ||
"-I${IOTC_BASE}/deps/mbeddtls", | ||
"-I${IOTC_BASE}/include", | ||
"-I${IOTC_BASE}/port/zephyr/src", | ||
"-I${ZEPHYR_BASE}/include/random", | ||
"-I${ZEPHYR_BASE}/samples/bluetooth", | ||
"-I${ZEPHYR_BASE}/subsys/net/ip", | ||
"-include $(ZJS_BASE)/src/zjs_ocf_config.h", | ||
"-include $(ZJS_BASE)/$(OCF_ROOT)/port/zephyr/src/config.h", | ||
"-DWITH_OCF", | ||
"-DOC_CLOCK_CONF_TICKS_PER_SECOND=1000", | ||
"-DOC_DYNAMIC_ALLOCATION", | ||
"-DMAX_APP_DATA_SIZE=1024", | ||
"-DNDEBUG" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters