Skip to content

Commit e5ba482

Browse files
committed
[tools] ship openssl headers under 'include/node'
some native module 'nodegit' depends on the relative path to configure correctly Ref nwjs#6869
1 parent 64c8c20 commit e5ba482

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/make-nw-headers.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ def update_uvh(tmp_dir, header_files):
9898
header_files = ['node.h', 'env.h', 'env-inl.h']
9999
update_uvh(tmp_dir, header_files)
100100

101+
102+
include_node = os.path.join(tmp_dir, 'node', 'include', 'node', 'openssl')
103+
base = os.path.join(third_party_dir, 'node-nw', 'deps', 'openssl', 'openssl', 'include', 'openssl')
104+
shutil.copytree(base, include_node)
105+
distutils.dir_util.copy_tree(os.path.join(third_party_dir, 'node-nw', 'deps', 'openssl', 'config'),
106+
include_node)
107+
101108
print 'copy file end'
102109
print 'Begin compress file'
103110

0 commit comments

Comments
 (0)