parameters: (self)
docstring: Copy Flatbuffers' artifacts to package folder
docstring_summary: Copy Flatbuffers' artifacts to package folder
docstring_tokens: Copy Flatbuffers artifacts to package folder
function: def package(self):
          """Copy Flatbuffers' artifacts to package folder
          """
          cmake = self.configure_cmake()
          cmake.install()
          self.copy(pattern="LICENSE.txt", dst="licenses")
          self.copy(pattern="FindFlatBuffers.cmake", dst=os.path.join("lib", "cmake", "flatbuffers"), src="CMake")
          self.copy(pattern="flathash*", dst="bin", src="bin")
          self.copy(pattern="flatc*", dst="bin", src="bin")
          if self.settings.os == "Windows" and self.options.shared:
              if self.settings.compiler == "Visual Studio":
                  shutil.move(os.path.join(self.package_folder, "lib", "%s.dll" % self.name),
                              os.path.join(self.package_folder, "bin", "%s.dll" % self.name))
              elif self.settings.compiler == "gcc":
                  shutil.move(os.path.join(self.package_folder, "lib", "lib%s.dll" % self.name),
                              os.path.join(self.package_folder, "bin", "lib%s.dll" % self.name))
function_tokens: def package ( self ) : cmake = self . configure_cmake ( ) cmake . install ( ) self . copy ( pattern = "LICENSE.txt" , dst = "licenses" ) self . copy ( pattern = "FindFlatBuffers.cmake" , dst = os . path . join ( "lib" , "cmake" , "flatbuffers" ) , src = "CMake" ) self . copy ( pattern = "flathash*" , dst = "bin" , src = "bin" ) self . copy ( pattern = "flatc*" , dst = "bin" , src = "bin" ) if self . settings . os == "Windows" and self . options . shared : if self . settings . compiler == "Visual Studio" : shutil . move ( os . path . join ( self . package_folder , "lib" , "%s.dll" % self . name ) , os . path . join ( self . package_folder , "bin" , "%s.dll" % self . name ) ) elif self . settings . compiler == "gcc" : shutil . move ( os . path . join ( self . package_folder , "lib" , "lib%s.dll" % self . name ) , os . path . join ( self . package_folder , "bin" , "lib%s.dll" % self . name ) )