mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-22 08:53:44 +08:00
reduce ui scons imports
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
import os
|
||||
import json
|
||||
Import('env', 'arch', 'common', 'messaging', 'visionipc', 'transformations')
|
||||
|
||||
raylib_env = env.Clone()
|
||||
|
||||
Import('env', 'arch', 'common')
|
||||
|
||||
# compile gettext .po -> .mo translations
|
||||
with open(File("translations/languages.json").abspath) as f:
|
||||
@@ -14,13 +11,14 @@ po_sources = [src for src in po_sources if os.path.exists(File(src).abspath)]
|
||||
mo_targets = [src.replace(".po", ".mo") for src in po_sources]
|
||||
mo_build = []
|
||||
for src, tgt in zip(po_sources, mo_targets):
|
||||
mo_build.append(raylib_env.Command(tgt, src, "msgfmt -o $TARGET $SOURCE"))
|
||||
mo_alias = raylib_env.Alias('mo', mo_build)
|
||||
raylib_env.AlwaysBuild(mo_alias)
|
||||
mo_build.append(env.Command(tgt, src, "msgfmt -o $TARGET $SOURCE"))
|
||||
mo_alias = env.Alias('mo', mo_build)
|
||||
env.AlwaysBuild(mo_alias)
|
||||
|
||||
if GetOption('extras'):
|
||||
# build installers
|
||||
if arch != "Darwin":
|
||||
raylib_env = env.Clone()
|
||||
raylib_env['LIBPATH'] += [f'#third_party/raylib/{arch}/']
|
||||
raylib_env['LINKFLAGS'].append('-Wl,-strip-debug')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user