File: cmake.py

package info (click to toggle)
dh-fortran 0.45
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 492 kB
  • sloc: f90: 5,686; perl: 531; python: 296; makefile: 79; sh: 7
file content (34 lines) | stat: -rw-r--r-- 981 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env python3
"""
CMake fragment handling for dh_fortran

Copyright (C) 2025 Alastair McKinstry <mckinstry@debian.org>
Released under the GPL-3 GNU Public License.
"""

import click
import logging

log = logging.getLogger("dhfortran")

# TODO:
# Look for INTERFACE_INCLUDE_DIRECTORIES
# Edit file (typically XXX-targets.cmake to XXX-$vendor-targets.cmake
#


def clone_and_rename(fname: str) -> str:
    """TODO"""
    pass


# INTERFACE_INCLUDE_DIRECTORIES
#      sed -i -e 's%$${_IMPORT_PREFIX}/lib/libfckit%${LIBDIR}/libfckit%g'            $(TMPDIR)/$(LIBDIR)/cmake/fckit/fckit-targets.cmake
#        sed -i -e 's%$${_IMPORT_PREFIX}/include%/usr/include/${DEB_HOST_MULTIARCH}%g' $(TMPDIR)/$(LIBDIR)/cmake/fckit/fckit-targets.cmake
#        sed -i -e 's%$${_IMPORT_PREFIX}/module%${FMODDIR}%g'                          $(TMPDIR)/$(LIBDIR)/cmake/fckit/fckit-targets.cmake


@click.command
def dh_fortran_cmake(*args):
    """CMake file handler for dh-fortran"""
    pass