A build context. If anything will be built, an instance this class will be instantiated and used to hold all the build state.
| 59 | |
| 60 | |
| 61 | class Context: |
| 62 | '''A build context. If anything will be built, an instance this class |
| 63 | will be instantiated and used to hold all the build state.''' |
| 64 | |
| 65 | # Whether to make a debug or release build |
| 66 | build_as_debuggable = False |
| 67 | |
| 68 | # Whether to strip debug symbols in `.so` files |
| 69 | with_debug_symbols = False |
| 70 | |
| 71 | env = environ.copy() |
| 72 | # the filepath of toolchain.py |
| 73 | root_dir = None |
| 74 | # the root dir where builds and dists will be stored |
| 75 | storage_dir = None |
| 76 | |
| 77 | # in which bootstraps are copied for building |
| 78 | # and recipes are built |
| 79 | build_dir = None |
| 80 | |
| 81 | distribution = None |
| 82 | """The Distribution object representing the current build target location.""" |
| 83 | |
| 84 | # the Android project folder where everything ends up |
| 85 | dist_dir = None |
| 86 | |
| 87 | # Whether setup.py or similar should be used if present: |
| 88 | use_setup_py = False |
| 89 | |
| 90 | ccache = None # whether to use ccache |
| 91 | |
| 92 | ndk = None |
| 93 | |
| 94 | bootstrap = None |
| 95 | bootstrap_build_dir = None |
| 96 | |
| 97 | recipe_build_order = None # Will hold the list of all built recipes |
| 98 | |
| 99 | python_modules = None # Will hold resolved pure python packages |
| 100 | |
| 101 | symlink_bootstrap_files = False # If True, will symlink instead of copying during build |
| 102 | |
| 103 | java_build_tool = 'auto' |
| 104 | |
| 105 | skip_prebuilt = False |
| 106 | |
| 107 | extra_index_urls = [] |
| 108 | |
| 109 | use_prebuilt_version_for = [] |
| 110 | |
| 111 | save_wheel_dir = '' |
| 112 | |
| 113 | @property |
| 114 | def packages_path(self): |
| 115 | '''Where packages are downloaded before being unpacked''' |
| 116 | return join(self.storage_dir, 'packages') |
| 117 | |
| 118 | @property |
no outgoing calls