Esempio n. 1
0
def main():
    if len(sys.argv) < 3:
        print("Usage: python get_gmm_headers.py <include_path> <build_path>")
        return

    dst_path = sys.argv[1]
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)
    dst_path = os.path.join(dst_path, "igdgmm")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)
    dst_path = os.path.join(dst_path, "inc")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)
    dst_path = os.path.join(dst_path, "common")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)

    clone_path = sys.argv[2]
    clone_path = os.path.join(clone_path, "gmmlib")
    build_utils.clone(url, commit, clone_path)

    src_path = os.path.join(clone_path, "Source")
    src_path = os.path.join(src_path, "inc")
    src_path = os.path.join(src_path, "common")

    build_utils.copy(src_path, dst_path, ["igfxfmid.h"])
Esempio n. 2
0
def main():
    if len(sys.argv) < 3:
        print("Usage: python get_gtpin_libs.py <lib_path> <build_path>")
        return

    dst_path = sys.argv[1]
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)
    dst_path = os.path.join(dst_path, "GTPIN")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)

    build_path = sys.argv[2]
    root_path = build_utils.get_root(sys.argv[2])
    gtpin_path = os.path.join(root_path, "gtpin")
    arch_file = os.path.join(gtpin_path, "external-gtpin-2.9.1-linux.tar.bz2")
    build_utils.unpack(arch_file, build_path)

    src_path = os.path.join(build_path, "Profilers")
    src_path = os.path.join(src_path, "Lib")
    src_path = os.path.join(src_path, "intel64")

    build_utils.copy(src_path, dst_path, [
        "libgcc_s.so.1", "libged.so", "libgtpin.so", "libgtpin_core.so",
        "libiga_wrapper.so", "libstdc++.so.6"
    ])
def main():
    if len(sys.argv) < 3:
        print(
            "Usage: python get_ocl_tracing_headers.py <include_path> <build_path>"
        )
        return

    dst_path = sys.argv[1]
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)
    dst_path = os.path.join(dst_path, "CL")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)

    clone_path = sys.argv[2]
    clone_path = os.path.join(clone_path, "compute-runtime")
    build_utils.clone(url, commit, clone_path)

    src_path = os.path.join(clone_path, "opencl")
    src_path = os.path.join(src_path, "source")
    src_path = os.path.join(src_path, "tracing")

    build_utils.copy(src_path, dst_path, ["tracing_api.h", "tracing_types.h"])

    postprocess(os.path.join(dst_path, "tracing_api.h"))
Esempio n. 4
0
def main():
    if len(sys.argv) < 3:
        print("Usage: python get_igc_headers.py <include_path> <build_path>")
        return

    dst_path = sys.argv[1]
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)
    dst_path = os.path.join(dst_path, "igc")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)
    dst_path = os.path.join(dst_path, "ocl_igc_shared")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)
    dst_path = os.path.join(dst_path, "executable_format")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)

    clone_path = sys.argv[2]
    clone_path = os.path.join(clone_path, "intel-graphics-compiler")
    build_utils.clone(url, commit, clone_path)

    src_path = os.path.join(clone_path, "IGC")
    src_path = os.path.join(src_path, "AdaptorOCL")
    src_path = os.path.join(src_path, "ocl_igc_shared")
    src_path = os.path.join(src_path, "executable_format")

    build_utils.copy(src_path, dst_path,
                     ["program_debug_data.h", "patch_list.h"])
Esempio n. 5
0
def main():
    if len(sys.argv) < 3:
        print("Usage: python get_iga_headers.py <include_path> <build_path>")
        return

    dst_path = sys.argv[1]
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)
    dst_path = os.path.join(dst_path, "IGA")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)

    clone_path = sys.argv[2]
    clone_path = os.path.join(clone_path, "intel-graphics-compiler")
    build_utils.clone(url, commit, clone_path)

    src_path = os.path.join(clone_path, "visa")
    src_path = os.path.join(src_path, "iga")
    src_path = os.path.join(src_path, "IGALibrary")
    src_path = os.path.join(src_path, "api")

    build_utils.copy(src_path, dst_path, [
        "iga.h", "iga_types_ext.hpp", "iga_types_swsb.hpp", "iga_bxml_ops.hpp",
        "iga_bxml_enums.hpp", "kv.h", "kv.hpp"
    ])
