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

Refactor the build system for Linux and Mac OS X #632

Merged
merged 2 commits into from Sep 1, 2015

Conversation

jen20
Copy link
Contributor

@jen20 jen20 commented Sep 1, 2015

This pull request changes the build process for Linux and Mac OS X. It no longer co-mingles the build of libjs1 with the build of Event Store. Instead, when building Event Store, we assume a pre-built version of libjs1.[so|dylib] is available in src/libs/x64/<current distro/version>.

The current distro and version is detected using a modified version of a script by Boundary (Apache license, see scripts/build-js1/detect-system.sh). It can also be overridden as the final parameter to the build script.

Pre-build versions of libjs1 are included for:

  • Amazon Linux 2015.03
  • Ubuntu Linux 14.04 (LTS)
  • Mac OS X Yosemite (10.10)

Changes are as follows:

  • Remove support for specifying platform (x64 vs x86) - only x64 is supported for Event Store.
  • Add libjs1 built for Amazon Linux 2015.03
  • Add script for building libjs1 on different Linux distros
  • Add libjs1 build script for MacOS X
  • Remove werror flag setting from build.sh - this is now handled by the build scripts for libjs1 only
  • Remove actions from the build script for Event Store. The only remaining action is "quick" and there is no parameter for this
  • Rename libs/x64/ubuntu-trusty -> ubuntu-14.04
  • Rename libs/x64/mac -> osx-10.10

The README is updated with the latest build instructions, as well as directing to the new documentation path.

This commit changes the build process for Linux and Mac OS X. It no
longer co-mingles the build of libjs1 with the build of Event Store.
Instead, when building Event Store, we assume a pre-built version of
libjs1.[so|dylib] is available in src/libs/x64/<current distro/version>.

The current distro and version is detected using a modified version of a
script by Boundary (Apache license, see scripts/build-js1/detect-system.sh).
It can also be overriden as the final parameter to the build script.

Pre-build versions of libjs1 are included for:
- Amazon Linux 2015.03
- Ubuntu Linux 14.04 (LTS)
- Mac OS X Yosemite (10.10)

Changes are as follows:

- Remove support for specifying platform (x64 vs x86) - only x64 is
  supported for Event Store.
- Add libjs1 built for Amazon Linux 2015.03
- Add script for building JS1 on different Linux distros
- Add js1 build script for MacOS X
- Remove werror flag setting from build.sh - this is now handled by the
  build scripts for libjs1 only
- Remove actions from the build script for Event Store. The only
  remaining action is "quick" and there is no parameter for this
- Rename libs/x64/ubuntu-trusty -> ubuntu-14.04
- Rename libs/x64/mac -> osx-10.10

The README is updated with the latest build instructions, as well as
directing to the new documentation path.
@jen20 jen20 added kind/enhancement Issues which are a new feature area/documentation Issues relating to project documentation labels Sep 1, 2015
After we establish the current distribution, we need to check if the
libjs1 file instead of the directory exists
pgermishuys added a commit that referenced this pull request Sep 1, 2015
Refactor the build system for Linux and Mac OS X
@pgermishuys pgermishuys merged commit 68da7c8 into release-v3.2.0 Sep 1, 2015
@pgermishuys pgermishuys deleted the unix-build-refactor branch September 1, 2015 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Issues relating to project documentation kind/enhancement Issues which are a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants