-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
6,793 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule ".\\packages\\project-editor\\flow\\runtime\\cpp\\eez"] | ||
path = .\\packages\\project-editor\\flow\\runtime\\cpp\\eez | ||
url = https://github.com/eez-open/eez-framework |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
103 changes: 103 additions & 0 deletions
103
packages/project-editor/flow/runtime/cpp/CMakeLists.txt
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 |
---|---|---|
@@ -0,0 +1,103 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
project(flow_runtime) | ||
|
||
set (CMAKE_CXX_STANDARD 17) | ||
|
||
#set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/") | ||
|
||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunused-const-variable -Wno-nested-anon-types -Wno-dollar-in-identifier-extension -O2 --no-entry") | ||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_CXX_FLAGS} -s DEMANGLE_SUPPORT=1 -s FORCE_FILESYSTEM=1 -s ALLOW_MEMORY_GROWTH=1 -s INITIAL_MEMORY=83886080 -s LLD_REPORT_UNDEFINED --bind -lidbfs.js --pre-js ${PROJECT_SOURCE_DIR}/src/platform/simulator/emscripten/pre.js") | ||
add_definitions(-DEMCC_DEBUG) | ||
|
||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -pedantic") | ||
|
||
add_definitions(-DEEZ_PLATFORM_SIMULATOR) | ||
add_definitions(-DEEZ_PLATFORM_SIMULATOR_UNIX) | ||
add_definitions(-DEEZ_PLATFORM_SIMULATOR_EMSCRIPTEN) | ||
|
||
include_directories( | ||
./ | ||
./eez/libs/agg | ||
./eez/platform/simulator | ||
./src/conf | ||
) | ||
|
||
|
||
set(src_files) | ||
set(header_files) | ||
|
||
|
||
################################################################################ | ||
# EEZ Framework files | ||
file(GLOB_RECURSE src_eez | ||
eez/*.cpp | ||
eez/*.c | ||
) | ||
file(GLOB_RECURSE header_eez | ||
eez/*.h | ||
) | ||
|
||
# exclude STM32 platform specific files | ||
set (EXCLUDE_DIR "eez/platform/stm32") | ||
foreach (TMP_PATH ${src_eez}) | ||
string (FIND ${TMP_PATH} ${EXCLUDE_DIR} EXCLUDE_DIR_FOUND) | ||
if (NOT ${EXCLUDE_DIR_FOUND} EQUAL -1) | ||
list (REMOVE_ITEM src_eez ${TMP_PATH}) | ||
endif () | ||
endforeach(TMP_PATH) | ||
foreach (TMP_PATH ${header_eez}) | ||
string (FIND ${TMP_PATH} ${EXCLUDE_DIR} EXCLUDE_DIR_FOUND) | ||
if (NOT ${EXCLUDE_DIR_FOUND} EQUAL -1) | ||
list (REMOVE_ITEM header_eez ${TMP_PATH}) | ||
endif () | ||
endforeach(TMP_PATH) | ||
|
||
# exclude libscpi | ||
set (EXCLUDE_DIR "eez/libs/libscpi") | ||
foreach (TMP_PATH ${src_eez}) | ||
string (FIND ${TMP_PATH} ${EXCLUDE_DIR} EXCLUDE_DIR_FOUND) | ||
if (NOT ${EXCLUDE_DIR_FOUND} EQUAL -1) | ||
list (REMOVE_ITEM src_eez ${TMP_PATH}) | ||
endif () | ||
endforeach(TMP_PATH) | ||
foreach (TMP_PATH ${header_eez}) | ||
string (FIND ${TMP_PATH} ${EXCLUDE_DIR} EXCLUDE_DIR_FOUND) | ||
if (NOT ${EXCLUDE_DIR_FOUND} EQUAL -1) | ||
list (REMOVE_ITEM header_eez ${TMP_PATH}) | ||
endif () | ||
endforeach(TMP_PATH) | ||
|
||
list (APPEND src_files ${src_eez}) | ||
list (APPEND header_files ${header_eez}) | ||
|
||
################################################################################ | ||
|
||
|
||
################################################################################ | ||
file(GLOB_RECURSE src_flow_runtime | ||
src/*.cpp | ||
src/*.c | ||
) | ||
file(GLOB_RECURSE header_flow_runtime | ||
src/*.h | ||
) | ||
|
||
list (APPEND src_files ${src_flow_runtime}) | ||
list (APPEND header_files ${header_flow_runtime}) | ||
|
||
################################################################################ | ||
|
||
add_executable(flow_runtime ${src_files} ${header_files}) | ||
|
||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Emscripten") | ||
add_custom_command(TARGET flow_runtime POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy | ||
"${PROJECT_SOURCE_DIR}/build/emscripten/flow_runtime.js" | ||
"${PROJECT_SOURCE_DIR}/..") | ||
|
||
add_custom_command(TARGET flow_runtime POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy | ||
"${PROJECT_SOURCE_DIR}/build/emscripten/flow_runtime.wasm" | ||
"${PROJECT_SOURCE_DIR}/..") | ||
endif() |
Oops, something went wrong.