forked from makuto/cakelisp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bootstrap.cake
30 lines (26 loc) · 799 Bytes
/
Bootstrap.cake
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
(set-cakelisp-option executable-output "bin/cakelisp")
(add-c-search-directory-module "src")
(add-cpp-build-dependency
"Tokenizer.cpp"
"Evaluator.cpp"
"Utilities.cpp"
"FileUtilities.cpp"
"Converters.cpp"
"Writer.cpp"
"Generators.cpp"
"GeneratorHelpers.cpp"
"RunProcess.cpp"
"OutputPreambles.cpp"
"DynamicLoader.cpp"
"ModuleManager.cpp"
"Logging.cpp"
"Build.cpp"
"Metadata.cpp"
"Main.cpp")
(add-build-options "-DUNIX" "-Wall" "-Werror" "-std=c++11")
;; Cakelisp dynamically loads compile-time code
(add-library-dependency "dl")
;; Compile-time code can call much of Cakelisp. This flag exposes Cakelisp to dynamic libraries
(add-linker-options "--export-dynamic")
;; Use separate build configuration in case other things build files from src/
(add-build-config-label "Bootstrap")