|
1 |
| -# Copyright (c) 2017-2018, Niklas Hauser |
| 1 | +# Copyright (c) 2017-2021, Niklas Hauser |
2 | 2 | #
|
3 |
| -# This file is part of the modm project. |
| 3 | +# Redistribution and use in source and binary forms, with or without |
| 4 | +# modification, are permitted provided that the following conditions are met: |
4 | 5 | #
|
5 |
| -# This Source Code Form is subject to the terms of the Mozilla Public |
6 |
| -# License, v. 2.0. If a copy of the MPL was not distributed with this |
7 |
| -# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
8 |
| - |
9 |
| -#!/usr/bin/env python3 |
| 6 | +# 1. Redistributions of source code must retain the above copyright notice, this |
| 7 | +# list of conditions and the following disclaimer. |
| 8 | +# |
| 9 | +# 2. Redistributions in binary form must reproduce the above copyright notice, |
| 10 | +# this list of conditions and the following disclaimer in the documentation |
| 11 | +# and/or other materials provided with the distribution. |
| 12 | +# |
| 13 | +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 14 | +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 15 | +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 16 | +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| 17 | +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 18 | +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 19 | +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 20 | +# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 21 | +# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 22 | +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
10 | 23 |
|
11 | 24 | import os
|
12 | 25 | from os.path import join, abspath
|
@@ -36,15 +49,15 @@ sources = []
|
36 | 49 |
|
37 | 50 | %% if has_image_source
|
38 | 51 | # Generating image sources
|
39 |
| -env.Append(CPPPATH="{{ image_source }}") |
| 52 | +env.Append(CPPPATH=abspath("{{ image_source }}")) |
40 | 53 | ignored.append("{{ image_source }}")
|
41 | 54 | for image in env.FindFiles("{{ image_source }}", ".pbm"):
|
42 | 55 | source, _ = env.Bitmap(str(image))
|
43 | 56 | sources.append(source)
|
44 | 57 | %% endif
|
45 | 58 | %% if has_xpcc_generator
|
46 | 59 | # Generating XPCC sources
|
47 |
| -env.Append(CPPPATH="{{ generator_path }}") |
| 60 | +env.Append(CPPPATH=abspath("{{ generator_path }}")) |
48 | 61 | ignored.append("{{ generator_path }}")
|
49 | 62 | sources += env.XpccCommunication(
|
50 | 63 | xmlfile=abspath("{{ generator_source }}"),
|
|
0 commit comments