Skip to content

Commit eda9384

Browse files
committed
pass fw version as defines
1 parent 97f14b0 commit eda9384

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

tests/ps4_package.cmake

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,10 @@ function(create_pkg pkg_title_id fw_major fw_minor src_files)
4040
COMMAND ${CMAKE_COMMAND} -E copy
4141
${CMAKE_SOURCE_DIR}/app_data/param.sfo
4242
$<TARGET_FILE_DIR:${pkg_title_id}>/param.sfo
43-
# COMMAND ${CMAKE_COMMAND} -E copy_directory
44-
# ${CMAKE_CURRENT_SOURCE_DIR}/assets
45-
# $<TARGET_FILE_DIR:${pkg_title_id}>/sce_sys
46-
# COMMAND ${CMAKE_COMMAND} -E copy_directory
47-
# ${CMAKE_SOURCE_DIR}/app_data/sce_module
48-
# $<TARGET_FILE_DIR:${pkg_title_id}>/sce_module
49-
# COMMAND ${CMAKE_COMMAND} -E copy_directory
50-
# ${CMAKE_SOURCE_DIR}/app_data/sce_sys
51-
# $<TARGET_FILE_DIR:${pkg_title_id}>/sce_sys
43+
)
44+
45+
target_compile_definitions(${pkg_title_id}
46+
PRIVATE FW_VER_MAJOR=${fw_major} FW_VER_MINOR=${fw_minor}
5247
)
5348

5449
add_dependencies(${pkg_title_id} CppUTest)

0 commit comments

Comments
 (0)