aboutsummaryrefslogtreecommitdiff
path: root/examples/graphics/rgb24
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphics/rgb24')
-rw-r--r--examples/graphics/rgb24/CMakeLists.txt10
-rw-r--r--examples/graphics/rgb24/tim.s.template7
2 files changed, 3 insertions, 14 deletions
diff --git a/examples/graphics/rgb24/CMakeLists.txt b/examples/graphics/rgb24/CMakeLists.txt
index 449981a..9565b8b 100644
--- a/examples/graphics/rgb24/CMakeLists.txt
+++ b/examples/graphics/rgb24/CMakeLists.txt
@@ -11,14 +11,10 @@ project(
HOMEPAGE_URL "http://lameguy64.net/?page=psn00bsdk"
)
-configure_file(tim.s.template tim.s)
-
file(GLOB _sources *.c)
-psn00bsdk_add_executable(
- rgb24 STATIC
- ${_sources}
- ${PROJECT_BINARY_DIR}/tim.s
-)
+psn00bsdk_add_executable(rgb24 STATIC ${_sources})
#psn00bsdk_add_cd_image(rgb24_iso rgb24 iso.xml DEPENDS rgb24)
+psn00bsdk_target_incbin(rgb24 PRIVATE tim_image bunpattern.tim)
+
install(FILES ${PROJECT_BINARY_DIR}/rgb24.exe TYPE BIN)
diff --git a/examples/graphics/rgb24/tim.s.template b/examples/graphics/rgb24/tim.s.template
deleted file mode 100644
index 205a081..0000000
--- a/examples/graphics/rgb24/tim.s.template
+++ /dev/null
@@ -1,7 +0,0 @@
-.section .data
-
-.global tim_image
-.type tim_image, @object
-tim_image:
- .balign 4 # Required to correctly parse and load the image
- .incbin "${PROJECT_SOURCE_DIR}/bunpattern.tim"