📄 aix-4.2-powerpc.cf
字号:
# # ***** BEGIN LICENSE BLOCK *****# Source last modified: $Id: aix-4.2-powerpc.cf,v 1.2 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 *****# """AIX 4.2.x and VisualAge C++ 3.6.4 on PowerPC."""exec_config_file('unix.cf')## list of PCF files to runplatform.pcf_prefix_list = ['unix', 'aix4', 'aix-4.2']## definesproject.AddDefines("_AIX", "_AIX42", "_BIG_ENDIAN", "_STRICT_ALIGNMENT") ## don't override FD_SETSIZEfor define in project.defines: if define[:10] == 'FD_SETSIZE': project.defines.remove(define) breakmake_toc = platform.make_tocmake_toc.cmd = 'ranlib'make_toc.make_var = 'RANLIB'make_lib = platform.make_libmake_lib.cmd = 'ar crl'make_lib.make_var = 'MAKE_LIB'make_lib.make_flags = 'MAKE_LIB_FLAGS'platform.copy.cmd = 'cp -f'platform.shared_object_suffix = 'o'platform.suffix_list = ['.cpp', '.o']platform.cc = cc = Compiler()cc.cmd = 'cc'# NOTE: I removed the optimization flag (level 1)cc.args['default'] = '-qchars=signed -qcpluscmt' cc.args['release'] = ''cc.args['debug'] = '-g -DDEBUG -D_DEBUG -qfullpath' cc.args['dll'] = ''cc.args['lib'] = ''cc.define_arg = '-D'cc.include_arg = '-I'cc.source_arg = '-c'cc.target_arg = '-o'cc.make_var = 'CC'cc.make_flags = 'CCFLAGS'platform.cxx = cxx = Compiler()cxx.cmd = 'xlC'cxx.args['default'] = '-qchars=signed -D_NO_SETENV -qlanglvl=noansifor ' cxx.args['debug'] = '-g -DDEBUG -D_DEBUG -qfullpath' cxx.args['release'] = ''cxx.args['dll'] = ''cxx.args['lib'] = ''cxx.define_arg = '-D'cxx.include_arg = '-I'cxx.source_arg = '-c'cxx.target_arg = '-o'cxx.make_var = 'CXX'cxx.make_flags = 'CXXFLAGS'## define AIX linkerclass xlCLinker(Linker): def __init__(self): Linker.__init__(self) self.make_var = 'LD' self.make_flags = 'LDFLAGS' self.args['static'] = '-static' self.target_arg = '-o' self.system_paths = "" ## static_libs and dynamic libs are not handled properly right now def execute(self, target, objects, static_libs, dynamic_libs): ## DLL's must have some exported symbols if project.target_type == "dll" and \ len(project.exported_func) == 0: umake_lib.fatal( "no exported symbols for target %s" % (project.target_name)) ## create the exported symbol file for DLL and EXE targets if project.target_type in ["dll", "exe"] and \ len(project.exported_func) > 0: exp_file = '%s.exp' % (project.target_name) fil = open(exp_file, 'w') for current_obj in project.exported_func: fil.write('%s\n' % (current_obj)) if project.target_type == "dll": link_str = '%s %s %s %s %s %s %s -E%s -ldl' % ( platform.form_var(self.make_var), platform.form_var(self.make_flags), self.target_arg, target, objects, dynamic_libs, static_libs, exp_file) elif project.target_type == "exe": if len(project.exported_func) > 0: exports_option = "-brtl -bE:%s" % (exp_file) else: exports_option = "" link_str = form_string( platform.form_var(self.make_var), platform.form_var(self.make_flags), self.target_arg, target, exports_option, objects, dynamic_libs, static_libs) return link_str def set_type(self): for item in project.system_paths: self.system_paths = '%s %s' % (self.system_paths, item) if project.target_type != 'dll': self.cmd = 'xlC ' self.args['default'] = self.system_paths else: self.cmd = 'makeC++SharedLib' self.args['default'] = '-p0 -G ' + self.system_pathsplatform.link = xlCLinker()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -