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

Add premake #10

Merged
merged 7 commits into from Jun 11, 2020
Merged

Add premake #10

merged 7 commits into from Jun 11, 2020

Conversation

qaisjp
Copy link
Contributor

@qaisjp qaisjp commented Jun 7, 2020

This PR has only been tested on Windows!
Also switches to a better AMX version, so this fixes #7.

Additional tasks:

  • Fix mixed indentation (ffs)
  • Target should be king
  • Get Linux working (does king even work on Linux at all?)
  • If possible, move amx to its own project?
  • Add instructions
    • Get premake5.exe from premake-core github releases
    • How to generate the solution ./premake5.exe vs2019
    • Recommend creating a symlink in your modules folder

@qaisjp qaisjp marked this pull request as draft June 7, 2020 13:41
@qaisjp qaisjp force-pushed the feature/premake branch 2 times, most recently from 8fc2778 to fa6fa82 Compare June 7, 2020 14:35
@theSpool
Copy link

theSpool commented Jun 9, 2020

Would it be OK for me to push the latest AMX to this branch? Then I can get rid of the AMX version problems and get Linux running as well, all under premake.

@theSpool
Copy link

theSpool commented Jun 9, 2020

By the way, how does one get lua5.1.so?

linkoptions { "-l:lua5.1.so" }

@qaisjp
Copy link
Contributor Author

qaisjp commented Jun 9, 2020

Feel free to push to this branch.

lua5.1.so: don't know I just copied the config from multitheftauto/mtasa-blue#120

* AMX pulled from https://github.com/pawn-lang/compiler/tree/Branch_burger
* Delete unused Makefile
* Renamed float.c to amxfloat.c
* Include "linux" files when building for Linux
* Define FLOATPOINT when building AMX
* Only include king.rc when building for Windows
* Only include "linux/" files when building for Linux
* Omit "linux/" from the list of built files (only header is enough)
@theSpool
Copy link

theSpool commented Jun 9, 2020

I went ahead and built lua5.1.so by myself to have it in the lib folder for everyone else to build (since the Windows .lib files where already there anyways). I'll merge master to this PR otherwise it won't build. Linux should build now, I haven't tested it yet though.

@colistro123 colistro123 merged commit 06617a0 into develop Jun 11, 2020
@colistro123 colistro123 deleted the feature/premake branch June 11, 2020 14:23
@colistro123 colistro123 restored the feature/premake branch June 11, 2020 14:26
@qaisjp qaisjp deleted the feature/premake branch June 11, 2020 15:21
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.

Use a better AMX version
4 participants