-
Notifications
You must be signed in to change notification settings - Fork 17
Building on Mac OSX
Below are instructions for setting up a package-building environment for Mac OSX. It describes how to do a batch build of one or more apps and build an installer package.
Ideally the build environment will be on a dedicated machine. Building is preformed by running scripts in the adl-tools repository area. The various openEHR git repositories described in the building from source section must be cloned and the environment set up correctly.
- Python 2.x: Make sure a 2.x version of Python is installed.
- SCons build tool: Python script... installs into the Python install area.
Note: The python and scons command-line tools must be on the PATH in your terminal. Typically they will be installed in a location already on the user PATH. If not, create a shell script to add their locations to the PATH.
Note: This assumes you have an "openEHR" directory containing all the required git repositories. If you've named this directory something else you'll have to adjust the paths accordingly.
-
open a shell (Terminal.app) and cd into openEHR/ad-tools
-
if the environment needs to be set up (PATH and/or other Eiffel Studio variables...) run the shell script you've created to do this
-
run the following to begin the build:
scons downloads/mac_osx/adl_workbench
If everything went well there should be a new package installer at openEHR/adl-tools/openehr/downloads/mac_osx/adl_workbench/ADLWorkbenchInstall
- openEHR/adl-tools/SConstruct - This is the master SCons build script. This tells SCons to build apps in a standard way on all platforms and then decides which installer to invoke based on the platform it is running on.