Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add YueScript as an additional scripting language #2743

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from
Draft
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions cmake/yue.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if(BUILD_WITH_YUE)
${YUESCRIPT_DIR}/src/yuescript/yuescript.cpp
)

list(APPEND YUESCRIPT_SRC ${CMAKE_SOURCE_DIR}/src/api/yue.cpp)
list(APPEND YUESCRIPT_SRC ${CMAKE_SOURCE_DIR}/src/api/yue.c)
list(APPEND YUESCRIPT_SRC ${CMAKE_SOURCE_DIR}/src/api/parse_note.c)

add_library(yuescript ${TIC_RUNTIME} ${YUESCRIPT_SRC})
Expand All @@ -27,20 +27,25 @@ if(BUILD_WITH_YUE)
target_compile_definitions(yuescript INTERFACE TIC_BUILD_WITH_YUE)
endif()

target_link_libraries(yuescript PRIVATE runtime luaapi)
target_link_libraries(yuescript
PRIVATE
runtime
luaapi
)

set_target_properties(yuescript PROPERTIES
set_target_properties(yuescript PROPERTIES
LINKER_LANGUAGE CXX
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
)

target_include_directories(yuescript
PRIVATE
${YUESCRIPT_DIR}/src
${YUESCRIPT_DIR}/src/yuescript
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/src
${YUESCRIPT_DIR}/src
${YUESCRIPT_DIR}/src/yuescript
${CMAKE_SOURCE_DIR}/include
${CMAKE_SOURCE_DIR}/src
${CMAKE_SOURCE_DIR}/src/api
)

target_compile_definitions(yuescript PRIVATE
Expand Down Expand Up @@ -76,4 +81,4 @@ if(BUILD_WITH_YUE)
target_compile_options(yuescript PRIVATE -Wno-deprecated-declarations)
endif()

endif()
endif()
Loading