Open Bug 512595 Opened 15 years ago Updated 2 years ago

experiment with a gyp project for spidermonkey

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: ted, Unassigned)

References

()

Details

Attachments

(1 file)

gyp (in the URL field) is a meta-build-system written by mento for chromium. You write JSON-like project datafiles, and then run gyp to generate platform-native project files (visual c++ project, xcode, scons, makefiles). Attached is a hack of a gyp file for spidermonkey.
Caveats:
* I hardcoded just enough to get it to build on OS X. This skips a lot of configure tests
* I skipped JIT for now
* I didn't handle the host programs that generate headers (jsautokw.h, jsautooplen.h). We'll need to figure out some other way to do those.
* I didn't handle building the shell
* I didn't do anything with the other configuration options like debug builds etc.

Interesting as a proof of concept, I think.
I think some things similar to bug 417044 would be helpful here. If we move all the CPU-specific bits into the source, that simplifies this quite a bit. Specifically, once you get an XCode project from this, you could build universal binaries very simply.
Product: Core → Firefox Build System
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: