-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSConscript
54 lines (45 loc) · 1.11 KB
/
SConscript
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- python -*-
import os
Import("env")
env = env.Clone()
headers = [
"core/Frame.hpp",
"core/Size.hpp",
"core/Canvas.hpp",
"core/Window.hpp",
"core/WindowManager.hpp",
"layout/ColumnFrame.hpp",
"layout/RowFrame.hpp",
"stream/Stream.hpp",
"window/BufferedWindow.hpp",
"window/InputWindow.hpp",
"window/ListWindow.hpp"
]
sources = [
"core/Window.cpp",
"core/Frame.cpp",
"core/Size.cpp",
"core/Canvas.cpp",
"core/WindowManager.cpp",
"layout/RowFrame.cpp",
"layout/ColumnFrame.cpp",
"window/BufferedWindow.cpp",
"window/BufferedStream.cpp",
"window/InputWindow.cpp",
"window/ListWindow.cpp",
"util/StringUtils.cpp"
]
# Compile
shlib = env.SharedLibrary(
"cwpp",
source = ["src/%s" % x for x in sources],
LIBS = ["ncurses"]
)
# Install
lib_prefix = "/usr/lib"
inc_prefix = "/usr/include/libcwpp"
env.Alias("install", env.Install(lib_prefix, shlib))
for header in headers :
env.Alias("install", env.Install(inc_prefix + os.path.sep + header[:header.rfind('/')], "include/libcwpp/" + header))
# Default target
Default(shlib)