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

Migrate to CMake #2431

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

Migrate to CMake #2431

wants to merge 1 commit into from

Conversation

atirut-w
Copy link

@atirut-w atirut-w commented Oct 26, 2023

This should help keep build scripts clean and easy to maintain while also preventing spontaneous combustion of the build scripts. WIP.

Tools:

  • Tests
  • appmake
  • copt
  • sccz80
  • ticks
  • ucpp
  • z80asm
  • z80nm
  • zcc
  • zobjcopy
  • zpragma
  • zsdc
  • zx0
  • zx7

Issues:

  • copt: can't open patterns file
  • cannot open peep rule file1
  • Consider migrating libsrc in a separate PR2
  • zcc: syntax error when compiling the test file from the installation tutorial. May be related to z80asm

Footnotes

  1. I have absolutely no idea where this one is coming from.

  2. The current Makefile script for libsrc is a huge chonk. I haven't even made sense of most of the steps it does yet.

@suborb
Copy link
Member

suborb commented Oct 30, 2023

The current Makefile script for libsrc is a huge chonk. I haven't even made sense of most of the steps it does yet.

It's tracking a huge number of dependencies and generating 65k object files and the best part of 350 libraries. Don't go there.

@suborb
Copy link
Member

suborb commented Oct 30, 2023

cannot open peep rule file

I think that's sdcc.

@atirut-w
Copy link
Author

cannot open peep rule file

I think that's sdcc.

Installing libsrc fixed it for me, but thanks 👍.

@suborb
Copy link
Member

suborb commented Oct 31, 2023

Installing libsrc fixed it for me, but thanks 👍.

Ah yeah, the rules for sdcc are located in $ZCCCFG/../../libsrc/_DEVELOPMENT

@atirut-w
Copy link
Author

The essential parts are done now, I think. It builds and can compile the example C source file. Not sure where the remaining utils come in, but all that's left would be polishing up the build scripts and implementing tests.

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.

None yet

2 participants