2021-03-02 19:44:10 -06:00
|
|
|
PROJECT_NAME=nostalgia
|
2021-03-02 21:16:07 -06:00
|
|
|
BUILDCORE_PATH=deps/buildcore
|
2021-03-02 21:32:00 -06:00
|
|
|
VCPKG_PKGS=sdl2 jsoncpp
|
2021-03-02 21:16:07 -06:00
|
|
|
include ${BUILDCORE_PATH}/base.mk
|
2016-12-18 15:54:13 -06:00
|
|
|
|
2019-11-13 20:37:23 -06:00
|
|
|
ifeq ($(OS),darwin)
|
2020-01-09 18:30:35 -06:00
|
|
|
NOSTALGIA_STUDIO=./dist/${CURRENT_BUILD}/nostalgia-studio.app/Contents/MacOS/nostalgia-studio
|
2019-12-30 22:51:35 -06:00
|
|
|
MGBA=/Applications/mGBA.app/Contents/MacOS/mGBA
|
2019-11-13 20:37:23 -06:00
|
|
|
else
|
2020-01-09 18:30:35 -06:00
|
|
|
NOSTALGIA_STUDIO=./dist/${CURRENT_BUILD}/bin/nostalgia-studio
|
2019-12-30 22:51:35 -06:00
|
|
|
MGBA=mgba-qt
|
2019-11-13 20:37:23 -06:00
|
|
|
endif
|
|
|
|
|
2020-01-03 20:00:58 -06:00
|
|
|
.PHONY: pkg-gba
|
2019-02-27 23:23:10 -06:00
|
|
|
pkg-gba:
|
2021-02-20 23:48:30 -06:00
|
|
|
${ENV_RUN} ${CMAKE_BUILD} build install
|
2020-06-20 05:27:03 -05:00
|
|
|
${ENV_RUN} ./scripts/pkg-gba sample_project
|
2016-12-23 18:06:27 -06:00
|
|
|
|
2020-01-03 20:00:58 -06:00
|
|
|
.PHONY: run
|
2017-05-16 13:53:57 -05:00
|
|
|
run: install
|
2020-01-09 18:30:35 -06:00
|
|
|
${ENV_RUN} ./dist/${CURRENT_BUILD}/bin/nostalgia sample_project
|
2020-01-03 20:00:58 -06:00
|
|
|
.PHONY: run-studio
|
2017-05-16 13:53:57 -05:00
|
|
|
run-studio: install
|
2020-12-21 23:40:46 -06:00
|
|
|
${ENV_RUN} ${NOSTALGIA_STUDIO}
|
2020-01-03 20:00:58 -06:00
|
|
|
.PHONY: gba-run
|
2019-02-27 23:23:10 -06:00
|
|
|
gba-run: pkg-gba
|
2019-12-30 22:51:35 -06:00
|
|
|
${MGBA} nostalgia.gba
|
2021-03-02 21:32:00 -06:00
|
|
|
.PHONY: debug
|
2021-03-02 19:44:10 -06:00
|
|
|
debug: install
|
2021-04-29 23:36:44 -05:00
|
|
|
${ENV_RUN} ${DEBUGGER} ./dist/${CURRENT_BUILD}/bin/nostalgia sample_project
|
2021-03-02 21:32:00 -06:00
|
|
|
.PHONY: debug-studio
|
2021-03-02 19:44:10 -06:00
|
|
|
debug-studio: install
|
2021-04-29 23:36:44 -05:00
|
|
|
${ENV_RUN} ${DEBUGGER} ${NOSTALGIA_STUDIO}
|
2016-12-23 18:06:27 -06:00
|
|
|
|
2020-01-03 20:00:58 -06:00
|
|
|
.PHONY: configure-gba
|
2019-03-07 18:04:25 -06:00
|
|
|
configure-gba:
|
2021-04-03 02:40:57 -05:00
|
|
|
${ENV_RUN} ${SETUP_BUILD} --toolchain=deps/gbabuildcore/cmake/modules/GBA.cmake --target=gba --current_build=0 --build_type=release
|
2016-12-24 13:06:44 -06:00
|
|
|
|
2020-01-03 20:00:58 -06:00
|
|
|
.PHONY: configure-gba-debug
|
2019-03-07 18:04:25 -06:00
|
|
|
configure-gba-debug:
|
2021-04-03 02:40:57 -05:00
|
|
|
${ENV_RUN} ${SETUP_BUILD} --toolchain=deps/gbabuildcore/cmake/modules/GBA.cmake --target=gba --current_build=0 --build_type=debug
|