Esempio n. 6
0
def main():
    if len(sys.argv) < 3:
        print("Usage: python get_gtpin_libs.py <lib_path> <build_path>")
        return

    dst_path = sys.argv[1]
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)
    dst_path = os.path.join(dst_path, "GTPIN")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)

    build_path = sys.argv[2]
    gtpin_package = "external-gtpin-2.12-linux.tar.bz2"
    build_utils.download(
        "https://software.intel.com/content/dam/develop/public/us/en/protected/"
        + gtpin_package, build_path)
    arch_file = os.path.join(build_path, gtpin_package)
    build_utils.unpack(arch_file, build_path)

    src_path = os.path.join(build_path, "Profilers")
    src_path = os.path.join(src_path, "Lib")
    src_path = os.path.join(src_path, "intel64")

    build_utils.copy(src_path, dst_path, [
        "libgcc_s.so.1", "libged.so", "libgtpin.so", "libgtpin_core.so",
        "libiga_wrapper.so", "libstdc++.so.6"
    ])
Esempio n. 7
0
def main():
  if len(sys.argv) < 3:
    print("Usage: python get_gtpin_headers.py <include_path> <build_path>")
    return

  dst_path = sys.argv[1]
  if (not os.path.exists(dst_path)):
    os.mkdir(dst_path)
  dst_path = os.path.join(dst_path, "GTPIN")
  if (not os.path.exists(dst_path)):
    os.mkdir(dst_path)
  
  build_path = sys.argv[2]
  gtpin_package = "external-gtpin-2.12-linux.tar.bz2"
  build_utils.download("https://software.intel.com/content/dam/develop/public/us/en/protected/" + gtpin_package, build_path)
  arch_file = os.path.join(build_path, gtpin_package)
  build_utils.unpack(arch_file, build_path)

  src_path = os.path.join(build_path, "Profilers")
  src_path = os.path.join(src_path, "Include")

  build_utils.copy(src_path, dst_path,
    ["callbacks.h",
     "client_knob.h",
     "ged_ops.h",
     "gtpin_deprecated_types.h",
     "gtpin.h",
     "gtpin.hpp",
     "gtpintool_types.h",
     "init.h",
     "kernel.h",
     "knob.h",
     "knob_defs.h",
     "send_exec_semantics.h"])

  dst_path = os.path.join(dst_path, "ged")
  if (not os.path.exists(dst_path)):
    os.mkdir(dst_path)
  dst_path = os.path.join(dst_path, "intel64")
  if (not os.path.exists(dst_path)):
    os.mkdir(dst_path)

  src_path = os.path.join(src_path, "ged")
  src_path = os.path.join(src_path, "intel64")

  build_utils.copy(src_path, dst_path,
    ["ged_basic_types.h",
     "ged_enumerations.h",
     "ged_enum_types.h",
     "ged.h",
     "ged_ins_field.h"])
Esempio n. 8
0
def main():
  if len(sys.argv) < 3:
    print("Usage: python get_ocl_headers.py <include_path> <build_path>")
    return

  dst_path = sys.argv[1]
  if (not os.path.exists(dst_path)):
    os.mkdir(dst_path)
  dst_path = os.path.join(dst_path, "CL")
  if (not os.path.exists(dst_path)):
    os.mkdir(dst_path)

  clone_path = sys.argv[2]
  clone_path = os.path.join(clone_path, "OpenCL-Headers")
  build_utils.clone(url, commit, clone_path)

  src_path = os.path.join(clone_path, "CL")
  build_utils.copy(src_path, dst_path, ["cl.h", "cl_gl.h", "cl_version.h", "cl_platform.h"])
Esempio n. 9
0
def main():
    if len(sys.argv) < 3:
        print("Usage: python get_md_headers.py <include_path> <build_path>")
        return

    dst_path = sys.argv[1]
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)

    clone_path = sys.argv[2]
    clone_path = os.path.join(clone_path, "metrics-discovery")
    build_utils.clone(url, commit, clone_path)

    src_path = os.path.join(clone_path, "inc")
    src_path = os.path.join(src_path, "common")
    src_path = os.path.join(src_path, "instrumentation")
    src_path = os.path.join(src_path, "api")

    build_utils.copy(src_path, dst_path, ["metrics_discovery_api.h"])
