def __init__(self, project):
    self.project = project
    toolchain_path = os.path.dirname(project.get_target_var('CC'))
    if (sys.platform == 'darwin'):
        toolchain_path += ':/usr/local/bin'
    toolchain_cross = project.get_target_var('CROSS')
    if toolchain_cross:
        toolchain_cross = os.path.basename(toolchain_cross)
    self.replacement = {'NAME': project.name, 'PRODUCT': project.product, 'VARIANT': project.variant, 'TOOLCHAIN_PATH': toolchain_path, 'TOOLCHAIN_CROSS': toolchain_cross, 'BUILD_DIR': project.build_dir, 'BUILD_CMD': '${CWD}/build.sh', 'BUILD_ARGS': project.build_args, 'BUILD_TARGET': project.build_target, 'CLEAN_TARGET': project.clean_target, 'LINKED_RESOURCES': self._gen_linked_resources, 'SOURCE_ENTRIES': self._gen_source_entries, 'C_INCLUDE_DIRS': self._gen_include_dirs, 'C_DEFINES': self._gen_c_defines, 'C_INCLUDE_FILES': self._gen_include_files, 'CXX_INCLUDE_DIRS': self._gen_include_dirs, 'CXX_DEFINES': self._gen_cxx_defines, 'CXX_INCLUDE_FILES': self._gen_include_files}
def __init__(self, project):
    self.project = project
    toolchain_path = os.path.dirname(project.get_target_var('CC'))
    if (sys.platform == 'darwin'):
        toolchain_path += ':/usr/local/bin'
    toolchain_cross = project.get_target_var('CROSS')
    if toolchain_cross:
        toolchain_cross = os.path.basename(toolchain_cross)
    self.replacement = {'NAME': project.name, 'PRODUCT': project.product, 'VARIANT': project.variant, 'TOOLCHAIN_PATH': toolchain_path, 'TOOLCHAIN_CROSS': toolchain_cross, 'BUILD_DIR': project.build_dir, 'BUILD_CMD': '${CWD}/build.sh', 'BUILD_ARGS': project.build_args, 'BUILD_TARGET': project.build_target, 'CLEAN_TARGET': project.clean_target, 'LINKED_RESOURCES': self._gen_linked_resources, 'SOURCE_ENTRIES': self._gen_source_entries, 'C_INCLUDE_DIRS': self._gen_include_dirs, 'C_DEFINES': self._gen_c_defines, 'C_INCLUDE_FILES': self._gen_include_files, 'CXX_INCLUDE_DIRS': self._gen_include_dirs, 'CXX_DEFINES': self._gen_cxx_defines, 'CXX_INCLUDE_FILES': self._gen_include_files}