mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-21 22:33:58 +08:00
66 lines
3.3 KiB
Python
Executable File
66 lines
3.3 KiB
Python
Executable File
#!/usr/bin/env python3.7
|
|
# Copyright (c) 2011-2020 Eric Froemling
|
|
#
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
# of this software and associated documentation files (the "Software"), to deal
|
|
# in the Software without restriction, including without limitation the rights
|
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
# copies of the Software, and to permit persons to whom the Software is
|
|
# furnished to do so, subject to the following conditions:
|
|
#
|
|
# The above copyright notice and this permission notice shall be included in
|
|
# all copies or substantial portions of the Software.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
# SOFTWARE.
|
|
# -----------------------------------------------------------------------------
|
|
"""Wee little snippets of functionality specific to this project.
|
|
|
|
All top level functions here can be run by passing them as the first
|
|
argument on the command line. (or pass no arguments to get a list of them).
|
|
|
|
Functions can be placed here when they're not complex enough to warrant
|
|
their own files. Often these functions act as user-facing entry points
|
|
to functionality contained in efrotools or other standalone tool modules.
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
# Note: import as little as possible here at the module level to
|
|
# keep launch times fast for small snippets.
|
|
from typing import TYPE_CHECKING
|
|
|
|
# Pull in the snippets we want to expose. Its more efficient to define them in
|
|
# modules rather than inline here because we'll be able to load them via pyc.
|
|
# pylint: disable=unused-import
|
|
from efrotools.pcommand import (
|
|
PROJROOT, pcommand_main, formatcode, formatscripts, formatmakefile,
|
|
cpplint, pylint, runpylint, mypy, runmypy, dmypy, tool_config_install,
|
|
sync, sync_all, scriptfiles, pycharm, clioncode, androidstudiocode,
|
|
makefile_target_list, spelling, spelling_all, pytest, echo,
|
|
compile_python_files, pyver)
|
|
from batools.pcommand import (
|
|
stage_server_file, py_examine, fix_mac_ssh, check_mac_ssh, resize_image,
|
|
check_clean_safety, clean_orphaned_assets, archive_old_builds,
|
|
lazy_increment_build, get_master_asset_src_dir, androidaddr, push_ipa,
|
|
printcolors, gen_fulltest_buildfile_android,
|
|
gen_fulltest_buildfile_windows, gen_fulltest_buildfile_apple,
|
|
gen_fulltest_buildfile_linux, python_build_apple, python_build_apple_debug,
|
|
python_build_android, python_build_android_debug, python_android_patch,
|
|
python_gather, capitalize, efrocache_update, efrocache_get,
|
|
get_modern_make, warm_start_asset_build, update_docs_md, list_pip_reqs,
|
|
install_pip_reqs, checkenv, ensure_prefab_platform, prefab_run_var,
|
|
make_prefab, update_makebob, lazybuild, android_archive_unstripped_libs,
|
|
efro_gradle, stage_assets, update_assets_makefile, update_project)
|
|
# pylint: enable=unused-import
|
|
|
|
if TYPE_CHECKING:
|
|
pass
|
|
|
|
if __name__ == '__main__':
|
|
pcommand_main(globals())
|