def pedantic (self) : """description: whether pedantic compilation has been requested""" if self.m_pedantic == None: self.m_pedantic = get_field_env (self.cc_makefile(), "PACKAGE_PEDANTIC") == "1" pass return self.m_pedantic
def binflags (self) : """description: the linker flags to use when linking a binary in this package or a package depending on it""" if self.m_binflags == None: self.m_binflags = get_field_env (self.cc_makefile(), "PACKAGE_BINFLAGS") pass return self.m_binflags
def libflags (self) : """description: the linker flags (for linking a library) that *are* propagated to packages depending on it""" if self.m_libflags == None: self.m_libflags = get_field_env (self.cc_makefile(), "PACKAGE_LIBFLAGS") pass return self.m_libflags
def objflags (self) : """description: the compilation flags reported by the package that *are* propagated to packages depending on it""" if self.m_objflags == None: self.m_objflags = get_field_env (self.cc_makefile(), "PACKAGE_OBJFLAGS") pass return self.m_objflags
def noopt (self) : """description: the optimization requested by the package. this is "1" to disable the optimization and "dict" to disable it only for the dictionary (which can be very large and slow to compile)""" if self.m_noopt == None: self.m_noopt = get_field_env (self.cc_makefile(), "PACKAGE_NOOPT") pass return self.m_noopt
def scriptPattern (self) : """description: a list of patterns describing the scripts that should be put/linked into the paths rationale: some packages like to provide executables not in the form of binaries, but scripts. those packages need to set this field accordingly""" if not hasattr (self, "m_scriptPattern") : self.m_scriptPattern = get_field_env (self.conf_makefile(), "PACKAGE_SCRIPTS").split() #self.m_scriptPattern = string.split (get_field_env (self.conf_makefile(), "PACKAGE_SCRIPTS")) pass return self.m_scriptPattern
def find_options (self): """effects: find the right options file to use""" self.m_options_file = None #for alternate in string.split (get_field_env ("options", "alternates"), " "): for alternate in get_field_env ("options", "alternates").split(): if os.path.exists (alternate): self.m_options_file = self.w_ma.expandPath (alternate) return pass if not self.m_options_file: self.m_options_file = os.path.join (os.getcwd(), "options") pass pass
def find_options(self): """effects: find the right options file to use""" self.m_options_file = None #for alternate in string.split (get_field_env ("options", "alternates"), " "): for alternate in get_field_env("options", "alternates").split(): if os.path.exists(alternate): self.m_options_file = self.w_ma.expandPath(alternate) return pass if not self.m_options_file: self.m_options_file = os.path.join(os.getcwd(), "options") pass pass