|
@ -266,13 +266,16 @@ output = { |
|
|
} |
|
|
} |
|
|
pprint.pprint(output, indent=2) |
|
|
pprint.pprint(output, indent=2) |
|
|
|
|
|
|
|
|
fn = os.path.join(root_dir, 'config.gypi') |
|
|
def write(filename, data): |
|
|
print "creating ", fn |
|
|
filename = os.path.join(root_dir, filename) |
|
|
|
|
|
print "creating ", filename |
|
|
f = open(fn, 'w+') |
|
|
with open(filename, 'w+') as f: |
|
|
f.write("# Do not edit. Generated by the configure script.\n") |
|
|
f.write(data) |
|
|
pprint.pprint(output, stream=f, indent=2) |
|
|
|
|
|
f.write("\n") |
|
|
write('config.gypi', "# Do not edit. Generated by the configure script.\n" + |
|
|
f.close() |
|
|
pprint.pformat(output, indent=2)) |
|
|
|
|
|
|
|
|
|
|
|
write('config.mk', "# Do not edit. Generated by the configure script.\n" + |
|
|
|
|
|
("BUILDTYPE=%s\n" % ('Debug' if options.debug else 'Release'))) |
|
|
|
|
|
|
|
|
subprocess.call(['tools/gyp_node','-f', 'make']) |
|
|
subprocess.call(['tools/gyp_node','-f', 'make']) |
|
|