File: SConscript

package info (click to toggle)
field3d 1.7.3-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,684 kB
  • sloc: cpp: 25,324; ansic: 2,594; python: 222; sh: 72; makefile: 26
file content (31 lines) | stat: -rw-r--r-- 765 bytes parent folder | download | duplicates (18)
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
# ------------------------------------------------------------------------------

import os
import sys

# ------------------------------------------------------------------------------

pathToRoot = "../../.."

sys.path.append(pathToRoot)

from BuildSupport import *

buildPath = buildDir()
binPath   = join(buildPath, os.path.basename(os.getcwd()))

# ------------------------------------------------------------------------------

Import("env")
appEnv = env.Clone()

setupEnv(appEnv, pathToRoot)
addField3DInstall(appEnv, pathToRoot)

appEnv.VariantDir(buildPath, ".", duplicate = 0)
files = Glob(join(buildPath, "*.cpp"))

app = appEnv.Program(binPath, files)
appEnv.Default(app)

# ------------------------------------------------------------------------------