Skip to content

Commit

Permalink
CMake: USE_SILS_MOCKUP -> C2A_BUILD_WITH_SILS_MOCKUP
Browse files Browse the repository at this point in the history
  • Loading branch information
sksat committed Oct 12, 2023
1 parent 69abe51 commit 5d18cd4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions examples/mobc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ option(USE_SCI_COM_WINGS "Use SCI_COM_WINGS" ON)
# そちらのバッファが詰まってSILSの動作が止まることがあるので注意すること!
option(USE_SCI_COM_UART "Use SCI_COM_UART" OFF)

option(USE_SILS_MOCKUP "Use SILS mockup for build C2A with minimal user in C89 only" OFF)
option(C2A_BUILD_WITH_SILS_MOCKUP "Build C2A with SILS mockup for check undefined symbols by build minimal C2A user executable(C89 only)" OFF)

option(C2A_BUILD_FOR_SILS "Build C2A for SILS target" ON)

if(USE_SILS_MOCKUP)
if(C2A_BUILD_WITH_SILS_MOCKUP)
set(C2A_BUILD_AS_CXX OFF)
endif()

Expand Down Expand Up @@ -74,7 +74,7 @@ if(C2A_BUILD_AS_CXX)
set_source_files_properties(${C2A_SRCS} PROPERTIES LANGUAGE CXX) # C++
endif()

if(USE_SILS_MOCKUP)
if(C2A_BUILD_WITH_SILS_MOCKUP)
add_definitions(-DDEFINE_MAIN_ON_SILS)
add_executable(${PROJECT_NAME} ${C2A_SRCS})
else()
Expand Down
2 changes: 1 addition & 1 deletion examples/mobc/src/src_user/hal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(C2A_COMMON_SRCS
)

# 通常,S2EではC++ビルドされるが,C2A core開発のため,C2A単体をC89でライブラリビルドする場合は,mockupをビルド対象にする
if(USE_SILS_MOCKUP)
if(C2A_BUILD_WITH_SILS_MOCKUP)
message("USE SILS_MOCKUP")

#target_sources(${PROJECT_NAME} PRIVATE
Expand Down
6 changes: 3 additions & 3 deletions examples/subobc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ project(C2A)
# そちらのバッファが詰まってSILSの動作が止まることがあるので注意すること!
option(USE_SCI_COM_WINGS "Use SCI_COM_WINGS" ON)

option(USE_SILS_MOCKUP "Use SILS mockup for build C2A with minimal user in C89 only" OFF)
option(C2A_BUILD_WITH_SILS_MOCKUP "Build C2A with SILS mockup for check undefined symbols by build minimal C2A user executable(C89 only)" OFF)

option(C2A_BUILD_FOR_SILS "Build C2A for SILS target" ON)

# Core App のターゲット追加は src_user/applications/CMakeLists.txt で行う
set(C2A_USE_ALL_CORE_APPS OFF)
set(C2A_USE_ALL_CORE_TEST_APPS OFF)

if(USE_SILS_MOCKUP)
if(C2A_BUILD_WITH_SILS_MOCKUP)
set(C2A_BUILD_AS_CXX OFF)
endif()

Expand Down Expand Up @@ -72,7 +72,7 @@ if(C2A_BUILD_AS_CXX)
set_source_files_properties(${C2A_SRCS} PROPERTIES LANGUAGE CXX) # C++
endif()

if(USE_SILS_MOCKUP)
if(C2A_BUILD_WITH_SILS_MOCKUP)
add_definitions(-DDEFINE_MAIN_ON_SILS)
add_executable(${PROJECT_NAME} ${C2A_SRCS})
else()
Expand Down
2 changes: 1 addition & 1 deletion examples/subobc/src/src_user/hal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set(C2A_COMMON_SRCS
)

# 通常,S2EではC++ビルドされるが,C2A core開発のため,C2A単体をC89でライブラリビルドする場合は,mockupをビルド対象にする
if(USE_SILS_MOCKUP)
if(C2A_BUILD_WITH_SILS_MOCKUP)
message("USE SILS_MOCKUP")

#target_sources(${PROJECT_NAME} PRIVATE
Expand Down

0 comments on commit 5d18cd4

Please sign in to comment.