-
-
Notifications
You must be signed in to change notification settings - Fork 634
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build(core/rust): exclude ui module from TT build
- Loading branch information
Showing
9 changed files
with
70 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* This file is part of the Trezor project, https://trezor.io/ | ||
* | ||
* Copyright (c) SatoshiLabs | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
#include "py/runtime.h" | ||
|
||
#if MICROPY_PY_TREZORUI2 | ||
|
||
#include "librust.h" | ||
|
||
/// def layout_new_example(text: str) -> None: | ||
/// """Example layout.""" | ||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_trezorui2_layout_new_example_obj, | ||
ui_layout_new_example); | ||
|
||
|
||
STATIC const mp_rom_map_elem_t mp_module_trezorui2_globals_table[] = { | ||
{MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_trezorui2)}, | ||
|
||
{MP_ROM_QSTR(MP_QSTR_layout_new_example), | ||
MP_ROM_PTR(&mod_trezorui2_layout_new_example_obj)}, | ||
}; | ||
|
||
STATIC MP_DEFINE_CONST_DICT(mp_module_trezorui2_globals, | ||
mp_module_trezorui2_globals_table); | ||
|
||
const mp_obj_module_t mp_module_trezorui2 = { | ||
.base = {&mp_type_module}, | ||
.globals = (mp_obj_dict_t *)&mp_module_trezorui2_globals, | ||
}; | ||
|
||
MP_REGISTER_MODULE(MP_QSTR_trezorui2, mp_module_trezorui2, | ||
MICROPY_PY_TREZORUI2); | ||
|
||
#endif // MICROPY_PY_TREZORUI2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ build = "build.rs" | |
|
||
[features] | ||
bitcoin_only = [] | ||
ui = [] | ||
ui_debug = [] | ||
test = ["cc", "glob"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters