Skip to content

Commit 28db608

Browse files
committed
Decoupled USE_HEXAGON_RPC
1 parent 461df6a commit 28db608

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cmake/modules/Hexagon.cmake

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,8 @@ if(USE_HEXAGON_RPC)
293293
# copy android_bash template file
294294
configure_file("${CMAKE_SOURCE_DIR}/src/runtime/hexagon/rpc/android_bash.sh.template"
295295
${HEXAGON_RPC_OUTPUT} COPYONLY)
296+
297+
set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${HEXAGON_RPC_OUTPUT}")
296298
endif()
297299

298300
if (USE_HEXAGON_SDK AND BUILD_FOR_ANDROID)
@@ -317,7 +319,7 @@ if(USE_HEXAGON_DEVICE STREQUAL "${PICK_SIM}")
317319
"-DHEXAGON_ARCH=${USE_HEXAGON_ARCH}"
318320
INSTALL_COMMAND "true"
319321
)
320-
elseif((USE_HEXAGON_DEVICE STREQUAL "${PICK_HW}") OR (USE_HEXAGON_RPC AND BUILD_FOR_ANDROID))
322+
elseif(USE_HEXAGON_DEVICE STREQUAL "${PICK_HW}")
321323
find_hexagon_sdk_root("${USE_HEXAGON_SDK}" "${USE_HEXAGON_ARCH}")
322324
find_hexagon_toolchain()
323325

@@ -344,13 +346,15 @@ if (USE_HEXAGON_DEVICE STREQUAL "${PICK_NONE}")
344346
file(GLOB RUNTIME_HEXAGON_SRCS src/runtime/hexagon/hexagon/*.cc)
345347
elseif(BUILD_FOR_ANDROID AND HEXAGON_SDK_PATH_DEFINED)
346348
list(APPEND RUNTIME_HEXAGON_SRCS src/runtime/hexagon/proxy_rpc/device_api.cc)
347-
elseif(USE_HEXAGON_RPC)
348-
file(GLOB RUNTIME_HEXAGON_SRCS src/runtime/hexagon/host/*.cc)
349349
endif()
350350
else()
351351
file(GLOB RUNTIME_HEXAGON_SRCS src/runtime/hexagon/android/*.cc)
352352
endif()
353353

354+
if(USE_HEXAGON_RPC)
355+
file(GLOB RUNTIME_HEXAGON_SRCS src/runtime/hexagon/host/*.cc)
356+
endif()
357+
354358
if(USE_HEXAGON_SDK AND BUILD_FOR_ANDROID)
355359
find_hexagon_sdk_root("${USE_HEXAGON_SDK}" "${USE_HEXAGON_ARCH}")
356360
include_directories(SYSTEM ${HEXAGON_SDK_INCLUDES} ${HEXAGON_REMOTE_ROOT})

0 commit comments

Comments
 (0)