Esempio n. 10
0
def main():
    if len(sys.argv) < 3:
        print("Usage: python get_gtpin_headers.py <include_path> <build_path>")
        return

    dst_path = sys.argv[1]
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)
    dst_path = os.path.join(dst_path, "GTPIN")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)

    build_path = sys.argv[2]
    root_path = build_utils.get_root(sys.argv[2])
    gtpin_path = os.path.join(root_path, "gtpin")
    arch_file = os.path.join(gtpin_path, "external-gtpin-2.9.1-linux.tar.bz2")
    build_utils.unpack(arch_file, build_path)

    src_path = os.path.join(build_path, "Profilers")
    src_path = os.path.join(src_path, "Include")

    build_utils.copy(src_path, dst_path, [
        "callbacks.h", "client_knob.h", "ged_ops.h",
        "gtpin_deprecated_types.h", "gtpin.h", "gtpin.hpp",
        "gtpintool_types.h", "init.h", "kernel.h", "knob.h", "knob_defs.h"
    ])

    dst_path = os.path.join(dst_path, "ged")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)
    dst_path = os.path.join(dst_path, "intel64")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)

    src_path = os.path.join(src_path, "ged")
    src_path = os.path.join(src_path, "intel64")

    build_utils.copy(src_path, dst_path, [
        "ged_basic_types.h", "ged_enumerations.h", "ged_enum_types.h", "ged.h",
        "ged_ins_field.h"
    ])
Esempio n. 11
0
def main():
    if len(sys.argv) < 3:
        print("Usage: python get_itt.py <include_path> <build_path>")
        return

    dst_path = sys.argv[1]
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)
    dst_path = os.path.join(dst_path, "ITT")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)

    clone_path = sys.argv[2]
    clone_path = os.path.join(clone_path, "ittapi")
    build_utils.clone(url, commit, clone_path)

    src_path = os.path.join(clone_path, "src")
    src_path = os.path.join(src_path, "ittnotify")
    build_utils.copy(src_path, dst_path, [
        "disable_warnings.h", "ittnotify_config.h", "ittnotify_static.c",
        "ittnotify_static.h", "ittnotify_types.h"
    ])

    src_path = os.path.join(clone_path, "include")
    build_utils.copy(src_path, dst_path, ["ittnotify.h"])

    dst_path = os.path.join(dst_path, "legacy")
    if (not os.path.exists(dst_path)):
        os.mkdir(dst_path)

    src_path = os.path.join(src_path, "legacy")
    build_utils.copy(src_path, dst_path, ["ittnotify.h"])
