parameters: (self)
docstring: Update c++ flags for Skia code compilation.
docstring_summary: Update c++ flags for Skia code compilation.
docstring_tokens: Update c ++ flags for Skia code compilation .
function: def UpdateCppflagsForSkia(self):
      """Update c++ flags for Skia code compilation."""
      if self['release']:
        self['CPPFLAGS'] += ['-DSK_RELEASE', '-DGR_RELEASE',
                             '-DSkDebugf="(void)"']
      elif self['optimize']:
        self['CPPFLAGS'] += ['-DSK_RELEASE', '-DGR_RELEASE',
                             '-DSkDebugf="(void)"']
      else:
        self['CPPFLAGS'] += ['-DSK_DEBUG', '-DGR_DEBUG']
      if sys.byteorder == 'little':
        self['CPPFLAGS'] += ['-DSK_R32_SHIFT=16', '-DSK_G32_SHIFT=8',
                             '-DSK_B32_SHIFT=0', '-DSK_A32_SHIFT=24']
      else:
        self['CPPFLAGS'] += ['-DSK_R32_SHIFT=8', '-DSK_G32_SHIFT=16',
                             '-DSK_B32_SHIFT=24', '-DSK_A32_SHIFT=0']
      self['CPPFLAGS'] += [
          '-DSK_SCALAR_IS_FLOAT', '-DSkUserConfig_DEFINED',
          '-I' + os.path.join(self.exportdirs['root'], self['skia_rel_dir'],
                              'include/config'),
          '-I' + os.path.join(self.exportdirs['root'], self['skia_rel_dir'],
                              'include/core'),
          '-I' + os.path.join(self.exportdirs['root'], self['skia_rel_dir'],
                              'include/effects'),
          '-I' + os.path.join(self.exportdirs['root'], self['skia_rel_dir'],
                              'include/images'),
          '-I' + os.path.join(self.exportdirs['root'], self['skia_rel_dir'],
                              'include/lazy')
      ]
function_tokens: def UpdateCppflagsForSkia ( self ) : if self [ 'release' ] : self [ 'CPPFLAGS' ] += [ '-DSK_RELEASE' , '-DGR_RELEASE' , '-DSkDebugf="(void)"' ] elif self [ 'optimize' ] : self [ 'CPPFLAGS' ] += [ '-DSK_RELEASE' , '-DGR_RELEASE' , '-DSkDebugf="(void)"' ] else : self [ 'CPPFLAGS' ] += [ '-DSK_DEBUG' , '-DGR_DEBUG' ] if sys . byteorder == 'little' : self [ 'CPPFLAGS' ] += [ '-DSK_R32_SHIFT=16' , '-DSK_G32_SHIFT=8' , '-DSK_B32_SHIFT=0' , '-DSK_A32_SHIFT=24' ] else : self [ 'CPPFLAGS' ] += [ '-DSK_R32_SHIFT=8' , '-DSK_G32_SHIFT=16' , '-DSK_B32_SHIFT=24' , '-DSK_A32_SHIFT=0' ] self [ 'CPPFLAGS' ] += [ '-DSK_SCALAR_IS_FLOAT' , '-DSkUserConfig_DEFINED' , '-I' + os . path . join ( self . exportdirs [ 'root' ] , self [ 'skia_rel_dir' ] , 'include/config' ) , '-I' + os . path . join ( self . exportdirs [ 'root' ] , self [ 'skia_rel_dir' ] , 'include/core' ) , '-I' + os . path . join ( self . exportdirs [ 'root' ] , self [ 'skia_rel_dir' ] , 'include/effects' ) , '-I' + os . path . join ( self . exportdirs [ 'root' ] , self [ 'skia_rel_dir' ] , 'include/images' ) , '-I' + os . path . join ( self . exportdirs [ 'root' ] , self [ 'skia_rel_dir' ] , 'include/lazy' ) ]