Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
598e96a0
Commit
598e96a0
authored
Oct 19, 2017
by
Sergey Lyubka
Committed by
Cesanta Bot
Oct 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make amalgam work on windows
PUBLISHED_FROM=92f43c7b0a705ff40c4aea07f2ee0627f8e0e4a1
parent
b5dd0e80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
amalgam.py
tools/amalgam.py
+6
-2
No files found.
tools/amalgam.py
View file @
598e96a0
...
@@ -99,9 +99,9 @@ def resolve(path, parent_name):
...
@@ -99,9 +99,9 @@ def resolve(path, parent_name):
else
:
else
:
p
=
os
.
path
.
join
(
args
.
include_path
,
path
)
p
=
os
.
path
.
join
(
args
.
include_path
,
path
)
if
os
.
path
.
exists
(
p
)
and
not
args
.
norel
:
if
os
.
path
.
exists
(
p
)
and
not
args
.
norel
:
p
=
os
.
path
.
realpath
(
p
)
.
replace
(
'
%
s
/'
%
os
.
getcwd
(
),
''
)
p
=
os
.
path
.
realpath
(
p
)
.
replace
(
'
%
s
%
s'
%
(
os
.
getcwd
(),
os
.
sep
),
''
)
# print >>sys.stderr, '%s -> %s (cwd %s)' % (path, p, os.getcwd())
# print >>sys.stderr, '%s -> %s (cwd %s)' % (path, p, os.getcwd())
return
p
return
p
.
replace
(
os
.
sep
,
'/'
)
def
emit_line_directive
(
out
,
name
,
parent_name
):
def
emit_line_directive
(
out
,
name
,
parent_name
):
print
>>
out
,
'''#ifdef
%(prefix)
s_MODULE_LINES
print
>>
out
,
'''#ifdef
%(prefix)
s_MODULE_LINES
...
@@ -148,6 +148,10 @@ if args.first:
...
@@ -148,6 +148,10 @@ if args.first:
# emitting
# emitting
if
sys
.
platform
==
"win32"
:
import
os
,
msvcrt
msvcrt
.
setmode
(
sys
.
stdout
.
fileno
(),
os
.
O_BINARY
)
if
args
.
public
:
if
args
.
public
:
print
'#include "
%
s"'
%
(
args
.
public
)
print
'#include "
%
s"'
%
(
args
.
public
)
...
...
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