Esempio n. 12
0
def MakeRelease(plat, profile):
    NBPAL_VERSION = ""
    ABPAL_VERSION = ""
    CORESERVICES_VERSION = ""
    NBSERVICES_VERSION = ""
    ABSERVICES_VERSION = ""

    line = os.path.abspath('')
    splitPath = line.split('\\')
    #CURRENT_DIRECTORY is a branch name
    CURRENT_DIRECTORY = splitPath[len(splitPath) - 1]

    CFG_POSTFIX = ""
    PROFILE = profile

    if plat == "w32":
        CFG_POSTFIX = "win32"
    elif plat == "wm":
        CFG_POSTFIX = "winmobile"
    elif plat == "brew_arm" or plat == "brew":
        CFG_POSTFIX = "brew"
    elif plat == "qt_qnx":
        CFG_POSTFIX = "qt_qnx"
    else:
        CFG_POSTFIX = plat

    LIB_VERSION = build_utils.SimpleFileRead("../../build/" +
                                             CURRENT_DIRECTORY + "/version_" +
                                             CFG_POSTFIX + ".txt")
    BASE_PACKAGE_DIR = "CoreSDK_" + LIB_VERSION + "_" + CFG_POSTFIX + "_internal"
    BIN_PACKAGE_DIR = "CoreSDK_" + LIB_VERSION + "_" + CFG_POSTFIX + "_internal" + "/bin"
    INC_DIRECTORY = "CoreSDK_" + LIB_VERSION + "_" + CFG_POSTFIX + "_internal" + "/include"
    PLATFORM_INC_DIRECTORY = INC_DIRECTORY + "/" + CFG_POSTFIX

    NBPAL_VERSION = build_utils.SimpleFileRead("../../nbpal/" +
                                               CURRENT_DIRECTORY +
                                               "/resources/" + CFG_POSTFIX +
                                               "/version.txt")
    ABPAL_VERSION = build_utils.SimpleFileRead("../../abpal/" +
                                               CURRENT_DIRECTORY +
                                               "/resources/" + CFG_POSTFIX +
                                               "/version.txt")
    CORESERVICES_VERSION = build_utils.SimpleFileRead("../../coreservices/" +
                                                      CURRENT_DIRECTORY +
                                                      "/resources/version.txt")
    NBSERVICES_VERSION = build_utils.SimpleFileRead("../../nbservices/" +
                                                    CURRENT_DIRECTORY +
                                                    "/resources/version.txt")
    ABSERVICES_VERSION = build_utils.SimpleFileRead("../../abservices/" +
                                                    CURRENT_DIRECTORY +
                                                    "/resources/version.txt")
    NBGM_VERSION = build_utils.SimpleFileRead("../../nbgm/" +
                                              CURRENT_DIRECTORY +
                                              "/resources/" + CFG_POSTFIX +
                                              "/version.txt")

    NBPAL_OUTPUT_DIR = "../../nbpal/" + CURRENT_DIRECTORY + "/output"
    build_utils.makedir(NBPAL_OUTPUT_DIR)

    ABPAL_OUTPUT_DIR = "../../abpal/" + CURRENT_DIRECTORY + "/output"
    build_utils.makedir(ABPAL_OUTPUT_DIR)

    CORESERVICES_OUTPUT_DIR = "../../coreservices/" + CURRENT_DIRECTORY + "/output"
    build_utils.makedir(CORESERVICES_OUTPUT_DIR)

    NBSERVICES_OUTPUT_DIR = "../../nbservices/" + CURRENT_DIRECTORY + "/output"
    build_utils.makedir(NBSERVICES_OUTPUT_DIR)

    ABSERVICES_OUTPUT_DIR = "../../abservices/" + CURRENT_DIRECTORY + "/output"
    build_utils.makedir(ABSERVICES_OUTPUT_DIR)

    NBGM_OUTPUT_DIR = "../../nbgm/" + CURRENT_DIRECTORY + "/output"
    build_utils.makedir(NBGM_OUTPUT_DIR)

    build_utils.makedir(BIN_PACKAGE_DIR)
    build_utils.makedir(INC_DIRECTORY)
    build_utils.makedir(PLATFORM_INC_DIRECTORY)

    build_utils.SimpleFileWrite(BASE_PACKAGE_DIR + "/manifest.txt",
                                "name: CoreSDK\n")
    build_utils.appendfile(BASE_PACKAGE_DIR + "/manifest.txt",
                           "version: %s\n" % LIB_VERSION)
    build_utils.appendfile(BASE_PACKAGE_DIR + "/manifest.txt",
                           "platform: " + CFG_POSTFIX + "\n")
    build_utils.appendfile(BASE_PACKAGE_DIR + "/manifest.txt",
                           "profile: %s\n" % PROFILE)
    build_utils.appendfile(BASE_PACKAGE_DIR + "/manifest.txt",
                           "abpal: %s\n" % ABPAL_VERSION)
    build_utils.appendfile(BASE_PACKAGE_DIR + "/manifest.txt",
                           "nbservices: %s\n" % NBSERVICES_VERSION)
    build_utils.appendfile(BASE_PACKAGE_DIR + "/manifest.txt",
                           "abservices: %s\n" % ABSERVICES_VERSION)
    build_utils.appendfile(BASE_PACKAGE_DIR + "/manifest.txt",
                           "nbpal: %s\n" % NBPAL_VERSION)
    build_utils.appendfile(BASE_PACKAGE_DIR + "/manifest.txt",
                           "coreservices: %s\n" % CORESERVICES_VERSION)
    build_utils.appendfile(BASE_PACKAGE_DIR + "/manifest.txt",
                           "nbgm: %s\n" % NBGM_VERSION)

    #Copy libs into release folder

    # We currently don't use version numbers anymore for the lib files. If we want to use version numbers again,
    # then we can comment out this code.
    #  version = LIB_VERSION.split('.')
    #  LIB_MAJOR_MINOR = version[0] + version[1]
    LIB_MAJOR_MINOR = ""

    ext = ".lib"
    prefix = ""
    if plat == "qt_qnx":
        ext = ".a"
        prefix = "lib"

    if plat != "brew_arm":
        build_utils.copy(
            "../../nbpal/" + CURRENT_DIRECTORY + "/output/" + CFG_POSTFIX +
            "/" + PROFILE + "/" + prefix + "nbpal" + LIB_MAJOR_MINOR + ext,
            BIN_PACKAGE_DIR + "/nbpal" + LIB_MAJOR_MINOR + ext)
        build_utils.copy(
            "../../abpal/" + CURRENT_DIRECTORY + "/output/" + CFG_POSTFIX +
            "/" + PROFILE + "/" + prefix + "abpal" + LIB_MAJOR_MINOR + ext,
            BIN_PACKAGE_DIR + "/abpal" + LIB_MAJOR_MINOR + ext)
        build_utils.copy(
            "../../coreservices/" + CURRENT_DIRECTORY + "/output/" +
            CFG_POSTFIX + "/" + PROFILE + "/" + prefix + "coreservices" +
            LIB_MAJOR_MINOR + ext,
            BIN_PACKAGE_DIR + "/coreservices" + LIB_MAJOR_MINOR + ext)
        build_utils.copy(
            "../../nbservices/" + CURRENT_DIRECTORY + "/output/" +
            CFG_POSTFIX + "/" + PROFILE + "/" + prefix + "nbservices" +
            LIB_MAJOR_MINOR + ext,
            BIN_PACKAGE_DIR + "/nbservices" + LIB_MAJOR_MINOR + ext)
        build_utils.copy(
            "../../abservices/" + CURRENT_DIRECTORY + "/output/" +
            CFG_POSTFIX + "/" + PROFILE + "/" + prefix + "abservices" +
            LIB_MAJOR_MINOR + ext,
            BIN_PACKAGE_DIR + "/abservices" + LIB_MAJOR_MINOR + ext)
        build_utils.copy(
            "../../nbgm/" + CURRENT_DIRECTORY + "/output/" + CFG_POSTFIX +
            "/" + PROFILE + "/" + prefix + "nbgm" + LIB_MAJOR_MINOR + ext,
            BIN_PACKAGE_DIR + "/nbgm" + LIB_MAJOR_MINOR + ext)
        build_utils.copy(
            "../../nbui/" + CURRENT_DIRECTORY + "/output/" + CFG_POSTFIX +
            "/" + PROFILE + "/" + prefix + "nbui" + LIB_MAJOR_MINOR + ext,
            BIN_PACKAGE_DIR + "/nbui" + LIB_MAJOR_MINOR + ext)
        build_utils.copy(
            "../../nav/" + CURRENT_DIRECTORY + "/output/" + CFG_POSTFIX + "/" +
            PROFILE + "/" + prefix + "nav" + LIB_MAJOR_MINOR + ext,
            BIN_PACKAGE_DIR + "/nav" + LIB_MAJOR_MINOR + ext)

    #Copy dll into release folder
    if CFG_POSTFIX.startswith(
            "win") and not profile.lower().endswith("static"):
        build_utils.copy(
            "../../nbpal/" + CURRENT_DIRECTORY + "/output/" + CFG_POSTFIX +
            "/" + PROFILE + "/nbpal" + LIB_MAJOR_MINOR + ".dll",
            BIN_PACKAGE_DIR + "/nbpal" + LIB_MAJOR_MINOR + ".dll")
        build_utils.copy(
            "../../abpal/" + CURRENT_DIRECTORY + "/output/" + CFG_POSTFIX +
            "/" + PROFILE + "/abpal" + LIB_MAJOR_MINOR + ".dll",
            BIN_PACKAGE_DIR + "/abpal" + LIB_MAJOR_MINOR + ".dll")
        build_utils.copy(
            "../../coreservices/" + CURRENT_DIRECTORY + "/output/" +
            CFG_POSTFIX + "/" + PROFILE + "/coreservices" + LIB_MAJOR_MINOR +
            ".dll",
            BIN_PACKAGE_DIR + "/coreservices" + LIB_MAJOR_MINOR + ".dll")
        build_utils.copy(
            "../../nbservices/" + CURRENT_DIRECTORY + "/output/" +
            CFG_POSTFIX + "/" + PROFILE + "/nbservices" + LIB_MAJOR_MINOR +
            ".dll", BIN_PACKAGE_DIR + "/nbservices" + LIB_MAJOR_MINOR + ".dll")
        build_utils.copy(
            "../../abservices/" + CURRENT_DIRECTORY + "/output/" +
            CFG_POSTFIX + "/" + PROFILE + "/abservices" + LIB_MAJOR_MINOR +
            ".dll", BIN_PACKAGE_DIR + "/abservices" + LIB_MAJOR_MINOR + ".dll")
        build_utils.copy(
            "../../nbgm/" + CURRENT_DIRECTORY + "/output/" + CFG_POSTFIX +
            "/" + PROFILE + "/nbgm" + LIB_MAJOR_MINOR + ".dll",
            BIN_PACKAGE_DIR + "/nbgm" + LIB_MAJOR_MINOR + ".dll")
        build_utils.copy(
            "../../nbui/" + CURRENT_DIRECTORY + "/output/" + CFG_POSTFIX +
            "/" + PROFILE + "/nbui" + LIB_MAJOR_MINOR + ".dll",
            BIN_PACKAGE_DIR + "/nbui" + LIB_MAJOR_MINOR + ".dll")
        build_utils.copy(
            "../../nav/" + CURRENT_DIRECTORY + "/output/" + CFG_POSTFIX + "/" +
            PROFILE + "/nav" + LIB_MAJOR_MINOR + ".dll",
            BIN_PACKAGE_DIR + "/nav" + LIB_MAJOR_MINOR + ".dll")

    #Copy headers into release folder
    build_utils.copyfiles("../../nbpal/" + CURRENT_DIRECTORY + "/include/*.*",
                          INC_DIRECTORY)
    build_utils.copyfiles(
        "../../nbpal/" + CURRENT_DIRECTORY + "/include/" + CFG_POSTFIX +
        "/*.*", PLATFORM_INC_DIRECTORY)

    build_utils.copyfiles("../../abpal/" + CURRENT_DIRECTORY + "/include/*.*",
                          INC_DIRECTORY)
    build_utils.copyfiles(
        "../../abpal/" + CURRENT_DIRECTORY + "/include/" + CFG_POSTFIX +
        "/*.*", PLATFORM_INC_DIRECTORY)

    build_utils.copyfiles(
        "../../coreservices/" + CURRENT_DIRECTORY + "/include/*.*",
        INC_DIRECTORY)
    build_utils.copyfiles(
        "../../coreservices/" + CURRENT_DIRECTORY + "/include/" + CFG_POSTFIX +
        "/*.*", PLATFORM_INC_DIRECTORY)

    build_utils.copyfiles(
        "../../nbservices/" + CURRENT_DIRECTORY + "/include/*.*",
        INC_DIRECTORY)
    build_utils.copyfiles(
        "../../nbservices/" + CURRENT_DIRECTORY + "/include/" + CFG_POSTFIX +
        "/*.*", PLATFORM_INC_DIRECTORY)

    build_utils.copyfiles(
        "../../abservices/" + CURRENT_DIRECTORY + "/include/*.*",
        INC_DIRECTORY)
    build_utils.copyfiles(
        "../../abservices/" + CURRENT_DIRECTORY + "/include/" + CFG_POSTFIX +
        "/*.*", PLATFORM_INC_DIRECTORY)

    build_utils.copyfiles(
        "../../nbgm/" + CURRENT_DIRECTORY + "/nbgmmain/include/*.*",
        INC_DIRECTORY)
    build_utils.copyfiles(
        "../../nbgm/" + CURRENT_DIRECTORY + "/nbgmmain/include/" +
        CFG_POSTFIX + "/*.*", PLATFORM_INC_DIRECTORY)

    build_utils.copyfiles("../../nbui/" + CURRENT_DIRECTORY + "/include/*.*",
                          INC_DIRECTORY)
    build_utils.copyfiles(
        "../../nbui/" + CURRENT_DIRECTORY + "/include/" + CFG_POSTFIX + "/*.*",
        PLATFORM_INC_DIRECTORY)

    build_utils.copyfiles("../../nav/" + CURRENT_DIRECTORY + "/include/*.*",
                          INC_DIRECTORY)
    build_utils.copyfiles(
        "../../nav/" + CURRENT_DIRECTORY + "/include/" + CFG_POSTFIX + "/*.*",
        PLATFORM_INC_DIRECTORY)

    build_utils.copyfiles(
        "../../thirdparty/" + CURRENT_DIRECTORY + "/include/*.*",
        INC_DIRECTORY)
    build_utils.copyfiles(
        "../../thirdparty/" + CURRENT_DIRECTORY + "/include/" + CFG_POSTFIX +
        "/*.*", PLATFORM_INC_DIRECTORY)
    build_utils.copyfiles(
        "../../thirdparty/" + CURRENT_DIRECTORY + "/sqlite/include/*.*",
        PLATFORM_INC_DIRECTORY)
    build_utils.copyfiles(
        "../../thirdparty/" + CURRENT_DIRECTORY + "/lp150b15/*.h",
        PLATFORM_INC_DIRECTORY)

    if CFG_POSTFIX.startswith("win"):
        build_utils.copyfiles(
            "../../thirdparty/" + CURRENT_DIRECTORY +
            "/projects/win32/libpng/visualc71/zlib/*.h",
            PLATFORM_INC_DIRECTORY)