Commit Graph

37 Commits

Author SHA1 Message Date
Pierre-Marie de Rodat
8beccff706 Introduce lkm, the replacement for manage.py scripts
This new command line tool has the same CLI as current manage.py
scripts, but automatically loads "langkit.yaml" files configurations, so
that language specs do not have to write Python code to subclass
ManageScript.
2025-01-07 15:09:51 +00:00
Pierre-Marie de Rodat
e2fa718bb2 Create a cmdline script to handle MSVC/.lib file generation 2024-12-03 14:24:29 +00:00
Pierre-Marie de Rodat
059030ba0e Transition "create-project.py" to setuptools' entry_point/console_script
Stop using setuptools' "scripts" feature, now obsolete and bound to
create issues in the future, and use the newer
entry_point/console_script mechanism instead to create the same
command-line tool.

Preserve the "scripts/create-script.py" executable source for
development environment convenience.
2023-12-05 11:45:37 +00:00
Ronan Desplanques
fd7086d576 create-project.py: forward verbosity option
This aligns the behavior of generated projects with what libadalang
does.
2022-12-09 11:41:28 +00:00
Pierre-Marie de Rodat
f760a5f1a2 Reorganize build procedure for Langkit_Support
This commit stops considering Langkit_Support as a generated project:

* move the "langkit/support" directory to "support" (not
  "langkit_support" for convenience with tab-completion);

* move the meat of the "langkit_support_gpr.mako" template to the static
  "langkit_support.gpr" file, and remove the template;

* remove the "build-langkit_support.py" script and all the corresponding
  libmanage.py/langkit_support.py code;

* enhance the top-level "manage.py" script to build/setenv
  Langkit_Support and import the packaging tools from
  "build-langkit_support.py".

From now on, Langkit_Support is a really a standalone library project,
and thus a "real" dependency for Langkit-generated libraries.

TN: T914-012
2020-10-26 15:36:55 +01:00
Raphaël AMIARD
3613e38a24 RA22-015: Transition manage.sh to python
Easier to maintain and to extend.
2020-06-04 15:39:21 +02:00
Pierre-Marie de Rodat
2b9b33d6a0 Remove __future__ imports and adjust stylechecks
TN: T511-017
2020-05-26 12:33:48 +02:00
Pierre-Marie de Rodat
92c3637a38 Transition to Python3
TN: T511-017
2020-05-26 12:33:48 +02:00
Pierre-Marie de Rodat
f3e5e73c9e create-project.py: fix a Python3 syntax error
In Python3, octal notation for integer literals requires the "0o"
prefix.

TN: T511-017
2020-05-26 12:33:48 +02:00
Raphaël AMIARD
3ae12509e3 Minor: clean build space for lib*lang before building
This ensures that if the version of GNAT has changed, we won't get an
uncaught exception from out of date libraries.
2020-03-12 14:42:52 +01:00
Raphaël AMIARD
90cb557908 RA22-015: Add lkt to the list of build deps 2020-02-25 11:40:10 +01:00
Romain Beguet
b412b6ea0b RA22-015: Install libpythonlang on travis. 2020-02-12 14:56:10 +01:00
Pierre-Marie de Rodat
d282c0f54f Make it possible to tune packaging platform on the command line
This is necessary in order to properly build a package for x86-linux on
x86_64-linux platforms, for instance.

TN: T127-017
2020-02-11 10:37:24 +01:00
Pierre-Marie de Rodat
b64a1d6804 build-langkit_support.py: add package-deps and package-std-dyn commands
These commands will allow one to easily package runtime dependencies for
Langkit-generated libraries.

TN: T127-017
2020-02-03 14:38:44 +01:00
Pierre-Marie de Rodat
60b9409e73 build-langkit_support.py: add --build-mode to the install command
TN: SA30-026
2019-11-05 14:34:44 +01:00
Pierre-Marie de Rodat
4ecc6aa871 Fix pastos in --library-types descriptions
TN: S402-020
2019-04-03 14:43:30 +02:00
Pierre-Marie de Rodat
50c1d316a0 libmanage.py: rework options to select library types
Remove the --enable-shared, --enable-static, --disable-shared and
--enable-static command-line options and introduce the --library-types
one. Keep the previous default behavior (build only shared libs by
default).

TN: S402-020
2019-04-02 17:57:29 +02:00
Pierre-Marie de Rodat
6eaee30705 scripts/create-project.py: enhance command-line doc 2019-02-07 17:44:36 +01:00
Pierre-Marie de Rodat
ffd078a4e5 Add a warning for undocumented nodes
TN: S129-007
2019-01-29 17:12:15 +01:00
Pierre-Marie de Rodat
a169aa8d4f build-langkit_support.py: forward build mode to ManageScript.run
TN: R326-060
2018-03-28 15:15:36 +02:00
Pierre-Marie de Rodat
e906a73c70 build-langkit_support.py: forward --gargs build options
no-tn-check
2018-03-13 09:12:42 +01:00
Pierre-Marie de Rodat
b3d5715d7c create-project.py: remove uses of the Row parser
TN: QB07-038
2017-11-07 18:06:58 +01:00
Pierre-Marie de Rodat
ed103c8d8f Add a script to independently build and install Langkit_Support
TN: Q712-023
2017-09-12 16:54:40 +02:00
Pierre-Marie de Rodat
d967b1b3d2 Remove the root_grammar_class decorator
TN: Q606-051
2017-06-14 11:45:44 +02:00
Pierre-Marie de Rodat
e3c70979cc create-project.py: replace the .compiled_type dep. with langkit.dsl
TN: Q606-051
2017-06-13 10:47:21 +02:00