-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
22 lines (17 loc) · 940 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required(VERSION 3.5)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
include(build/options.cmake)
idf_build_set_property(LINK_OPTIONS "-Wl,--wrap=esp_panic_handler" APPEND)
idf_build_set_property(LINK_OPTIONS "-Wl,--wrap=uart_hal_write_txfifo" APPEND)
idf_build_set_property(LINK_OPTIONS "-Wl,--wrap=panic_restart" APPEND)
idf_build_set_property(LINK_OPTIONS "-Wl,--wrap=_esp_error_check_failed" APPEND)
project(espjd)
# this passes the esp-idf compile options down to jacdac-c/devicescript build
idf_build_get_property(compile_options COMPILE_OPTIONS GENERATOR_EXPRESSION)
idf_build_get_property(c_compile_options C_COMPILE_OPTIONS GENERATOR_EXPRESSION)
add_compile_options("${compile_options}")
add_c_compile_options("${c_compile_options}")
# location of jd_user_config.h
set(JACDAC_USER_CONFIG_DIR "../../../main")
add_subdirectory(devicescript/runtime/jacdac-c)
add_subdirectory(devicescript/runtime/devicescript)