mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-26 16:18:22 +00:00
unix: use pkg-config in sconscript file, add shell.nix for nix-shell
This commit is contained in:
parent
e1eb405ed7
commit
d2d7efeb12
@ -100,8 +100,6 @@ SOURCE_MOD += [
|
|||||||
]
|
]
|
||||||
if ARGUMENTS.get('TREZOR_EMULATOR_NOUI', 0):
|
if ARGUMENTS.get('TREZOR_EMULATOR_NOUI', 0):
|
||||||
CPPDEFINES_MOD += ['TREZOR_EMULATOR_NOUI']
|
CPPDEFINES_MOD += ['TREZOR_EMULATOR_NOUI']
|
||||||
else:
|
|
||||||
LIBS_MOD += ['SDL2', 'SDL2_image']
|
|
||||||
|
|
||||||
# modtrezorutils
|
# modtrezorutils
|
||||||
SOURCE_MOD += [
|
SOURCE_MOD += [
|
||||||
@ -273,6 +271,9 @@ env.Replace(
|
|||||||
] + CPPDEFINES_MOD,
|
] + CPPDEFINES_MOD,
|
||||||
ASPPFLAGS='$CFLAGS $CCFLAGS', )
|
ASPPFLAGS='$CFLAGS $CCFLAGS', )
|
||||||
|
|
||||||
|
if not ARGUMENTS.get('TREZOR_EMULATOR_NOUI', 0):
|
||||||
|
env.ParseConfig('pkg-config --cflags --libs sdl2 SDL2_image')
|
||||||
|
|
||||||
env.Replace(
|
env.Replace(
|
||||||
PYTHON='python',
|
PYTHON='python',
|
||||||
MAKEQSTRDATA='$PYTHON vendor/micropython/py/makeqstrdata.py',
|
MAKEQSTRDATA='$PYTHON vendor/micropython/py/makeqstrdata.py',
|
||||||
|
Loading…
Reference in New Issue
Block a user