Пример #1
0
 def __init__(self, **args):
     MSBuildPackageBase.__init__(self)
     self.toolset = "vs14"
     self.subinfo.options.configure.args = "/p:useenv=true"
     if CraftCore.compiler.isX86():
         self.subinfo.options.configure.args += " /p:Platform=Win32"
     self.subinfo.options.configure.projectFile = os.path.join(
         self.sourceDir(), "build", "win32", self.toolset, "glib.sln")
Пример #2
0
    def __init__(self, **args):
        MSBuildPackageBase.__init__(self)

        folderSuffix = "x64"
        if CraftCore.compiler.isX86():
            folderSuffix = "x86"
        self.subinfo.options.configure.projectFile = os.path.join(self.sourceDir(), "win32", f"vc14_{folderSuffix}",
                                                                  "libffi-msvc.sln")
Пример #3
0
    def __init__(self, **args):
        MSBuildPackageBase.__init__(self)

        self.arch = "x86"
        if craftCompiler.isX64():
            self.arch = "x64"
        self.subinfo.options.configure.projectFile = os.path.join(self.sourceDir(), "win32", f"vc14_{self.arch}",
                                                                  "libffi-msvc.sln")
Пример #4
0
 def make(self):
     with utils.ScopedEnv({
             "LIB":
             f"{os.environ['LIB']};{os.path.join(CraftStandardDirs.craftRoot() , 'lib')}",
             "INCLUDE":
             f"{os.environ['INCLUDE']};{os.path.join(CraftStandardDirs.craftRoot() , 'include')}"
     }):
         return MSBuildPackageBase.make(self)
Пример #5
0
 def install(self):
     if not MSBuildPackageBase.install(self, installHeaders=False):
         return False
     utils.copyFile(os.path.join(self.sourceDir(), "include", "ffi.h"),
                    os.path.join(self.imageDir(), "include", "ffi.h"), False)
     utils.copyFile(os.path.join(self.sourceDir(), "include", "ffi_common.h"),
                    os.path.join(self.imageDir(), "include", "ffi_common.h"), False)
     return True
Пример #6
0
 def make(self):
     self.enterSourceDir()
     utils.putenv(
         "INCLUDE",
         "%s;%s" % (os.path.join(CraftStandardDirs.craftRoot(),
                                 "include"), os.environ["INCLUDE"]))
     utils.putenv(
         "LIB", "%s;%s" % (os.path.join(CraftStandardDirs.craftRoot(),
                                        "lib"), os.environ["LIB"]))
     return MSBuildPackageBase.make(self)
Пример #7
0
 def install(self):
     if not MSBuildPackageBase.install(self, installHeaders=False):
         return False
     utils.copyFile(os.path.join(self.sourceDir(), "include", "ffi.h"),
                    os.path.join(self.imageDir(), "include", "ffi.h"), False)
     utils.copyFile(os.path.join(self.sourceDir(), "include", "ffi_common.h"),
                    os.path.join(self.imageDir(), "include", "ffi_common.h"), False)
     if CraftCore.compiler.isX86():
         utils.copyFile(os.path.join(self.sourceDir(), "src", "x86", "ffitarget.h"),
                        os.path.join(self.imageDir(), "include", "ffitarget.h"), False)
     else:
         utils.copyFile(os.path.join(self.sourceDir(), "src", "ia64", "ffitarget.h"),
                        os.path.join(self.imageDir(), "include", "ffitarget.h"), False)
     return True
Пример #8
0
 def __init__(self, **args):
     MSBuildPackageBase.__init__(self)
     self.toolset = "vs14"
     self.subinfo.options.configure.args = "/p:useenv=true"
     self.subinfo.options.configure.projectFile = \
         os.path.join(self.sourceDir(), "build", "win32", self.toolset, "glib.sln")