3fe62464 [nostalgia/sample_project] Add NS_Logo32 db55fc72 [nostalgia/player] Cleanup 20944508 [studio] Cleanup 889bec04 [nostalgia/gfx/studio/tilesheet] Cleanup ac1e34d4 [nostalgia] Update release notes 55ed75f4 [nostalgia/gfx/studio/tilesheet] Fix selection clearing to work when clicking outside image 2751872c [nostalgia] Cleanup file-to-cpp output 2a3cd35c [nostalgia] Fix release notes version, add d2025.02.1 b66f459f [nostalgia] Cleanup icon rsrc generation 3910f4e7 [nostalgia] Fix debug and gba-run commands in Makefile c0e96216 [turbine] Make accessor functions take const ref to Context f9512d72 [turbine/glfw] Fix implicit conversion b7f2c169 [nostalgia/studio/gfx] Fix typo 1e5057d6 [nostalgia] Add app icon note to release notes c6255e32 [nostalgia/studio] Add icon 16 src 02230ef6 [turbine,studio,nostalgia/studio] Add support for window icon scaling, expand icons sizes for Nostalgia Studio 9b6b60e4 [turbine] Cleanup b9a26ab6 [turbine] Fix GLFWimage member init order a521887d [studio,turbine] Add support for window icons 5ca7e2f2 [ox/fs] Cleanup 125a235d [ox/fs] Cleanup 91a7129f [nostalgia/gfx/keel] Cleanup df48a232 [nostalgia/studio] Add icon to Windows executable git-subtree-dir: deps/nostalgia git-subtree-split: 3fe62464c3ee45055e8c732840f949cdf373ae2a
50 lines
1.7 KiB
Makefile
50 lines
1.7 KiB
Makefile
BC_VAR_PROJECT_NAME=nostalgia
|
|
BC_VAR_PROJECT_NAME_CAP=Nostalgia
|
|
BC_VAR_DEVENV_ROOT=util
|
|
BUILDCORE_PATH=deps/buildcore
|
|
include ${BUILDCORE_PATH}/base.mk
|
|
|
|
ifeq ($(BC_VAR_OS),darwin)
|
|
PROJECT_STUDIO=./build/${BC_VAR_CURRENT_BUILD}/bin/${BC_VAR_PROJECT_NAME_CAP}Studio.app/Contents/MacOS/${BC_VAR_PROJECT_NAME_CAP}Studio
|
|
MGBA=/Applications/mGBA.app/Contents/MacOS/mGBA
|
|
else
|
|
PROJECT_STUDIO=./build/${BC_VAR_CURRENT_BUILD}/bin/${BC_VAR_PROJECT_NAME_CAP}Studio
|
|
MGBA=mgba-qt
|
|
endif
|
|
PROJECT_PLAYER=./build/${BC_VAR_CURRENT_BUILD}/bin/${BC_VAR_PROJECT_NAME_CAP}
|
|
|
|
.PHONY: pkg-gba
|
|
pkg-gba: build
|
|
${BC_CMD_ENVRUN} ${BC_PY3} ./util/scripts/pkg-gba.py sample_project ${BC_VAR_PROJECT_NAME_CAP}
|
|
|
|
.PHONY: generate-studio-rsrc
|
|
generate-studio-rsrc:
|
|
${BC_CMD_ENVRUN} ${BC_PY3} ./util/scripts/file-to-cpp.py --rsrc src/nostalgia/studio/rsrc.json
|
|
|
|
.PHONY: build-player
|
|
build-player:
|
|
${BC_CMD_CMAKE_BUILD} ${BC_VAR_BUILD_PATH} ${BC_VAR_PROJECT_NAME_CAP}
|
|
.PHONY: run
|
|
run: build-player
|
|
${PROJECT_PLAYER} sample_project
|
|
.PHONY: run-studio
|
|
run-studio: build
|
|
${PROJECT_STUDIO}
|
|
.PHONY: gba-run
|
|
gba-run: pkg-gba
|
|
${MGBA} ${BC_VAR_PROJECT_NAME_CAP}.gba
|
|
.PHONY: debug
|
|
debug: build
|
|
${BC_CMD_HOST_DEBUGGER} ${PROJECT_PLAYER} sample_project
|
|
.PHONY: debug-studio
|
|
debug-studio: build
|
|
${BC_CMD_HOST_DEBUGGER} ${PROJECT_STUDIO}
|
|
|
|
.PHONY: configure-gba
|
|
configure-gba:
|
|
${BC_CMD_SETUP_BUILD} --toolchain=deps/gbabuildcore/cmake/modules/GBA.cmake --target=gba --current_build=0 --build_type=release --build_root=${BC_VAR_BUILD_PATH}
|
|
|
|
.PHONY: configure-gba-debug
|
|
configure-gba-debug:
|
|
${BC_CMD_SETUP_BUILD} --toolchain=deps/gbabuildcore/cmake/modules/GBA.cmake --target=gba --current_build=0 --build_type=debug --build_root=${BC_VAR_BUILD_PATH}
|