Skip to content

Commit 256b615

Browse files
committed
Fix gitshit workhorse builds
1 parent 17c549a commit 256b615

1 file changed

Lines changed: 19 additions & 15 deletions

File tree

CMakeLists.txt

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ set(EXECUTABLE ${PROJECT_NAME} CACHE STRING "EXECUTABLE")
4040
set(DESKTOP 1 CACHE STRING "DESKTOP")
4141
# enable or disable embedded build
4242
set(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
4446
set(RADARE2 1 CACHE STRING "RADARE2")
4547

@@ -150,21 +152,23 @@ if (DESKTOP)
150152
)
151153
endif (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

169173
if (DESKTOP)
170174
set(SOURCEFILES

0 commit comments

Comments
 (0)