コード例 #1
0
def set_vcxproj_platform_toolset(path_to_vcxproj, platform_toolset):
    """
    Change platform toolset of vcxproj file
    :param path_to_vcxproj: Path to vcxproj
    :param platform_toolset: Platform toolset
    :return:
    """
    project = Builder(path_to_vcxproj)
    debug_conf = project.get_all_configurations()
    debug_conf.set_platform_toolset(platform_toolset)
    debug_conf.save()
コード例 #2
0
ファイル: assembly.py プロジェクト: saturn4er/HostingPlatform
def set_vcxproj_platform_toolset(path_to_vcxproj, platform_toolset):
    """
    Change platform toolset of vcxproj file
    :param path_to_vcxproj: Path to vcxproj
    :param platform_toolset: Platform toolset
    :return:
    """
    project = Builder(path_to_vcxproj)
    debug_conf = project.get_all_configurations()
    debug_conf.set_platform_toolset(platform_toolset)
    debug_conf.save()
コード例 #3
0
def set_vcxproj_runtime_library(path_to_vcxproj, runtime_library):
    """
    Change runtime library of vcxproj file
    :param path_to_vcxproj: Path to vcxproj
    :param runtime_library: (MT, MD)
    :return:
    """
    if runtime_library not in ('MT', 'MD'):
        raise Exception("Invalid runtime library")
        sys.exit(1)
    project = Builder(path_to_vcxproj)
    debug_conf = project.get_configuration("Debug")
    debug_runtime_library = Builder.runtimeLibraries[runtime_library + "d"]
    debug_conf.set_runtime_library(debug_runtime_library)
    debug_conf.save()

    release_runtime_library = Builder.runtimeLibraries[runtime_library]
    release_conf = project.get_configuration("Release")
    release_conf.set_runtime_library(release_runtime_library)
    release_conf.save()
コード例 #4
0
ファイル: assembly.py プロジェクト: saturn4er/HostingPlatform
def set_vcxproj_runtime_library(path_to_vcxproj, runtime_library):
    """
    Change runtime library of vcxproj file
    :param path_to_vcxproj: Path to vcxproj
    :param runtime_library: (MT, MD)
    :return:
    """
    if runtime_library not in ('MT', 'MD'):
        raise Exception("Invalid runtime library")
        sys.exit(1)
    project = Builder(path_to_vcxproj)
    debug_conf = project.get_configuration("Debug")
    debug_runtime_library = Builder.runtimeLibraries[runtime_library + "d"]
    debug_conf.set_runtime_library(debug_runtime_library)
    debug_conf.save()

    release_runtime_library = Builder.runtimeLibraries[runtime_library]
    release_conf = project.get_configuration("Release")
    release_conf.set_runtime_library(release_runtime_library)
    release_conf.save()
コード例 #5
0
def build_vcxproj(path_to_vcxproj,
                  output_dir=False,
                  configurations=False,
                  architectures=False):
    project = Builder(path_to_vcxproj)
    project.build(configurations, architectures, output_dir)
コード例 #6
0
ファイル: assembly.py プロジェクト: saturn4er/HostingPlatform
def build_vcxproj(path_to_vcxproj, output_dir=False, configurations=False, architectures=False):
    project = Builder(path_to_vcxproj)
    project.build(configurations, architectures, output_dir)