⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sunos-5.x-sparc-native.cf

📁 linux下的一款播放器
💻 CF
字号:
# # ***** BEGIN LICENSE BLOCK *****# Source last modified: $Id: sunos-5.x-sparc-native.cf,v 1.3 2004/07/07 22:00:05 hubbe Exp $# # Portions Copyright (c) 1995-2004 RealNetworks, Inc. All Rights Reserved.# # The contents of this file, and the files included with this file,# are subject to the current version of the RealNetworks Public# Source License (the "RPSL") available at# http://www.helixcommunity.org/content/rpsl unless you have licensed# the file under the current version of the RealNetworks Community# Source License (the "RCSL") available at# http://www.helixcommunity.org/content/rcsl, in which case the RCSL# will apply. You may also obtain the license terms directly from# RealNetworks.  You may not use this file except in compliance with# the RPSL or, if you have a valid RCSL with RealNetworks applicable# to this file, the RCSL.  Please see the applicable RPSL or RCSL for# the rights, obligations and limitations governing use of the# contents of the file.# # Alternatively, the contents of this file may be used under the# terms of the GNU General Public License Version 2 or later (the# "GPL") in which case the provisions of the GPL are applicable# instead of those above. If you wish to allow use of your version of# this file only under the terms of the GPL, and not to allow others# to use your version of this file under the terms of either the RPSL# or RCSL, indicate your decision by deleting the provisions above# and replace them with the notice and other provisions required by# the GPL. If you do not delete the provisions above, a recipient may# use your version of this file under the terms of any one of the# RPSL, the RCSL or the GPL.# # This file is part of the Helix DNA Technology. RealNetworks is the# developer of the Original Code and owns the copyrights in the# portions it created.# # This file, and the files included with this file, is distributed# and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY# KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS# ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET# ENJOYMENT OR NON-INFRINGEMENT.# # Technology Compatibility Kit Test Suite(s) Location:#    http://www.helixcommunity.org/content/tck# # Contributor(s):# # ***** END LICENSE BLOCK *****# """SUNPRO Compiler Configuration FileThis file initializes build-system objects with the commandline parameters for the Solaris SunPRO compilers.NOTESMake -KPIC the default since nearly all libraries areeventually linked into a shared object and shared objectsmust be Position Independent Code.  Since the C compiler only accepts -KPIC, we use thateverywhere instead of -PIC.We link shared objects with -Bsymbolic so that global variables inshared objects will not be overriden by globals with identical namesin the executable.  This is needed for 'gInstance', a globalvariable which holds the instance handle (resource handle) for aPlugin shared object.   Each Plugin shared object linked with'pnrscldr.a' has a definition of 'gInstance', but without-Bsymbolic, these globals were being overriden by the 'gInstance' inPNGUI.  PNGUI is a "shared library", linked with the RPAPPexecutable at link time, and therefore is searched first for globalsymbol definitions."""exec_config_file('unix.cf')project.AddDefines("_SUN", "_SOLARIS", "_BIG_ENDIAN", "_STRICT_ALIGNMENT")if project.build_choices.count("faacs"):    project.AddDefines(        "_REENTRANT",        "_UNIX_THREADS_SUPPORTED",        "_UNIX_THREADED_NETWORK_IO")platform.suffix_list = ['.cpp', '.o']platform.make_lib.cmd         = 'CC -xar 'platform.make_lib.target_arg  = '-o 'platform.cc         = Compiler()cc                  = platform.cccc.cmd              = 'cc'              cc.args['default']  = '-D__inline=static -xCC -Xt '     # accept C++-style comments        #-xs: debugging with gdb?cc.args['debug']  = '-g -xs -xtarget=generic -xarch=v8plusa -DDEBUG -D_DEBUG 'cc.args['release']  = '-fast -xtarget=generic -xarch=v8plusa -xO5'if not project.BuildOption("nopic"):        cc.args['dll']      = '-KPIC -DPIC'        cc.args['lib']      = '-KPIC -DPIC'        cc.args['default'] = cc.args['default'] + ' -KPIC '        cc.args['profile']  = '-pg'cc.define_arg       = '-D'cc.include_arg      = '-I'cc.source_arg       = '-c'cc.target_arg       = '-o 'cc.make_var         = 'CC'cc.make_flags       = 'CCFLAGS'## Set up the C++ Compiler#platform.cxx        = Compiler()cxx                 = platform.cxxcxx.cmd             = 'CC' cxx.args['default']  = '-features=%all,no%iddollar,no%localfor,no%strictdestrorder -D_ISO_CPP_14882_1998 -Xt -xnolib -Bstatic -lCstd -lCrun -Bdynamic ' #-xs: debugging with gdb?cxx.args['debug']  = '-g -xs -xtarget=generic -xarch=v8plusa -DDEBUG -D_DEBUG 'cxx.args['release'] = '-fast -xtarget=generic -xarch=v8plusa -xO5'if not project.BuildOption("nopic"):        cxx.args['dll']      = '-KPIC -DPIC'        cxx.args['lib']      = '-KPIC -DPIC'        cxx.args['default'] = cxx.args['default'] + ' -KPIC 'cxx.args['profile'] = '-pg'cxx.define_arg      = '-D'cxx.include_arg     = '-I'cxx.source_arg      = '-c'cxx.target_arg      = '-o 'cxx.make_var        = 'CXX'cxx.make_flags      = 'CXXFLAGS'project.AddSystemLibraries('socket', 'nsl', 'c')if "native" not in project.build_choices:        project.build_choices.append("native")#always use use_exportsif "use_exports" not in project.build_choices:        project.build_choices.append("use_exports")## Set up the Linker#class SunProLinker(Linker):    def __init__(self):        Linker.__init__(self)        self.make_var        = 'FOO'        self.make_flags      = 'LDFLAGS'        self.args['default'] = ''               self.args['profile'] = '-pg'        self.args['static']  = '-static'        self.args['debug']  = '-xs -xtarget=generic -xarch=v8plusa '        self.args['release']  = ' -fast -xtarget=generic -xarch=v8plusa -xO5 '        self.target_arg      = '-o'        self.ldcmd           = 'CC'         self.ldargs          = '-xnolib '        self.cmd             = 'CC'    def execute(self, target, objects, static_libs, dynamic_libs):        ##Note: when resolving symbols in an object or library, only libraries specified         # later on the command line are searched        # Make sure libCrun is specified after all objects/libraries which use C++        link_str = platform.form_var(self.make_var) + ' ' +\                   platform.form_var(self.make_flags) + ' ' +\                   HandleExports(target, project.exported_func) +' ' +\                   self.target_arg + ' ' +\                   target + ' ' +\                   objects + ' ' +\                   dynamic_libs + ' ' +\                   static_libs +\                   ' -Bstatic -lCstd -lCrun -Bdynamic '        return link_str    def set_type(self):        self.cmd = self.ldcmd        if (project.target_type == 'dll'):            self.args['default'] =  self.ldargs + '-G '         else:            self.args['default'] = self.ldargsplatform.link = SunProLinker()def HandleExports (target, funcs, ttype="dll") :    if ttype != "dll" or project.build_choices.count("use_exports") == 0:        return ""    elflinkscript = 'elflink.' + os.path.basename(target)    out = open (elflinkscript, "w")    if not project.exported_func and ttype == "dll":        print "You must define an exported function list for this module"    out.write ("""           G2 {                global:                        %s                local:                        *;           };        \n""" % string.join(map (lambda x: x + ";\n\t\t", project.exported_func)))    out.close()    return " -M " + elflinkscript

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -