forked from textmate/textmate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.rave
46 lines (34 loc) · 1.55 KB
/
default.rave
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
set APP_MIN_OS "10.12"
set CS_IDENTITY "-"
set C_FLAGS "-std=c99"
set CXX_FLAGS "-std=c++2a"
set OBJC_FLAGS "${C_FLAGS} -fobjc-abi-version=3 -fobjc-arc"
set OBJCXX_FLAGS "${OBJC_FLAGS} ${CXX_FLAGS} -fobjc-call-cxx-cdtors"
add FLAGS "-funsigned-char"
add FLAGS "-Wall -Wwrite-strings -Wformat -Winit-self -Wmissing-include-dirs"
add FLAGS "-Wno-parentheses -Wno-sign-compare -Wno-switch -Wno-c99-designator"
add FLAGS "-D'NULL_STR=\"\\uFFFF\"' -D'REST_API=\"https://api.textmate.org\"'"
add FLAGS "-IShared/include"
add FLAGS "-mmacosx-version-min=${APP_MIN_OS}"
set LN_FLAGS "-mmacosx-version-min=${APP_MIN_OS} -fobjc-link-runtime"
set IB_FLAGS "--errors --warnings --notices --output-format human-readable-text"
set AC_FLAGS "--errors --warnings --notices --output-format human-readable-text"
add AC_FLAGS "--minimum-deployment-target=${APP_MIN_OS} --platform=macosx"
set CS_FLAGS "--force --options runtime"
set PLIST_FLAGS "-dTARGET_NAME='${target}' -dAPP_MIN_OS='${APP_MIN_OS}'"
prelude Shared/PCH/prelude.*
libraries c++
config debug {
require OakDebug
add FLAGS "-Os"
add FLAGS "-fsanitize=address -fno-omit-frame-pointer"
add LN_FLAGS "-fsanitize=address"
add CS_FLAGS "--timestamp=none"
}
config release {
add FLAGS "-Os -DNDEBUG -flto=thin"
add LN_FLAGS "-flto=thin -Wl,-cache_path_lto,'\\${builddir}/.cache'"
add LN_FLAGS "-Wl,-dead_strip -Wl,-dead_strip_dylibs"
add CS_FLAGS "--timestamp"
}
load local.rave {Applications,Frameworks,PlugIns,vendor}/*/*.rave