Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b66e1a3d
Commit
b66e1a3d
authored
May 23, 2002
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow the shared library initialization routine to be overridden with an initialize=xxx argument.
Should fix #492465.
parent
dc745687
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
Mac/Lib/mkcwproject/cwxmlgen.py
Mac/Lib/mkcwproject/cwxmlgen.py
+2
-0
Mac/Lib/mkcwproject/template-carbon/template.prj.xml
Mac/Lib/mkcwproject/template-carbon/template.prj.xml
+1
-1
Mac/Lib/mkcwproject/template-ppc/template.prj.xml
Mac/Lib/mkcwproject/template-ppc/template.prj.xml
+1
-1
Mac/scripts/genpluginprojects.py
Mac/scripts/genpluginprojects.py
+6
-3
No files found.
Mac/Lib/mkcwproject/cwxmlgen.py
View file @
b66e1a3d
...
...
@@ -53,6 +53,8 @@ class ProjectBuilder:
dict
[
'stdlibraryflags'
]
=
'Debug'
if
not
dict
.
has_key
(
'libraryflags'
):
dict
[
'libraryflags'
]
=
'Debug'
if
not
dict
.
has_key
(
'initialize'
):
dict
[
'initialize'
]
=
'__initialize'
if
not
dict
.
has_key
(
'mac_sysprefixtype'
):
if
os
.
path
.
isabs
(
dict
[
'sysprefix'
]):
dict
[
'mac_sysprefixtype'
]
=
'Absolute'
...
...
Mac/Lib/mkcwproject/template-carbon/template.prj.xml
View file @
b66e1a3d
...
...
@@ -558,7 +558,7 @@
<SETTING><NAME>
MWLinker_PPC_dontdeadstripinitcode
</NAME><VALUE>
0
</VALUE></SETTING>
<SETTING><NAME>
MWLinker_PPC_permitmultdefs
</NAME><VALUE>
0
</VALUE></SETTING>
<SETTING><NAME>
MWLinker_PPC_linkmode
</NAME><VALUE>
Fast
</VALUE></SETTING>
<SETTING><NAME>
MWLinker_PPC_initname
</NAME><VALUE>
__initialize
</VALUE></SETTING>
<SETTING><NAME>
MWLinker_PPC_initname
</NAME><VALUE>
%(initialize)s
</VALUE></SETTING>
<SETTING><NAME>
MWLinker_PPC_mainname
</NAME><VALUE></VALUE></SETTING>
<SETTING><NAME>
MWLinker_PPC_termname
</NAME><VALUE>
__terminate
</VALUE></SETTING>
...
...
Mac/Lib/mkcwproject/template-ppc/template.prj.xml
View file @
b66e1a3d
...
...
@@ -549,7 +549,7 @@
<SETTING><NAME>
MWLinker_PPC_dontdeadstripinitcode
</NAME><VALUE>
0
</VALUE></SETTING>
<SETTING><NAME>
MWLinker_PPC_permitmultdefs
</NAME><VALUE>
0
</VALUE></SETTING>
<SETTING><NAME>
MWLinker_PPC_linkmode
</NAME><VALUE>
Fast
</VALUE></SETTING>
<SETTING><NAME>
MWLinker_PPC_initname
</NAME><VALUE>
__initialize
</VALUE></SETTING>
<SETTING><NAME>
MWLinker_PPC_initname
</NAME><VALUE>
%(initialize)s
</VALUE></SETTING>
<SETTING><NAME>
MWLinker_PPC_mainname
</NAME><VALUE></VALUE></SETTING>
<SETTING><NAME>
MWLinker_PPC_termname
</NAME><VALUE>
__terminate
</VALUE></SETTING>
...
...
Mac/scripts/genpluginprojects.py
View file @
b66e1a3d
...
...
@@ -36,16 +36,17 @@ def genpluginproject(architecture, module,
sources
=
[],
sourcedirs
=
[],
libraries
=
[],
extradirs
=
[],
extraexportsymbols
=
[],
outputdir
=
":::Lib:lib-dynload"
,
libraryflags
=
None
,
stdlibraryflags
=
None
,
prefixname
=
None
):
libraryflags
=
None
,
stdlibraryflags
=
None
,
prefixname
=
None
,
initialize
=
None
):
if
architecture
==
"all"
:
# For the time being we generate two project files. Not as nice as
# a single multitarget project, but easier to implement for now.
genpluginproject
(
"ppc"
,
module
,
project
,
projectdir
,
sources
,
sourcedirs
,
libraries
,
extradirs
,
extraexportsymbols
,
outputdir
,
libraryflags
,
stdlibraryflags
,
prefixname
)
stdlibraryflags
,
prefixname
,
initialize
)
genpluginproject
(
"carbon"
,
module
,
project
,
projectdir
,
sources
,
sourcedirs
,
libraries
,
extradirs
,
extraexportsymbols
,
outputdir
,
libraryflags
,
stdlibraryflags
,
prefixname
)
stdlibraryflags
,
prefixname
,
initialize
)
return
templatename
=
"template-%s"
%
architecture
targetname
=
"%s.%s"
%
(
module
,
architecture
)
...
...
@@ -99,6 +100,8 @@ def genpluginproject(architecture, module,
dict
[
'libraryflags'
]
=
libraryflags
if
stdlibraryflags
:
dict
[
'stdlibraryflags'
]
=
stdlibraryflags
if
initialize
:
dict
[
'initialize'
]
=
initialize
mkcwproject
.
mkproject
(
os
.
path
.
join
(
projectdir
,
project
),
module
,
dict
,
force
=
FORCEREBUILD
,
templatename
=
templatename
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment