Code Monkey home page Code Monkey logo

gprbuild's Introduction

Preliminary note for Windows users

The build instructions for gprbuild may have a slight UNIX flavor but they can be used on Windows platforms with a full Cygwin installation. The latter makes it simpler to build gprbuild but is not required to use it.

Bootstrapping

gprbuild needs gprbuild to build... So we also provide a way to easily bootstrap if you don't already have gprbuild, provided you already have installed GNAT.

Download XML/Ada sources (from https://github.com/AdaCore/xmlada), together with the gprconfig knowledge base (from https://github.com/AdaCore/gprconfig_kb).

Run the bootstrap.sh script (written for POSIX systems) specifying the install location and the sources of XML/Ada and gprconfig_kb. The script will build and install gprbuild.

For example, to build gprbuild and install it to ./bootstrap in the current working directory, run:

$ ./bootstrap.sh --with-xmlada=../xmlada --with-kb=../gprconfig_kb --prefix=./bootstrap

For maintainers, the environment DESTDIR is honoured for staged installs, see ./bootstrap.sh -h for more.

With this bootstrapped gprbuild, you can build XML/Ada and gprbuild as documented below.

Configuring

You should first configure the build like this (if you plan to build in the source tree directly, you can omit setting the SOURCE_DIR variable):

$ make prefix=xxx SOURCE_DIR=/path/to/gprbuild/sources setup

Building and Installing

XML/Ada must be installed before building.

Building the main executables is done simply with:

$ make all

When compiling, you can choose whether you want to link statically with XML/Ada (the default), or dynamically. To compile dynamically, you should run:

$ make LIBRARY_TYPE=relocatable all

instead of the above.

Installation is done with:

$ make install

Doc & Examples

The documentation is provided in various formats in the doc subdirectory. You can also find it online.

It refers to concrete examples that are to be found in the examples subdirectory. Each example can be built easily using the simple attached Makefile:

$ make all    # build the example
$ make run    # run the executable(s)
$ make clean  # cleanup

All the examples can be built/run/cleaned using the same targets and the top level examples Makefile.

gprbuild's People

Contributors

vcelier avatar turbogit avatar briot avatar anisimkov avatar gingold-adacore avatar cyrillecomar avatar t-14 avatar jeromeguittonadacore avatar rmorier avatar arnaudcharlet avatar enzbang avatar fedor-rybin avatar lambourg avatar nikokrock avatar bobduff avatar brobecke avatar brosgol avatar pat-rogers avatar setton avatar pmderodat avatar kirtchev-adacore avatar hainque avatar miranda-adacore avatar fabien-chouteau avatar burratoo avatar berrendo avatar asarhaddon avatar atupone avatar joseruizadacore avatar cementitious avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.