File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ set(EXECUTABLE ${PROJECT_NAME} CACHE STRING "EXECUTABLE")
4040set (DESKTOP 1 CACHE STRING "DESKTOP" )
4141# enable or disable embedded build
4242set (EMBEDDED 0 CACHE STRING "EMBEDDED" )
43+ # enable or disable the (re)build of psiddrv.h
44+ set (BUILDPSIDDRV 0 CACHE STRING "BUILDPSIDDRV" )
4345# enable or disable radare2 debugging support
4446set (RADARE2 1 CACHE STRING "RADARE2" )
4547
@@ -150,21 +152,23 @@ if (DESKTOP)
150152)
151153endif (DESKTOP )
152154
153- ## Workaround for WIN32 and MacOs github actions failing
154- ## Need to implement the download and compilation of XA for this
155- if (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
156- add_custom_command (
157- # OUTPUT psiddrv.h psidextdrv.h
158- OUTPUT psiddrv.h
159- COMMAND $ (MAKE ) all
160- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /src/psiddrv/
161- )
162- add_custom_target (
163- RSIDDriver ALL
164- # DEPENDS psiddrv.h psidextdrv.h
165- DEPENDS psiddrv.h
166- )
167- endif ()
155+ ## Workaround for github actions failing
156+ ## Needs download and compilation of XA for this part to work
157+ if (BUILDPSIDDRV)
158+ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
159+ add_custom_command (
160+ # OUTPUT psiddrv.h psidextdrv.h
161+ OUTPUT psiddrv.h
162+ COMMAND $ (MAKE ) all
163+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /src/psiddrv/
164+ )
165+ add_custom_target (
166+ RSIDDriver ALL
167+ # DEPENDS psiddrv.h psidextdrv.h
168+ DEPENDS psiddrv.h
169+ )
170+ endif ()
171+ endif (BUILDPSIDDRV )
168172
169173if (DESKTOP)
170174 set (SOURCEFILES
You can’t perform that action at this time.
0 commit comments