aboutsummaryrefslogtreecommitdiff
path: root/examples/graphics/billboard
diff options
context:
space:
mode:
authorspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2022-02-20 20:55:27 +0100
committerspicyjpeg <88942473+spicyjpeg@users.noreply.github.com>2022-02-20 23:10:19 +0100
commita2da2debfde1d44338d203aa4d56e485c4bb16ae (patch)
treebcce13d2c63acfe4d9b1d72c1887130b29bb098f /examples/graphics/billboard
parent72db767f5a5bdb958bb11bcb6fe6b9b332a2b195 (diff)
downloadpsn00bsdk-a2da2debfde1d44338d203aa4d56e485c4bb16ae.tar.gz
Add psn00bsdk_target_incbin() CMake function
Diffstat (limited to 'examples/graphics/billboard')
-rw-r--r--examples/graphics/billboard/CMakeLists.txt10
-rw-r--r--examples/graphics/billboard/tim.s.template7
2 files changed, 3 insertions, 14 deletions
diff --git a/examples/graphics/billboard/CMakeLists.txt b/examples/graphics/billboard/CMakeLists.txt
index 1b417d2..4fc668d 100644
--- a/examples/graphics/billboard/CMakeLists.txt
+++ b/examples/graphics/billboard/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(
- billboard STATIC
- ${_sources}
- ${PROJECT_BINARY_DIR}/tim.s
-)
+psn00bsdk_add_executable(billboard STATIC ${_sources})
#psn00bsdk_add_cd_image(billboard_iso billboard iso.xml DEPENDS billboard)
+psn00bsdk_target_incbin(billboard PRIVATE tim_image texture64.tim)
+
install(FILES ${PROJECT_BINARY_DIR}/billboard.exe TYPE BIN)
diff --git a/examples/graphics/billboard/tim.s.template b/examples/graphics/billboard/tim.s.template
deleted file mode 100644
index d9309bc..0000000
--- a/examples/graphics/billboard/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}/texture64.tim"