summaryrefslogtreecommitdiffstats
path: root/python/mozbuild/mozbuild/test/backend/data/prog-lib-c-only/moz.build
blob: 7f0a6b430bcb8880c96e0dff1f23aedeace7e70b (plain)
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
35
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/

DIRS += [
    "c-program",
    "cxx-program",
    "c-simple-programs",
    "cxx-simple-programs",
    "c-library",
    "cxx-library",
]


@template
def Program(name):
    PROGRAM = name


@template
def SimplePrograms(names, ext=".cpp"):
    SIMPLE_PROGRAMS += names
    SOURCES += ["%s%s" % (name, ext) for name in names]


@template
def Library(name):
    LIBRARY_NAME = name


@template
def SharedLibrary(name):
    Library(name)

    FORCE_SHARED_LIB = True