0de428a2 [studio/applib] Cleanup 8a52df4f [nostalgia/gfx] More cleanup efec6eb3 [nostalgia/gfx/studio/palette] Add RGB key shortcuts for focusing color channels 56eeb249 [nostalgia/gfx/opengl] More cleanup ae81f6b3 [ox/std] Make Span::operator[] const c1108301 [nostalgia/gfx] Cleanup 83fbe6ac [keel,turbine,studio] Fix some install mistakes 80b45283 [nostalgia/gfx] Cleanup 0fa39433 [nostalgia] Add release note about Mac menubar using Cmd cae75350 [nostalgia] Fix typos in release notes df878323 [studio] Add build date to About d585794c [nostalgia/gfx/studio/tilesheet] Fix Insert tile command 20965854 [nostalgia/gfx/studio/tilesheet] Cleanup 02383a4a [ox/std] Cleanup 185a7628 [nostalgia] Make pkg-dmg delete bundle after archive created b722b4f7 [nostalgia] Update release notes 459ab5aa [studio] Remove ability to re-order Editor tabs 565f621c [nostalgia/gfx/studio/tilesheet] Fix Delete Tile functionality 9589ca91 [keel] Cleanup 164db500 [keel] Cleanup cbfb167d [nostalgia] Remove unused project directory e7b83be8 [nostalgia] Update release notes 649da5fc [nostalgia/sample_project] Delete Scenes directory aa095f76 [studio] Make Delete key initiate deletion of selected directory bb99c99f [studio] Make deleting a directory close files in that directory 7f0dcdd2 [nostalgia/gfx/studio/tilesheet] Cleanup 6029ad5d [nostalgia/studio] Add command for bundling Mac app git-subtree-dir: deps/nostalgia git-subtree-split: 0de428a2e588d3360b98aa7e00c2498d5a54019b
55 lines
1.9 KiB
Makefile
55 lines
1.9 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: pkg-mac
|
|
pkg-mac: install
|
|
${BC_CMD_ENVRUN} ${BC_PY3} ./util/scripts/pkg-dmg.py
|
|
|
|
.PHONY: generate-studio-rsrc
|
|
generate-studio-rsrc:
|
|
${BC_CMD_ENVRUN} ${BC_PY3} ./util/scripts/file-to-cpp.py --rsrc src/olympic/studio/applib/src/rsrc.json
|
|
${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}
|