Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check in BizHawk build scripts #3272

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YoshiRulz
Copy link

@YoshiRulz YoshiRulz commented Aug 10, 2024

Yes that's all the changes as of bizhawk-0.11. And I think some of that can be removed still, namely the Xcode project files gone. The last upstream change to be merged in was cecb454, but I've rebased, so one of the changes since then may have broken the build.

How much of this you keep, or drop, or keep with modifications is up to you. The C FFI can be changed slightly too.

re: TASEmulators/BizHawk#2312

Copy link
Member

@endrift endrift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should remove the XCode project if no one is using it. Further, I can already confirm this won't build. I'd like to at least try to make sure the bizinterface DLL builds via CI so I know when I'm gonna be breaking things for you. It looks like the last time this was downstreamed was several months ago, as you reference some files I've removed, so I'd like it if you can get it building again before I merge this.

cinema/gb/mooneye-gb/misc/boot_hwio-C/xbaseline_0000.png Outdated Show resolved Hide resolved
@YoshiRulz
Copy link
Author

YoshiRulz commented Aug 14, 2024

Removed files and dropped one source entry from the .mak. Though I don't think it will build anyway because it assumes it's in a submodule in the BizHawk repo.

Copy link
Member

@endrift endrift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of my concerns are about if this builds, if it continues to build (I might want to set up some sort of CI?) and that it doesn't diverge from downstream (at least, not for too long).

I'm A-OK with it being upstreamed if these things can be managed adequately.

cd "$BASEDIR/src/platform/bizhawk/mingw"
fi
make clean
make -j4
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recommendation:

Suggested change
make -j4
make -j${JOBS:-4}

This lets you override the job number from the environment if desired, but defaults to 4 if it's not present.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gentoo and Arch have established a precedent for something like make ${MAKEOPTS:-j4}

-Wall -Wno-stringop-overflow -Wno-lto-type-mismatch \
-Wno-ignored-optimization-argument -Wno-unknown-warning-option \
-DMINIMAL_CORE=2 -DDISABLE_THREADING -DM_CORE_GBA \
-DCOLOR_16_BIT -DMGBA_STANDALONE -DENABLE_DEBUGGERS \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to need to test if this compiles. I changed a bunch of the build flags somewhat recently, so this may not work anymore.

$(ROOT_DIR)/debugger/symbols.c \
$(ROOT_DIR)/debugger/parser.c \
$(ROOT_DIR)/third-party/inih/ini.c \
$(ROOT_DIR)/util/circle-buffer.c \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll need to add util/audio-buffer.c and possibly util/audio-resampler.c now that blip_buf is dead.

#include "mgba/core/log.h"
#include "mgba/core/timing.h"
#include "mgba/core/serialize.h"
#include "mgba/core/blip_buf.h"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

blip_buf will need to be replaced with mAudioBuffer and mAudioResampler to work anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants