-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfig.py
27 lines (20 loc) · 934 Bytes
/
config.py
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
# config.py
import os
def can_build(env, platform):
module_path = os.path.dirname(os.path.abspath("jsb.h"))
module_name = os.path.basename(module_path)
# `regex` is required for `internal/jsb_source_map_cache`
env.module_add_dependencies(module_name, ["regex"])
return True
def get_opts(platform):
from SCons.Variables import BoolVariable, EnumVariable
return [
BoolVariable("use_typescript", "Build with typescript support (enabled by default)", True),
BoolVariable("use_jsc", "Prefer to use JavaScriptCore (only for macos and ios)", False),
BoolVariable("use_quickjs", "Prefer to use QuickJS rather than the default VM on the current platform", False),
BoolVariable("use_quickjs_ng", "Prefer to use QuickJS-NG rather than the default VM on the current platform", False),
]
def configure(env):
pass
def get_icons_path():
return "weaver-editor/icons"