objdictgen/canfestival_config.py.in
author Edouard Tisserant
Thu, 24 Jan 2019 13:53:01 +0100
changeset 808 de1fc3261f21
parent 769 b9e6ab1c022c
permissions -rw-r--r--
Adding -fPIC isn't necessary of xeno-config is set correctly. Backed out changeset b9f1fcda7d30
279
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
     1
#
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
     2
# Copyright (C) 2006 Laurent Bessard
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
     3
# 
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
     4
# This file is part of canfestival, a library implementing the canopen
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
     5
# stack
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
     6
# 
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
     7
# This library is free software; you can redistribute it and/or
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
     8
# modify it under the terms of the GNU Lesser General Public
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
     9
# License as published by the Free Software Foundation; either
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    10
# version 2.1 of the License, or (at your option) any later version.
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    11
# 
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    12
# This library is distributed in the hope that it will be useful,
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    15
# Lesser General Public License for more details.
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    16
# 
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    17
# You should have received a copy of the GNU Lesser General Public
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    18
# License along with this library; if not, write to the Free Software
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    19
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    20
# 
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    21
from os.path import join as opj
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    22
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    23
CC = "SUB_CC"
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    24
PROG_CFLAGS = "SUB_PROG_CFLAGS"
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    25
EXE_CFLAGS = "SUB_EXE_CFLAGS"
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    26
OS_NAME = "SUB_OS_NAME"
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    27
ARCH_NAME = "SUB_ARCH_NAME"
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    28
PREFIX = "SUB_PREFIX"
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    29
TARGET = "SUB_TARGET"
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    30
CAN_DRIVER = "SUB_CAN_DRIVER"
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    31
TIMERS_DRIVER = "SUB_TIMERS_DRIVER"
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    32
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    33
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    34
def getCFLAGS(Cpth):
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    35
	ipth = opj(Cpth, "include")
397
f9e720b220ea Fixed problem with spaces in paths in generated canfetival_config.py
etisserant
parents: 279
diff changeset
    36
	return PROG_CFLAGS + ' -I"' + ipth  + '" -I"' + opj(ipth, TARGET)  + '" -I"' + opj(ipth, CAN_DRIVER)  + '" -I"' + opj(ipth,TIMERS_DRIVER) + '"'
279
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    37
9b69f2fabafe added config.py.in, filled by configure, so that python program using objdictedit can gat compilation params. Reomved old dead files.
etisserant
parents:
diff changeset
    38
def getLDFLAGS(Cpth):
397
f9e720b220ea Fixed problem with spaces in paths in generated canfetival_config.py
etisserant
parents: 279
diff changeset
    39
    return EXE_CFLAGS + ' "' + opj(Cpth,"src","libcanfestival.a") + '" "' + opj(Cpth,"drivers", TARGET, "libcanfestival_%s.a"%TARGET)+ '"'
f9e720b220ea Fixed problem with spaces in paths in generated canfetival_config.py
etisserant
parents: 279
diff changeset
    40
769
b9e6ab1c022c Configure now initialize DLL_LIST in objdictgen/canfestival_config.py, required by Beremiz' CanFestival plugin
Edouard Tisserant
parents: 397
diff changeset
    41
# herafter is appended DLL_LIST declaration
b9e6ab1c022c Configure now initialize DLL_LIST in objdictgen/canfestival_config.py, required by Beremiz' CanFestival plugin
Edouard Tisserant
parents: 397
diff changeset
    42